@forzalabs/remora 0.0.53-nasco.3 → 0.0.54-nasco.3
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 +1 -1
- package/engines/dataset/Dataset.js +2 -0
- package/package.json +1 -1
package/Constants.js
CHANGED
|
@@ -695,6 +695,8 @@ class Dataset {
|
|
|
695
695
|
for (let i = 0; i < fields.length; i++) {
|
|
696
696
|
const { cField } = fields[i];
|
|
697
697
|
const currentMatch = structuredClone(this._dimensions.find(x => x.name === cField.key));
|
|
698
|
+
if (!currentMatch && !cField.fixed)
|
|
699
|
+
throw new Error(`The requested field "${cField.key}" from the consumer is not present in the underlying dataset "${this._name}" (${this._dimensions.map(x => x.name).join(', ')})`);
|
|
698
700
|
updates.push({
|
|
699
701
|
currentDimension: currentMatch,
|
|
700
702
|
newName: (_a = cField.alias) !== null && _a !== void 0 ? _a : cField.key,
|