Skip to content

Commit a2a0d4e

Browse files
committed
fix: Run prettier
1 parent 8a59b56 commit a2a0d4e

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

test.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
const crossSpawn = require('cross-spawn');
22
const glob = require('glob-all');
33
const JSZip = require('jszip');
4-
const sha256File = require('sha256-file');
4+
// const sha256File = require('sha256-file');
55
const tape = require('tape-promise/tape');
66

77
const {
8-
chmodSync,
8+
// chmodSync,
99
removeSync,
1010
readFile,
1111
copySync,
12-
writeFileSync,
13-
statSync,
14-
pathExistsSync,
12+
// writeFileSync,
13+
// statSync,
14+
// pathExistsSync,
1515
} = require('fs-extra');
1616
const { quote } = require('shell-quote');
1717
const { sep } = require('path');
1818

19-
const { getUserCachePath, sha256Path } = require('./lib/shared');
19+
const { getUserCachePath } = require('./lib/shared');
2020

2121
const initialWorkingDir = process.cwd();
2222

@@ -53,7 +53,7 @@ const mkCommand =
5353
const sls = mkCommand('sls');
5454
const git = mkCommand('git');
5555
const npm = mkCommand('npm');
56-
const perl = mkCommand('perl');
56+
// const perl = mkCommand('perl');
5757

5858
const setup = () => {
5959
removeSync(getUserCachePath());
@@ -161,31 +161,31 @@ const availablePythons = (() => {
161161
return mapping;
162162
})();
163163

164-
const getPythonBin = (version) => {
165-
const bin = availablePythons[String(version)];
166-
if (!bin) throw new Error(`No python version ${version} available`);
167-
return bin;
168-
};
169-
170-
const listZipFiles = async function (filename) {
171-
const file = await readFile(filename);
172-
const zip = await new JSZip().loadAsync(file);
173-
return Object.keys(zip.files);
174-
};
175-
176-
const listZipFilesWithMetaData = async function (filename) {
177-
const file = await readFile(filename);
178-
const zip = await new JSZip().loadAsync(file);
179-
return Object(zip.files);
180-
};
181-
182-
const listRequirementsZipFiles = async function (filename) {
183-
const file = await readFile(filename);
184-
const zip = await new JSZip().loadAsync(file);
185-
const reqsBuffer = await zip.file('.requirements.zip').async('nodebuffer');
186-
const reqsZip = await new JSZip().loadAsync(reqsBuffer);
187-
return Object.keys(reqsZip.files);
188-
};
164+
// const getPythonBin = (version) => {
165+
// const bin = availablePythons[String(version)];
166+
// if (!bin) throw new Error(`No python version ${version} available`);
167+
// return bin;
168+
// };
169+
//
170+
// const listZipFiles = async function (filename) {
171+
// const file = await readFile(filename);
172+
// const zip = await new JSZip().loadAsync(file);
173+
// return Object.keys(zip.files);
174+
// };
175+
//
176+
// const listZipFilesWithMetaData = async function (filename) {
177+
// const file = await readFile(filename);
178+
// const zip = await new JSZip().loadAsync(file);
179+
// return Object(zip.files);
180+
// };
181+
//
182+
// const listRequirementsZipFiles = async function (filename) {
183+
// const file = await readFile(filename);
184+
// const zip = await new JSZip().loadAsync(file);
185+
// const reqsBuffer = await zip.file('.requirements.zip').async('nodebuffer');
186+
// const reqsZip = await new JSZip().loadAsync(reqsBuffer);
187+
// return Object.keys(reqsZip.files);
188+
// };
189189

190190
const canUseDocker = () => {
191191
let result;

0 commit comments

Comments
 (0)