@did-space/s3-driver 0.2.130 → 0.2.131

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.
@@ -21,7 +21,7 @@ export declare class S3SpaceOperator implements SpaceOperatorProtocol {
21
21
  * @returns {Promise<number>}
22
22
  */
23
23
  getSpaceSize(): Promise<number>;
24
- getPathStatus(path: string): Promise<PathStatus>;
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>;
@@ -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.getPathStatus(prefix);
58
+ const { size } = yield this.getStatusAsOwner(prefix);
59
59
  return size;
60
60
  });
61
61
  }
62
- getPathStatus(path) {
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.getPathStatus(folderKey);
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.130",
3
+ "version": "0.2.131",
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.130",
37
+ "@did-space/core": "0.2.131",
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": "1e1bebb766feb7b3d17e78cc7dfe66f72c050aa0"
58
+ "gitHead": "ee230c7912710a166aaba2565a16b46ab3cbaf3f"
59
59
  }