@engine9-io/input-tools 1.9.1 → 1.9.2

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.
@@ -248,8 +248,6 @@ Worker.prototype.fileToObjectStream = async function (options) {
248
248
 
249
249
  let count = 0;
250
250
 
251
- debug(`Reading file ${filename} with encoding:`, encoding);
252
-
253
251
  let transforms = [];
254
252
 
255
253
  if (postfix === 'gz') {
@@ -265,6 +263,8 @@ Worker.prototype.fileToObjectStream = async function (options) {
265
263
  }
266
264
  let format = formatOverride || postfix;
267
265
 
266
+ debug(`Reading file ${filename} with encoding: ${encoding} and format ${format}`);
267
+
268
268
  if (format === 'csv') {
269
269
  const csvTransforms = this.csvToObjectTransforms({ ...options });
270
270
  transforms = transforms.concat(csvTransforms.transforms);
package/index.js CHANGED
@@ -313,11 +313,7 @@ function getEntryType(o, defaults = {}) {
313
313
  if (etype) return etype;
314
314
 
315
315
  const id = o.entry_type_id || defaults.entry_type_id;
316
- if (id) return id;
317
316
 
318
- if (!id) {
319
- throw new Error('No entry_type, nor entry_type_id specified, specify a default.entry_type');
320
- }
321
317
  etype = TIMELINE_ENTRY_TYPES[id];
322
318
  if (etype === undefined) throw new Error(`Invalid entry_type: ${etype}`);
323
319
  return etype;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engine9-io/input-tools",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Tools for dealing with Engine9 inputs",
5
5
  "main": "index.js",
6
6
  "scripts": {