@did-space/s3-driver 0.2.130 → 0.2.132
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/operator/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class S3SpaceOperator implements SpaceOperatorProtocol {
|
|
|
21
21
|
* @returns {Promise<number>}
|
|
22
22
|
*/
|
|
23
23
|
getSpaceSize(): Promise<number>;
|
|
24
|
-
|
|
24
|
+
getStatusAsOwner(path: string): Promise<PathStatus>;
|
|
25
25
|
createAppSpace(options: AppSpaceOptions): Promise<void>;
|
|
26
26
|
destroyAppSpace(options: AppSpaceOptions): Promise<void>;
|
|
27
27
|
getAppSpacePath(options: AppSpaceOptions): Promise<string>;
|
package/dist/operator/index.js
CHANGED
|
@@ -55,11 +55,11 @@ class S3SpaceOperator {
|
|
|
55
55
|
getSpaceSize() {
|
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
57
|
const prefix = (0, path_1.join)(this.options.root, '/');
|
|
58
|
-
const { size } = yield this.
|
|
58
|
+
const { size } = yield this.getStatusAsOwner(prefix);
|
|
59
59
|
return size;
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
getStatusAsOwner(path) {
|
|
63
63
|
var _a, e_1, _b, _c;
|
|
64
64
|
var _d;
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -263,7 +263,7 @@ class S3SpaceOperator {
|
|
|
263
263
|
const keys = folderKey.split('/');
|
|
264
264
|
const name = `${keys[keys.length - 2]}/`;
|
|
265
265
|
const key = folderKey.replace(this.options.root, '');
|
|
266
|
-
const pathStatus = yield this.
|
|
266
|
+
const pathStatus = yield this.getStatusAsOwner(folderKey);
|
|
267
267
|
const { size, lastModified } = pathStatus;
|
|
268
268
|
objects.push({
|
|
269
269
|
key,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@did-space/s3-driver",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.132",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@aws-sdk/client-s3": "^3.362.0",
|
|
36
36
|
"@aws-sdk/lib-storage": "^3.362.0",
|
|
37
|
-
"@did-space/core": "0.2.
|
|
37
|
+
"@did-space/core": "0.2.132",
|
|
38
38
|
"js-yaml": "^4.1.0",
|
|
39
39
|
"lodash": "^4.17.21",
|
|
40
40
|
"mime-types": "^2.1.35"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"ts-jest": "^28.0.6",
|
|
56
56
|
"typescript": "^4.9.5"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "72e410dd3ce245e4b5d66d998c3042c1eda1352d"
|
|
59
59
|
}
|