upload-assets-oss 0.0.13 → 0.0.14

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/index.cjs CHANGED
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -95,6 +99,7 @@ var Qiniu = class {
95
99
  getResouceList(prefix) {
96
100
  const { bucket } = this.options;
97
101
  var options = {
102
+ // limit: 10,
98
103
  prefix
99
104
  };
100
105
  log("\u{1F5D3} \u6B63\u5728\u83B7\u53D6\u5386\u53F2\u6570\u636E...");
@@ -198,7 +203,6 @@ var NpmQiuniuPlugin = class {
198
203
  const deleteAry = forceDelete ? resourceList : (0, import_difference.default)(resourceList, uploadFilePathAry);
199
204
  const uploadAry = forceDelete ? uploadFilePathAry : (0, import_difference.default)(uploadFilePathAry, resourceList);
200
205
  if (deleteAry.length > 0) {
201
- await this.qiniu.batchDeleteFile(deleteAry);
202
206
  }
203
207
  return uploadAry;
204
208
  }
package/dist/index.js CHANGED
@@ -62,6 +62,7 @@ var Qiniu = class {
62
62
  getResouceList(prefix) {
63
63
  const { bucket } = this.options;
64
64
  var options = {
65
+ // limit: 10,
65
66
  prefix
66
67
  };
67
68
  log("\u{1F5D3} \u6B63\u5728\u83B7\u53D6\u5386\u53F2\u6570\u636E...");
@@ -165,7 +166,6 @@ var NpmQiuniuPlugin = class {
165
166
  const deleteAry = forceDelete ? resourceList : difference(resourceList, uploadFilePathAry);
166
167
  const uploadAry = forceDelete ? uploadFilePathAry : difference(uploadFilePathAry, resourceList);
167
168
  if (deleteAry.length > 0) {
168
- await this.qiniu.batchDeleteFile(deleteAry);
169
169
  }
170
170
  return uploadAry;
171
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "upload-assets-oss",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "typings": "./dist/index.d.ts",