@forzalabs/remora 0.2.3 → 0.2.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.
package/Constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const CONSTANTS = {
4
- cliVersion: '0.2.3',
4
+ cliVersion: '0.2.4',
5
5
  backendVersion: 1,
6
6
  backendPort: 5088,
7
7
  workerVersion: 2,
@@ -62,8 +62,15 @@ class PostProcessorClass {
62
62
  }
63
63
  return record;
64
64
  }, options);
65
- if (updatedDimensions && updatedDimensions.length > 0)
66
- dataset.setDimensions(updatedDimensions);
65
+ if (!updatedDimensions || updatedDimensions.length === 0) {
66
+ // This means that no updates were applied cause no records were present
67
+ // I need to force a fake update to get the new dimensions, since those might still have changed
68
+ const fakeRecord = new DatasetRecord_1.default('', dataset.getDimensions(), dataset.getDelimiter());
69
+ for (const update of dimensionsUpdates)
70
+ fakeRecord.wholeUpdateDimension(update);
71
+ updatedDimensions = fakeRecord._dimensions;
72
+ }
73
+ dataset.setDimensions(updatedDimensions);
67
74
  return dataset;
68
75
  });
69
76
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forzalabs/remora",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "A powerful CLI tool for seamless data translation.",
5
5
  "main": "index.js",
6
6
  "private": false,