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.3.0 to 0.3.1

2

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

@@ -5,0 +5,0 @@ "main": "dist/main.js",

# omniclone
An isomorphic, customizable and fool proof javascript function for object deep cloning
An isomorphic and configurable javascript function for object deep cloning
```js

@@ -13,3 +13,4 @@ omniclone(source, config);

obj2; // { foo: { bar: 'baz' } };
obj == obj2; // false
obj === obj2; // false
obj.foo === obj2.foo; // false
```

@@ -203,2 +204,3 @@ ## installation

3. `Error` objects cannot be properly copied because of js limitations
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.
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, Set, WeakMap and WeakSet 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