@did-space/s3-driver 1.0.39 → 1.0.40
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.js +3 -3
- package/package.json +3 -3
package/dist/operator/index.js
CHANGED
|
@@ -28,7 +28,7 @@ const mime_types_1 = __importDefault(require("mime-types"));
|
|
|
28
28
|
const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
29
29
|
const debug_1 = __importDefault(require("debug"));
|
|
30
30
|
const p_all_1 = __importDefault(require("p-all"));
|
|
31
|
-
const
|
|
31
|
+
const omit_1 = __importDefault(require("lodash/omit"));
|
|
32
32
|
const aws_sdk_v3_proxy_1 = require("aws-sdk-v3-proxy");
|
|
33
33
|
const common_1 = require("../utils/common");
|
|
34
34
|
const { version: s3ClientVersion } = require('@aws-sdk/client-s3/package.json');
|
|
@@ -430,7 +430,7 @@ class S3SpaceOperator {
|
|
|
430
430
|
list(options) {
|
|
431
431
|
var _a;
|
|
432
432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
-
debug('list.before', JSON.stringify({ options: (0,
|
|
433
|
+
debug('list.before', JSON.stringify({ options: (0, omit_1.default)(options, 'data') }));
|
|
434
434
|
const absolutePath = (0, common_1.getSafeKey)((options === null || options === void 0 ? void 0 : options.useGlobal) ? options.key : (0, path_1.join)(this.options.root, options.key));
|
|
435
435
|
debug('list.before.$absolutePath', absolutePath);
|
|
436
436
|
const response = yield this.s3Client.send(new client_s3_1.ListObjectsCommand({
|
|
@@ -455,7 +455,7 @@ class S3SpaceOperator {
|
|
|
455
455
|
}
|
|
456
456
|
writeAsOwner(key, data, options) {
|
|
457
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
debug('writeAsOwner.before', JSON.stringify({ key, options: (0,
|
|
458
|
+
debug('writeAsOwner.before', JSON.stringify({ key, options: (0, omit_1.default)(options, 'data') }));
|
|
459
459
|
const $key = (0, common_1.getSafeKey)((options === null || options === void 0 ? void 0 : options.useGlobal) ? key : (0, path_1.join)(this.options.root, key));
|
|
460
460
|
const isDirectory = $key.endsWith('/');
|
|
461
461
|
debug('writeAsOwner.$$key', $key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@did-space/s3-driver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@aws-sdk/client-s3": "^3.779.0",
|
|
32
32
|
"@aws-sdk/lib-storage": "^3.779.0",
|
|
33
33
|
"@aws-sdk/util-utf8-browser": "^3.259.0",
|
|
34
|
-
"@did-space/core": "^1.0.
|
|
34
|
+
"@did-space/core": "^1.0.40",
|
|
35
35
|
"aws-sdk-v3-proxy": "^2.2.0",
|
|
36
36
|
"debug": "^4.4.0",
|
|
37
37
|
"js-yaml": "^4.1.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"typescript": "^4.9.5",
|
|
57
57
|
"vitest": "^3.1.1"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "51edbd8d2d9852cb9b30ff4c12900d5f71272d43"
|
|
60
60
|
}
|