@syntest/storage
Advanced tools
Comparing version 0.3.0-beta.1 to 0.3.0-beta.2
@@ -1,3 +0,3 @@ | ||
export * from "./lib/util/Configuration"; | ||
export * from "./lib/Configuration"; | ||
export * from "./lib/StorageManager"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -34,4 +34,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./lib/util/Configuration"), exports); | ||
__exportStar(require("./lib/Configuration"), exports); | ||
__exportStar(require("./lib/StorageManager"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -23,2 +23,3 @@ "use strict"; | ||
const path = require("node:path"); | ||
const diagnostics_1 = require("@syntest/diagnostics"); | ||
const logging_1 = require("@syntest/logging"); | ||
@@ -36,3 +37,3 @@ const fs_extra_1 = require("fs-extra"); | ||
if (pathPart.includes("/") || pathPart.includes("\\")) { | ||
throw new Error("Storage path cannot contain any of the following characters /\\"); | ||
throw new diagnostics_1.IllegalArgumentError("Storage path cannot contain any of the following characters /\\"); | ||
} | ||
@@ -109,7 +110,7 @@ } | ||
if (fileName.includes("/") || fileName.includes("\\")) { | ||
throw new Error("filename cannot contain any of the following characters /\\"); | ||
throw new diagnostics_1.IllegalArgumentError("Filename cannot contain any of the following characters /\\"); | ||
} | ||
for (const pathPart of storagePath) { | ||
if (pathPart.includes("/") || pathPart.includes("\\")) { | ||
throw new Error("Storage path cannot contain any of the following characters /\\"); | ||
throw new diagnostics_1.IllegalArgumentError("Storage path cannot contain any of the following characters /\\"); | ||
} | ||
@@ -116,0 +117,0 @@ } |
{ | ||
"name": "@syntest/storage", | ||
"version": "0.3.0-beta.1", | ||
"version": "0.3.0-beta.2", | ||
"description": "SynTest library for storing namespaced data in a file system", | ||
@@ -47,3 +47,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@syntest/logging": "^0.2.0-beta.1", | ||
"@syntest/diagnostics": "^0.1.0-beta.0", | ||
"@syntest/logging": "^0.2.0-beta.2", | ||
"fs-extra": "^11.1.1", | ||
@@ -61,3 +62,3 @@ "yargs": "^17.7.1" | ||
}, | ||
"gitHead": "62fc32cd877d4f37e335e5e21027b0913d7bcb75" | ||
"gitHead": "3f6b9612c030ffc79d5e79c5c1c126ca816a87a6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
69094
350
4