Comparing version 1.0.0 to 1.0.1
@@ -324,3 +324,3 @@ /** | ||
module.exports = CY; | ||
} else if (_isFunc(define) && _isFunc(require)) { | ||
} else if (typeof define === "function" && define.amd) { | ||
// AMD/RequireJS | ||
@@ -327,0 +327,0 @@ define([], function() { return CY; }); |
{ | ||
"name": "cyclonejs", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A pure-javascript adaptation of the W3C's structured cloning algorithm, designed to provide an easy interface for deep copying of complex objects", | ||
@@ -5,0 +5,0 @@ "main": "cyclone.js", |
@@ -69,2 +69,3 @@ [![Build Status](https://travis-ci.org/traviskaufman/cycloneJS.png)](https://travis-ci.org/traviskaufman/cycloneJS) | ||
* `allowFunctions`: (default: `false`) If set to true, `CY.clone` will simply pass functions through to the copied object, instead of throwing an error saying it can't clone a function. | ||
```javascript | ||
@@ -80,2 +81,3 @@ var fnObject = { | ||
* `suppressErrors`: (default: `false`) If set to true, `CY.clone` will return `null` instead of throwing an Error if it comes across an object it doesn't know how to clone. If you need `CY.clone` to be extremely forgiving, this is the option for you. | ||
```javascript | ||
@@ -82,0 +84,0 @@ var mixedBag = { |
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
423861
149
0