@skmtc/core 0.0.349 → 0.0.351

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.
@@ -117,7 +117,7 @@ export class ModelDriver {
117
117
  refName: this.refName
118
118
  });
119
119
  if (currentKey !== definition.generatorKey) {
120
- throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
120
+ throw new Error(`Registered definition mismatch. '${definition.identifier.name}': cached key '${definition.generatorKey}' does not match new key '${currentKey}'`);
121
121
  }
122
122
  return definition.value instanceof this.insertable;
123
123
  }
@@ -116,7 +116,7 @@ export class OperationDriver {
116
116
  operation: this.operation
117
117
  });
118
118
  if (currentKey !== definition.generatorKey) {
119
- throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
119
+ throw new Error(`Registered definition mismatch. '${definition.identifier.name}': cached key '${definition.generatorKey}' does not match new key '${currentKey}'`);
120
120
  }
121
121
  return definition.value instanceof this.insertable;
122
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.349",
3
+ "version": "0.0.351",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -120,7 +120,7 @@ class ModelDriver {
120
120
  refName: this.refName
121
121
  });
122
122
  if (currentKey !== definition.generatorKey) {
123
- throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
123
+ throw new Error(`Registered definition mismatch. '${definition.identifier.name}': cached key '${definition.generatorKey}' does not match new key '${currentKey}'`);
124
124
  }
125
125
  return definition.value instanceof this.insertable;
126
126
  }
@@ -119,7 +119,7 @@ class OperationDriver {
119
119
  operation: this.operation
120
120
  });
121
121
  if (currentKey !== definition.generatorKey) {
122
- throw new Error(`Registered definition mismatch: cached key '${definition.generatorKey}' does not match new key ${currentKey}`);
122
+ throw new Error(`Registered definition mismatch. '${definition.identifier.name}': cached key '${definition.generatorKey}' does not match new key '${currentKey}'`);
123
123
  }
124
124
  return definition.value instanceof this.insertable;
125
125
  }