@did-space/s3-driver 0.2.147 → 0.2.149
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
|
@@ -36,6 +36,14 @@ export declare class S3SpaceOperator implements SpaceOperatorProtocol {
|
|
|
36
36
|
write(options: WriteOptions): Promise<void>;
|
|
37
37
|
delete(options: DeleteOptions): Promise<void>;
|
|
38
38
|
read(options: ReadOptions): Promise<Stream>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @FIXME 在 prod spaces 里面发送 HeadObjectCommand 请求如同石沉大海,related: {@link https://github.com/ArcBlock/blocklet-server/issues/7257 从 NFT Maker 的 应用 Dashboard 备份到 Prod Spaces 的时候报错了 #7257}
|
|
42
|
+
* @description 获取文件的 MD5 哈希值
|
|
43
|
+
* @param {GetHashOptions} options
|
|
44
|
+
* @return {*} {Promise<string>}
|
|
45
|
+
* @memberof S3SpaceOperator
|
|
46
|
+
*/
|
|
39
47
|
getHash(options: GetHashOptions): Promise<string>;
|
|
40
48
|
exists(options: ReadOptions): Promise<boolean>;
|
|
41
49
|
/**
|
package/dist/operator/index.js
CHANGED
|
@@ -201,6 +201,14 @@ class S3SpaceOperator {
|
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @FIXME 在 prod spaces 里面发送 HeadObjectCommand 请求如同石沉大海,related: {@link https://github.com/ArcBlock/blocklet-server/issues/7257 从 NFT Maker 的 应用 Dashboard 备份到 Prod Spaces 的时候报错了 #7257}
|
|
207
|
+
* @description 获取文件的 MD5 哈希值
|
|
208
|
+
* @param {GetHashOptions} options
|
|
209
|
+
* @return {*} {Promise<string>}
|
|
210
|
+
* @memberof S3SpaceOperator
|
|
211
|
+
*/
|
|
204
212
|
getHash(options) {
|
|
205
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
214
|
const key = yield this.getObjectKey(options);
|
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.149",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@aws-sdk/client-s3": "3.
|
|
36
|
-
"@aws-sdk/lib-storage": "3.
|
|
37
|
-
"@did-space/core": "0.2.
|
|
35
|
+
"@aws-sdk/client-s3": "3.370.0",
|
|
36
|
+
"@aws-sdk/lib-storage": "3.370.0",
|
|
37
|
+
"@did-space/core": "0.2.149",
|
|
38
38
|
"debug": "^4.3.4",
|
|
39
39
|
"js-yaml": "^4.1.0",
|
|
40
40
|
"lodash": "^4.17.21",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@arcblock/eslint-config-ts": "^0.2.4",
|
|
45
|
-
"@aws-sdk/types": "^3.
|
|
45
|
+
"@aws-sdk/types": "^3.370.0",
|
|
46
46
|
"@types/fs-extra": "^9.0.13",
|
|
47
47
|
"@types/jest": "^28.1.5",
|
|
48
48
|
"@types/js-yaml": "^4.0.5",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"ts-jest": "^28.0.6",
|
|
57
57
|
"typescript": "^4.9.5"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "5d1ed8c17bfef901c0c0107dceb2858e8c0ff3b9"
|
|
60
60
|
}
|