Comparing version 12.1.2 to 12.2.0
@@ -222,3 +222,3 @@ (function() { | ||
constructor(cfg) { | ||
var R, __types, clasz, declaration, freezemode, k, paragon, ref, ref1, v; | ||
var R, __types, clasz, declaration, freezemode, k, paragon, ref, v; | ||
clasz = this.constructor; | ||
@@ -228,5 +228,9 @@ __types = (ref = clasz.types) != null ? ref : new (require('intertype')).Intertype(); | ||
declaration = clasz.declaration; | ||
freezemode = (ref1 = declaration != null ? declaration.freeze : void 0) != null ? ref1 : 'deep'; | ||
freezemode = declaration != null ? declaration.freeze != null ? declaration.freeze : declaration.freeze = 'deep' : void 0; | ||
if (declaration != null) { | ||
if (!this.__types.isa.knowntype(clasz.name)) { | ||
this.__types.declare[clasz.name](declaration); | ||
} | ||
paragon = this.__types._create_no_validation({...declaration, cfg}); | ||
this.__types.validate[clasz.name](paragon); | ||
for (k in paragon) { | ||
@@ -233,0 +237,0 @@ v = paragon[k]; |
{ | ||
"name": "datom", | ||
"version": "12.1.2", | ||
"version": "12.2.0", | ||
"description": "standardized immutable objects in the spirit of datomic, especially suited for use in data pipelines", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -468,4 +468,6 @@ | ||
add class method `register()` or `declare()` | ||
* [ ] when declaring, validating dataclass instances, consider to use private name (symbol) to avoid any | ||
chance for name clashes | ||
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
63509
313
473