@did-space/fs-driver 1.0.0 → 1.0.2
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/dist/config/index.js +1 -1
- package/dist/operator/index.js +1 -1
- package/package.json +5 -5
package/dist/config/index.js
CHANGED
|
@@ -29,7 +29,7 @@ class FsSpaceConfig {
|
|
|
29
29
|
const { error } = core_1.SpaceConfigSchema.validate(spaceConfig);
|
|
30
30
|
if (error) {
|
|
31
31
|
core_1.logger.error(error);
|
|
32
|
-
throw error;
|
|
32
|
+
throw new Error(error.message);
|
|
33
33
|
}
|
|
34
34
|
// 保存配置在space下的config.yml
|
|
35
35
|
yield fs_extra_1.default.outputFile(this.key, js_yaml_1.default.dump(spaceConfig));
|
package/dist/operator/index.js
CHANGED
|
@@ -45,7 +45,7 @@ const mime_types_1 = __importDefault(require("mime-types"));
|
|
|
45
45
|
const path_1 = require("path");
|
|
46
46
|
const stream_1 = require("stream");
|
|
47
47
|
const debug_1 = __importDefault(require("debug"));
|
|
48
|
-
const promises_1 = require("stream/promises");
|
|
48
|
+
const promises_1 = require("node:stream/promises");
|
|
49
49
|
const debug = (0, debug_1.default)('@did-space/fs-driver:FsSpaceOperator');
|
|
50
50
|
function getPrefix(root) {
|
|
51
51
|
return root.split('/').slice(0, -1).join('/');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@did-space/fs-driver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"verify": "npm run lint && npm run test && npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@did-space/core": "^1.0.
|
|
31
|
+
"@did-space/core": "^1.0.2",
|
|
32
32
|
"debug": "^4.4.0",
|
|
33
33
|
"filehound": "^1.17.6",
|
|
34
34
|
"fs-extra": "^10.1.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@types/jest": "^28.1.8",
|
|
44
44
|
"@types/js-yaml": "^4.0.9",
|
|
45
45
|
"@types/json-stable-stringify": "^1.1.0",
|
|
46
|
-
"@types/lodash": "^4.17.
|
|
46
|
+
"@types/lodash": "^4.17.14",
|
|
47
47
|
"@types/node": "18.19.31",
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
49
49
|
"eslint": "^8.57.1",
|
|
50
50
|
"lint-staged": "^13.3.0",
|
|
51
51
|
"ts-jest": "^28.0.8",
|
|
52
52
|
"typescript": "^4.9.5",
|
|
53
|
-
"vitest": "^
|
|
53
|
+
"vitest": "^3.0.0-beta.4"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "4a4a0e41044fa70b2cf5a95ca3317e13ebcee7bb"
|
|
56
56
|
}
|