@worldsibu/convector-core-model
Advanced tools
Comparing version 1.3.9-0-alpha.f5bae781 to 1.3.9-0-alpha.f9e11059
@@ -36,5 +36,10 @@ "use strict"; | ||
model = new type(content); | ||
if ((content && model) && content.type !== model.type) { | ||
throw new Error("Possible ID collision, element " + id + " of type " + content.type + " is not " + model.type); | ||
if (storageOptions && storageOptions.enforceType) { | ||
if ((content && model) && content.type !== new type('').type) { | ||
throw new Error("Possible ID collision, element " + id + " of type " + content.type + " is not " + new type('').type); | ||
} | ||
} | ||
else { | ||
console.warn("Possible ID collision, element " + id + " of type " + content.type + " is not " + new type('').type); | ||
} | ||
return [2, model]; | ||
@@ -41,0 +46,0 @@ } |
{ | ||
"name": "@worldsibu/convector-core-model", | ||
"version": "1.3.9-0-alpha.f5bae781", | ||
"version": "1.3.9-0-alpha.f9e11059", | ||
"description": "Convector Model base class", | ||
@@ -53,4 +53,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.f5bae781", | ||
"@worldsibu/convector-core-storage": "1.3.9-0-alpha.f5bae781", | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.f9e11059", | ||
"@worldsibu/convector-core-storage": "1.3.9-0-alpha.f9e11059", | ||
"tslib": "^1.9.0", | ||
@@ -57,0 +57,0 @@ "window-or-global": "^1.0.1", |
Sorry, the diff of this file is not supported yet
43918
435
+ Added@types/cls-hooked@4.3.8(transitive)
+ Added@types/node@20.14.10(transitive)
+ Added@worldsibu/convector-core-errors@1.3.9-0-alpha.f9e11059(transitive)
+ Added@worldsibu/convector-core-storage@1.3.9-0-alpha.f9e11059(transitive)
+ Addedundici-types@5.26.5(transitive)
- Removed@worldsibu/convector-core-errors@1.3.9-0-alpha.f5bae781(transitive)
- Removed@worldsibu/convector-core-storage@1.3.9-0-alpha.f5bae781(transitive)
Updated@worldsibu/convector-core-errors@1.3.9-0-alpha.f9e11059
Updated@worldsibu/convector-core-storage@1.3.9-0-alpha.f9e11059