filesystem-sandbox 1.23.0 → 1.24.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.
@@ -32,9 +32,9 @@ const fs_1 = require("fs");
32
32
  const os = __importStar(require("os"));
33
33
  // require for "path" produces the cleanest js output
34
34
  const path_1 = __importDefault(require("path"));
35
- const uuid_1 = require("uuid");
36
35
  const mkdirp_1 = require("mkdirp");
37
36
  const rimraf_1 = require("rimraf");
37
+ const uuid_1 = require("./uuid");
38
38
  if (!fs_1.promises) {
39
39
  throw new Error("Yer node is olde! filesystem-sandboxes requires a Node with fs.promises");
40
40
  }
@@ -86,7 +86,7 @@ class Sandbox {
86
86
  constructor(at) {
87
87
  this._at = at;
88
88
  this._base = path_1.default.join(at || baseTarget, exports.basePrefix);
89
- this._path = path_1.default.join(this._base, (0, uuid_1.v4)());
89
+ this._path = path_1.default.join(this._base, (0, uuid_1.uuid)());
90
90
  (0, mkdirp_1.sync)(this._path);
91
91
  sandboxes.push(this);
92
92
  }
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./filesystem-sandbox";
2
2
  export * from "./index";
3
+ export * from "./uuid";
package/dist/index.js CHANGED
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // this is a generated file: do not edit
18
18
  __exportStar(require("./filesystem-sandbox"), exports);
19
19
  __exportStar(require("./index"), exports);
20
+ __exportStar(require("./uuid"), exports);
package/dist/uuid.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function uuid(): string;
package/dist/uuid.js ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.uuid = void 0;
7
+ const pure_uuid_1 = __importDefault(require("pure-uuid"));
8
+ function uuid() {
9
+ return new pure_uuid_1.default(4).toString();
10
+ }
11
+ exports.uuid = uuid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "filesystem-sandbox",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "JavaScript module to provide filesystem sandboxes for testing",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -44,7 +44,6 @@
44
44
  "@types/mkdirp": "^1.0.0",
45
45
  "@types/node": "^14.0.5",
46
46
  "@types/rimraf": "^3.0.0",
47
- "@types/uuid": "^8.0.0",
48
47
  "eslint": "^7.1.0",
49
48
  "expect-even-more-jest": "^1.0.0",
50
49
  "expect-more-jest": "^5.1.0",
@@ -59,7 +58,7 @@
59
58
  },
60
59
  "dependencies": {
61
60
  "mkdirp": "^1.0.4",
62
- "rimraf": "^3.0.2",
63
- "uuid": "^8.1.0"
61
+ "pure-uuid": "^1.6.2",
62
+ "rimraf": "^3.0.2"
64
63
  }
65
64
  }