filesystem-sandbox
Advanced tools
Comparing version 1.21.0 to 1.22.0
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -17,3 +21,3 @@ if (k2 === undefined) k2 = k; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -60,3 +64,3 @@ return result; | ||
try { | ||
rimraf_1.sync(p, { maxBusyTries: 5 }); | ||
(0, rimraf_1.sync)(p, { maxBusyTries: 5 }); | ||
resolve(); | ||
@@ -86,4 +90,4 @@ } | ||
this._base = path_1.default.join(at || baseTarget, exports.basePrefix); | ||
this._path = path_1.default.join(this._base, uuid_1.v4()); | ||
mkdirp_1.sync(this._path); | ||
this._path = path_1.default.join(this._base, (0, uuid_1.v4)()); | ||
(0, mkdirp_1.sync)(this._path); | ||
sandboxes.push(this); | ||
@@ -147,3 +151,3 @@ } | ||
try { | ||
mkdirp_1.sync(fullpath); | ||
(0, mkdirp_1.sync)(fullpath); | ||
resolve(fullpath); | ||
@@ -246,3 +250,3 @@ } | ||
if (!(await isFolder(to))) { | ||
await mkdirp_1.sync(to); | ||
await (0, mkdirp_1.sync)(to); | ||
} | ||
@@ -249,0 +253,0 @@ baseTarget = to; |
export * from "./filesystem-sandbox"; | ||
export * from "./index"; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -10,3 +14,3 @@ if (k2 === undefined) k2 = k; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +17,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
export * from "./dist"; |
module.exports = require("./dist"); |
{ | ||
"name": "filesystem-sandbox", | ||
"version": "1.21.0", | ||
"version": "1.22.0", | ||
"description": "JavaScript module to provide filesystem sandboxes for testing", | ||
@@ -41,3 +41,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@types/faker": "^4.1.12", | ||
"@faker-js/faker": "^6.0.0", | ||
"@types/jest": "^25.2.3", | ||
@@ -52,10 +52,8 @@ "@types/lodash": "^4.14.153", | ||
"expect-more-jest": "^5.1.0", | ||
"faker": "^4.1.0", | ||
"jest": "^26.0.1", | ||
"jest": "^27.5.1", | ||
"lodash": "^4.17.15", | ||
"nodemon": "^2.0.4", | ||
"simple-git": "^2.5.0", | ||
"ts-jest": "^26.0.0", | ||
"ts-jest": "^27.1.3", | ||
"tslint": "^6.1.2", | ||
"typescript": "^3.9.3", | ||
"typescript": "^4.6.2", | ||
"zarro": "^1.99.0" | ||
@@ -62,0 +60,0 @@ }, |
@@ -0,0 +0,0 @@ filesystem-sandbox |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17
318
16640