@ffflorian/jszip-cli 3.7.0 → 3.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import path from 'node:path';
2
- import * as fs from 'fs-extra';
2
+ import fs from 'fs-extra';
3
3
  import JSZip from 'jszip';
4
4
  import logdown from 'logdown';
5
5
  import progress from 'progress';
@@ -17,12 +17,12 @@ export class FileService {
17
17
  await fs.access(dirPath, fs.constants.W_OK);
18
18
  return true;
19
19
  }
20
- catch (error) {
20
+ catch (_error) {
21
21
  this.logger.info(`Directory "${dirPath}" exists but is not writable.`);
22
22
  return false;
23
23
  }
24
24
  }
25
- catch (error) {
25
+ catch (_error) {
26
26
  this.logger.info(`Directory "${dirPath}" doesn't exist.`, this.options.force ? 'Creating.' : 'Not creating.');
27
27
  if (this.options.force) {
28
28
  await fs.ensureDir(dirPath);
@@ -38,7 +38,7 @@ export class FileService {
38
38
  await fs.access(filePath, fs.constants.F_OK | fs.constants.R_OK);
39
39
  return true;
40
40
  }
41
- catch (error) {
41
+ catch (_error) {
42
42
  return false;
43
43
  }
44
44
  }
@@ -53,7 +53,7 @@ export class FileService {
53
53
  this.logger.info(`File "${filePath}" already exists.`, this.options.force ? 'Forcing overwrite.' : 'Not overwriting.');
54
54
  return this.options.force;
55
55
  }
56
- catch (error) {
56
+ catch (_error) {
57
57
  return true;
58
58
  }
59
59
  }
package/package.json CHANGED
@@ -39,10 +39,10 @@
39
39
  "build": "tsc -p tsconfig.json",
40
40
  "clean": "rimraf dist",
41
41
  "dist": "yarn clean && yarn build",
42
- "start": "cross-env NODE_DEBUG=\"jszip-cli/*\" node --loader ts-node/esm src/cli.ts",
42
+ "start": "node --loader ts-node/esm src/cli.ts -V",
43
43
  "test": "vitest run"
44
44
  },
45
45
  "type": "module",
46
- "version": "3.7.0",
47
- "gitHead": "f1a74d8ec9721d5b52a00e41b2ec73278e048290"
46
+ "version": "3.7.2",
47
+ "gitHead": "61eb972d144debefdd584621ee7316d1961fd8e4"
48
48
  }