extra-filesystem 0.3.11 → 0.4.0

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.
package/README.md CHANGED
@@ -248,3 +248,9 @@ function writeIterableToFile(
248
248
  ```ts
249
249
  function isSubPathOf(subject: string, object: string): boolean
250
250
  ```
251
+
252
+ ### checksumFile
253
+
254
+ ```ts
255
+ function checksumFile(algorithm: string, filename: string): Promise<string>
256
+ ```
@@ -0,0 +1 @@
1
+ export declare function checksumFile(algorithm: string, filename: string): Promise<string>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checksumFile = void 0;
4
+ const crypto = require("crypto");
5
+ const fs = require("fs");
6
+ function checksumFile(algorithm, filename) {
7
+ return new Promise((resolve, reject) => {
8
+ const hash = crypto.createHash(algorithm);
9
+ const stream = fs.createReadStream(filename);
10
+ stream.on('error', err => reject(err));
11
+ stream.on('data', chunk => hash.update(chunk));
12
+ stream.on('end', () => resolve(hash.digest('hex')));
13
+ });
14
+ }
15
+ exports.checksumFile = checksumFile;
16
+ //# sourceMappingURL=checksum-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checksum-file.js","sourceRoot":"","sources":["../../src/checksum-file.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,yBAAwB;AAExB,SAAgB,YAAY,CAAC,SAAiB,EAAE,QAAgB;IAC9D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;QACzC,MAAM,MAAM,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAA;QAC5C,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;QACtC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QAC9C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACrD,CAAC,CAAC,CAAA;AACJ,CAAC;AARD,oCAQC"}
@@ -4,6 +4,7 @@ exports.ensureFileSync = void 0;
4
4
  const ensure_dir_sync_1 = require("./ensure-dir-sync");
5
5
  const path = require("path");
6
6
  const fs = require("fs");
7
+ const pass_1 = require("@blackglory/pass");
7
8
  function ensureFileSync(filename) {
8
9
  const dir = path.dirname(filename);
9
10
  (0, ensure_dir_sync_1.ensureDirSync)(dir);
@@ -11,6 +12,7 @@ function ensureFileSync(filename) {
11
12
  fs.closeSync(fs.openSync(filename, 'wx'));
12
13
  }
13
14
  catch (_a) {
15
+ (0, pass_1.pass)();
14
16
  }
15
17
  }
16
18
  exports.ensureFileSync = ensureFileSync;
@@ -1 +1 @@
1
- {"version":3,"file":"ensure-file-sync.js","sourceRoot":"","sources":["../../src/ensure-file-sync.ts"],"names":[],"mappings":";;;AAAA,uDAAiD;AACjD,6BAA4B;AAC5B,yBAAwB;AAExB,SAAgB,cAAc,CAAC,QAAgB;IAC7C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,IAAA,+BAAa,EAAC,GAAG,CAAC,CAAA;IAClB,IAAI;QACF,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAA;KAC1C;IAAC,WAAM;KAEP;AACH,CAAC;AARD,wCAQC"}
1
+ {"version":3,"file":"ensure-file-sync.js","sourceRoot":"","sources":["../../src/ensure-file-sync.ts"],"names":[],"mappings":";;;AAAA,uDAAiD;AACjD,6BAA4B;AAC5B,yBAAwB;AACxB,2CAAuC;AAEvC,SAAgB,cAAc,CAAC,QAAgB;IAC7C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,IAAA,+BAAa,EAAC,GAAG,CAAC,CAAA;IAClB,IAAI;QACF,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAA;KAC1C;IAAC,WAAM;QACN,IAAA,WAAI,GAAE,CAAA;KACP;AACH,CAAC;AARD,wCAQC"}
@@ -13,6 +13,7 @@ exports.ensureFile = void 0;
13
13
  const ensure_dir_1 = require("./ensure-dir");
14
14
  const path = require("path");
15
15
  const fs = require("fs/promises");
16
+ const pass_1 = require("@blackglory/pass");
16
17
  function ensureFile(filename) {
17
18
  return __awaiter(this, void 0, void 0, function* () {
18
19
  const dir = path.dirname(filename);
@@ -22,6 +23,7 @@ function ensureFile(filename) {
22
23
  yield handle.close();
23
24
  }
24
25
  catch (_a) {
26
+ (0, pass_1.pass)();
25
27
  }
26
28
  });
27
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ensure-file.js","sourceRoot":"","sources":["../../src/ensure-file.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwC;AACxC,6BAA4B;AAC5B,kCAAiC;AAEjC,SAAsB,UAAU,CAAC,QAAgB;;QAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAClC,MAAM,IAAA,sBAAS,EAAC,GAAG,CAAC,CAAA;QACpB,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;YAC5C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;SACrB;QAAC,WAAM;SAEP;IACH,CAAC;CAAA;AATD,gCASC"}
1
+ {"version":3,"file":"ensure-file.js","sourceRoot":"","sources":["../../src/ensure-file.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwC;AACxC,6BAA4B;AAC5B,kCAAiC;AACjC,2CAAuC;AAEvC,SAAsB,UAAU,CAAC,QAAgB;;QAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAClC,MAAM,IAAA,sBAAS,EAAC,GAAG,CAAC,CAAA;QACpB,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;YAC5C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;SACrB;QAAC,WAAM;YACN,IAAA,WAAI,GAAE,CAAA;SACP;IACH,CAAC;CAAA;AATD,gCASC"}
@@ -35,3 +35,4 @@ export * from './is-file-sync';
35
35
  export * from './is-readable';
36
36
  export * from './is-writable';
37
37
  export * from './is-sub-path-of';
38
+ export * from './checksum-file';
@@ -47,4 +47,5 @@ __exportStar(require("./is-file-sync"), exports);
47
47
  __exportStar(require("./is-readable"), exports);
48
48
  __exportStar(require("./is-writable"), exports);
49
49
  __exportStar(require("./is-sub-path-of"), exports);
50
+ __exportStar(require("./checksum-file"), exports);
50
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,yDAAsC;AACtC,qDAAkC;AAClC,0DAAuC;AACvC,qDAAkC;AAClC,0DAAuC;AACvC,8CAA2B;AAC3B,mDAAgC;AAChC,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,qDAAkC;AAClC,gDAA6B;AAC7B,qDAAkC;AAClC,mDAAgC;AAChC,wDAAqC;AACrC,oDAAiC;AACjC,yDAAsC;AACtC,2DAAwC;AACxC,2DAAwC;AACxC,yCAAsB;AACtB,8CAA2B;AAC3B,yCAAsB;AACtB,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,uDAAoC;AACpC,sDAAmC;AACnC,uDAAoC;AACpC,uDAAoC;AACpC,iDAA8B;AAC9B,sDAAmC;AACnC,4CAAyB;AACzB,iDAA8B;AAC9B,gDAA6B;AAC7B,gDAA6B;AAC7B,mDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,yDAAsC;AACtC,qDAAkC;AAClC,0DAAuC;AACvC,qDAAkC;AAClC,0DAAuC;AACvC,8CAA2B;AAC3B,mDAAgC;AAChC,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,qDAAkC;AAClC,gDAA6B;AAC7B,qDAAkC;AAClC,mDAAgC;AAChC,wDAAqC;AACrC,oDAAiC;AACjC,yDAAsC;AACtC,2DAAwC;AACxC,2DAAwC;AACxC,yCAAsB;AACtB,8CAA2B;AAC3B,yCAAsB;AACtB,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,uDAAoC;AACpC,sDAAmC;AACnC,uDAAoC;AACpC,uDAAoC;AACpC,iDAA8B;AAC9B,sDAAmC;AACnC,4CAAyB;AACzB,iDAA8B;AAC9B,gDAA6B;AAC7B,gDAA6B;AAC7B,mDAAgC;AAChC,kDAA+B"}
@@ -0,0 +1 @@
1
+ export declare function checksumFile(algorithm: string, filename: string): Promise<string>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checksumFile = void 0;
4
+ const crypto = require("crypto");
5
+ const fs = require("fs");
6
+ function checksumFile(algorithm, filename) {
7
+ return new Promise((resolve, reject) => {
8
+ const hash = crypto.createHash(algorithm);
9
+ const stream = fs.createReadStream(filename);
10
+ stream.on('error', err => reject(err));
11
+ stream.on('data', chunk => hash.update(chunk));
12
+ stream.on('end', () => resolve(hash.digest('hex')));
13
+ });
14
+ }
15
+ exports.checksumFile = checksumFile;
16
+ //# sourceMappingURL=checksum-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checksum-file.js","sourceRoot":"","sources":["../../src/checksum-file.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,yBAAwB;AAExB,SAAgB,YAAY,CAAC,SAAiB,EAAE,QAAgB;IAC9D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA;QACzC,MAAM,MAAM,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAA;QAC5C,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;QACtC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QAC9C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACrD,CAAC,CAAC,CAAA;AACJ,CAAC;AARD,oCAQC"}
@@ -4,6 +4,7 @@ exports.ensureFileSync = void 0;
4
4
  const ensure_dir_sync_1 = require("./ensure-dir-sync");
5
5
  const path = require("path");
6
6
  const fs = require("fs");
7
+ const pass_1 = require("@blackglory/pass");
7
8
  function ensureFileSync(filename) {
8
9
  const dir = path.dirname(filename);
9
10
  (0, ensure_dir_sync_1.ensureDirSync)(dir);
@@ -11,6 +12,7 @@ function ensureFileSync(filename) {
11
12
  fs.closeSync(fs.openSync(filename, 'wx'));
12
13
  }
13
14
  catch (_a) {
15
+ (0, pass_1.pass)();
14
16
  }
15
17
  }
16
18
  exports.ensureFileSync = ensureFileSync;
@@ -1 +1 @@
1
- {"version":3,"file":"ensure-file-sync.js","sourceRoot":"","sources":["../../src/ensure-file-sync.ts"],"names":[],"mappings":";;;AAAA,uDAAiD;AACjD,6BAA4B;AAC5B,yBAAwB;AAExB,SAAgB,cAAc,CAAC,QAAgB;IAC7C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,IAAA,+BAAa,EAAC,GAAG,CAAC,CAAA;IAClB,IAAI;QACF,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAA;KAC1C;IAAC,WAAM;KAEP;AACH,CAAC;AARD,wCAQC"}
1
+ {"version":3,"file":"ensure-file-sync.js","sourceRoot":"","sources":["../../src/ensure-file-sync.ts"],"names":[],"mappings":";;;AAAA,uDAAiD;AACjD,6BAA4B;AAC5B,yBAAwB;AACxB,2CAAuC;AAEvC,SAAgB,cAAc,CAAC,QAAgB;IAC7C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,IAAA,+BAAa,EAAC,GAAG,CAAC,CAAA;IAClB,IAAI;QACF,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAA;KAC1C;IAAC,WAAM;QACN,IAAA,WAAI,GAAE,CAAA;KACP;AACH,CAAC;AARD,wCAQC"}
@@ -4,6 +4,7 @@ exports.ensureFile = void 0;
4
4
  const ensure_dir_1 = require("./ensure-dir");
5
5
  const path = require("path");
6
6
  const fs = require("fs/promises");
7
+ const pass_1 = require("@blackglory/pass");
7
8
  async function ensureFile(filename) {
8
9
  const dir = path.dirname(filename);
9
10
  await (0, ensure_dir_1.ensureDir)(dir);
@@ -12,6 +13,7 @@ async function ensureFile(filename) {
12
13
  await handle.close();
13
14
  }
14
15
  catch (_a) {
16
+ (0, pass_1.pass)();
15
17
  }
16
18
  }
17
19
  exports.ensureFile = ensureFile;
@@ -1 +1 @@
1
- {"version":3,"file":"ensure-file.js","sourceRoot":"","sources":["../../src/ensure-file.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,6BAA4B;AAC5B,kCAAiC;AAE1B,KAAK,UAAU,UAAU,CAAC,QAAgB;IAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,MAAM,IAAA,sBAAS,EAAC,GAAG,CAAC,CAAA;IACpB,IAAI;QACF,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAC5C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;KACrB;IAAC,WAAM;KAEP;AACH,CAAC;AATD,gCASC"}
1
+ {"version":3,"file":"ensure-file.js","sourceRoot":"","sources":["../../src/ensure-file.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,6BAA4B;AAC5B,kCAAiC;AACjC,2CAAuC;AAEhC,KAAK,UAAU,UAAU,CAAC,QAAgB;IAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,MAAM,IAAA,sBAAS,EAAC,GAAG,CAAC,CAAA;IACpB,IAAI;QACF,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QAC5C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;KACrB;IAAC,WAAM;QACN,IAAA,WAAI,GAAE,CAAA;KACP;AACH,CAAC;AATD,gCASC"}
@@ -35,3 +35,4 @@ export * from './is-file-sync';
35
35
  export * from './is-readable';
36
36
  export * from './is-writable';
37
37
  export * from './is-sub-path-of';
38
+ export * from './checksum-file';
@@ -47,4 +47,5 @@ __exportStar(require("./is-file-sync"), exports);
47
47
  __exportStar(require("./is-readable"), exports);
48
48
  __exportStar(require("./is-writable"), exports);
49
49
  __exportStar(require("./is-sub-path-of"), exports);
50
+ __exportStar(require("./checksum-file"), exports);
50
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,yDAAsC;AACtC,qDAAkC;AAClC,0DAAuC;AACvC,qDAAkC;AAClC,0DAAuC;AACvC,8CAA2B;AAC3B,mDAAgC;AAChC,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,qDAAkC;AAClC,gDAA6B;AAC7B,qDAAkC;AAClC,mDAAgC;AAChC,wDAAqC;AACrC,oDAAiC;AACjC,yDAAsC;AACtC,2DAAwC;AACxC,2DAAwC;AACxC,yCAAsB;AACtB,8CAA2B;AAC3B,yCAAsB;AACtB,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,uDAAoC;AACpC,sDAAmC;AACnC,uDAAoC;AACpC,uDAAoC;AACpC,iDAA8B;AAC9B,sDAAmC;AACnC,4CAAyB;AACzB,iDAA8B;AAC9B,gDAA6B;AAC7B,gDAA6B;AAC7B,mDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,yDAAsC;AACtC,qDAAkC;AAClC,0DAAuC;AACvC,qDAAkC;AAClC,0DAAuC;AACvC,8CAA2B;AAC3B,mDAAgC;AAChC,+CAA4B;AAC5B,oDAAiC;AACjC,gDAA6B;AAC7B,qDAAkC;AAClC,gDAA6B;AAC7B,qDAAkC;AAClC,mDAAgC;AAChC,wDAAqC;AACrC,oDAAiC;AACjC,yDAAsC;AACtC,2DAAwC;AACxC,2DAAwC;AACxC,yCAAsB;AACtB,8CAA2B;AAC3B,yCAAsB;AACtB,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,uDAAoC;AACpC,sDAAmC;AACnC,uDAAoC;AACpC,uDAAoC;AACpC,iDAA8B;AAC9B,sDAAmC;AACnC,4CAAyB;AACzB,iDAA8B;AAC9B,gDAA6B;AAC7B,gDAA6B;AAC7B,mDAAgC;AAChC,kDAA+B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-filesystem",
3
- "version": "0.3.11",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [
@@ -11,6 +11,9 @@
11
11
  "repository": "git@github.com:BlackGlory/extra-filesystem.git",
12
12
  "author": "BlackGlory <woshenmedoubuzhidao@blackglory.me>",
13
13
  "license": "MIT",
14
+ "engines": {
15
+ "node": ">=16"
16
+ },
14
17
  "scripts": {
15
18
  "lint": "eslint --ext .js,.jsx,.ts,.tsx --quiet src",
16
19
  "test": "jest --runInBand --config jest.config.js",
@@ -27,9 +30,6 @@
27
30
  "build:es2018:patch": "tscpaths -p tsconfig.build.json -s ./src -o ./lib/es2018",
28
31
  "release": "standard-version"
29
32
  },
30
- "engines": {
31
- "node": ">= 14"
32
- },
33
33
  "husky": {
34
34
  "hooks": {
35
35
  "pre-commit": "run-s lint build test",
@@ -38,29 +38,31 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@blackglory/jest-matchers": "^0.1.21",
41
- "@commitlint/cli": "^13.2.1",
42
- "@commitlint/config-conventional": "^13.2.0",
41
+ "@commitlint/cli": "^15.0.0",
42
+ "@commitlint/config-conventional": "^15.0.0",
43
43
  "@types/fs-extra": "^9.0.13",
44
- "@types/jest": "^27.0.2",
44
+ "@types/jest": "^27.0.3",
45
45
  "@types/node": "14",
46
- "@types/tmp": "^0.2.1",
47
- "@typescript-eslint/eslint-plugin": "^5.0.0",
48
- "@typescript-eslint/parser": "^5.0.0",
49
- "eslint": "^8.0.1",
46
+ "@types/tmp": "^0.2.2",
47
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
48
+ "@typescript-eslint/parser": "^5.7.0",
49
+ "eslint": "^8.4.1",
50
50
  "husky": "^4.3.0",
51
51
  "iterable-operator": "^0.14.4",
52
- "jest": "^27.2.5",
53
- "jest-extended": "^1.0.0",
52
+ "jest": "^27.4.5",
53
+ "jest-extended": "^1.2.0",
54
54
  "npm-run-all": "^4.1.5",
55
+ "return-style": "^0.12.5",
55
56
  "rimraf": "^3.0.2",
56
- "standard-version": "^9.3.1",
57
- "ts-jest": "^27.0.5",
57
+ "standard-version": "^9.3.2",
58
+ "ts-jest": "^27.1.2",
58
59
  "tscpaths": "^0.0.9",
59
- "typescript": "^4.4.4"
60
+ "typescript": "^4.5.4"
60
61
  },
61
62
  "dependencies": {
62
- "extra-promise": "^0.19.1",
63
+ "@blackglory/pass": "^0.1.0",
64
+ "extra-promise": "^0.20.0",
63
65
  "fs-extra": "^10.0.0",
64
- "tmp-promise": "^3.0.2"
66
+ "tmp-promise": "^3.0.3"
65
67
  }
66
68
  }
package/CHANGELOG.md DELETED
@@ -1,210 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [0.3.11](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.10...v0.3.11) (2021-10-14)
6
-
7
- ### [0.3.10](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.9...v0.3.10) (2021-10-12)
8
-
9
-
10
- ### Features
11
-
12
- * add copy, copySync ([75f19cf](https://github.com/BlackGlory/extra-filesystem/commit/75f19cfef4129a9e06facb208ac8e1e1696c3c99))
13
-
14
- ### [0.3.9](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.8...v0.3.9) (2021-09-25)
15
-
16
- ### [0.3.8](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.7...v0.3.8) (2021-09-10)
17
-
18
-
19
- ### Features
20
-
21
- * add isSubPathOf ([635f19e](https://github.com/BlackGlory/extra-filesystem/commit/635f19e24d39c687c44fac1dd5210c2fe68340d2))
22
-
23
- ### [0.3.7](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.6...v0.3.7) (2021-08-02)
24
-
25
-
26
- ### Features
27
-
28
- * `move`, `moveSync` now overwrite existing files ([5a9dbc0](https://github.com/BlackGlory/extra-filesystem/commit/5a9dbc047df27ac2e1ffef5e86fe3bb75bb2a606))
29
-
30
- ### [0.3.6](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.5...v0.3.6) (2021-08-02)
31
-
32
-
33
- ### Features
34
-
35
- * use `fs-extra` to handle cross-device renaming ([ad59f70](https://github.com/BlackGlory/extra-filesystem/commit/ad59f701fc300ea0ada62b8d75de2eb61099cb09))
36
-
37
- ### [0.3.5](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.4...v0.3.5) (2021-07-25)
38
-
39
- ### [0.3.4](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.3...v0.3.4) (2021-07-12)
40
-
41
- ### [0.3.3](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.2...v0.3.3) (2021-07-10)
42
-
43
-
44
- ### Features
45
-
46
- * add writeIterableToFile ([f7aa9de](https://github.com/BlackGlory/extra-filesystem/commit/f7aa9ded5db6092c25efafe9a2711aaf9159cb7d))
47
-
48
- ### [0.3.2](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.1...v0.3.2) (2021-05-17)
49
-
50
- ### [0.3.1](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.0...v0.3.1) (2021-05-16)
51
-
52
- ## [0.3.0](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.20...v0.3.0) (2021-05-14)
53
-
54
-
55
- ### ⚠ BREAKING CHANGES
56
-
57
- * createTempFilename => createTempName
58
- createTempFilenameSync => createTempNameSync
59
-
60
- ### Features
61
-
62
- * add emptyDir, emptyDirSync ([f5b7280](https://github.com/BlackGlory/extra-filesystem/commit/f5b72807a0dd6822a00772f6ad9d5716713c43d0))
63
- * isFileSync, isDirectorySync ([5ea1fee](https://github.com/BlackGlory/extra-filesystem/commit/5ea1feebdb8dd49229d1df832c12b3453fbad59e))
64
- * moveSync, removeSync ([a6428d0](https://github.com/BlackGlory/extra-filesystem/commit/a6428d0686cc3b7b22b98df5deefd657b19cd989))
65
-
66
-
67
- * rename ([14950ff](https://github.com/BlackGlory/extra-filesystem/commit/14950ff33b425087252df71e2e7f2a90272926b2))
68
-
69
- ### [0.2.20](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.19...v0.2.20) (2021-05-08)
70
-
71
-
72
- ### Features
73
-
74
- * enable force for remove ([f8cc119](https://github.com/BlackGlory/extra-filesystem/commit/f8cc119734d515aed9b4e2da49faa2395b198f5f))
75
-
76
- ### [0.2.19](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.18...v0.2.19) (2021-05-08)
77
-
78
-
79
- ### Features
80
-
81
- * add remove ([cfcaf6e](https://github.com/BlackGlory/extra-filesystem/commit/cfcaf6e99b9fe29f49afa9a4a86822096d07c7b3))
82
-
83
- ### [0.2.18](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.17...v0.2.18) (2021-05-08)
84
-
85
-
86
- ### Features
87
-
88
- * add createTempDir, createTempDirSync ([8e27fa5](https://github.com/BlackGlory/extra-filesystem/commit/8e27fa583723a80056038bbfd6fbdcbb1b228b7c))
89
-
90
- ### [0.2.17](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.16...v0.2.17) (2021-05-08)
91
-
92
-
93
- ### Features
94
-
95
- * add createTempFilename, createTempFilenameSync ([91607b4](https://github.com/BlackGlory/extra-filesystem/commit/91607b45073b040ec48e4dea03d1a74aea8d57f3))
96
-
97
- ### [0.2.16](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.15...v0.2.16) (2021-05-08)
98
-
99
-
100
- ### Bug Fixes
101
-
102
- * build ([90770a3](https://github.com/BlackGlory/extra-filesystem/commit/90770a36dbaf56037b7177f8b24e7010c501c7fa))
103
-
104
- ### [0.2.15](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.14...v0.2.15) (2021-05-08)
105
-
106
-
107
- ### Features
108
-
109
- * add createTempFile, createTempFileSync ([40362bd](https://github.com/BlackGlory/extra-filesystem/commit/40362bd0c42351ffc0a6d39171fae8c4d638df4f))
110
-
111
- ### [0.2.14](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.13...v0.2.14) (2021-05-08)
112
-
113
-
114
- ### Bug Fixes
115
-
116
- * ensureFile, ensureFileSync ([da7e95e](https://github.com/BlackGlory/extra-filesystem/commit/da7e95eaa3f5824596b4901ec0414ab984587dbb))
117
-
118
- ### [0.2.13](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.12...v0.2.13) (2021-05-08)
119
-
120
-
121
- ### Features
122
-
123
- * add ensureFile, ensureFileSync ([5492a14](https://github.com/BlackGlory/extra-filesystem/commit/5492a14a53076c6a6e8dff979c5f28810ed7470f))
124
-
125
- ### [0.2.12](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.11...v0.2.12) (2021-05-08)
126
-
127
-
128
- ### Features
129
-
130
- * add move ([e3871eb](https://github.com/BlackGlory/extra-filesystem/commit/e3871ebeb2e495b0ac0b0919edc9a2e5657a4b51))
131
-
132
- ### [0.2.11](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.10...v0.2.11) (2021-05-08)
133
-
134
-
135
- ### Features
136
-
137
- * add ensureDirSync ([606dfc2](https://github.com/BlackGlory/extra-filesystem/commit/606dfc2291bacd33f33e76e6d4043bfd21355678))
138
-
139
- ### [0.2.10](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.9...v0.2.10) (2021-05-08)
140
-
141
-
142
- ### Features
143
-
144
- * add pathExistsSync, writeJSONFile, writeJSONFileSync ([7644e50](https://github.com/BlackGlory/extra-filesystem/commit/7644e50a7b35b38d62d59ed88a7376b935dc7539))
145
-
146
- ### [0.2.9](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.8...v0.2.9) (2021-05-08)
147
-
148
-
149
- ### Features
150
-
151
- * add readJSONFile ([76fadf1](https://github.com/BlackGlory/extra-filesystem/commit/76fadf118a93087e4eebfc7899cc2ebbe36adb17))
152
-
153
- ### [0.2.8](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.7...v0.2.8) (2021-05-08)
154
-
155
-
156
- ### Features
157
-
158
- * add ensureDir, pathExists ([a614df9](https://github.com/BlackGlory/extra-filesystem/commit/a614df9630a289550cc37e783dc23b677b857386))
159
-
160
- ### [0.2.7](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.6...v0.2.7) (2021-03-29)
161
-
162
- ### [0.2.6](https://github.com/BlackGlory/extra-filesystem/compare/v0.2.5...v0.2.6) (2021-03-29)
163
-
164
-
165
- ### Features
166
-
167
- * add readFileLineByLine ([0782f74](https://github.com/BlackGlory/extra-filesystem/commit/0782f748641e7014464eb83f4ecc5152a238ba1e))
168
-
169
- ### [0.2.5](https://github.com/BlackGlory/bundle/compare/v0.2.4...v0.2.5) (2021-02-03)
170
-
171
- ### [0.2.4](https://github.com/BlackGlory/bundle/compare/v0.2.3...v0.2.4) (2021-01-30)
172
-
173
- ### [0.2.3](https://github.com/BlackGlory/bundle/compare/v0.2.2...v0.2.3) (2021-01-29)
174
-
175
-
176
- ### Bug Fixes
177
-
178
- * predicate ([1433967](https://github.com/BlackGlory/bundle/commit/143396779dad8ac0d1767a6468c4ea2d96d1c682))
179
-
180
- ### [0.2.2](https://github.com/BlackGlory/bundle/compare/v0.2.1...v0.2.2) (2021-01-29)
181
-
182
-
183
- ### Features
184
-
185
- * add predicate support ([002f952](https://github.com/BlackGlory/bundle/commit/002f9522b60b52cd777eb60a665a8bc629f7eb04))
186
-
187
- ### [0.2.1](https://github.com/BlackGlory/bundle/compare/v0.2.0...v0.2.1) (2021-01-29)
188
-
189
-
190
- ### Features
191
-
192
- * add predicate support ([619bf20](https://github.com/BlackGlory/bundle/commit/619bf20366c0347c7c74422a6e758d4a9b0392d7))
193
-
194
- ## [0.2.0](https://github.com/BlackGlory/bundle/compare/v0.1.0...v0.2.0) (2021-01-29)
195
-
196
-
197
- ### ⚠ BREAKING CHANGES
198
-
199
- * findAllDirectoryNames => findAllDirnames
200
-
201
- ### Features
202
-
203
- * rename findAllDirectoryNames to findAllDirnames ([d9d4807](https://github.com/BlackGlory/bundle/commit/d9d48079ad52d23f8dde3cbdecb57e91490f60a2))
204
-
205
- ## 0.1.0 (2021-01-29)
206
-
207
-
208
- ### Features
209
-
210
- * init ([f113770](https://github.com/BlackGlory/bundle/commit/f113770139af49f4653d2849d26b9e2e3a72afcf))