@skmtc/core 0.0.265 → 0.0.266
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/esm/dsl/ModelDriver.js
CHANGED
|
@@ -133,7 +133,7 @@ export class ModelDriver {
|
|
|
133
133
|
generatorId: this.insertable.id,
|
|
134
134
|
refName: this.refName
|
|
135
135
|
});
|
|
136
|
-
if (currentKey
|
|
136
|
+
if (currentKey !== definition.generatorKey) {
|
|
137
137
|
throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
|
|
138
138
|
}
|
|
139
139
|
return definition.value instanceof this.insertable;
|
|
@@ -133,7 +133,7 @@ export class OperationDriver {
|
|
|
133
133
|
generatorId: this.insertable.id,
|
|
134
134
|
operation: this.operation
|
|
135
135
|
});
|
|
136
|
-
if (currentKey
|
|
136
|
+
if (currentKey !== definition.generatorKey) {
|
|
137
137
|
throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
|
|
138
138
|
}
|
|
139
139
|
return definition.value instanceof this.insertable;
|
package/package.json
CHANGED
|
@@ -136,7 +136,7 @@ class ModelDriver {
|
|
|
136
136
|
generatorId: this.insertable.id,
|
|
137
137
|
refName: this.refName
|
|
138
138
|
});
|
|
139
|
-
if (currentKey
|
|
139
|
+
if (currentKey !== definition.generatorKey) {
|
|
140
140
|
throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
|
|
141
141
|
}
|
|
142
142
|
return definition.value instanceof this.insertable;
|
|
@@ -136,7 +136,7 @@ class OperationDriver {
|
|
|
136
136
|
generatorId: this.insertable.id,
|
|
137
137
|
operation: this.operation
|
|
138
138
|
});
|
|
139
|
-
if (currentKey
|
|
139
|
+
if (currentKey !== definition.generatorKey) {
|
|
140
140
|
throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
|
|
141
141
|
}
|
|
142
142
|
return definition.value instanceof this.insertable;
|