You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

datom

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datom - npm Package Compare versions

Comparing version

to
12.2.0

8

lib/main.js

@@ -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