@engine9-io/input-tools 1.8.7 → 1.8.8

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.
@@ -9,7 +9,6 @@ class ValidatingReadable extends Readable {
9
9
  this.validator = validator || (() => true);
10
10
  }
11
11
 
12
- // eslint-disable-next-line no-underscore-dangle
13
12
  // _read() {super._read(size)}
14
13
 
15
14
  push(chunk) {
@@ -12,7 +12,7 @@ const debug = require('debug')('@engine9-io/file');
12
12
  const { getXlsxStream } = require('xlstream');
13
13
  const csv = require('csv');
14
14
  const JSON5 = require('json5');
15
- const { default: pLimit } = require('p-limit');
15
+
16
16
  const languageEncoding = require('detect-file-encoding-and-language');
17
17
  const R2Worker = require('./R2');
18
18
  const S3Worker = require('./S3');
@@ -729,7 +729,8 @@ Worker.prototype.listAll = async function ({ directory, start: s, end: e }) {
729
729
  if (!start && !end) {
730
730
  return files;
731
731
  }
732
-
732
+ const pLimit = await import('p-limit');
733
+ pLimit.default();
733
734
  const limitedMethod = pLimit(10);
734
735
  const filesWithinLimit = [];
735
736
 
@@ -774,7 +775,8 @@ Worker.prototype.moveAll = async function (options) {
774
775
  target: filename.replace(directory, targetDirectory)
775
776
  };
776
777
  });
777
-
778
+ const pLimit = await import('p-limit');
779
+ pLimit.default();
778
780
  const limitedMethod = pLimit(10);
779
781
 
780
782
  return Promise.all(configs.map(({ filename, target }) => limitedMethod(async () => this.move({ filename, target }))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engine9-io/input-tools",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "description": "Tools for dealing with Engine9 inputs",
5
5
  "main": "index.js",
6
6
  "scripts": {