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

nanoclone

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanoclone - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist/index.esm.js

2

dist/index.js

@@ -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({

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