Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 12.1.2 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

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