extra-filesystem 0.3.13 → 0.3.14

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
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
4
 
5
+ ### [0.3.14](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.13...v0.3.14) (2021-12-12)
6
+
5
7
  ### [0.3.13](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.12...v0.3.13) (2021-11-07)
6
8
 
7
9
  ### [0.3.12](https://github.com/BlackGlory/extra-filesystem/compare/v0.3.11...v0.3.12) (2021-10-24)
@@ -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"}
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extra-filesystem",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [
@@ -38,29 +38,30 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@blackglory/jest-matchers": "^0.1.21",
41
- "@commitlint/cli": "^14.1.0",
42
- "@commitlint/config-conventional": "^14.1.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
46
  "@types/tmp": "^0.2.2",
47
- "@typescript-eslint/eslint-plugin": "^5.3.0",
48
- "@typescript-eslint/parser": "^5.3.0",
49
- "eslint": "^8.2.0",
47
+ "@typescript-eslint/eslint-plugin": "^5.6.0",
48
+ "@typescript-eslint/parser": "^5.6.0",
49
+ "eslint": "^8.4.1",
50
50
  "husky": "^4.3.0",
51
51
  "iterable-operator": "^0.14.4",
52
- "jest": "^27.3.1",
53
- "jest-extended": "^1.1.0",
52
+ "jest": "^27.4.4",
53
+ "jest-extended": "^1.2.0",
54
54
  "npm-run-all": "^4.1.5",
55
- "return-style": "^0.12.4",
55
+ "return-style": "^0.12.5",
56
56
  "rimraf": "^3.0.2",
57
57
  "standard-version": "^9.3.2",
58
- "ts-jest": "^27.0.7",
58
+ "ts-jest": "^27.1.1",
59
59
  "tscpaths": "^0.0.9",
60
- "typescript": "^4.4.4"
60
+ "typescript": "^4.5.3"
61
61
  },
62
62
  "dependencies": {
63
- "extra-promise": "^0.19.1",
63
+ "@blackglory/pass": "^0.1.0",
64
+ "extra-promise": "^0.19.4",
64
65
  "fs-extra": "^10.0.0",
65
66
  "tmp-promise": "^3.0.3"
66
67
  }