@aurigma/design-atoms
Advanced tools
Comparing version 6.23.3 to 7.0.0
{ | ||
"version": "6.23.3", | ||
"version": "7.0.0", | ||
"name": "@aurigma/design-atoms", | ||
@@ -22,4 +22,4 @@ "license": "SEE LICENSE IN License.md", | ||
"dependencies": { | ||
"@aurigma/design-atoms-model": "6.6.2", | ||
"@aurigma/design-atoms-text": "6.23.3", | ||
"@aurigma/design-atoms-model": "7.0.0", | ||
"@aurigma/design-atoms-text": "7.0.0", | ||
"@aurigma/text-whizz": "1.6.31", | ||
@@ -32,3 +32,3 @@ "clone": "2.1.1", | ||
"tsmonad": "^0.8.0", | ||
"underscore": "1.8.3", | ||
"underscore": "1.13.6", | ||
"vcard-parser": "^1.0.0" | ||
@@ -35,0 +35,0 @@ }, |
export * from "./AdditionalConverter"; | ||
export * from "./JsonColorParser"; | ||
export * from "./JsonProductSerializer"; | ||
export * from "./ProductParser"; | ||
export * from "./SerializationProvider"; | ||
export * from "./JsonColorParser"; | ||
export * from "./Version"; |
export * from "./AdditionalConverter"; | ||
export * from "./JsonColorParser"; | ||
export * from "./JsonProductSerializer"; | ||
export * from "./ProductParser"; | ||
export * from "./SerializationProvider"; | ||
export * from "./JsonColorParser"; | ||
export * from "./Version"; | ||
//# sourceMappingURL=index.js.map |
@@ -110,2 +110,3 @@ import { AdditionalConverter } from "./AdditionalConverter"; | ||
private _parseModelComponent; | ||
private _doesVersionMatch; | ||
private _parseObject; | ||
@@ -112,0 +113,0 @@ } |
@@ -53,2 +53,4 @@ var __read = (this && this.__read) || function (o, n) { | ||
import { JsonColorParser } from "./JsonColorParser"; | ||
import { Version } from "./Version"; | ||
var modelVersion = Version.fromString(MODELVERSION); | ||
var ProductParser = /** @class */ (function () { | ||
@@ -779,3 +781,3 @@ function ProductParser(additionalConverters) { | ||
ProductParser.prototype._parseModelComponent = function (rawComponent, destComponent, converters) { | ||
if (rawComponent["version"] !== MODELVERSION) | ||
if (this._doesVersionMatch(rawComponent["version"]) == false) | ||
throw new Exception("Version of serialized model component (" + rawComponent["version"] + ") does not match the editor's version (" + MODELVERSION + ")."); | ||
@@ -788,2 +790,6 @@ converters = converters.concat([ | ||
}; | ||
ProductParser.prototype._doesVersionMatch = function (componentVersion) { | ||
var v = Version.fromString(componentVersion); | ||
return modelVersion.isCompatibleTo(v); | ||
}; | ||
return ProductParser; | ||
@@ -790,0 +796,0 @@ }()); |
Sorry, the diff of this file is not supported yet
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
4423961
1032
58424
+ Added@aurigma/design-atoms-model@7.0.0(transitive)
+ Added@aurigma/design-atoms-text@7.0.0(transitive)
+ Added@xmldom/xmldom@0.7.7(transitive)
+ Addedunderscore@1.13.6(transitive)
- Removed@aurigma/design-atoms-model@6.6.2(transitive)
- Removed@aurigma/design-atoms-text@6.23.3(transitive)
- Removedunderscore@1.8.3(transitive)
- Removedxmldom@0.6.0(transitive)
Updatedunderscore@1.13.6