realistic-structured-clone
Advanced tools
Comparing version 1.0.1 to 2.0.0
{ | ||
"name": "realistic-structured-clone", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "A pure JS implementation of the structured clone algorithm (or at least something pretty close to that)", | ||
@@ -18,17 +18,27 @@ "homepage": "https://github.com/dumbmatter/realistic-structured-clone", | ||
], | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"lint": "eslint index.js test", | ||
"mocha": "mocha --recursive", | ||
"test": "npm run lint && npm run mocha" | ||
"build": "rm -rf dist && mkdir dist && browserify index.js --node -s realisticStructuredClone -t [ babelify --global --presets [ es2015 ] ] | derequire > dist/index.js", | ||
"prepublish": "npm run build", | ||
"test": "npm run build && mocha --recursive" | ||
}, | ||
"author": "Jeremy Scheff <jdscheff@gmail.com> (http://dumbmatter.com/)", | ||
"license": "Apache-2.0", | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"lodash.isplainobject": "^3.0.2" | ||
"core-js": "^2.5.3", | ||
"domexception": "^1.0.1", | ||
"typeson": "^5.8.2", | ||
"typeson-registry": "^1.0.0-alpha.20" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.9.1", | ||
"mocha": "^2.2.4" | ||
"babel-core": "^6.26.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babelify": "^8.0.0", | ||
"browserify": "^16.1.0", | ||
"derequire": "^2.0.6", | ||
"mocha": "^5.0.1" | ||
} | ||
} |
@@ -46,12 +46,10 @@ # Realistic Structured Clone [![Build Status](https://travis-ci.org/dumbmatter/realistic-structured-clone.svg?branch=master)](https://travis-ci.org/dumbmatter/realistic-structured-clone) | ||
However, that won't help you in Node.js/io.js. It's also asynchronous, which could be a problem. `realistic-structured-clone` is synchronous and works everywhere. | ||
However, that won't help you in Node.js. It's also asynchronous, which could be a problem. `realistic-structured-clone` is synchronous and works everywhere. | ||
## Current State | ||
[The spec](http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#internal-structured-cloning-algorithm) says it's supposed to handle FileList, ImageData, and ImageBitmap objects. But none of that is implemented yet, so passing an object containing any of those types of objects will result in an erroneous `DataCloneError`. | ||
As of version 2.0, it should be pretty damn close to the spec! However it is now just a light wrapper around the [Typeson](https://github.com/dfahlander/typeson) structured-cloning-throwing preset. | ||
All other data types should work like described in the spec. Check the tests if you don't believe me, and please create an issue if you find a problem. | ||
## License | ||
Apache 2.0 |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
89760
1918
4
6
3
55
2
3
+ Addedcore-js@^2.5.3
+ Addeddomexception@^1.0.1
+ Addedtypeson@^5.8.2
+ Addedbase64-arraybuffer-es6@0.7.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedcore-js-bundle@3.39.0(transitive)
+ Addeddomexception@1.0.1(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedregenerator-runtime@0.13.11(transitive)
+ Addedtr46@2.1.0(transitive)
+ Addedtypeson@5.18.26.1.0(transitive)
+ Addedtypeson-registry@1.0.0-alpha.39(transitive)
+ Addedwebidl-conversions@4.0.26.1.0(transitive)
+ Addedwhatwg-url@8.7.0(transitive)
- Removedlodash.isplainobject@^3.0.2
- Removedlodash._basefor@3.0.3(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.isplainobject@3.2.0(transitive)
- Removedlodash.keysin@3.0.8(transitive)