Comparing version 2.0.1 to 2.1.0
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.6.2 | ||
// Generated by CoffeeScript 1.6.3 | ||
var extendr, typeChecker, | ||
@@ -11,3 +11,2 @@ __slice = [].slice, | ||
var args; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -19,3 +18,2 @@ args.unshift({}); | ||
var args; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -27,3 +25,2 @@ args.unshift({}); | ||
var args; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -34,3 +31,2 @@ return this.shallowExtendPlainObjects.apply(this, args); | ||
var args; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -41,3 +37,2 @@ return this.deepExtendPlainObjects.apply(this, args); | ||
var key, obj, objs, target, value, _i, _len; | ||
target = arguments[0], objs = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
@@ -57,3 +52,2 @@ for (_i = 0, _len = objs.length; _i < _len; _i++) { | ||
var key, obj, objs, target, value, _i, _len; | ||
target = arguments[0], objs = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
@@ -76,3 +70,2 @@ for (_i = 0, _len = objs.length; _i < _len; _i++) { | ||
var key, obj, objs, target, value, _i, _len; | ||
target = arguments[0], objs = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
@@ -90,2 +83,4 @@ for (_i = 0, _len = objs.length; _i < _len; _i++) { | ||
this.deepExtendPlainObjects(target[key], value); | ||
} else if (typeChecker.isArray(value)) { | ||
target[key] = value.slice(); | ||
} else { | ||
@@ -100,3 +95,2 @@ target[key] = value; | ||
var key, obj, objs, target, value, _i, _len; | ||
target = arguments[0], objs = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
@@ -117,2 +111,4 @@ for (_i = 0, _len = objs.length; _i < _len; _i++) { | ||
this.safeDeepExtendPlainObjects(target[key], value); | ||
} else if (typeChecker.isArray(value)) { | ||
target[key] = value.slice(); | ||
} else { | ||
@@ -127,3 +123,2 @@ target[key] = value; | ||
var target; | ||
target = JSON.parse(JSON.stringify(source)); | ||
@@ -130,0 +125,0 @@ return target; |
{ | ||
"name": "extendr", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Utilities for cloning, extending, and de-referencing objects in shallow, deep, and safe ways", | ||
@@ -31,3 +31,5 @@ "homepage": "https://github.com/bevry/extendr", | ||
"coffee-script": "~1.6.2", | ||
"joe": "~1.1.2" | ||
"joe": "~1.2.0", | ||
"joe-reporter-console": "~1.2.1", | ||
"chai": "~1.7.2" | ||
}, | ||
@@ -34,0 +36,0 @@ "directories": { |
@@ -1,5 +0,11 @@ | ||
# Extendr [![Build Status](https://secure.travis-ci.org/bevry/extendr.png?branch=master)](http://travis-ci.org/bevry/extendr) | ||
# Extendr | ||
[![Build Status](https://secure.travis-ci.org/bevry/extendr.png?branch=master)](http://travis-ci.org/bevry/extendr) | ||
[![NPM version](https://badge.fury.io/js/extendr.png)](https://npmjs.org/package/extendr) | ||
[![Flattr this project](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](http://flattr.com/thing/344188/balupton-on-Flattr) | ||
Utilities for cloning, extending, and de-referencing objects in shallow, deep, and safe ways | ||
## Install | ||
@@ -54,3 +60,3 @@ | ||
### Explanation | ||
### Notes | ||
@@ -57,0 +63,0 @@ - Use the clone methods when you don't want to modify your first object |
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
8638
115
78
4