@engine9-io/input-tools 1.8.9 → 1.9.0
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/file/FileUtilities.js +4 -4
- package/file/S3.js +1 -2
- package/package.json +1 -1
package/file/FileUtilities.js
CHANGED
|
@@ -730,8 +730,8 @@ Worker.prototype.listAll = async function ({ directory, start: s, end: e }) {
|
|
|
730
730
|
return files;
|
|
731
731
|
}
|
|
732
732
|
const pLimit = await import('p-limit');
|
|
733
|
-
|
|
734
|
-
const limitedMethod = pLimit(10);
|
|
733
|
+
|
|
734
|
+
const limitedMethod = pLimit.default(10);
|
|
735
735
|
const filesWithinLimit = [];
|
|
736
736
|
|
|
737
737
|
await Promise.all(
|
|
@@ -776,8 +776,8 @@ Worker.prototype.moveAll = async function (options) {
|
|
|
776
776
|
};
|
|
777
777
|
});
|
|
778
778
|
const pLimit = await import('p-limit');
|
|
779
|
-
|
|
780
|
-
const limitedMethod = pLimit(10);
|
|
779
|
+
|
|
780
|
+
const limitedMethod = pLimit.default(10);
|
|
781
781
|
|
|
782
782
|
return Promise.all(configs.map(({ filename, target }) => limitedMethod(async () => this.move({ filename, target }))));
|
|
783
783
|
};
|
package/file/S3.js
CHANGED
|
@@ -303,8 +303,7 @@ Worker.prototype.moveAll = async function ({ directory, targetDirectory }) {
|
|
|
303
303
|
}));
|
|
304
304
|
|
|
305
305
|
const pLimit = await import('p-limit');
|
|
306
|
-
pLimit.default();
|
|
307
|
-
const limitedMethod = pLimit(10);
|
|
306
|
+
const limitedMethod = pLimit.default(10);
|
|
308
307
|
|
|
309
308
|
return Promise.all(configs.map(({ filename, target }) => limitedMethod(async () => this.move({ filename, target }))));
|
|
310
309
|
};
|