@worldsibu/convector-core-model
Advanced tools
Comparing version 1.3.9-0-alpha.04821d01 to 1.3.9-0-alpha.09192f1d
@@ -36,4 +36,9 @@ "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 ((content && model) && content.type !== new type('').type) { | ||
if (storageOptions && storageOptions.enforceType) { | ||
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); | ||
} | ||
} | ||
@@ -40,0 +45,0 @@ return [2, model]; |
{ | ||
"name": "@worldsibu/convector-core-model", | ||
"version": "1.3.9-0-alpha.04821d01", | ||
"version": "1.3.9-0-alpha.09192f1d", | ||
"description": "Convector Model base class", | ||
@@ -53,4 +53,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.04821d01", | ||
"@worldsibu/convector-core-storage": "1.3.9-0-alpha.04821d01", | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.09192f1d", | ||
"@worldsibu/convector-core-storage": "1.3.9-0-alpha.09192f1d", | ||
"tslib": "^1.9.0", | ||
@@ -57,0 +57,0 @@ "window-or-global": "^1.0.1", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43930
435
+ Added@types/cls-hooked@4.3.8(transitive)
+ Added@types/node@22.7.4(transitive)
+ Added@worldsibu/convector-core-errors@1.3.9-0-alpha.09192f1d(transitive)
+ Added@worldsibu/convector-core-storage@1.3.9-0-alpha.09192f1d(transitive)
+ Addedasync-hook-jl@1.7.6(transitive)
+ Addedcls-hooked-no-leak@4.3.1(transitive)
+ Addedemitter-listener@1.1.2(transitive)
+ Addedshimmer@1.2.1(transitive)
+ Addedstack-chain@1.3.7(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@worldsibu/convector-core-errors@1.3.9-0-alpha.04821d01(transitive)
- Removed@worldsibu/convector-core-storage@1.3.9-0-alpha.04821d01(transitive)
Updated@worldsibu/convector-core-errors@1.3.9-0-alpha.09192f1d
Updated@worldsibu/convector-core-storage@1.3.9-0-alpha.09192f1d