Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aurigma/design-atoms

Package Overview
Dependencies
Maintainers
5
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurigma/design-atoms - npm Package Compare versions

Comparing version 6.23.3 to 7.0.0

Serialization/Version.d.ts

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc