diff --git a/README.md b/README.md
index 1bdd81cd6..49decd8b1 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# lodash v3.1.1
+# lodash v3.1.2
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
diff --git a/lodash._basecallback/README.md b/lodash._basecallback/README.md
index fb246c7dd..48d9cfdec 100644
--- a/lodash._basecallback/README.md
+++ b/lodash._basecallback/README.md
@@ -1,4 +1,4 @@
-# lodash._basecallback v3.1.1
+# lodash._basecallback v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCallback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseCallback = require('lodash._basecallback');
```
-See the [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash._basecallback) for more details.
+See the [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash._basecallback) for more details.
diff --git a/lodash._basecallback/index.js b/lodash._basecallback/index.js
index 09271901a..a34c780d1 100644
--- a/lodash._basecallback/index.js
+++ b/lodash._basecallback/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.7.0
@@ -36,10 +36,12 @@ function baseCallback(func, thisArg, argCount) {
if (func == null) {
return identity;
}
- // Handle "_.property" and "_.matches" style callback shorthands.
- return type == 'object'
- ? baseMatches(func)
- : baseProperty(func + '');
+ if (type == 'object') {
+ return baseMatches(func);
+ }
+ return typeof thisArg == 'undefined'
+ ? baseProperty(func + '')
+ : baseMatchesProperty(func + '', thisArg);
}
/**
@@ -47,7 +49,7 @@ function baseCallback(func, thisArg, argCount) {
* shorthands or `this` binding.
*
* @private
- * @param {Object} source The object to inspect.
+ * @param {Object} object The object to inspect.
* @param {Array} props The source property names to match.
* @param {Array} values The source values to match.
* @param {Array} strictCompareFlags Strict comparison flags for source values.
@@ -92,8 +94,7 @@ function baseIsMatch(object, props, values, strictCompareFlags, customizer) {
}
/**
- * The base implementation of `_.matches` which supports specifying whether
- * `source` should be cloned.
+ * The base implementation of `_.matches` which does not clone `source`.
*
* @private
* @param {Object} source The object of property values to match.
@@ -109,7 +110,7 @@ function baseMatches(source) {
if (isStrictComparable(value)) {
return function(object) {
- return object != null && value === object[key] && hasOwnProperty.call(object, key);
+ return object != null && object[key] === value && hasOwnProperty.call(object, key);
};
}
}
@@ -126,6 +127,26 @@ function baseMatches(source) {
};
}
+/**
+ * The base implementation of `_.matchesProperty` which does not coerce `key`
+ * to a string.
+ *
+ * @private
+ * @param {string} key The key of the property to get.
+ * @param {*} value The value to compare.
+ * @returns {Function} Returns the new function.
+ */
+function baseMatchesProperty(key, value) {
+ if (isStrictComparable(value)) {
+ return function(object) {
+ return object != null && object[key] === value;
+ };
+ }
+ return function(object) {
+ return object != null && baseIsEqual(value, object[key], null, true);
+ };
+}
+
/**
* The base implementation of `_.property` which does not coerce `key` to a string.
*
@@ -191,6 +212,7 @@ function isObject(value) {
* @example
*
* var object = { 'user': 'fred' };
+ *
* _.identity(object) === object;
* // => true
*/
diff --git a/lodash._basecallback/package.json b/lodash._basecallback/package.json
index c9300c5ca..d39db988f 100644
--- a/lodash._basecallback/package.json
+++ b/lodash._basecallback/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash._basecallback",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s internal `baseCallback` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash._baseismatch/README.md b/lodash._baseismatch/README.md
index 54ac02f50..fed2cbd97 100644
--- a/lodash._baseismatch/README.md
+++ b/lodash._baseismatch/README.md
@@ -1,4 +1,4 @@
-# lodash._baseismatch v3.1.1
+# lodash._baseismatch v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseIsMatch` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseIsMatch = require('lodash._baseismatch');
```
-See the [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash._baseismatch) for more details.
+See the [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash._baseismatch) for more details.
diff --git a/lodash._baseismatch/index.js b/lodash._baseismatch/index.js
index 131038a14..dc9d12899 100644
--- a/lodash._baseismatch/index.js
+++ b/lodash._baseismatch/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -40,10 +40,10 @@ function baseIsMatch(object, props, values, strictCompareFlags, customizer) {
srcValue = values[index];
if (noCustomizer && strictCompareFlags[index]) {
- var result = typeof objValue != 'undefined' || (key in object);
+ var result = objValue !== undefined || (key in object);
} else {
result = customizer ? customizer(objValue, srcValue, key) : undefined;
- if (typeof result == 'undefined') {
+ if (result === undefined) {
result = baseIsEqual(srcValue, objValue, customizer, true);
}
}
diff --git a/lodash._baseismatch/package.json b/lodash._baseismatch/package.json
index b1f837a3b..df04d55e0 100644
--- a/lodash._baseismatch/package.json
+++ b/lodash._baseismatch/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash._baseismatch",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s internal `baseIsMatch` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash._basematches/README.md b/lodash._basematches/README.md
index 84875efc7..3e812c631 100644
--- a/lodash._basematches/README.md
+++ b/lodash._basematches/README.md
@@ -1,4 +1,4 @@
-# lodash._basematches v3.1.1
+# lodash._basematches v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseMatches` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseMatches = require('lodash._basematches');
```
-See the [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash._basematches) for more details.
+See the [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash._basematches) for more details.
diff --git a/lodash._basematches/index.js b/lodash._basematches/index.js
index 166f98a5c..bdadd1dc6 100644
--- a/lodash._basematches/index.js
+++ b/lodash._basematches/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.7.0
@@ -16,8 +16,7 @@ var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * The base implementation of `_.matches` which supports specifying whether
- * `source` should be cloned.
+ * The base implementation of `_.matches` which does not clone `source`.
*
* @private
* @param {Object} source The object of property values to match.
@@ -33,7 +32,7 @@ function baseMatches(source) {
if (isStrictComparable(value)) {
return function(object) {
- return object != null && value === object[key] && hasOwnProperty.call(object, key);
+ return object != null && object[key] === value && hasOwnProperty.call(object, key);
};
}
}
diff --git a/lodash._basematches/package.json b/lodash._basematches/package.json
index 70b791f6d..ecf5389fb 100644
--- a/lodash._basematches/package.json
+++ b/lodash._basematches/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash._basematches",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s internal `baseMatches` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash._createcache/LICENSE.txt b/lodash._createcache/LICENSE
similarity index 100%
rename from lodash._createcache/LICENSE.txt
rename to lodash._createcache/LICENSE
diff --git a/lodash._createcache/README.md b/lodash._createcache/README.md
index 4c13df646..0ee4834d0 100644
--- a/lodash._createcache/README.md
+++ b/lodash._createcache/README.md
@@ -1,4 +1,4 @@
-# lodash._createcache v3.1.1
+# lodash._createcache v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createCache` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var createCache = require('lodash._createcache');
```
-See the [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash._createcache) for more details.
+See the [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash._createcache) for more details.
diff --git a/lodash._createcache/index.js b/lodash._createcache/index.js
index f1a433cca..6cf391c14 100644
--- a/lodash._createcache/index.js
+++ b/lodash._createcache/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -54,9 +54,9 @@ function cachePush(value) {
* @param {Array} [values] The values to cache.
* @returns {null|Object} Returns the new cache object if `Set` is supported, else `null`.
*/
-var createCache = !(nativeCreate && Set) ? constant(null) : function(values) {
- return new SetCache(values);
-};
+function createCache(values) {
+ return (nativeCreate && Set) ? new SetCache(values) : null;
+}
/**
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
@@ -85,28 +85,6 @@ function isObject(value) {
return !!value && (type == 'object' || type == 'function');
}
-/**
- * Creates a function that returns `value`.
- *
- * @static
- * @memberOf _
- * @category Utility
- * @param {*} value The value to return from the new function.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var object = { 'user': 'fred' };
- * var getter = _.constant(object);
- *
- * getter() === object;
- * // => true
- */
-function constant(value) {
- return function() {
- return value;
- };
-}
-
// Add functions to the `Set` cache.
SetCache.prototype.push = cachePush;
diff --git a/lodash._createcache/package.json b/lodash._createcache/package.json
index 0f567f1f6..0af649c52 100644
--- a/lodash._createcache/package.json
+++ b/lodash._createcache/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash._createcache",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s internal `createCache` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.deburr/README.md b/lodash.deburr/README.md
index d546865e5..2467bccbc 100644
--- a/lodash.deburr/README.md
+++ b/lodash.deburr/README.md
@@ -1,4 +1,4 @@
-# lodash.deburr v3.1.1
+# lodash.deburr v3.1.2
The [lodash](https://lodash.com/) method `_.deburr` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var deburr = require('lodash.deburr');
```
-See the [documentation](https://lodash.com/docs#deburr) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.deburr) for more details.
+See the [documentation](https://lodash.com/docs#deburr) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.deburr) for more details.
diff --git a/lodash.deburr/index.js b/lodash.deburr/index.js
index 97bb5c480..ecb49e997 100644
--- a/lodash.deburr/index.js
+++ b/lodash.deburr/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -50,6 +50,49 @@ var deburredLetters = {
'\xdf': 'ss'
};
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/**
* Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters.
*
@@ -62,7 +105,7 @@ function deburrLetter(letter) {
}
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -71,7 +114,7 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.deburr/package.json b/lodash.deburr/package.json
index c306c6ca1..1f321f2ad 100644
--- a/lodash.deburr/package.json
+++ b/lodash.deburr/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.deburr",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.deburr` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, deburr",
+ "keywords": "lodash-modularized, deburr",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.defaults/LICENSE.txt b/lodash.defaults/LICENSE
similarity index 100%
rename from lodash.defaults/LICENSE.txt
rename to lodash.defaults/LICENSE
diff --git a/lodash.defaults/README.md b/lodash.defaults/README.md
index 81102d88f..358cb36c4 100644
--- a/lodash.defaults/README.md
+++ b/lodash.defaults/README.md
@@ -1,4 +1,4 @@
-# lodash.defaults v3.1.1
+# lodash.defaults v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.defaults` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var defaults = require('lodash.defaults');
```
-See the [documentation](https://lodash.com/docs#defaults) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.defaults) for more details.
+See the [documentation](https://lodash.com/docs#defaults) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.defaults) for more details.
diff --git a/lodash.defaults/index.js b/lodash.defaults/index.js
index c9ccb3218..32b1e4ec5 100644
--- a/lodash.defaults/index.js
+++ b/lodash.defaults/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -21,6 +21,25 @@ function assignDefaults(objectValue, sourceValue) {
return objectValue === undefined ? sourceValue : objectValue;
}
+/**
+ * Creates a `_.defaults` or `_.defaultsDeep` function.
+ *
+ * @private
+ * @param {Function} assigner The function to assign values.
+ * @param {Function} customizer The function to customize assigned values.
+ * @returns {Function} Returns the new defaults function.
+ */
+function createDefaults(assigner, customizer) {
+ return restParam(function(args) {
+ var object = args[0];
+ if (object == null) {
+ return object;
+ }
+ args.push(customizer);
+ return assigner.apply(undefined, args);
+ });
+}
+
/**
* Assigns own enumerable properties of source object(s) to the destination
* object for all destination properties that resolve to `undefined`. Once a
@@ -39,13 +58,6 @@ function assignDefaults(objectValue, sourceValue) {
* _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
* // => { 'user': 'barney', 'age': 36 }
*/
-var defaults = restParam(function(args) {
- var object = args[0];
- if (object == null) {
- return object;
- }
- args.push(assignDefaults);
- return assign.apply(undefined, args);
-});
+var defaults = createDefaults(assign, assignDefaults);
module.exports = defaults;
diff --git a/lodash.defaults/package.json b/lodash.defaults/package.json
index 39d22e86c..2b9997eaf 100644
--- a/lodash.defaults/package.json
+++ b/lodash.defaults/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.defaults",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.defaults` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.endswith/README.md b/lodash.endswith/README.md
index 56a625af2..a14540420 100644
--- a/lodash.endswith/README.md
+++ b/lodash.endswith/README.md
@@ -1,4 +1,4 @@
-# lodash.endswith v3.1.1
+# lodash.endswith v3.1.2
The [lodash](https://lodash.com/) method `_.endsWith` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var endsWith = require('lodash.endswith');
```
-See the [documentation](https://lodash.com/docs#endsWith) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.endswith) for more details.
+See the [documentation](https://lodash.com/docs#endsWith) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.endswith) for more details.
diff --git a/lodash.endswith/index.js b/lodash.endswith/index.js
index 45074e66d..c799ee129 100644
--- a/lodash.endswith/index.js
+++ b/lodash.endswith/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -29,11 +29,54 @@ var reIsBinary = /^0b[01]+$/i;
/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;
-/** Built-in method references without a dependency on `global`. */
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -42,7 +85,7 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.endswith/package.json b/lodash.endswith/package.json
index 908416454..163cf677d 100644
--- a/lodash.endswith/package.json
+++ b/lodash.endswith/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.endswith",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.endsWith` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, endswith",
+ "keywords": "lodash-modularized, endswith",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.escape/README.md b/lodash.escape/README.md
index 72135867d..698b9e2dc 100644
--- a/lodash.escape/README.md
+++ b/lodash.escape/README.md
@@ -1,4 +1,4 @@
-# lodash.escape v3.1.1
+# lodash.escape v3.1.2
The [lodash](https://lodash.com/) method `_.escape` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var escape = require('lodash.escape');
```
-See the [documentation](https://lodash.com/docs#escape) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.escape) for more details.
+See the [documentation](https://lodash.com/docs#escape) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.escape) for more details.
diff --git a/lodash.escape/index.js b/lodash.escape/index.js
index a2146181d..a4cfddc33 100644
--- a/lodash.escape/index.js
+++ b/lodash.escape/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -27,6 +27,49 @@ var htmlEscapes = {
'`': '`'
};
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/**
* Used by `_.escape` to convert characters to HTML entities.
*
@@ -39,7 +82,7 @@ function escapeHtmlChar(chr) {
}
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -48,7 +91,7 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.escape/package.json b/lodash.escape/package.json
index 798cceb7d..22972670c 100644
--- a/lodash.escape/package.json
+++ b/lodash.escape/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.escape",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.escape` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, escape",
+ "keywords": "lodash-modularized, escape",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.includes/README.md b/lodash.includes/README.md
index 2cb77ea1c..069dd2a4b 100644
--- a/lodash.includes/README.md
+++ b/lodash.includes/README.md
@@ -1,4 +1,4 @@
-# lodash.includes v3.1.1
+# lodash.includes v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.includes` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var includes = require('lodash.includes');
```
-See the [documentation](https://lodash.com/docs#includes) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.includes) for more details.
+See the [documentation](https://lodash.com/docs#includes) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.includes) for more details.
diff --git a/lodash.includes/index.js b/lodash.includes/index.js
index 0da4a524f..15af57091 100644
--- a/lodash.includes/index.js
+++ b/lodash.includes/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -20,7 +20,7 @@ var nativeMax = Math.max;
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
* of an array-like value.
*/
-var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
+var MAX_SAFE_INTEGER = 9007199254740991;
/**
* The base implementation of `_.property` without support for deep paths.
diff --git a/lodash.includes/package.json b/lodash.includes/package.json
index ba93194f8..12ab1000b 100644
--- a/lodash.includes/package.json
+++ b/lodash.includes/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.includes",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.includes` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.ismatch/README.md b/lodash.ismatch/README.md
index 8a507bc88..50a3020d6 100644
--- a/lodash.ismatch/README.md
+++ b/lodash.ismatch/README.md
@@ -1,4 +1,4 @@
-# lodash.ismatch v3.1.1
+# lodash.ismatch v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isMatch` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var isMatch = require('lodash.ismatch');
```
-See the [documentation](https://lodash.com/docs#isMatch) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.ismatch) for more details.
+See the [documentation](https://lodash.com/docs#isMatch) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.ismatch) for more details.
diff --git a/lodash.ismatch/index.js b/lodash.ismatch/index.js
index 74de997af..2fed94668 100644
--- a/lodash.ismatch/index.js
+++ b/lodash.ismatch/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -77,7 +77,7 @@ function isObject(value) {
* @category Lang
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
- * @param {Function} [customizer] The function to customize comparing values.
+ * @param {Function} [customizer] The function to customize value comparisons.
* @param {*} [thisArg] The `this` binding of `customizer`.
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
* @example
@@ -110,12 +110,13 @@ function isMatch(object, source, customizer, thisArg) {
return false;
}
customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 3);
+ object = toObject(object);
if (!customizer && length == 1) {
var key = props[0],
value = source[key];
if (isStrictComparable(value)) {
- return value === object[key] && (typeof value != 'undefined' || (key in toObject(object)));
+ return value === object[key] && (value !== undefined || (key in object));
}
}
var values = Array(length),
@@ -125,7 +126,7 @@ function isMatch(object, source, customizer, thisArg) {
value = values[length] = source[props[length]];
strictCompareFlags[length] = isStrictComparable(value);
}
- return baseIsMatch(toObject(object), props, values, strictCompareFlags, customizer);
+ return baseIsMatch(object, props, values, strictCompareFlags, customizer);
}
module.exports = isMatch;
diff --git a/lodash.ismatch/package.json b/lodash.ismatch/package.json
index 876ce516f..f92ac0959 100644
--- a/lodash.ismatch/package.json
+++ b/lodash.ismatch/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.ismatch",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.isMatch` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.keys/LICENSE.txt b/lodash.keys/LICENSE
similarity index 100%
rename from lodash.keys/LICENSE.txt
rename to lodash.keys/LICENSE
diff --git a/lodash.keys/README.md b/lodash.keys/README.md
index 88dc7d5ad..5f69a1826 100644
--- a/lodash.keys/README.md
+++ b/lodash.keys/README.md
@@ -1,4 +1,4 @@
-# lodash.keys v3.1.1
+# lodash.keys v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keys` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var keys = require('lodash.keys');
```
-See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.keys) for more details.
+See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.keys) for more details.
diff --git a/lodash.keys/index.js b/lodash.keys/index.js
index 4f3e61eba..f4c17749a 100644
--- a/lodash.keys/index.js
+++ b/lodash.keys/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -23,7 +23,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
var nativeKeys = getNative(Object, 'keys');
/**
- * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
+ * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value.
*/
var MAX_SAFE_INTEGER = 9007199254740991;
@@ -81,7 +81,7 @@ function isIndex(value, length) {
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
+ * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @private
* @param {*} value The value to check.
@@ -150,7 +150,7 @@ function isObject(value) {
* Creates an array of the own enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects. See the
- * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys)
+ * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)
* for more details.
*
* @static
@@ -174,7 +174,7 @@ function isObject(value) {
* // => ['0', '1']
*/
var keys = !nativeKeys ? shimKeys : function(object) {
- var Ctor = object == null ? null : object.constructor;
+ var Ctor = object == null ? undefined : object.constructor;
if ((typeof Ctor == 'function' && Ctor.prototype === object) ||
(typeof object != 'function' && isArrayLike(object))) {
return shimKeys(object);
diff --git a/lodash.keys/package.json b/lodash.keys/package.json
index 788a1b355..6fafa9345 100644
--- a/lodash.keys/package.json
+++ b/lodash.keys/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.keys",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.keys` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.padleft/LICENSE b/lodash.padleft/LICENSE
new file mode 100644
index 000000000..bcbe13d67
--- /dev/null
+++ b/lodash.padleft/LICENSE
@@ -0,0 +1,23 @@
+The MIT License (MIT)
+
+Copyright 2012-2016 The Dojo Foundation
+Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/lodash.padleft/README.md b/lodash.padleft/README.md
index 641b4d6f0..06cfc4c33 100644
--- a/lodash.padleft/README.md
+++ b/lodash.padleft/README.md
@@ -1,6 +1,10 @@
-# lodash.padleft v3.1.1
+# lodash.padleft v3.1.2
-The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.padLeft` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
+The [lodash](https://lodash.com/) method `_.padLeft` exported as a [Node.js](https://nodejs.org/) module.
+
+## Discontinued
+
+This package has been discontinued in favor of [lodash.padstart](https://www.npmjs.com/package/lodash.padstart).
## Installation
@@ -17,4 +21,4 @@ In Node.js/io.js:
var padLeft = require('lodash.padleft');
```
-See the [documentation](https://lodash.com/docs#padLeft) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.padleft) for more details.
+See the [documentation](https://lodash.com/docs#padLeft) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.padleft) for more details.
diff --git a/lodash.padleft/index.js b/lodash.padleft/index.js
index cadc1573c..395b801ba 100644
--- a/lodash.padleft/index.js
+++ b/lodash.padleft/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
diff --git a/lodash.padleft/package.json b/lodash.padleft/package.json
index 455c1be30..15db495d7 100644
--- a/lodash.padleft/package.json
+++ b/lodash.padleft/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.padleft",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.padLeft` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.padright/LICENSE b/lodash.padright/LICENSE
new file mode 100644
index 000000000..bcbe13d67
--- /dev/null
+++ b/lodash.padright/LICENSE
@@ -0,0 +1,23 @@
+The MIT License (MIT)
+
+Copyright 2012-2016 The Dojo Foundation
+Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/lodash.padright/LICENSE.txt b/lodash.padright/LICENSE.txt
deleted file mode 100644
index 9cd87e5dc..000000000
--- a/lodash.padright/LICENSE.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/lodash.padright/README.md b/lodash.padright/README.md
index bcd6e5742..f90b77bda 100644
--- a/lodash.padright/README.md
+++ b/lodash.padright/README.md
@@ -1,6 +1,10 @@
-# lodash.padright v3.1.1
+# lodash.padright v3.1.2
-The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.padRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
+The [lodash](https://lodash.com/) method `_.padRight` exported as a [Node.js](https://nodejs.org/) module.
+
+## Discontinued
+
+This package has been discontinued in favor of [lodash.padend](https://www.npmjs.com/package/lodash.padend).
## Installation
@@ -17,4 +21,4 @@ In Node.js/io.js:
var padRight = require('lodash.padright');
```
-See the [documentation](https://lodash.com/docs#padRight) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.padright) for more details.
+See the [documentation](https://lodash.com/docs#padRight) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.padright) for more details.
diff --git a/lodash.padright/index.js b/lodash.padright/index.js
index 81a31343c..56615ada0 100644
--- a/lodash.padright/index.js
+++ b/lodash.padright/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
diff --git a/lodash.padright/package.json b/lodash.padright/package.json
index 5cb8b4f4c..3c6e1aae3 100644
--- a/lodash.padright/package.json
+++ b/lodash.padright/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.padright",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.padRight` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.parseint/README.md b/lodash.parseint/README.md
index d7f99032e..eb2f7995e 100644
--- a/lodash.parseint/README.md
+++ b/lodash.parseint/README.md
@@ -1,4 +1,4 @@
-# lodash.parseint v3.1.1
+# lodash.parseint v3.1.2
The [lodash](https://lodash.com/) method `_.parseInt` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var parseInt = require('lodash.parseint');
```
-See the [documentation](https://lodash.com/docs#parseInt) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.parseint) for more details.
+See the [documentation](https://lodash.com/docs#parseInt) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.parseint) for more details.
diff --git a/lodash.parseint/index.js b/lodash.parseint/index.js
index efa2c83ed..3657bd5bd 100644
--- a/lodash.parseint/index.js
+++ b/lodash.parseint/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -19,8 +19,51 @@ var reTrim = /^\s+|\s+$/g;
/** Used to detect hexadecimal string values. */
var reHasHexPrefix = /^0x/i;
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -29,10 +72,10 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeParseInt = global.parseInt;
+var nativeParseInt = root.parseInt;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.parseint/package.json b/lodash.parseint/package.json
index cd73417cc..f39401f3d 100644
--- a/lodash.parseint/package.json
+++ b/lodash.parseint/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.parseint",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.parseInt` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, parseint",
+ "keywords": "lodash-modularized, parseint",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.pluck/README.md b/lodash.pluck/README.md
index b7de11bd2..555d79250 100644
--- a/lodash.pluck/README.md
+++ b/lodash.pluck/README.md
@@ -1,4 +1,4 @@
-# lodash.pluck v3.1.1
+# lodash.pluck v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.pluck` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var pluck = require('lodash.pluck');
```
-See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.pluck) for more details.
+See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.pluck) for more details.
diff --git a/lodash.pluck/index.js b/lodash.pluck/index.js
index 53772db63..2162c1bff 100644
--- a/lodash.pluck/index.js
+++ b/lodash.pluck/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -64,7 +64,7 @@ function isKey(value, object) {
}
/**
- * Converts `value` to an object if it is not one.
+ * Converts `value` to an object if it's not one.
*
* @private
* @param {*} value The value to process.
@@ -125,11 +125,11 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
- return type == 'function' || (!!value && type == 'object');
+ return !!value && (type == 'object' || type == 'function');
}
/**
- * Creates a function which returns the property value at `path` on a
+ * Creates a function that returns the property value at `path` on a
* given object.
*
* @static
diff --git a/lodash.pluck/package.json b/lodash.pluck/package.json
index 4c26f01ae..1a234369c 100644
--- a/lodash.pluck/package.json
+++ b/lodash.pluck/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.pluck",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.pluck` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.property/README.md b/lodash.property/README.md
index b46e19762..b89e11bc6 100644
--- a/lodash.property/README.md
+++ b/lodash.property/README.md
@@ -1,4 +1,4 @@
-# lodash.property v3.1.1
+# lodash.property v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.property` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var property = require('lodash.property');
```
-See the [documentation](https://lodash.com/docs#property) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.property) for more details.
+See the [documentation](https://lodash.com/docs#property) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.property) for more details.
diff --git a/lodash.property/index.js b/lodash.property/index.js
index 12ed530ae..e69c0d23d 100644
--- a/lodash.property/index.js
+++ b/lodash.property/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -63,7 +63,7 @@ function isKey(value, object) {
}
/**
- * Converts `value` to an object if it is not one.
+ * Converts `value` to an object if it's not one.
*
* @private
* @param {*} value The value to process.
@@ -97,11 +97,11 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
- return type == 'function' || (!!value && type == 'object');
+ return !!value && (type == 'object' || type == 'function');
}
/**
- * Creates a function which returns the property value at `path` on a
+ * Creates a function that returns the property value at `path` on a
* given object.
*
* @static
diff --git a/lodash.property/package.json b/lodash.property/package.json
index e0eb0429f..16d52030e 100644
--- a/lodash.property/package.json
+++ b/lodash.property/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.property",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.property` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.random/LICENSE b/lodash.random/LICENSE
index b054ca5a3..bcbe13d67 100644
--- a/lodash.random/LICENSE
+++ b/lodash.random/LICENSE
@@ -1,22 +1,23 @@
+The MIT License (MIT)
+
Copyright 2012-2016 The Dojo Foundation
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/lodash.random/README.md b/lodash.random/README.md
index ce4410fd6..d10b1cda9 100644
--- a/lodash.random/README.md
+++ b/lodash.random/README.md
@@ -1,4 +1,4 @@
-# lodash.random v3.1.1
+# lodash.random v3.1.2
The [lodash](https://lodash.com/) method `_.random` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var random = require('lodash.random');
```
-See the [documentation](https://lodash.com/docs#random) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.random) for more details.
+See the [documentation](https://lodash.com/docs#random) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.random) for more details.
diff --git a/lodash.random/index.js b/lodash.random/index.js
index 2d230e948..34596f906 100644
--- a/lodash.random/index.js
+++ b/lodash.random/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -163,7 +163,6 @@ function eq(value, other) {
*
* @static
* @memberOf _
- * @type Function
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
@@ -235,7 +234,8 @@ function isFunction(value) {
* // => false
*/
function isLength(value) {
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/**
diff --git a/lodash.random/package.json b/lodash.random/package.json
index b8b527743..70e37f9f0 100644
--- a/lodash.random/package.json
+++ b/lodash.random/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.random",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.random` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.range/LICENSE b/lodash.range/LICENSE
index b054ca5a3..bcbe13d67 100644
--- a/lodash.range/LICENSE
+++ b/lodash.range/LICENSE
@@ -1,22 +1,23 @@
+The MIT License (MIT)
+
Copyright 2012-2016 The Dojo Foundation
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/lodash.range/README.md b/lodash.range/README.md
index e9122b57c..3d17aa5c6 100644
--- a/lodash.range/README.md
+++ b/lodash.range/README.md
@@ -1,4 +1,4 @@
-# lodash.range v3.1.1
+# lodash.range v3.1.2
The [lodash](https://lodash.com/) method `_.range` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var range = require('lodash.range');
```
-See the [documentation](https://lodash.com/docs#range) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.range) for more details.
+See the [documentation](https://lodash.com/docs#range) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.range) for more details.
diff --git a/lodash.range/index.js b/lodash.range/index.js
index cdc384337..b8281a2f3 100644
--- a/lodash.range/index.js
+++ b/lodash.range/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -197,7 +197,6 @@ function eq(value, other) {
*
* @static
* @memberOf _
- * @type Function
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
@@ -269,7 +268,8 @@ function isFunction(value) {
* // => false
*/
function isLength(value) {
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/**
diff --git a/lodash.range/package.json b/lodash.range/package.json
index 27036372a..e1b160f03 100644
--- a/lodash.range/package.json
+++ b/lodash.range/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.range",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.range` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.reduce/README.md b/lodash.reduce/README.md
index f3f505e52..cf673aa5f 100644
--- a/lodash.reduce/README.md
+++ b/lodash.reduce/README.md
@@ -1,4 +1,4 @@
-# lodash.reduce v3.1.1
+# lodash.reduce v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reduce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var reduce = require('lodash.reduce');
```
-See the [documentation](https://lodash.com/docs#reduce) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.reduce) for more details.
+See the [documentation](https://lodash.com/docs#reduce) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.reduce) for more details.
diff --git a/lodash.reduce/index.js b/lodash.reduce/index.js
index 09f18f3dd..29bcfe964 100644
--- a/lodash.reduce/index.js
+++ b/lodash.reduce/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -9,8 +9,7 @@
var baseCallback = require('lodash._basecallback'),
baseEach = require('lodash._baseeach'),
baseReduce = require('lodash._basereduce'),
- isArray = require('lodash.isarray'),
- keys = require('lodash.keys');
+ isArray = require('lodash.isarray');
/**
* A specialized version of `_.reduce` for arrays without support for callback
@@ -66,7 +65,8 @@ function createReduce(arrayFunc, eachFunc) {
* `_.reduce`, `_.reduceRight`, and `_.transform`.
*
* The guarded methods are:
- * `assign`, `defaults`, `includes`, `merge`, `sortByAll`, and `sortByOrder`
+ * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `sortByAll`,
+ * and `sortByOrder`
*
* @static
* @memberOf _
diff --git a/lodash.reduce/package.json b/lodash.reduce/package.json
index 10e8aaf4b..058a22963 100644
--- a/lodash.reduce/package.json
+++ b/lodash.reduce/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.reduce",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.reduce` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.reduceright/README.md b/lodash.reduceright/README.md
index 7e2f45dc8..3bfdfb959 100644
--- a/lodash.reduceright/README.md
+++ b/lodash.reduceright/README.md
@@ -1,4 +1,4 @@
-# lodash.reduceright v3.1.1
+# lodash.reduceright v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reduceRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var reduceRight = require('lodash.reduceright');
```
-See the [documentation](https://lodash.com/docs#reduceRight) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.reduceright) for more details.
+See the [documentation](https://lodash.com/docs#reduceRight) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.reduceright) for more details.
diff --git a/lodash.reduceright/index.js b/lodash.reduceright/index.js
index bd9d31380..a27b0369c 100644
--- a/lodash.reduceright/index.js
+++ b/lodash.reduceright/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -9,8 +9,7 @@
var baseCallback = require('lodash._basecallback'),
baseEachRight = require('lodash._baseeachright'),
baseReduce = require('lodash._basereduce'),
- isArray = require('lodash.isarray'),
- keys = require('lodash.keys');
+ isArray = require('lodash.isarray');
/**
* A specialized version of `_.reduceRight` for arrays without support for
diff --git a/lodash.reduceright/package.json b/lodash.reduceright/package.json
index 5643265ba..1d4656f47 100644
--- a/lodash.reduceright/package.json
+++ b/lodash.reduceright/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.reduceright",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.reduceRight` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.repeat/README.md b/lodash.repeat/README.md
index 134f8303b..a18ab4140 100644
--- a/lodash.repeat/README.md
+++ b/lodash.repeat/README.md
@@ -1,4 +1,4 @@
-# lodash.repeat v3.1.1
+# lodash.repeat v3.1.2
The [lodash](https://lodash.com/) method `_.repeat` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var repeat = require('lodash.repeat');
```
-See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.repeat) for more details.
+See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.repeat) for more details.
diff --git a/lodash.repeat/index.js b/lodash.repeat/index.js
index 93745f397..f84e2a7f9 100644
--- a/lodash.repeat/index.js
+++ b/lodash.repeat/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -30,11 +30,54 @@ var reIsBinary = /^0b[01]+$/i;
/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;
-/** Built-in method references without a dependency on `global`. */
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -43,7 +86,7 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor;
diff --git a/lodash.repeat/package.json b/lodash.repeat/package.json
index 73557a440..b8f0c16a1 100644
--- a/lodash.repeat/package.json
+++ b/lodash.repeat/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.repeat",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.repeat` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, repeat",
+ "keywords": "lodash-modularized, repeat",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.result/README.md b/lodash.result/README.md
index c1ca19f23..0547d1457 100644
--- a/lodash.result/README.md
+++ b/lodash.result/README.md
@@ -1,4 +1,4 @@
-# lodash.result v3.1.1
+# lodash.result v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.result` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var result = require('lodash.result');
```
-See the [documentation](https://lodash.com/docs#result) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.result) for more details.
+See the [documentation](https://lodash.com/docs#result) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.result) for more details.
diff --git a/lodash.result/index.js b/lodash.result/index.js
index 8b25ce96b..67b2ae6ad 100644
--- a/lodash.result/index.js
+++ b/lodash.result/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -37,7 +37,7 @@ function isKey(value, object) {
}
/**
- * Converts `value` to an object if it is not one.
+ * Converts `value` to an object if it's not one.
*
* @private
* @param {*} value The value to process.
@@ -89,12 +89,12 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
- return type == 'function' || (!!value && type == 'object');
+ return !!value && (type == 'object' || type == 'function');
}
/**
* This method is like `_.get` except that if the resolved value is a function
- * it is invoked with the `this` binding of its parent object and its result
+ * it's invoked with the `this` binding of its parent object and its result
* is returned.
*
* @static
diff --git a/lodash.result/package.json b/lodash.result/package.json
index 300a7cea2..7ad5614c3 100644
--- a/lodash.result/package.json
+++ b/lodash.result/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.result",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.result` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.startswith/README.md b/lodash.startswith/README.md
index 5ff660fb0..f3fdac04d 100644
--- a/lodash.startswith/README.md
+++ b/lodash.startswith/README.md
@@ -1,4 +1,4 @@
-# lodash.startswith v3.1.1
+# lodash.startswith v3.1.2
The [lodash](https://lodash.com/) method `_.startsWith` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var startsWith = require('lodash.startswith');
```
-See the [documentation](https://lodash.com/docs#startsWith) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.startswith) for more details.
+See the [documentation](https://lodash.com/docs#startsWith) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.startswith) for more details.
diff --git a/lodash.startswith/index.js b/lodash.startswith/index.js
index 62c23a0e5..830b30041 100644
--- a/lodash.startswith/index.js
+++ b/lodash.startswith/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -29,11 +29,54 @@ var reIsBinary = /^0b[01]+$/i;
/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;
-/** Built-in method references without a dependency on `global`. */
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -42,7 +85,7 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.startswith/package.json b/lodash.startswith/package.json
index b9ba817df..0da6aefa4 100644
--- a/lodash.startswith/package.json
+++ b/lodash.startswith/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.startswith",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.startsWith` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, startswith",
+ "keywords": "lodash-modularized, startswith",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.unescape/README.md b/lodash.unescape/README.md
index 7f75a645f..271b410a4 100644
--- a/lodash.unescape/README.md
+++ b/lodash.unescape/README.md
@@ -1,4 +1,4 @@
-# lodash.unescape v3.1.1
+# lodash.unescape v3.1.2
The [lodash](https://lodash.com/) method `_.unescape` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var unescape = require('lodash.unescape');
```
-See the [documentation](https://lodash.com/docs#unescape) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.unescape) for more details.
+See the [documentation](https://lodash.com/docs#unescape) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.unescape) for more details.
diff --git a/lodash.unescape/index.js b/lodash.unescape/index.js
index a2e809633..08923e666 100644
--- a/lodash.unescape/index.js
+++ b/lodash.unescape/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -27,6 +27,49 @@ var htmlUnescapes = {
'`': '`'
};
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/**
* Used by `_.unescape` to convert HTML entities to characters.
*
@@ -39,7 +82,7 @@ function unescapeHtmlChar(chr) {
}
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -48,7 +91,7 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.unescape/package.json b/lodash.unescape/package.json
index 5caace7cb..14affe70d 100644
--- a/lodash.unescape/package.json
+++ b/lodash.unescape/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.unescape",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.unescape` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, unescape",
+ "keywords": "lodash-modularized, unescape",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.uniqueid/README.md b/lodash.uniqueid/README.md
index eb0320d1e..9dc850e6b 100644
--- a/lodash.uniqueid/README.md
+++ b/lodash.uniqueid/README.md
@@ -1,4 +1,4 @@
-# lodash.uniqueid v3.1.1
+# lodash.uniqueid v3.1.2
The [lodash](https://lodash.com/) method `_.uniqueId` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var uniqueId = require('lodash.uniqueid');
```
-See the [documentation](https://lodash.com/docs#uniqueId) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.uniqueid) for more details.
+See the [documentation](https://lodash.com/docs#uniqueId) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.uniqueid) for more details.
diff --git a/lodash.uniqueid/index.js b/lodash.uniqueid/index.js
index 69d663672..435095347 100644
--- a/lodash.uniqueid/index.js
+++ b/lodash.uniqueid/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -13,8 +13,51 @@ var INFINITY = 1 / 0;
/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/** Used to generate unique IDs. */
var idCounter = 0;
@@ -26,7 +69,7 @@ var idCounter = 0;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.uniqueid/package.json b/lodash.uniqueid/package.json
index 67515833c..8e4f94028 100644
--- a/lodash.uniqueid/package.json
+++ b/lodash.uniqueid/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.uniqueid",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.uniqueId` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, uniqueid",
+ "keywords": "lodash-modularized, uniqueid",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.words/README.md b/lodash.words/README.md
index 20e752911..38812242b 100644
--- a/lodash.words/README.md
+++ b/lodash.words/README.md
@@ -1,4 +1,4 @@
-# lodash.words v3.1.1
+# lodash.words v3.1.2
The [lodash](https://lodash.com/) method `_.words` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var words = require('lodash.words');
```
-See the [documentation](https://lodash.com/docs#words) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.words) for more details.
+See the [documentation](https://lodash.com/docs#words) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.words) for more details.
diff --git a/lodash.words/index.js b/lodash.words/index.js
index 86f23f98a..f569693e9 100644
--- a/lodash.words/index.js
+++ b/lodash.words/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -67,8 +67,51 @@ var reComplexWord = RegExp([
/** Used to detect strings that need a more robust regexp to match words. */
var reHasComplexWord = /[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** Detect free variable `global` from Node.js. */
+var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
+
+/** Detect free variable `self`. */
+var freeSelf = checkGlobal(objectTypes[typeof self] && self);
+
+/** Detect free variable `window`. */
+var freeWindow = checkGlobal(objectTypes[typeof window] && window);
+
+/** Detect `this` as the global object. */
+var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
+
+/**
+ * Used as a reference to the global object.
+ *
+ * The `this` value is used if it's the global object to avoid Greasemonkey's
+ * restricted `window` object, otherwise the `window` object is used.
+ */
+var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+
+/**
+ * Checks if `value` is a global object.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {null|Object} Returns `value` if it's a global object, else `null`.
+ */
+function checkGlobal(value) {
+ return (value && value.Object === Object) ? value : null;
+}
+
/** Used for built-in method references. */
-var objectProto = global.Object.prototype;
+var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -77,7 +120,7 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var Symbol = global.Symbol;
+var Symbol = root.Symbol;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
diff --git a/lodash.words/package.json b/lodash.words/package.json
index d3c8dd1e4..84499df94 100644
--- a/lodash.words/package.json
+++ b/lodash.words/package.json
@@ -1,11 +1,11 @@
{
"name": "lodash.words",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The lodash method `_.words` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util, words",
+ "keywords": "lodash-modularized, words",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
diff --git a/lodash.padleft/LICENSE.txt b/lodash.xor/LICENSE
similarity index 100%
rename from lodash.padleft/LICENSE.txt
rename to lodash.xor/LICENSE
diff --git a/lodash.xor/LICENSE.txt b/lodash.xor/LICENSE.txt
deleted file mode 100644
index 9cd87e5dc..000000000
--- a/lodash.xor/LICENSE.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/lodash.xor/README.md b/lodash.xor/README.md
index 1534ebbb7..843fe8ff7 100644
--- a/lodash.xor/README.md
+++ b/lodash.xor/README.md
@@ -1,4 +1,4 @@
-# lodash.xor v3.1.1
+# lodash.xor v3.1.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.xor` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var xor = require('lodash.xor');
```
-See the [documentation](https://lodash.com/docs#xor) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.xor) for more details.
+See the [documentation](https://lodash.com/docs#xor) or [package source](https://github.com/lodash/lodash/blob/3.1.2-npm-packages/lodash.xor) for more details.
diff --git a/lodash.xor/index.js b/lodash.xor/index.js
index e9d5f8cc6..a60a84c6c 100644
--- a/lodash.xor/index.js
+++ b/lodash.xor/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.1.1 (Custom Build)
+ * lodash 3.1.2 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -10,11 +10,30 @@ var baseDifference = require('lodash._basedifference'),
baseUniq = require('lodash._baseuniq');
/**
- * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
+ * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value.
*/
var MAX_SAFE_INTEGER = 9007199254740991;
+/**
+ * Appends the elements of `values` to `array`.
+ *
+ * @private
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to append.
+ * @returns {Array} Returns `array`.
+ */
+function arrayPush(array, values) {
+ var index = -1,
+ length = values.length,
+ offset = array.length;
+
+ while (++index < length) {
+ array[offset + index] = values[index];
+ }
+ return array;
+}
+
/**
* The base implementation of `_.property` without support for deep paths.
*
@@ -54,7 +73,7 @@ function isArrayLike(value) {
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
+ * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @private
* @param {*} value The value to check.
@@ -86,7 +105,7 @@ function xor() {
var array = arguments[index];
if (isArrayLike(array)) {
var result = result
- ? baseDifference(result, array).concat(baseDifference(array, result))
+ ? arrayPush(baseDifference(result, array), baseDifference(array, result))
: array;
}
}
diff --git a/lodash.xor/package.json b/lodash.xor/package.json
index e62c4a7d5..caff19aa9 100644
--- a/lodash.xor/package.json
+++ b/lodash.xor/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.xor",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "The modern build of lodash’s `_.xor` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",