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

fclone

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

fclone - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

9

bench/index.js

@@ -18,3 +18,3 @@ 'use strict'

const soyuka_clone = require('../dist/fclone.js')
const fclone = require('../dist/fclone.js')
const clone = require('clone')

@@ -28,6 +28,6 @@ const deepcopy = require('deepcopy')

.add('fclone', function() {
let b = soyuka_clone(a)
let b = fclone(a)
})
.add('fclone + json.stringify', function() {
let b = JSON.stringify(soyuka_clone(a))
let b = JSON.stringify(fclone(a))
})

@@ -46,2 +46,5 @@ .add('jsan', function() {

})
.add('clone', function() {
let b = clone(a)
})
.on('cycle', function(event) {

@@ -48,0 +51,0 @@ console.log(String(event.target))

@@ -12,12 +12,10 @@ {

"license": "ISC",
"devDependencies": {
"dependencies": {
"benchmark": "^2.1.0",
"clone": "^1.0.2",
"circular-json-es6": "^2.0.0",
"clone": "^1.0.2",
"deepcopy": "^0.6.3",
"jsan": "^3.1.2",
"json-stringify-safe": "^5.0.1"
},
"dependencies": {
"benchmark": "^2.1.0"
}
}
{
"name": "fclone",
"description": "Clone objects recursively by dropping circular references",
"description": "Fastest JSON cloning module that handles circular references",
"main": "dist/fclone.js",

@@ -15,3 +15,3 @@ "authors": [

"stringify",
"json"
"fast"
],

@@ -18,0 +18,0 @@ "homepage": "https://github.com/soyuka/fclone",

{
"name": "fclone",
"version": "1.0.6",
"description": "Clone objects recursively by dropping circular references",
"version": "1.0.7",
"description": "Fastest JSON cloning module that handles circular references",
"main": "dist/fclone.js",

@@ -20,3 +20,3 @@ "scripts": {

"stringify",
"json"
"fast"
],

@@ -23,0 +23,0 @@ "author": "soyuka <soyuka@gmail.com>",

# FClone
Fastest JSON cloning module that handles circular references
[![Build Status](https://travis-ci.org/soyuka/fclone.svg?branch=master)](https://travis-ci.org/soyuka/fclone)

@@ -10,3 +12,3 @@

- fixing node 6+
- minor performance tweaks
- micro optimizations
- use of `Array.isArray` and `Buffer.isBuffer`

@@ -49,1 +51,3 @@

```
If you want to keep references and you can use ES6 maps, I recommend [deep-clone](https://github.com/thebearingedge/deep-clone/).
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