@engine9-io/input-tools 1.8.6 → 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,14 +775,16 @@ 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 }))));
781
783
  };
782
784
  Worker.prototype.moveAll.metadata = {
783
785
  options: {
784
- directory: { required: true }
786
+ directory: { required: true },
787
+ targetDirectory: { required: true }
785
788
  }
786
789
  };
787
790
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engine9-io/input-tools",
3
- "version": "1.8.6",
3
+ "version": "1.8.8",
4
4
  "description": "Tools for dealing with Engine9 inputs",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/timelineTypes.js CHANGED
@@ -76,7 +76,13 @@ const EXPORT = 80;
76
76
  const EXPORT_FOR_REMOTE = 81;
77
77
 
78
78
  // Export specifically for sending out messages
79
- const EXPORT_FOR_MESSAGING = 81;
79
+ const EXPORT_FOR_MESSAGING = 82;
80
+
81
+ //These are for actions we may not have exact
82
+ // details on, but are useful for modeling, etc
83
+ const INFERRED_ENTRY = 91;
84
+ const INFERRED_MESSAGE = 92;
85
+ const INFERRED_FORM = 93;
80
86
 
81
87
  // DO. NOT. CHANGE. (once finalized)
82
88
  // should probably have offsets between types
@@ -140,7 +146,10 @@ const TIMELINE_ENTRY_TYPES = {
140
146
  FILE_IMPORT,
141
147
  EXPORT,
142
148
  EXPORT_FOR_REMOTE,
143
- EXPORT_FOR_MESSAGING
149
+ EXPORT_FOR_MESSAGING,
150
+ INFERRED_ENTRY,
151
+ INFERRED_MESSAGE,
152
+ INFERRED_FORM
144
153
  };
145
154
  Object.entries(TIMELINE_ENTRY_TYPES).forEach(([k, v]) => {
146
155
  TIMELINE_ENTRY_TYPES[v] = k;