@worldsibu/convector-core-model
Advanced tools
Comparing version 1.3.9-0-alpha.8f012a8e to 1.3.9-0-alpha.90c7d903
@@ -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.8f012a8e", | ||
"version": "1.3.9-0-alpha.90c7d903", | ||
"description": "Convector Model base class", | ||
@@ -53,4 +53,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.8f012a8e", | ||
"@worldsibu/convector-core-storage": "1.3.9-0-alpha.8f012a8e", | ||
"@worldsibu/convector-core-errors": "1.3.9-0-alpha.90c7d903", | ||
"@worldsibu/convector-core-storage": "1.3.9-0-alpha.90c7d903", | ||
"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@worldsibu/convector-core-errors@1.3.9-0-alpha.90c7d903(transitive)
+ Added@worldsibu/convector-core-storage@1.3.9-0-alpha.90c7d903(transitive)
- Removed@worldsibu/convector-core-errors@1.3.9-0-alpha.8f012a8e(transitive)
- Removed@worldsibu/convector-core-storage@1.3.9-0-alpha.8f012a8e(transitive)
Updated@worldsibu/convector-core-errors@1.3.9-0-alpha.90c7d903
Updated@worldsibu/convector-core-storage@1.3.9-0-alpha.90c7d903