Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.2.0 to 0.2.1

2

dist/main.js

@@ -1,1 +0,1 @@

module.exports=function(e){var r={};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=r,o.d=function(e,r,t){o.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,r){if(1&r&&(e=o(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)o.d(t,n,function(r){return e[r]}.bind(null,n));return t},o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,"a",r),r},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.p="",o(o.s=0)}([function(e,r){e.exports=function(e={},{setPrototype:r=!1,invokeConstructors:o=!0,copyNonEnumerables:t=!1,copySymbols:n=!1,copyGettersSetters:s=!1,allowCircularReferences:i=!1}={}){if(!e||"object"!=typeof e)throw new TypeError("TypeError: invalid 'obj' argument's type");if(e instanceof Number||e instanceof String||e instanceof Boolean)throw new TypeError("TypeError: wrapper objects are not allowed as source");if(e instanceof Promise)throw new TypeError("TypeError: Promises are not allowed as source");if(e instanceof Error)throw new TypeError("TypeError: cannot copy Error objects");if(e instanceof RegExp){const{source:r,flags:o,lastIndex:t}=e,n=new RegExp(r,o);return n.lastIndex=t,n}if(e instanceof Date)return new Date(e.getTime());const a={setPrototype:r,invokeConstructors:o,copyNonEnumerables:t,copySymbols:n,copyGettersSetters:s,allowCircularReferences:i};if("boolean"!=typeof r)throw new TypeError("TypeError: invalid 'setPrototype' flag's type");if("boolean"!=typeof o)throw new TypeError("TypeError: invalid 'invokeConstructors' flag's type");if("boolean"!=typeof t)throw new TypeError("TypeError: invalid 'copyNonEnumerables' flag's type");if("boolean"!=typeof n)throw new TypeError("TypeError: invalid 'copySymbols' flag's type");if("boolean"!=typeof s)throw new TypeError("TypeError: invalid 'copyGettersSetters' flag's type");if("boolean"!=typeof i)throw new TypeError("TypeError: invalid 'allowCircularReferences' flag's type");return function e(r,{setPrototype:o,invokeConstructors:t,copyNonEnumerables:n,copySymbols:s,copyGettersSetters:i,allowCircularReferences:a},c,f){c.set(r,r);let l=null;const p=Object.getOwnPropertyDescriptors(r);l=t?new r.constructor:o?Object.create(Object.getPrototypeOf(r)):{};const u=new WeakMap;if(Object.entries(p).forEach(([r,p])=>{const{value:y,enumerable:b}=p;if((n||b)&&(s||"symbol"!=typeof y)&&(i||!p.get&&!p.set))if(y&&"object"==typeof y){if(c.has(y)){if(a)return void(l[r]=c.get(y));throw new TypeError("TypeError: circular reference found")}if(u.has(y))return void(l[r]=u.get(y));if(y instanceof Error)throw new TypeError("TypeError: cannot copy Error objects");if(y instanceof Number||y instanceof Boolean){const e=p.value.valueOf();return void Object.defineProperty(l,r,{...p,...{value:e}})}if(y instanceof String){const e=p.value.toString();return void Object.defineProperty(l,r,{...p,...{value:e}})}if(y instanceof Date){const e=new Date(p.value.getTime());return void Object.defineProperty(l,r,{...p,...{value:e}})}if(y instanceof RegExp){const{value:{lastIndex:e}}=p,o=new RegExp(p.value.source,p.value.flags);return Object.defineProperty(l,r,{...p,...{value:o}}),void(l[r].lastIndex=e)}if(y instanceof Promise)return void Object.defineProperty(l,r,p);l[r]=e(y,{setPrototype:o,invokeConstructors:t,copyNonEnumerables:n,copySymbols:s,copyGettersSetters:i,allowCircularReferences:a},c,f),u.set(y,l[r])}else{const e=Object.getOwnPropertyDescriptor(l,r);e&&!e.configurable||Object.defineProperty(l,r,p)}}),a&&(c.set(r,l),f===r)){const e=new WeakMap;e.set(l),function r(o,t){Object.entries(o).forEach(([n,s])=>{if(s&&"object"==typeof s)if(t.has(s))o[n]=t.get(s);else{if(e.has(s))return;e.set(s),r(s,t)}})}(l,c)}return l}(e,a,new WeakMap,e)}}]);
module.exports=function(e){var r={};function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=e,o.c=r,o.d=function(e,r,t){o.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,r){if(1&r&&(e=o(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)o.d(t,n,function(r){return e[r]}.bind(null,n));return t},o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,"a",r),r},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.p="",o(o.s=0)}([function(e,r){e.exports=function(e={},{setPrototype:r=!1,invokeConstructors:o=!0,copyNonEnumerables:t=!1,copySymbols:n=!1,copyGettersSetters:s=!1,allowCircularReferences:i=!1}={}){if(!e||"object"!=typeof e)throw new TypeError("TypeError: invalid 'obj' argument's type");if(e instanceof Number||e instanceof String||e instanceof Boolean)throw new TypeError("TypeError: wrapper objects are not allowed as source");if(e instanceof Promise)throw new TypeError("TypeError: Promises are not allowed as source");if(e instanceof Error)throw new TypeError("TypeError: cannot copy Error objects");if(e instanceof RegExp){const{source:r,flags:o,lastIndex:t}=e,n=new RegExp(r,o);return n.lastIndex=t,n}if(e instanceof Date)return new Date(e.getTime());const a={setPrototype:r,invokeConstructors:o,copyNonEnumerables:t,copySymbols:n,copyGettersSetters:s,allowCircularReferences:i};if("boolean"!=typeof r)throw new TypeError("TypeError: invalid 'setPrototype' flag's type");if("boolean"!=typeof o)throw new TypeError("TypeError: invalid 'invokeConstructors' flag's type");if("boolean"!=typeof t)throw new TypeError("TypeError: invalid 'copyNonEnumerables' flag's type");if("boolean"!=typeof n)throw new TypeError("TypeError: invalid 'copySymbols' flag's type");if("boolean"!=typeof s)throw new TypeError("TypeError: invalid 'copyGettersSetters' flag's type");if("boolean"!=typeof i)throw new TypeError("TypeError: invalid 'allowCircularReferences' flag's type");return function e(r,{setPrototype:o,invokeConstructors:t,copyNonEnumerables:n,copySymbols:s,copyGettersSetters:i,allowCircularReferences:a},c,f){c.set(r,r);let l=null;const p=Object.getOwnPropertyDescriptors(r);l=t?new r.constructor:o?Object.create(Object.getPrototypeOf(r)):{};const u=new WeakMap;if(Object.entries(p).forEach(([r,p])=>{const{value:y,enumerable:b}=p;if((n||b)&&(s||"symbol"!=typeof y)&&(i||!p.get&&!p.set))if(y&&"object"==typeof y){if(u.has(y))return void(l[r]=u.get(y));if(c.has(y)){if(a)return void(l[r]=c.get(y));throw new TypeError("TypeError: circular reference found")}if(y instanceof Error)throw new TypeError("TypeError: cannot copy Error objects");if(y instanceof Number||y instanceof Boolean){const e=p.value.valueOf();return void Object.defineProperty(l,r,{...p,...{value:e}})}if(y instanceof String){const e=p.value.toString();return void Object.defineProperty(l,r,{...p,...{value:e}})}if(y instanceof Date){const e=new Date(p.value.getTime());return void Object.defineProperty(l,r,{...p,...{value:e}})}if(y instanceof RegExp){const{value:{lastIndex:e}}=p,o=new RegExp(p.value.source,p.value.flags);return Object.defineProperty(l,r,{...p,...{value:o}}),void(l[r].lastIndex=e)}if(y instanceof Promise)return void Object.defineProperty(l,r,p);l[r]=e(y,{setPrototype:o,invokeConstructors:t,copyNonEnumerables:n,copySymbols:s,copyGettersSetters:i,allowCircularReferences:a},c,f),u.set(y,l[r])}else{const e=Object.getOwnPropertyDescriptor(l,r);e&&!e.configurable||Object.defineProperty(l,r,p)}}),a&&(c.set(r,l),f===r)){const e=new WeakMap;e.set(l),function r(o,t){Object.entries(o).forEach(([n,s])=>{if(s&&"object"==typeof s)if(t.has(s))o[n]=t.get(s);else{if(e.has(s))return;e.set(s),r(s,t)}})}(l,c)}return l}(e,a,new WeakMap,e)}}]);
{
"name": "omniclone",
"version": "0.2.0",
"description": "deepClone function for js objects",
"version": "0.2.1",
"description": "deep cloning function for js objects",
"main": "dist/main.js",
"scripts": {
"test": "jest --watchAll --coverage",
"dev": "webpack --mode development src/deepClone.js",
"build": "webpack --mode production src/deepClone.js",
"dev": "webpack --mode development src/omniclone.js",
"build": "webpack --mode production src/omniclone.js",
"lint": "eslint"

@@ -14,3 +14,3 @@ },

"type": "git",
"url": "git+https://github.com/jfet97/deepClone.git"
"url": "git+https://github.com/jfet97/omniclone.git"
},

@@ -33,5 +33,5 @@ "files": [

"bugs": {
"url": "https://github.com/jfet97/deepClone/issues"
"url": "https://github.com/jfet97/omniclone/issues"
},
"homepage": "https://github.com/jfet97/deepClone#readme",
"homepage": "https://github.com/jfet97/omniclone#readme",
"devDependencies": {

@@ -38,0 +38,0 @@ "babel-jest": "^23.6.0",

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