@engine9-io/input-tools 1.7.2 → 1.7.4

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.
Files changed (2) hide show
  1. package/ForEachEntry.js +3 -3
  2. package/package.json +1 -1
package/ForEachEntry.js CHANGED
@@ -67,7 +67,7 @@ class ForEachEntry {
67
67
  objectMode: true,
68
68
  transform(o, enc, cb) {
69
69
  fileInfo.records += 1;
70
- cb();
70
+ cb(null, o);
71
71
  },
72
72
  }))
73
73
  .pipe(csv.stringify({ header: true }))
@@ -117,7 +117,7 @@ class ForEachEntry {
117
117
  if (binding.path === 'output.timeline') {
118
118
  const { stream: streamImpl, promises, files } = await this.getOutputStream({
119
119
  name: bindingName,
120
- postfix: '.timeline.csv',
120
+ postfix: binding.options?.postfix || '.timeline.csv',
121
121
  validatorFunction: (data) => {
122
122
  if (!data) return true;
123
123
  if (typeof data !== 'object') throw new Error('Invalid timeline data push, must be an object');
@@ -134,7 +134,7 @@ class ForEachEntry {
134
134
  } else if (binding.path === 'output.stream') {
135
135
  const { stream: streamImpl, promises, files } = await this.getOutputStream({
136
136
  name: bindingName,
137
- postfix: '.output.csv',
137
+ postfix: binding.options?.postfix || '.timeline.csv',
138
138
  });
139
139
  newStreams.push(streamImpl);
140
140
  transformArguments[bindingName] = streamImpl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engine9-io/input-tools",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "description": "Tools for dealing with Engine9 inputs",
5
5
  "main": "index.js",
6
6
  "scripts": {