Socket
Socket
Sign inDemoInstall

omniclone

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omniclone - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

4

package.json
{
"name": "omniclone",
"version": "0.4.0",
"version": "0.4.1",
"description": "deep cloning function for js objects",

@@ -54,2 +54,2 @@ "main": "dist/main.js",

}
}
}

@@ -32,3 +32,3 @@ # omniclone

4. let you to copy getters and setters, non enumerables properties and also symbols (customizable behavior)
5. correct handling of String, Boolean, Number, Error, Promise, WeakMap and WeakSet objects
5. correct handling of String, Boolean, Number, Error, Promise, Map, WeakMap and WeakSet objects
6. safe similar sibilings references are not duplicated

@@ -172,3 +172,3 @@ 7. correct cloning of Array objects (if the `invokeConstructors` flag is setted)

## what about String, Boolean, Number, Error, Promise, WeakMap and WeakSet objects?
## what about String, Boolean, Number, Error, Promise, Map, WeakMap and WeakSet objects?

@@ -186,2 +186,4 @@ String, Boolean and Number objects passed to `omniclone` as sources will produce `null`.\

Map objects will be deeply cloned following same rules of normal objects.
## what about the 6th strength?

@@ -207,2 +209,2 @@

4. currently there is no isomorphic way to detect if an object is a `Proxy` nor is possible to access the handler object. Because of transparent virtualization, `omniclone` will copy each properties, the `constructor` and the `[[Prototype]]` directly from the proxed object.
5. currenlty there is a lack of support for Map and Set objects. I'm working on this.
5. currenlty there is a lack of support for Set objects. I'm working on this.
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