Comparing version 0.1.0 to 0.1.1
@@ -1,1 +0,1 @@ | ||
var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},clone=function e(t){if(!t||"object"!=(void 0===t?"undefined":_typeof(t))||"[object Function]"===Object.prototype.toString.call(t))return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(e);if(t instanceof Object){var o=Object.assign({},t);return Object.keys(o).forEach(function(t){o[t]=e(o[t])}),o}return t};export default clone; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.nanoclone=t()}(this,function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};return function t(n){if(!n||"object"!=(void 0===n?"undefined":e(n))||"[object Function]"===Object.prototype.toString.call(n))return n;if(n.nodeType&&"cloneNode"in n)return n.cloneNode(!0);if(n instanceof Date)return new Date(n.getTime());if(n instanceof RegExp)return new RegExp(n);if(Array.isArray(n))return n.map(t);if(n instanceof Object){var o=Object.assign({},n);return Object.keys(o).forEach(function(e){o[e]=t(o[e])}),o}return n}}); |
{ | ||
"name": "nanoclone", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "290B to deep clone JavaScript objects", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"bugs": { | ||
@@ -8,0 +9,0 @@ "url": "https://github.com/kelin2025/nanoclone/issues" |
@@ -8,7 +8,14 @@ import cjs from 'rollup-plugin-commonjs' | ||
input: 'src/index.js', | ||
output: { | ||
name: 'nanoclone', | ||
file: 'dist/index.js', | ||
format: 'es' | ||
}, | ||
output: [ | ||
{ | ||
name: 'nanoclone', | ||
file: 'dist/index.js', | ||
format: 'umd' | ||
}, | ||
{ | ||
name: 'nanoclone', | ||
file: 'dist/index.esm.js', | ||
format: 'es' | ||
} | ||
], | ||
plugins: [ | ||
@@ -15,0 +22,0 @@ babel({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5479
9
71