Compare commits

...

11 Commits

Author SHA1 Message Date
John-David Dalton
8c168dd1b8 Bump to v3.3.7. 2018-02-03 19:13:30 -08:00
John-David Dalton
2f9ad20a7f Bump to v3.3.6. 2018-02-03 19:13:30 -08:00
John-David Dalton
fbdd63d3ad Bump to v3.3.5. 2018-02-03 19:13:30 -08:00
John-David Dalton
9a9ba47586 Bump to v3.3.4. 2018-02-03 19:13:30 -08:00
John-David Dalton
61a48333a2 Bump to v3.3.3. 2018-02-03 19:13:30 -08:00
jdalton
25afac45b7 Bump to v3.3.2. 2018-02-03 19:13:30 -08:00
jdalton
0423d77228 Bump to v3.3.1. 2018-02-03 19:13:29 -08:00
jdalton
343b869a68 Bump to v3.3.0. 2018-02-03 19:13:29 -08:00
jdalton
4b3679034c Bump to v3.2.3. 2018-02-03 19:13:29 -08:00
jdalton
45b95364ef Bump to v3.2.2. 2018-02-03 19:13:29 -08:00
jdalton
2a20de4a1e Bump to v3.2.1. 2018-02-03 19:13:29 -08:00
112 changed files with 2026 additions and 817 deletions

View File

@@ -1,4 +1,4 @@
# lodash v3.2.0 # lodash v3.3.7
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.

View File

@@ -1,4 +1,4 @@
# lodash._basecallback v3.2.0 # lodash._basecallback v3.3.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseCallback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](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'); var baseCallback = require('lodash._basecallback');
``` ```
See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._basecallback) for more details. See the [package source](https://github.com/lodash/lodash/blob/3.3.1-npm-packages/lodash._basecallback) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -9,10 +9,10 @@
var baseIsEqual = require('lodash._baseisequal'), var baseIsEqual = require('lodash._baseisequal'),
bindCallback = require('lodash._bindcallback'), bindCallback = require('lodash._bindcallback'),
isArray = require('lodash.isarray'), isArray = require('lodash.isarray'),
keys = require('lodash.keys'); pairs = require('lodash.pairs');
/** Used to match property names within property paths. */ /** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]+|(["'])(?:(?!\1)[^\n\\]|\\.)*?)\1\]/, var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/, reIsPlainProp = /^\w*$/,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g; rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g;
@@ -20,7 +20,7 @@ var reIsDeepProp = /\.|\[(?:[^[\]]+|(["'])(?:(?!\1)[^\n\\]|\\.)*?)\1\]/,
var reEscapeChar = /\\(\\)?/g; var reEscapeChar = /\\(\\)?/g;
/** /**
* Converts `value` to a string if it is not one. An empty string is returned * Converts `value` to a string if it's not one. An empty string is returned
* for `null` or `undefined` values. * for `null` or `undefined` values.
* *
* @private * @private
@@ -28,9 +28,6 @@ var reEscapeChar = /\\(\\)?/g;
* @returns {string} Returns the string. * @returns {string} Returns the string.
*/ */
function baseToString(value) { function baseToString(value) {
if (typeof value == 'string') {
return value;
}
return value == null ? '' : (value + ''); return value == null ? '' : (value + '');
} }
@@ -79,13 +76,13 @@ function baseGet(object, path, pathKey) {
if (pathKey !== undefined && pathKey in toObject(object)) { if (pathKey !== undefined && pathKey in toObject(object)) {
path = [pathKey]; path = [pathKey];
} }
var index = -1, var index = 0,
length = path.length; length = path.length;
while (object != null && ++index < length) { while (object != null && index < length) {
var result = object = object[path[index]]; object = object[path[index++]];
} }
return result; return (index && index == length) ? object : undefined;
} }
/** /**
@@ -94,41 +91,43 @@ function baseGet(object, path, pathKey) {
* *
* @private * @private
* @param {Object} object The object to inspect. * @param {Object} object The object to inspect.
* @param {Array} props The source property names to match. * @param {Array} matchData The propery names, values, and compare flags to match.
* @param {Array} values The source values to match.
* @param {Array} strictCompareFlags Strict comparison flags for source values.
* @param {Function} [customizer] The function to customize comparing objects. * @param {Function} [customizer] The function to customize comparing objects.
* @returns {boolean} Returns `true` if `object` is a match, else `false`. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
*/ */
function baseIsMatch(object, props, values, strictCompareFlags, customizer) { function baseIsMatch(object, matchData, customizer) {
var index = -1, var index = matchData.length,
length = props.length, length = index,
noCustomizer = !customizer; noCustomizer = !customizer;
while (++index < length) { if (object == null) {
if ((noCustomizer && strictCompareFlags[index]) return !length;
? values[index] !== object[props[index]] }
: !(props[index] in object) object = toObject(object);
while (index--) {
var data = matchData[index];
if ((noCustomizer && data[2])
? data[1] !== object[data[0]]
: !(data[0] in object)
) { ) {
return false; return false;
} }
} }
index = -1;
while (++index < length) { while (++index < length) {
var key = props[index], data = matchData[index];
var key = data[0],
objValue = object[key], objValue = object[key],
srcValue = values[index]; srcValue = data[1];
if (noCustomizer && strictCompareFlags[index]) { if (noCustomizer && data[2]) {
var result = objValue !== undefined || (key in object); if (objValue === undefined && !(key in object)) {
} else { return false;
result = customizer ? customizer(objValue, srcValue, key) : undefined; }
if (result === undefined) { } else {
result = baseIsEqual(srcValue, objValue, customizer, true); var result = customizer ? customizer(objValue, srcValue, key) : undefined;
if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) {
return false;
} }
}
if (!result) {
return false;
} }
} }
return true; return true;
@@ -142,50 +141,34 @@ function baseIsMatch(object, props, values, strictCompareFlags, customizer) {
* @returns {Function} Returns the new function. * @returns {Function} Returns the new function.
*/ */
function baseMatches(source) { function baseMatches(source) {
var props = keys(source), var matchData = getMatchData(source);
length = props.length; if (matchData.length == 1 && matchData[0][2]) {
var key = matchData[0][0],
value = matchData[0][1];
if (!length) { return function(object) {
return constant(true); if (object == null) {
} return false;
if (length == 1) { }
var key = props[0], return object[key] === value && (value !== undefined || (key in toObject(object)));
value = source[key]; };
if (isStrictComparable(value)) {
return function(object) {
if (object == null) {
return false;
}
return object[key] === value && (value !== undefined || (key in toObject(object)));
};
}
}
var values = Array(length),
strictCompareFlags = Array(length);
while (length--) {
value = source[props[length]];
values[length] = value;
strictCompareFlags[length] = isStrictComparable(value);
} }
return function(object) { return function(object) {
return object != null && baseIsMatch(toObject(object), props, values, strictCompareFlags); return baseIsMatch(object, matchData);
}; };
} }
/** /**
* The base implementation of `_.matchesProperty` which does not which does * The base implementation of `_.matchesProperty` which does not clone `srcValue`.
* not clone `value`.
* *
* @private * @private
* @param {string} path The path of the property to get. * @param {string} path The path of the property to get.
* @param {*} value The value to compare. * @param {*} srcValue The value to compare.
* @returns {Function} Returns the new function. * @returns {Function} Returns the new function.
*/ */
function baseMatchesProperty(path, value) { function baseMatchesProperty(path, srcValue) {
var isArr = isArray(path), var isArr = isArray(path),
isCommon = isKey(path) && isStrictComparable(value), isCommon = isKey(path) && isStrictComparable(srcValue),
pathKey = (path + ''); pathKey = (path + '');
path = toPath(path); path = toPath(path);
@@ -203,9 +186,9 @@ function baseMatchesProperty(path, value) {
key = last(path); key = last(path);
object = toObject(object); object = toObject(object);
} }
return object[key] === value return object[key] === srcValue
? (value !== undefined || (key in object)) ? (srcValue !== undefined || (key in object))
: baseIsEqual(value, object[key], null, true); : baseIsEqual(srcValue, object[key], undefined, true);
}; };
} }
@@ -268,6 +251,23 @@ function baseSlice(array, start, end) {
return result; return result;
} }
/**
* Gets the propery names, values, and compare flags of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the match data of `object`.
*/
function getMatchData(object) {
var result = pairs(object),
length = result.length;
while (length--) {
result[length][2] = isStrictComparable(result[length][1]);
}
return result;
}
/** /**
* Checks if `value` is a property name and not a property path. * Checks if `value` is a property name and not a property path.
* *
@@ -297,11 +297,11 @@ function isKey(value, object) {
* equality comparisons, else `false`. * equality comparisons, else `false`.
*/ */
function isStrictComparable(value) { function isStrictComparable(value) {
return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value)); return value === value && !isObject(value);
} }
/** /**
* Converts `value` to an object if it is not one. * Converts `value` to an object if it's not one.
* *
* @private * @private
* @param {*} value The value to process. * @param {*} value The value to process.
@@ -312,7 +312,7 @@ function toObject(value) {
} }
/** /**
* Converts `value` to property path array if it is not one. * Converts `value` to property path array if it's not one.
* *
* @private * @private
* @param {*} value The value to process. * @param {*} value The value to process.
@@ -371,29 +371,7 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20. // Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value; var type = typeof value;
return type == 'function' || (!!value && type == 'object'); 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;
};
} }
/** /**
@@ -416,7 +394,7 @@ function identity(value) {
} }
/** /**
* 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. * given object.
* *
* @static * @static

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash._basecallback", "name": "lodash._basecallback",
"version": "3.2.0", "version": "3.3.1",
"description": "The modern build of lodashs internal `baseCallback` as a module.", "description": "The modern build of lodashs internal `baseCallback` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -19,6 +19,6 @@
"lodash._baseisequal": "^3.0.0", "lodash._baseisequal": "^3.0.0",
"lodash._bindcallback": "^3.0.0", "lodash._bindcallback": "^3.0.0",
"lodash.isarray": "^3.0.0", "lodash.isarray": "^3.0.0",
"lodash.keys": "^3.0.0" "lodash.pairs": "^3.0.0"
} }
} }

View File

@@ -1,4 +1,4 @@
# lodash._baseclone v3.2.0 # lodash._baseclone v3.3.0
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseClone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseClone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseClone = require('lodash._baseclone'); var baseClone = require('lodash._baseclone');
``` ```
See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._baseclone) for more details. See the [package source](https://github.com/lodash/lodash/blob/3.3.0-npm-packages/lodash._baseclone) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -10,7 +10,6 @@ var arrayCopy = require('lodash._arraycopy'),
arrayEach = require('lodash._arrayeach'), arrayEach = require('lodash._arrayeach'),
baseAssign = require('lodash._baseassign'), baseAssign = require('lodash._baseassign'),
baseFor = require('lodash._basefor'), baseFor = require('lodash._basefor'),
getNative = require('lodash._getnative'),
isArray = require('lodash.isarray'), isArray = require('lodash.isarray'),
keys = require('lodash.keys'); keys = require('lodash.keys');
@@ -65,31 +64,14 @@ var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty; var hasOwnProperty = objectProto.hasOwnProperty;
/** /**
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values. * of values.
*/ */
var objToString = objectProto.toString; var objToString = objectProto.toString;
/** Native method references. */ /** Native method references. */
var ArrayBuffer = getNative(root, 'ArrayBuffer'), var ArrayBuffer = global.ArrayBuffer,
bufferSlice = getNative(ArrayBuffer && new ArrayBuffer(0), 'slice'), Uint8Array = global.Uint8Array;
floor = Math.floor,
Uint8Array = getNative(root, 'Uint8Array');
/** Used to clone array buffers. */
var Float64Array = (function() {
// Safari 5 errors when using an array buffer to initialize a typed array
// where the array buffer's `byteLength` is not a multiple of the typed
// array's `BYTES_PER_ELEMENT`.
try {
var func = getNative(root, 'Float64Array'),
result = new func(new ArrayBuffer(10), 0, 1) && func;
} catch(e) {}
return result || null;
}());
/** Used as the size, in bytes, of each `Float64Array` element. */
var FLOAT64_BYTES_PER_ELEMENT = Float64Array ? Float64Array.BYTES_PER_ELEMENT : 0;
/** /**
* The base implementation of `_.clone` without support for argument juggling * The base implementation of `_.clone` without support for argument juggling
@@ -137,7 +119,7 @@ function baseClone(value, isDeep, customizer, key, object, stackA, stackB) {
: (object ? value : {}); : (object ? value : {});
} }
} }
// Check for circular references and return corresponding clone. // Check for circular references and return its corresponding clone.
stackA || (stackA = []); stackA || (stackA = []);
stackB || (stackB = []); stackB || (stackB = []);
@@ -179,26 +161,11 @@ function baseForOwn(object, iteratee) {
* @returns {ArrayBuffer} Returns the cloned array buffer. * @returns {ArrayBuffer} Returns the cloned array buffer.
*/ */
function bufferClone(buffer) { function bufferClone(buffer) {
return bufferSlice.call(buffer, 0); var result = new ArrayBuffer(buffer.byteLength),
} view = new Uint8Array(result);
if (!bufferSlice) {
// PhantomJS has `ArrayBuffer` and `Uint8Array` but not `Float64Array`.
bufferClone = !(ArrayBuffer && Uint8Array) ? constant(null) : function(buffer) {
var byteLength = buffer.byteLength,
floatLength = Float64Array ? floor(byteLength / FLOAT64_BYTES_PER_ELEMENT) : 0,
offset = floatLength * FLOAT64_BYTES_PER_ELEMENT,
result = new ArrayBuffer(byteLength);
if (floatLength) { view.set(new Uint8Array(buffer));
var view = new Float64Array(result, 0, floatLength); return result;
view.set(new Float64Array(buffer, 0, floatLength));
}
if (byteLength != offset) {
view = new Uint8Array(result, offset);
view.set(new Uint8Array(buffer, offset));
}
return result;
};
} }
/** /**
@@ -301,26 +268,4 @@ function isObject(value) {
return !!value && (type == 'object' || type == 'function'); 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;
};
}
module.exports = baseClone; module.exports = baseClone;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash._baseclone", "name": "lodash._baseclone",
"version": "3.2.0", "version": "3.3.0",
"description": "The modern build of lodashs internal `baseClone` as a module.", "description": "The modern build of lodashs internal `baseClone` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -20,7 +20,6 @@
"lodash._arrayeach": "^3.0.0", "lodash._arrayeach": "^3.0.0",
"lodash._baseassign": "^3.0.0", "lodash._baseassign": "^3.0.0",
"lodash._basefor": "^3.0.0", "lodash._basefor": "^3.0.0",
"lodash._getnative": "^3.0.0",
"lodash.isarray": "^3.0.0", "lodash.isarray": "^3.0.0",
"lodash.keys": "^3.0.0" "lodash.keys": "^3.0.0"
} }

View File

@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining

View File

@@ -1,4 +1,4 @@
# lodash._basematchesproperty v3.2.0 # lodash._basematchesproperty v3.3.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseMatchesProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseMatchesProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseMatchesProperty = require('lodash._basematchesproperty'); var baseMatchesProperty = require('lodash._basematchesproperty');
``` ```
See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._basematchesproperty) for more details. See the [package source](https://github.com/lodash/lodash/blob/3.3.2-npm-packages/lodash._basematchesproperty) for more details.

View File

@@ -1,33 +1,75 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var baseIsEqual = require('lodash._baseisequal'); var baseGet = require('lodash._baseget'),
baseIsEqual = require('lodash._baseisequal'),
baseSlice = require('lodash._baseslice'),
toPath = require('lodash._topath'),
isArray = require('lodash.isarray');
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/;
/** /**
* The base implementation of `_.matchesProperty` which does not coerce `key` * The base implementation of `_.matchesProperty` which does not clone `srcValue`.
* to a string.
* *
* @private * @private
* @param {string} key The key of the property to get. * @param {string} path The path of the property to get.
* @param {*} value The value to compare. * @param {*} srcValue The value to compare.
* @returns {Function} Returns the new function. * @returns {Function} Returns the new function.
*/ */
function baseMatchesProperty(key, value) { function baseMatchesProperty(path, srcValue) {
if (isStrictComparable(value)) { var isArr = isArray(path),
return function(object) { isCommon = isKey(path) && isStrictComparable(srcValue),
return object != null && object[key] === value; pathKey = (path + '');
};
} path = toPath(path);
return function(object) { return function(object) {
return object != null && baseIsEqual(value, object[key], null, true); if (object == null) {
return false;
}
var key = pathKey;
object = toObject(object);
if ((isArr || !isCommon) && !(key in object)) {
object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
if (object == null) {
return false;
}
key = last(path);
object = toObject(object);
}
return object[key] === srcValue
? (srcValue !== undefined || (key in object))
: baseIsEqual(srcValue, object[key], undefined, true);
}; };
} }
/**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
var type = typeof value;
if ((type == 'string' && reIsPlainProp.test(value)) || type == 'number') {
return true;
}
if (isArray(value)) {
return false;
}
var result = !reIsDeepProp.test(value);
return result || (object != null && value in toObject(object));
}
/** /**
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
* *
@@ -37,14 +79,41 @@ function baseMatchesProperty(key, value) {
* equality comparisons, else `false`. * equality comparisons, else `false`.
*/ */
function isStrictComparable(value) { function isStrictComparable(value) {
return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value)); return value === value && !isObject(value);
} }
/** /**
* Checks if `value` is the language type of `Object`. * Converts `value` to an object if it's not one.
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
* *
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. * @private
* @param {*} value The value to process.
* @returns {Object} Returns the object.
*/
function toObject(value) {
return isObject(value) ? value : Object(value);
}
/**
* Gets the last element of `array`.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to query.
* @returns {*} Returns the last element of `array`.
* @example
*
* _.last([1, 2, 3]);
* // => 3
*/
function last(array) {
var length = array ? array.length : 0;
return length ? array[length - 1] : undefined;
}
/**
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
* *
* @static * @static
* @memberOf _ * @memberOf _
@@ -66,7 +135,7 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20. // Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value; var type = typeof value;
return type == 'function' || (value && type == 'object') || false; return !!value && (type == 'object' || type == 'function');
} }
module.exports = baseMatchesProperty; module.exports = baseMatchesProperty;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash._basematchesproperty", "name": "lodash._basematchesproperty",
"version": "3.2.0", "version": "3.3.2",
"description": "The modern build of lodashs internal `baseMatchesProperty` as a module.", "description": "The modern build of lodashs internal `baseMatchesProperty` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -16,6 +16,10 @@
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": { "dependencies": {
"lodash._baseisequal": "^3.0.0" "lodash._baseget": "^3.0.0",
"lodash._baseisequal": "^3.0.0",
"lodash._baseslice": "^3.0.0",
"lodash._topath": "^3.0.0",
"lodash.isarray": "^3.0.0"
} }
} }

View File

@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining

View File

@@ -1,4 +1,4 @@
# lodash.attempt v3.2.0 # lodash.attempt v3.3.0
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.attempt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.attempt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var attempt = require('lodash.attempt'); var attempt = require('lodash.attempt');
``` ```
See the [documentation](https://lodash.com/docs#attempt) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.attempt) for more details. See the [documentation](https://lodash.com/docs#attempt) or [package source](https://github.com/lodash/lodash/blob/3.3.0-npm-packages/lodash.attempt) for more details.

View File

@@ -1,21 +1,22 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var isError = require('lodash.iserror'); var isError = require('lodash.iserror'),
restParam = require('lodash.restparam');
/** /**
* Attempts to invoke `func`, returning either the result or the caught error * Attempts to invoke `func`, returning either the result or the caught error
* object. Any additional arguments are provided to `func` when it is invoked. * object. Any additional arguments are provided to `func` when it's invoked.
* *
* @static * @static
* @memberOf _ * @memberOf _
* @category Utility * @category Utility
* @param {*} func The function to attempt. * @param {Function} func The function to attempt.
* @returns {*} Returns the `func` result or error object. * @returns {*} Returns the `func` result or error object.
* @example * @example
* *
@@ -28,19 +29,12 @@ var isError = require('lodash.iserror');
* elements = []; * elements = [];
* } * }
*/ */
function attempt() { var attempt = restParam(function(func, args) {
var length = arguments.length,
func = arguments[0];
try { try {
var args = Array(length ? length - 1 : 0);
while (--length > 0) {
args[length - 1] = arguments[length];
}
return func.apply(undefined, args); return func.apply(undefined, args);
} catch(e) { } catch(e) {
return isError(e) ? e : new Error(e); return isError(e) ? e : new Error(e);
} }
} });
module.exports = attempt; module.exports = attempt;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.attempt", "name": "lodash.attempt",
"version": "3.2.0", "version": "3.3.0",
"description": "The modern build of lodashs `_.attempt` as a module.", "description": "The modern build of lodashs `_.attempt` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -17,6 +17,7 @@
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": { "dependencies": {
"lodash.iserror": "^3.0.0" "lodash.iserror": "^3.0.0",
"lodash.restparam": "^3.0.0"
} }
} }

23
lodash.callback/LICENSE Normal file
View File

@@ -0,0 +1,23 @@
The MIT License (MIT)
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
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.

View File

@@ -1,6 +1,10 @@
# lodash.callback v3.2.0 # lodash.callback v3.3.3
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.callback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [lodash](https://lodash.com/) method `_.callback` exported as a [Node.js](https://nodejs.org/) module.
## Discontinued
This package has been discontinued in favor of [lodash.iteratee](https://www.npmjs.com/package/lodash.iteratee).
## Installation ## Installation
@@ -17,4 +21,4 @@ In Node.js/io.js:
var callback = require('lodash.callback'); var callback = require('lodash.callback');
``` ```
See the [documentation](https://lodash.com/docs#callback) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.callback) for more details. See the [documentation](https://lodash.com/docs#callback) or [package source](https://github.com/lodash/lodash/blob/3.3.3-npm-packages/lodash.callback) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -7,8 +7,21 @@
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var baseCallback = require('lodash._basecallback'), var baseCallback = require('lodash._basecallback'),
baseClone = require('lodash._baseclone'),
baseMatches = require('lodash._basematches'),
isIterateeCall = require('lodash._isiterateecall'); isIterateeCall = require('lodash._isiterateecall');
/**
* Checks if `value` is object-like.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/** /**
* Creates a function that invokes `func` with the `this` binding of `thisArg` * Creates a function that invokes `func` with the `this` binding of `thisArg`
* and arguments of the created function. If `func` is a property name the * and arguments of the created function. If `func` is a property name the
@@ -49,9 +62,40 @@ var baseCallback = require('lodash._basecallback'),
*/ */
function callback(func, thisArg, guard) { function callback(func, thisArg, guard) {
if (guard && isIterateeCall(func, thisArg, guard)) { if (guard && isIterateeCall(func, thisArg, guard)) {
thisArg = null; thisArg = undefined;
} }
return baseCallback(func, thisArg); return isObjectLike(func)
? matches(func)
: baseCallback(func, thisArg);
}
/**
* Creates a function that performs a deep comparison between a given object
* and `source`, returning `true` if the given object has equivalent property
* values, else `false`.
*
* **Note:** This method supports comparing arrays, booleans, `Date` objects,
* numbers, `Object` objects, regexes, and strings. Objects are compared by
* their own, not inherited, enumerable properties. For comparing a single
* own or inherited property value see `_.matchesProperty`.
*
* @static
* @memberOf _
* @category Utility
* @param {Object} source The object of property values to match.
* @returns {Function} Returns the new function.
* @example
*
* var users = [
* { 'user': 'barney', 'age': 36, 'active': true },
* { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
* _.filter(users, _.matches({ 'age': 40, 'active': false }));
* // => [{ 'user': 'fred', 'age': 40, 'active': false }]
*/
function matches(source) {
return baseMatches(baseClone(source, true));
} }
module.exports = callback; module.exports = callback;

View File

@@ -1,23 +1,22 @@
{ {
"name": "lodash.callback", "name": "lodash.callback",
"version": "3.2.0", "version": "3.3.3",
"description": "The modern build of lodashs `_.callback` as a module.", "description": "The lodash method `_.callback` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"license": "MIT", "license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [ "contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
], ],
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": { "dependencies": {
"lodash._basecallback": "^3.0.0", "lodash._basecallback": "^3.0.0",
"lodash._baseclone": "^3.0.0",
"lodash._basematches": "^3.0.0",
"lodash._isiterateecall": "^3.0.0" "lodash._isiterateecall": "^3.0.0"
} }
} }

View File

@@ -1,4 +1,4 @@
# lodash.difference v3.2.0 # lodash.difference v3.2.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.difference` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.difference` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var difference = require('lodash.difference'); var difference = require('lodash.difference');
``` ```
See the [documentation](https://lodash.com/docs#difference) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.difference) for more details. See the [documentation](https://lodash.com/docs#difference) or [package source](https://github.com/lodash/lodash/blob/3.2.2-npm-packages/lodash.difference) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -11,10 +11,21 @@ var baseDifference = require('lodash._basedifference'),
restParam = require('lodash.restparam'); restParam = require('lodash.restparam');
/** /**
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) * Checks if `value` is object-like.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/**
* Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value. * 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. * The base implementation of `_.property` without support for deep paths.
@@ -55,7 +66,7 @@ function isArrayLike(value) {
/** /**
* Checks if `value` is a valid array-like 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 * @private
* @param {*} value The value to check. * @param {*} value The value to check.
@@ -66,8 +77,8 @@ function isLength(value) {
} }
/** /**
* Creates an array excluding all values of the provided arrays using * Creates an array of unique `array` values not included in the other
* [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* for equality comparisons. * for equality comparisons.
* *
* @static * @static
@@ -82,7 +93,7 @@ function isLength(value) {
* // => [1, 3] * // => [1, 3]
*/ */
var difference = restParam(function(array, values) { var difference = restParam(function(array, values) {
return isArrayLike(array) return (isObjectLike(array) && isArrayLike(array))
? baseDifference(array, baseFlatten(values, false, true)) ? baseDifference(array, baseFlatten(values, false, true))
: []; : [];
}); });

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.difference", "name": "lodash.difference",
"version": "3.2.0", "version": "3.2.2",
"description": "The modern build of lodashs `_.difference` as a module.", "description": "The modern build of lodashs `_.difference` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,4 +1,4 @@
# lodash.every v3.2.0 # lodash.every v3.2.3
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.every` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.every` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var every = require('lodash.every'); var every = require('lodash.every');
``` ```
See the [documentation](https://lodash.com/docs#every) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.every) for more details. See the [documentation](https://lodash.com/docs#every) or [package source](https://github.com/lodash/lodash/blob/3.2.3-npm-packages/lodash.every) for more details.

View File

@@ -1,8 +1,8 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
@@ -10,8 +10,7 @@ var arrayEvery = require('lodash._arrayevery'),
baseCallback = require('lodash._basecallback'), baseCallback = require('lodash._basecallback'),
baseEach = require('lodash._baseeach'), baseEach = require('lodash._baseeach'),
isIterateeCall = require('lodash._isiterateecall'), isIterateeCall = require('lodash._isiterateecall'),
isArray = require('lodash.isarray'), isArray = require('lodash.isarray');
keys = require('lodash.keys');
/** /**
* The base implementation of `_.every` without support for callback * The base implementation of `_.every` without support for callback
@@ -83,9 +82,9 @@ function baseEvery(collection, predicate) {
function every(collection, predicate, thisArg) { function every(collection, predicate, thisArg) {
var func = isArray(collection) ? arrayEvery : baseEvery; var func = isArray(collection) ? arrayEvery : baseEvery;
if (thisArg && isIterateeCall(collection, predicate, thisArg)) { if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
predicate = null; predicate = undefined;
} }
if (typeof predicate != 'function' || typeof thisArg != 'undefined') { if (typeof predicate != 'function' || thisArg !== undefined) {
predicate = baseCallback(predicate, thisArg, 3); predicate = baseCallback(predicate, thisArg, 3);
} }
return func(collection, predicate); return func(collection, predicate);

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.every", "name": "lodash.every",
"version": "3.2.0", "version": "3.2.3",
"description": "The modern build of lodashs `_.every` as a module.", "description": "The modern build of lodashs `_.every` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,7 +1,17 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright jQuery Foundation and other contributors <https://jquery.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash
The following license applies to all parts of this software except as
documented below:
====
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including "Software"), to deal in the Software without restriction, including
@@ -20,3 +30,18 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
====
Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.
CC0: http://creativecommons.org/publicdomain/zero/1.0/
====
Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.

View File

@@ -1,20 +1,18 @@
# lodash.fill v3.2.0 # lodash.fill v3.3.7
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.fill` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [lodash](https://lodash.com/) method `_.fill` exported as a [Node.js](https://nodejs.org/) module.
## Installation ## Installation
Using npm: Using npm:
```bash ```bash
$ {sudo -H} npm i -g npm $ {sudo -H} npm i -g npm
$ npm i --save lodash.fill $ npm i --save lodash.fill
``` ```
In Node.js/io.js: In Node.js:
```js ```js
var fill = require('lodash.fill'); var fill = require('lodash.fill');
``` ```
See the [documentation](https://lodash.com/docs#fill) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.fill) for more details. See the [documentation](https://lodash.com/docs#fill) or [package source](https://github.com/lodash/lodash/blob/3.3.7-npm-packages/lodash.fill) for more details.

View File

@@ -1,12 +1,87 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> * Released under MIT license <https://lodash.com/license>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Available under MIT license <https://lodash.com/license> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/ */
var isIterateeCall = require('lodash._isiterateecall');
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
MAX_SAFE_INTEGER = 9007199254740991,
MAX_INTEGER = 1.7976931348623157e+308,
NAN = 0 / 0;
/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295;
/** `Object#toString` result references. */
var funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
symbolTag = '[object Symbol]';
/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;
/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;
/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;
/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;
/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
/**
* The base implementation of `_.property` without support for deep paths.
*
* @private
* @param {string} key The key of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function baseProperty(key) {
return function(object) {
return object == null ? undefined : object[key];
};
}
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/**
* The base implementation of `_.clamp` which doesn't coerce arguments.
*
* @private
* @param {number} number The number to clamp.
* @param {number} [lower] The lower bound.
* @param {number} upper The upper bound.
* @returns {number} Returns the clamped number.
*/
function baseClamp(number, lower, upper) {
if (number === number) {
if (upper !== undefined) {
number = number <= upper ? number : upper;
}
if (lower !== undefined) {
number = number >= lower ? number : lower;
}
}
return number;
}
/** /**
* The base implementation of `_.fill` without an iteratee call guard. * The base implementation of `_.fill` without an iteratee call guard.
@@ -21,23 +96,73 @@ var isIterateeCall = require('lodash._isiterateecall');
function baseFill(array, value, start, end) { function baseFill(array, value, start, end) {
var length = array.length; var length = array.length;
start = start == null ? 0 : (+start || 0); start = toInteger(start);
if (start < 0) { if (start < 0) {
start = -start > length ? 0 : (length + start); start = -start > length ? 0 : (length + start);
} }
end = (typeof end == 'undefined' || end > length) ? length : (+end || 0); end = (end === undefined || end > length) ? length : toInteger(end);
if (end < 0) { if (end < 0) {
end += length; end += length;
} }
length = start > end ? 0 : end >>> 0; end = start > end ? 0 : toLength(end);
start >>>= 0; while (start < end) {
while (start < length) {
array[start++] = value; array[start++] = value;
} }
return array; return array;
} }
/**
* Gets the "length" property value of `object`.
*
* **Note:** This function is used to avoid a
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
* Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
* @returns {*} Returns the "length" value.
*/
var getLength = baseProperty('length');
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
length = length == null ? MAX_SAFE_INTEGER : length;
return !!length &&
(typeof value == 'number' || reIsUint.test(value)) &&
(value > -1 && value % 1 == 0 && value < length);
}
/**
* Checks if the given arguments are from an iteratee call.
*
* @private
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
* else `false`.
*/
function isIterateeCall(value, index, object) {
if (!isObject(object)) {
return false;
}
var type = typeof index;
if (type == 'number'
? (isArrayLike(object) && isIndex(index, object.length))
: (type == 'string' && index in object)
) {
return eq(object[index], value);
}
return false;
}
/** /**
* Fills elements of `array` with `value` from `start` up to, but not * Fills elements of `array` with `value` from `start` up to, but not
* including, `end`. * including, `end`.
@@ -46,12 +171,26 @@ function baseFill(array, value, start, end) {
* *
* @static * @static
* @memberOf _ * @memberOf _
* @since 3.2.0
* @category Array * @category Array
* @param {Array} array The array to fill. * @param {Array} array The array to fill.
* @param {*} value The value to fill `array` with. * @param {*} value The value to fill `array` with.
* @param {number} [start=0] The start position. * @param {number} [start=0] The start position.
* @param {number} [end=array.length] The end position. * @param {number} [end=array.length] The end position.
* @returns {Array} Returns `array`. * @returns {Array} Returns `array`.
* @example
*
* var array = [1, 2, 3];
*
* _.fill(array, 'a');
* console.log(array);
* // => ['a', 'a', 'a']
*
* _.fill(Array(3), 2);
* // => [2, 2, 2]
*
* _.fill([4, 6, 8, 10], '*', 1, 3);
* // => [4, '*', '*', 10]
*/ */
function fill(array, value, start, end) { function fill(array, value, start, end) {
var length = array ? array.length : 0; var length = array ? array.length : 0;
@@ -65,4 +204,349 @@ function fill(array, value, start, end) {
return baseFill(array, value, start, end); return baseFill(array, value, start, end);
} }
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || (value !== value && other !== other);
}
/**
* Checks if `value` is array-like. A value is considered array-like if it's
* not a function and has a `value.length` that's an integer greater than or
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
* @example
*
* _.isArrayLike([1, 2, 3]);
* // => true
*
* _.isArrayLike(document.body.children);
* // => true
*
* _.isArrayLike('abc');
* // => true
*
* _.isArrayLike(_.noop);
* // => false
*/
function isArrayLike(value) {
return value != null && isLength(getLength(value)) && !isFunction(value);
}
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 8 which returns 'object' for typed array and weak map constructors,
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This function is loosely based on
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a valid length,
* else `false`.
* @example
*
* _.isLength(3);
* // => true
*
* _.isLength(Number.MIN_VALUE);
* // => false
*
* _.isLength(Infinity);
* // => false
*
* _.isLength('3');
* // => false
*/
function isLength(value) {
return typeof value == 'number' &&
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
}
/**
* Converts `value` to a finite number.
*
* @static
* @memberOf _
* @since 4.12.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted number.
* @example
*
* _.toFinite(3.2);
* // => 3.2
*
* _.toFinite(Number.MIN_VALUE);
* // => 5e-324
*
* _.toFinite(Infinity);
* // => 1.7976931348623157e+308
*
* _.toFinite('3.2');
* // => 3.2
*/
function toFinite(value) {
if (!value) {
return value === 0 ? value : 0;
}
value = toNumber(value);
if (value === INFINITY || value === -INFINITY) {
var sign = (value < 0 ? -1 : 1);
return sign * MAX_INTEGER;
}
return value === value ? value : 0;
}
/**
* Converts `value` to an integer.
*
* **Note:** This method is loosely based on
* [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
* @example
*
* _.toInteger(3.2);
* // => 3
*
* _.toInteger(Number.MIN_VALUE);
* // => 0
*
* _.toInteger(Infinity);
* // => 1.7976931348623157e+308
*
* _.toInteger('3.2');
* // => 3
*/
function toInteger(value) {
var result = toFinite(value),
remainder = result % 1;
return result === result ? (remainder ? result - remainder : result) : 0;
}
/**
* Converts `value` to an integer suitable for use as the length of an
* array-like object.
*
* **Note:** This method is based on
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
* @example
*
* _.toLength(3.2);
* // => 3
*
* _.toLength(Number.MIN_VALUE);
* // => 0
*
* _.toLength(Infinity);
* // => 4294967295
*
* _.toLength('3.2');
* // => 3
*/
function toLength(value) {
return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
}
/**
* Converts `value` to a number.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
* @example
*
* _.toNumber(3.2);
* // => 3.2
*
* _.toNumber(Number.MIN_VALUE);
* // => 5e-324
*
* _.toNumber(Infinity);
* // => Infinity
*
* _.toNumber('3.2');
* // => 3.2
*/
function toNumber(value) {
if (typeof value == 'number') {
return value;
}
if (isSymbol(value)) {
return NAN;
}
if (isObject(value)) {
var other = isFunction(value.valueOf) ? value.valueOf() : value;
value = isObject(other) ? (other + '') : other;
}
if (typeof value != 'string') {
return value === 0 ? value : +value;
}
value = value.replace(reTrim, '');
var isBinary = reIsBinary.test(value);
return (isBinary || reIsOctal.test(value))
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
: (reIsBadHex.test(value) ? NAN : +value);
}
module.exports = fill; module.exports = fill;

View File

@@ -1,22 +1,17 @@
{ {
"name": "lodash.fill", "name": "lodash.fill",
"version": "3.2.0", "version": "3.3.7",
"description": "The modern build of lodashs `_.fill` as a module.", "description": "The lodash method `_.fill` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"license": "MIT", "license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util", "keywords": "lodash-modularized, fill",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [ "contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
], ],
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
"dependencies": {
"lodash._isiterateecall": "^3.0.0"
}
} }

View File

@@ -1,4 +1,4 @@
# lodash.find v3.2.0 # lodash.find v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.find` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.find` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var find = require('lodash.find'); var find = require('lodash.find');
``` ```
See the [documentation](https://lodash.com/docs#find) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.find) for more details. See the [documentation](https://lodash.com/docs#find) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.find) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -10,8 +10,7 @@ var baseCallback = require('lodash._basecallback'),
baseEach = require('lodash._baseeach'), baseEach = require('lodash._baseeach'),
baseFind = require('lodash._basefind'), baseFind = require('lodash._basefind'),
baseFindIndex = require('lodash._basefindindex'), baseFindIndex = require('lodash._basefindindex'),
isArray = require('lodash.isarray'), isArray = require('lodash.isarray');
keys = require('lodash.keys');
/** /**
* Creates a `_.find` or `_.findLast` function. * Creates a `_.find` or `_.findLast` function.

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.find", "name": "lodash.find",
"version": "3.2.0", "version": "3.2.1",
"description": "The modern build of lodashs `_.find` as a module.", "description": "The modern build of lodashs `_.find` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,4 +1,4 @@
# lodash.findindex v3.2.0 # lodash.findindex v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.findIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.findIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var findIndex = require('lodash.findindex'); var findIndex = require('lodash.findindex');
``` ```
See the [documentation](https://lodash.com/docs#findIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.findindex) for more details. See the [documentation](https://lodash.com/docs#findIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.findindex) for more details.

View File

@@ -1,14 +1,13 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var baseCallback = require('lodash._basecallback'), var baseCallback = require('lodash._basecallback'),
baseFindIndex = require('lodash._basefindindex'), baseFindIndex = require('lodash._basefindindex');
isArray = require('lodash.isarray');
/** /**
* Creates a `_.findIndex` or `_.findLastIndex` function. * Creates a `_.findIndex` or `_.findLastIndex` function.

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.findindex", "name": "lodash.findindex",
"version": "3.2.0", "version": "3.2.1",
"description": "The modern build of lodashs `_.findIndex` as a module.", "description": "The modern build of lodashs `_.findIndex` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,4 +1,4 @@
# lodash.findlast v3.2.0 # lodash.findlast v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.findLast` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.findLast` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var findLast = require('lodash.findlast'); var findLast = require('lodash.findlast');
``` ```
See the [documentation](https://lodash.com/docs#findLast) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.findlast) for more details. See the [documentation](https://lodash.com/docs#findLast) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.findlast) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -10,8 +10,7 @@ var baseCallback = require('lodash._basecallback'),
baseEachRight = require('lodash._baseeachright'), baseEachRight = require('lodash._baseeachright'),
baseFind = require('lodash._basefind'), baseFind = require('lodash._basefind'),
baseFindIndex = require('lodash._basefindindex'), baseFindIndex = require('lodash._basefindindex'),
isArray = require('lodash.isarray'), isArray = require('lodash.isarray');
keys = require('lodash.keys');
/** /**
* Creates a `_.find` or `_.findLast` function. * Creates a `_.find` or `_.findLast` function.

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.findlast", "name": "lodash.findlast",
"version": "3.2.0", "version": "3.2.1",
"description": "The modern build of lodashs `_.findLast` as a module.", "description": "The modern build of lodashs `_.findLast` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,4 +1,4 @@
# lodash.findlastindex v3.2.0 # lodash.findlastindex v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.findLastIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.findLastIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var findLastIndex = require('lodash.findlastindex'); var findLastIndex = require('lodash.findlastindex');
``` ```
See the [documentation](https://lodash.com/docs#findLastIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.findlastindex) for more details. See the [documentation](https://lodash.com/docs#findLastIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.findlastindex) for more details.

View File

@@ -1,14 +1,13 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var baseCallback = require('lodash._basecallback'), var baseCallback = require('lodash._basecallback'),
baseFindIndex = require('lodash._basefindindex'), baseFindIndex = require('lodash._basefindindex');
isArray = require('lodash.isarray');
/** /**
* Creates a `_.findIndex` or `_.findLastIndex` function. * Creates a `_.findIndex` or `_.findLastIndex` function.

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.findlastindex", "name": "lodash.findlastindex",
"version": "3.2.0", "version": "3.2.1",
"description": "The modern build of lodashs `_.findLastIndex` as a module.", "description": "The modern build of lodashs `_.findLastIndex` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,7 +1,17 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright jQuery Foundation and other contributors <https://jquery.org/>
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash
The following license applies to all parts of this software except as
documented below:
====
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including "Software"), to deal in the Software without restriction, including
@@ -20,3 +30,18 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
====
Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.
CC0: http://creativecommons.org/publicdomain/zero/1.0/
====
Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.

View File

@@ -1,20 +1,18 @@
# lodash.flow v3.2.0 # lodash.flow v3.3.0
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.flow` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [lodash](https://lodash.com/) method `_.flow` exported as a [Node.js](https://nodejs.org/) module.
## Installation ## Installation
Using npm: Using npm:
```bash ```bash
$ {sudo -H} npm i -g npm $ {sudo -H} npm i -g npm
$ npm i --save lodash.flow $ npm i --save lodash.flow
``` ```
In Node.js/io.js: In Node.js:
```js ```js
var flow = require('lodash.flow'); var flow = require('lodash.flow');
``` ```
See the [documentation](https://lodash.com/docs#flow) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.flow) for more details. See the [documentation](https://lodash.com/docs#flow) or [package source](https://github.com/lodash/lodash/blob/3.3.0-npm-packages/lodash.flow) for more details.

View File

@@ -1,11 +1,13 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Released under MIT license <https://lodash.com/license>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Available under MIT license <https://lodash.com/license> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/ */
var baseFlatten = require('lodash._baseflatten'),
rest = require('lodash.rest');
/** Used as the `TypeError` message for "Functions" methods. */ /** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function'; var FUNC_ERROR_TEXT = 'Expected a function';
@@ -18,43 +20,44 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* @returns {Function} Returns the new flow function. * @returns {Function} Returns the new flow function.
*/ */
function createFlow(fromRight) { function createFlow(fromRight) {
return function() { return rest(function(funcs) {
var length = arguments.length; funcs = baseFlatten(funcs, 1);
if (!length) {
return function() { return arguments[0]; };
}
var index = fromRight ? length : -1,
leftIndex = 0,
funcs = Array(length);
while ((fromRight ? index-- : ++index < length)) { var length = funcs.length,
var func = funcs[leftIndex++] = arguments[index]; index = length;
if (typeof func != 'function') {
if (fromRight) {
funcs.reverse();
}
while (index--) {
if (typeof funcs[index] != 'function') {
throw new TypeError(FUNC_ERROR_TEXT); throw new TypeError(FUNC_ERROR_TEXT);
} }
} }
return function() { return function() {
var index = 0, var index = 0,
result = funcs[index].apply(this, arguments); result = length ? funcs[index].apply(this, arguments) : arguments[0];
while (++index < length) { while (++index < length) {
result = funcs[index].call(this, result); result = funcs[index].call(this, result);
} }
return result; return result;
}; };
}; });
} }
/** /**
* Creates a function that returns the result of invoking the provided * Creates a function that returns the result of invoking the given functions
* functions with the `this` binding of the created function, where each * with the `this` binding of the created function, where each successive
* successive invocation is supplied the return value of the previous. * invocation is supplied the return value of the previous.
* *
* @static * @static
* @memberOf _ * @memberOf _
* @category Function * @since 3.0.0
* @param {...Function} [funcs] Functions to invoke. * @category Util
* @returns {Function} Returns the new function. * @param {...(Function|Function[])} [funcs] Functions to invoke.
* @returns {Function} Returns the new composite function.
* @see _.flowRight
* @example * @example
* *
* function square(n) { * function square(n) {

View File

@@ -1,19 +1,21 @@
{ {
"name": "lodash.flow", "name": "lodash.flow",
"version": "3.2.0", "version": "3.3.0",
"description": "The modern build of lodashs `_.flow` as a module.", "description": "The lodash method `_.flow` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"license": "MIT", "license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util", "keywords": "lodash-modularized, flow",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [ "contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
], ],
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": {
"lodash._baseflatten": "~4.2.0",
"lodash.rest": "^4.0.0"
}
} }

View File

@@ -1,7 +1,17 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright jQuery Foundation and other contributors <https://jquery.org/>
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash
The following license applies to all parts of this software except as
documented below:
====
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including "Software"), to deal in the Software without restriction, including
@@ -20,3 +30,18 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
====
Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.
CC0: http://creativecommons.org/publicdomain/zero/1.0/
====
Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.

View File

@@ -1,20 +1,18 @@
# lodash.flowright v3.2.0 # lodash.flowright v3.3.0
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.flowRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [lodash](https://lodash.com/) method `_.flowRight` exported as a [Node.js](https://nodejs.org/) module.
## Installation ## Installation
Using npm: Using npm:
```bash ```bash
$ {sudo -H} npm i -g npm $ {sudo -H} npm i -g npm
$ npm i --save lodash.flowright $ npm i --save lodash.flowright
``` ```
In Node.js/io.js: In Node.js:
```js ```js
var flowRight = require('lodash.flowright'); var flowRight = require('lodash.flowright');
``` ```
See the [documentation](https://lodash.com/docs#flowRight) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.flowright) for more details. See the [documentation](https://lodash.com/docs#flowRight) or [package source](https://github.com/lodash/lodash/blob/3.3.0-npm-packages/lodash.flowright) for more details.

View File

@@ -1,11 +1,13 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Released under MIT license <https://lodash.com/license>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Available under MIT license <https://lodash.com/license> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/ */
var baseFlatten = require('lodash._baseflatten'),
rest = require('lodash.rest');
/** Used as the `TypeError` message for "Functions" methods. */ /** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function'; var FUNC_ERROR_TEXT = 'Expected a function';
@@ -18,43 +20,43 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* @returns {Function} Returns the new flow function. * @returns {Function} Returns the new flow function.
*/ */
function createFlow(fromRight) { function createFlow(fromRight) {
return function() { return rest(function(funcs) {
var length = arguments.length; funcs = baseFlatten(funcs, 1);
if (!length) {
return function() { return arguments[0]; };
}
var index = fromRight ? length : -1,
leftIndex = 0,
funcs = Array(length);
while ((fromRight ? index-- : ++index < length)) { var length = funcs.length,
var func = funcs[leftIndex++] = arguments[index]; index = length;
if (typeof func != 'function') {
if (fromRight) {
funcs.reverse();
}
while (index--) {
if (typeof funcs[index] != 'function') {
throw new TypeError(FUNC_ERROR_TEXT); throw new TypeError(FUNC_ERROR_TEXT);
} }
} }
return function() { return function() {
var index = 0, var index = 0,
result = funcs[index].apply(this, arguments); result = length ? funcs[index].apply(this, arguments) : arguments[0];
while (++index < length) { while (++index < length) {
result = funcs[index].call(this, result); result = funcs[index].call(this, result);
} }
return result; return result;
}; };
}; });
} }
/** /**
* This method is like `_.flow` except that it creates a function that * This method is like `_.flow` except that it creates a function that
* invokes the provided functions from right to left. * invokes the given functions from right to left.
* *
* @static * @static
* @since 3.0.0
* @memberOf _ * @memberOf _
* @alias backflow, compose * @category Util
* @category Function * @param {...(Function|Function[])} [funcs] Functions to invoke.
* @param {...Function} [funcs] Functions to invoke. * @returns {Function} Returns the new composite function.
* @returns {Function} Returns the new function. * @see _.flow
* @example * @example
* *
* function square(n) { * function square(n) {

View File

@@ -1,19 +1,21 @@
{ {
"name": "lodash.flowright", "name": "lodash.flowright",
"version": "3.2.0", "version": "3.3.0",
"description": "The modern build of lodashs `_.flowRight` as a module.", "description": "The lodash method `_.flowRight` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"license": "MIT", "license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util", "keywords": "lodash-modularized, flowright",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [ "contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
], ],
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": {
"lodash._baseflatten": "~4.2.0",
"lodash.rest": "^4.0.0"
}
} }

View File

@@ -1,4 +1,4 @@
# lodash.has v3.2.0 # lodash.has v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.has` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.has` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var has = require('lodash.has'); var has = require('lodash.has');
``` ```
See the [documentation](https://lodash.com/docs#has) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.has) for more details. See the [documentation](https://lodash.com/docs#has) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.has) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -16,6 +16,9 @@ var baseGet = require('lodash._baseget'),
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/, var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/; reIsPlainProp = /^\w*$/;
/** Used to detect unsigned integer values. */
var reIsUint = /^\d+$/;
/** Used for native method references. */ /** Used for native method references. */
var objectProto = Object.prototype; var objectProto = Object.prototype;
@@ -23,7 +26,7 @@ var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty; var hasOwnProperty = objectProto.hasOwnProperty;
/** /**
* 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. * of an array-like value.
*/ */
var MAX_SAFE_INTEGER = 9007199254740991; var MAX_SAFE_INTEGER = 9007199254740991;
@@ -37,7 +40,7 @@ var MAX_SAFE_INTEGER = 9007199254740991;
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/ */
function isIndex(value, length) { function isIndex(value, length) {
value = typeof value == 'number' ? value : parseFloat(value); value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
length = length == null ? MAX_SAFE_INTEGER : length; length = length == null ? MAX_SAFE_INTEGER : length;
return value > -1 && value % 1 == 0 && value < length; return value > -1 && value % 1 == 0 && value < length;
} }
@@ -65,7 +68,7 @@ function isKey(value, object) {
/** /**
* Checks if `value` is a valid array-like 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 * @private
* @param {*} value The value to check. * @param {*} value The value to check.

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.has", "name": "lodash.has",
"version": "3.2.0", "version": "3.2.1",
"description": "The modern build of lodashs `_.has` as a module.", "description": "The modern build of lodashs `_.has` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,7 +1,17 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright jQuery Foundation and other contributors <https://jquery.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash
The following license applies to all parts of this software except as
documented below:
====
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including "Software"), to deal in the Software without restriction, including
@@ -20,3 +30,18 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
====
Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.
CC0: http://creativecommons.org/publicdomain/zero/1.0/
====
Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.

18
lodash.inrange/README.md Normal file
View File

@@ -0,0 +1,18 @@
# lodash.inrange v3.3.6
The [lodash](https://lodash.com/) method `_.inRange` exported as a [Node.js](https://nodejs.org/) module.
## Installation
Using npm:
```bash
$ {sudo -H} npm i -g npm
$ npm i --save lodash.inrange
```
In Node.js:
```js
var inRange = require('lodash.inrange');
```
See the [documentation](https://lodash.com/docs#inRange) or [package source](https://github.com/lodash/lodash/blob/3.3.6-npm-packages/lodash.inrange) for more details.

269
lodash.inrange/index.js Normal file
View File

@@ -0,0 +1,269 @@
/**
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
MAX_INTEGER = 1.7976931348623157e+308,
NAN = 0 / 0;
/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';
/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;
/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
/** Used to detect binary string values. */
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 `root`. */
var freeParseInt = parseInt;
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
nativeMin = Math.min;
/**
* The base implementation of `_.inRange` which doesn't coerce arguments.
*
* @private
* @param {number} number The number to check.
* @param {number} start The start of the range.
* @param {number} end The end of the range.
* @returns {boolean} Returns `true` if `number` is in the range, else `false`.
*/
function baseInRange(number, start, end) {
return number >= nativeMin(start, end) && number < nativeMax(start, end);
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
}
/**
* Converts `value` to a finite number.
*
* @static
* @memberOf _
* @since 4.12.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted number.
* @example
*
* _.toFinite(3.2);
* // => 3.2
*
* _.toFinite(Number.MIN_VALUE);
* // => 5e-324
*
* _.toFinite(Infinity);
* // => 1.7976931348623157e+308
*
* _.toFinite('3.2');
* // => 3.2
*/
function toFinite(value) {
if (!value) {
return value === 0 ? value : 0;
}
value = toNumber(value);
if (value === INFINITY || value === -INFINITY) {
var sign = (value < 0 ? -1 : 1);
return sign * MAX_INTEGER;
}
return value === value ? value : 0;
}
/**
* Converts `value` to a number.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
* @example
*
* _.toNumber(3.2);
* // => 3.2
*
* _.toNumber(Number.MIN_VALUE);
* // => 5e-324
*
* _.toNumber(Infinity);
* // => Infinity
*
* _.toNumber('3.2');
* // => 3.2
*/
function toNumber(value) {
if (typeof value == 'number') {
return value;
}
if (isSymbol(value)) {
return NAN;
}
if (isObject(value)) {
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
value = isObject(other) ? (other + '') : other;
}
if (typeof value != 'string') {
return value === 0 ? value : +value;
}
value = value.replace(reTrim, '');
var isBinary = reIsBinary.test(value);
return (isBinary || reIsOctal.test(value))
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
: (reIsBadHex.test(value) ? NAN : +value);
}
/**
* Checks if `n` is between `start` and up to, but not including, `end`. If
* `end` is not specified, it's set to `start` with `start` then set to `0`.
* If `start` is greater than `end` the params are swapped to support
* negative ranges.
*
* @static
* @memberOf _
* @since 3.3.0
* @category Number
* @param {number} number The number to check.
* @param {number} [start=0] The start of the range.
* @param {number} end The end of the range.
* @returns {boolean} Returns `true` if `number` is in the range, else `false`.
* @see _.range, _.rangeRight
* @example
*
* _.inRange(3, 2, 4);
* // => true
*
* _.inRange(4, 8);
* // => true
*
* _.inRange(4, 2);
* // => false
*
* _.inRange(2, 2);
* // => false
*
* _.inRange(1.2, 2);
* // => true
*
* _.inRange(5.2, 4);
* // => false
*
* _.inRange(-3, -2, -6);
* // => true
*/
function inRange(number, start, end) {
start = toFinite(start);
if (end === undefined) {
end = start;
start = 0;
} else {
end = toFinite(end);
}
number = toNumber(number);
return baseInRange(number, start, end);
}
module.exports = inRange;

View File

@@ -0,0 +1,17 @@
{
"name": "lodash.inrange",
"version": "3.3.6",
"description": "The lodash method `_.inRange` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
"keywords": "lodash-modularized, inrange",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
],
"repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
}

View File

@@ -1,4 +1,4 @@
# lodash.invoke v3.2.0 # lodash.invoke v3.2.3
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.invoke` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.invoke` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var invoke = require('lodash.invoke'); var invoke = require('lodash.invoke');
``` ```
See the [documentation](https://lodash.com/docs#invoke) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.invoke) for more details. See the [documentation](https://lodash.com/docs#invoke) or [package source](https://github.com/lodash/lodash/blob/3.2.3-npm-packages/lodash.invoke) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -12,14 +12,14 @@ var baseEach = require('lodash._baseeach'),
restParam = require('lodash.restparam'); restParam = require('lodash.restparam');
/** Used to match property names within property paths. */ /** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]+|(["'])(?:(?!\1)[^\n\\]|\\.)*?)\1\]/, var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/; reIsPlainProp = /^\w*$/;
/** /**
* 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. * 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. * The base implementation of `_.property` without support for deep paths.
@@ -38,7 +38,7 @@ function baseProperty(key) {
* Gets the "length" property value of `object`. * Gets the "length" property value of `object`.
* *
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
* in Safari on iOS 8.1 ARM64. * that affects Safari on at least iOS 8.1-8.3 ARM64.
* *
* @private * @private
* @param {Object} object The object to query. * @param {Object} object The object to query.
@@ -46,6 +46,17 @@ function baseProperty(key) {
*/ */
var getLength = baseProperty('length'); var getLength = baseProperty('length');
/**
* Checks if `value` is array-like.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
*/
function isArrayLike(value) {
return value != null && isLength(getLength(value));
}
/** /**
* Checks if `value` is a property name and not a property path. * Checks if `value` is a property name and not a property path.
* *
@@ -69,7 +80,7 @@ function isKey(value, object) {
/** /**
* Checks if `value` is a valid array-like 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 * @private
* @param {*} value The value to check. * @param {*} value The value to check.
@@ -80,7 +91,7 @@ function isLength(value) {
} }
/** /**
* Converts `value` to an object if it is not one. * Converts `value` to an object if it's not one.
* *
* @private * @private
* @param {*} value The value to process. * @param {*} value The value to process.
@@ -91,9 +102,9 @@ function toObject(value) {
} }
/** /**
* Invokes the method at `path` on each element in `collection`, returning * Invokes the method at `path` of each element in `collection`, returning
* an array of the results of each invoked method. Any additional arguments * an array of the results of each invoked method. Any additional arguments
* are provided to each invoked method. If `methodName` is a function it is * are provided to each invoked method. If `methodName` is a function it's
* invoked for, and `this` bound to, each element in `collection`. * invoked for, and `this` bound to, each element in `collection`.
* *
* @static * @static
@@ -116,11 +127,10 @@ var invoke = restParam(function(collection, path, args) {
var index = -1, var index = -1,
isFunc = typeof path == 'function', isFunc = typeof path == 'function',
isProp = isKey(path), isProp = isKey(path),
length = getLength(collection), result = isArrayLike(collection) ? Array(collection.length) : [];
result = isLength(length) ? Array(length) : [];
baseEach(collection, function(value) { baseEach(collection, function(value) {
var func = isFunc ? path : (isProp && value != null && value[path]); var func = isFunc ? path : ((isProp && value != null) ? value[path] : undefined);
result[++index] = func ? func.apply(value, args) : invokePath(value, path, args); result[++index] = func ? func.apply(value, args) : invokePath(value, path, args);
}); });
return result; return result;
@@ -150,7 +160,7 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20. // Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value; var type = typeof value;
return type == 'function' || (!!value && type == 'object'); return !!value && (type == 'object' || type == 'function');
} }
module.exports = invoke; module.exports = invoke;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.invoke", "name": "lodash.invoke",
"version": "3.2.0", "version": "3.2.3",
"description": "The modern build of lodashs `_.invoke` as a module.", "description": "The modern build of lodashs `_.invoke` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,7 +1,17 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright jQuery Foundation and other contributors <https://jquery.org/>
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
available at https://github.com/lodash/lodash
The following license applies to all parts of this software except as
documented below:
====
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including "Software"), to deal in the Software without restriction, including
@@ -20,3 +30,18 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
====
Copyright and related rights for sample code are waived via CC0. Sample
code is defined as all source code displayed within the prose of the
documentation.
CC0: http://creativecommons.org/publicdomain/zero/1.0/
====
Files located in the node_modules and vendor directories are externally
maintained libraries used by this software which have their own
licenses; we recommend you read them, as their terms may differ from the
terms above.

View File

@@ -1,20 +1,18 @@
# lodash.isfinite v3.2.0 # lodash.isfinite v3.3.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.isFinite` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [lodash](https://lodash.com/) method `_.isFinite` exported as a [Node.js](https://nodejs.org/) module.
## Installation ## Installation
Using npm: Using npm:
```bash ```bash
$ {sudo -H} npm i -g npm $ {sudo -H} npm i -g npm
$ npm i --save lodash.isfinite $ npm i --save lodash.isfinite
``` ```
In Node.js/io.js: In Node.js:
```js ```js
var isFinite = require('lodash.isfinite'); var isFinite = require('lodash.isfinite');
``` ```
See the [documentation](https://lodash.com/docs#isFinite) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.isfinite) for more details. See the [documentation](https://lodash.com/docs#isFinite) or [package source](https://github.com/lodash/lodash/blob/3.3.2-npm-packages/lodash.isfinite) for more details.

View File

@@ -1,22 +1,33 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./` * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license>
*/ */
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/* Built-in method references for those with the same name as other `lodash` methods. */ /* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsFinite = global.isFinite; var nativeIsFinite = root.isFinite;
/** /**
* Checks if `value` is a finite primitive number. * Checks if `value` is a finite primitive number.
* *
* **Note:** This method is based on [`Number.isFinite`](https://mdn.io/Number/isFinite). * **Note:** This method is based on
* [`Number.isFinite`](https://mdn.io/Number/isFinite).
* *
* @static * @static
* @memberOf _ * @memberOf _
* @since 0.1.0
* @category Lang * @category Lang
* @param {*} value The value to check. * @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a finite number, else `false`. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
@@ -25,14 +36,14 @@ var nativeIsFinite = global.isFinite;
* _.isFinite(3); * _.isFinite(3);
* // => true * // => true
* *
* _.isFinite(Number.MAX_VALUE); * _.isFinite(Number.MIN_VALUE);
* // => true
*
* _.isFinite(3.14);
* // => true * // => true
* *
* _.isFinite(Infinity); * _.isFinite(Infinity);
* // => false * // => false
*
* _.isFinite('3');
* // => false
*/ */
function isFinite(value) { function isFinite(value) {
return typeof value == 'number' && nativeIsFinite(value); return typeof value == 'number' && nativeIsFinite(value);

View File

@@ -1,17 +1,15 @@
{ {
"name": "lodash.isfinite", "name": "lodash.isfinite",
"version": "3.2.0", "version": "3.3.2",
"description": "The modern build of lodashs `_.isFinite` as a module.", "description": "The lodash method `_.isFinite` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"license": "MIT", "license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util", "keywords": "lodash-modularized, isfinite",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [ "contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
], ],
"repository": "lodash/lodash", "repository": "lodash/lodash",

View File

@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining

View File

@@ -1,4 +1,4 @@
# lodash.matchesproperty v3.2.0 # lodash.matchesproperty v3.2.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.matchesProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.matchesProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var matchesProperty = require('lodash.matchesproperty'); var matchesProperty = require('lodash.matchesproperty');
``` ```
See the [documentation](https://lodash.com/docs#matchesProperty) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.matchesproperty) for more details. See the [documentation](https://lodash.com/docs#matchesProperty) or [package source](https://github.com/lodash/lodash/blob/3.2.2-npm-packages/lodash.matchesproperty) for more details.

View File

@@ -1,8 +1,8 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
@@ -10,7 +10,7 @@ var baseClone = require('lodash._baseclone'),
baseMatchesProperty = require('lodash._basematchesproperty'); baseMatchesProperty = require('lodash._basematchesproperty');
/** /**
* Creates a function which compares the property value of `key` on a given * Creates a function that compares the property value of `path` on a given
* object to `value`. * object to `value`.
* *
* **Note:** This method supports comparing arrays, booleans, `Date` objects, * **Note:** This method supports comparing arrays, booleans, `Date` objects,
@@ -20,8 +20,8 @@ var baseClone = require('lodash._baseclone'),
* @static * @static
* @memberOf _ * @memberOf _
* @category Utility * @category Utility
* @param {string} key The key of the property to get. * @param {Array|string} path The path of the property to get.
* @param {*} value The value to compare. * @param {*} srcValue The value to match.
* @returns {Function} Returns the new function. * @returns {Function} Returns the new function.
* @example * @example
* *
@@ -33,8 +33,8 @@ var baseClone = require('lodash._baseclone'),
* _.find(users, _.matchesProperty('user', 'fred')); * _.find(users, _.matchesProperty('user', 'fred'));
* // => { 'user': 'fred' } * // => { 'user': 'fred' }
*/ */
function matchesProperty(key, value) { function matchesProperty(path, srcValue) {
return baseMatchesProperty(key + '', baseClone(value, true)); return baseMatchesProperty(path, baseClone(srcValue, true));
} }
module.exports = matchesProperty; module.exports = matchesProperty;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.matchesproperty", "name": "lodash.matchesproperty",
"version": "3.2.0", "version": "3.2.2",
"description": "The modern build of lodashs `_.matchesProperty` as a module.", "description": "The modern build of lodashs `_.matchesProperty` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,4 +1,4 @@
# lodash.max v3.2.0 # lodash.max v3.3.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.max` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.max` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var max = require('lodash.max'); var max = require('lodash.max');
``` ```
See the [documentation](https://lodash.com/docs#max) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.max) for more details. See the [documentation](https://lodash.com/docs#max) or [package source](https://github.com/lodash/lodash/blob/3.3.1-npm-packages/lodash.max) for more details.

View File

@@ -1,85 +1,68 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var arrayMax = require('lodash._arraymax'), var baseCallback = require('lodash._basecallback'),
baseCallback = require('lodash._basecallback'),
baseEach = require('lodash._baseeach'), baseEach = require('lodash._baseeach'),
isIterateeCall = require('lodash._isiterateecall'), isIterateeCall = require('lodash._isiterateecall'),
toIterable = require('lodash._toiterable'), toIterable = require('lodash._toiterable'),
isArray = require('lodash.isarray'), gt = require('lodash.gt');
isString = require('lodash.isstring'),
keys = require('lodash.keys');
/**
* Used by `_.max` and `_.min` as the default callback for string values.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the code unit of the first character of the string.
*/
function charAtCallback(string) {
return string.charCodeAt(0);
}
/** Used as references for `-Infinity` and `Infinity`. */ /** Used as references for `-Infinity` and `Infinity`. */
var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY, var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY;
POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
/** /**
* Creates a `_.max` or `_.min` function. * A specialized version of `baseExtremum` for arrays which invokes `iteratee`
* with one argument: (value).
* *
* @private * @private
* @param {Function} arrayFunc The function to get the extremum value from an array. * @param {Array} array The array to iterate over.
* @param {boolean} [isMin] Specify returning the minimum, instead of the maximum, * @param {Function} iteratee The function invoked per iteration.
* extremum value. * @param {Function} comparator The function used to compare values.
* @returns {Function} Returns the new extremum function. * @param {*} exValue The initial extremum value.
* @returns {*} Returns the extremum value.
*/ */
function createExtremum(arrayFunc, isMin) { function arrayExtremum(array, iteratee, comparator, exValue) {
return function(collection, iteratee, thisArg) { var index = -1,
if (thisArg && isIterateeCall(collection, iteratee, thisArg)) { length = array.length,
iteratee = null; computed = exValue,
} result = computed;
var noIteratee = iteratee == null;
iteratee = noIteratee ? iteratee : baseCallback(iteratee, thisArg, 3); while (++index < length) {
if (noIteratee) { var value = array[index],
var isArr = isArray(collection); current = +iteratee(value);
if (!isArr && isString(collection)) {
iteratee = charAtCallback; if (comparator(current, computed)) {
} else { computed = current;
return arrayFunc(isArr ? collection : toIterable(collection)); result = value;
}
} }
return extremumBy(collection, iteratee, isMin); }
}; return result;
} }
/** /**
* Gets the extremum value of `collection` invoking `iteratee` for each value * Gets the extremum value of `collection` invoking `iteratee` for each value
* in `collection` to generate the criterion by which the value is ranked. * in `collection` to generate the criterion by which the value is ranked.
* The `iteratee` is invoked with three arguments: (value, index, collection). * The `iteratee` is invoked with three arguments: (value, index|key, collection).
* *
* @private * @private
* @param {Array|Object|string} collection The collection to iterate over. * @param {Array|Object|string} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration. * @param {Function} iteratee The function invoked per iteration.
* @param {boolean} [isMin] Specify returning the minimum, instead of the * @param {Function} comparator The function used to compare values.
* maximum, extremum value. * @param {*} exValue The initial extremum value.
* @returns {*} Returns the extremum value. * @returns {*} Returns the extremum value.
*/ */
function extremumBy(collection, iteratee, isMin) { function baseExtremum(collection, iteratee, comparator, exValue) {
var exValue = isMin ? POSITIVE_INFINITY : NEGATIVE_INFINITY, var computed = exValue,
computed = exValue,
result = computed; result = computed;
baseEach(collection, function(value, index, collection) { baseEach(collection, function(value, index, collection) {
var current = iteratee(value, index, collection); var current = +iteratee(value, index, collection);
if ((isMin ? (current < computed) : (current > computed)) || if (comparator(current, computed) || (current === exValue && current === result)) {
(current === exValue && current === result)) {
computed = current; computed = current;
result = value; result = value;
} }
@@ -87,6 +70,31 @@ function extremumBy(collection, iteratee, isMin) {
return result; return result;
} }
/**
* Creates a `_.max` or `_.min` function.
*
* @private
* @param {Function} comparator The function used to compare values.
* @param {*} exValue The initial extremum value.
* @returns {Function} Returns the new extremum function.
*/
function createExtremum(comparator, exValue) {
return function(collection, iteratee, thisArg) {
if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
iteratee = null;
}
iteratee = baseCallback(iteratee, thisArg, 3);
if (iteratee.length == 1) {
collection = toIterable(collection);
var result = arrayExtremum(collection, iteratee, comparator, exValue);
if (!(collection.length && result === exValue)) {
return result;
}
}
return baseExtremum(collection, iteratee, comparator, exValue);
};
}
/** /**
* Gets the maximum value of `collection`. If `collection` is empty or falsey * Gets the maximum value of `collection`. If `collection` is empty or falsey
* `-Infinity` is returned. If an iteratee function is provided it is invoked * `-Infinity` is returned. If an iteratee function is provided it is invoked
@@ -134,6 +142,6 @@ function extremumBy(collection, iteratee, isMin) {
* _.max(users, 'age'); * _.max(users, 'age');
* // => { 'user': 'fred', 'age': 40 } * // => { 'user': 'fred', 'age': 40 }
*/ */
var max = createExtremum(arrayMax); var max = createExtremum(gt, NEGATIVE_INFINITY);
module.exports = max; module.exports = max;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.max", "name": "lodash.max",
"version": "3.2.0", "version": "3.3.1",
"description": "The modern build of lodashs `_.max` as a module.", "description": "The modern build of lodashs `_.max` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -17,13 +17,11 @@
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": { "dependencies": {
"lodash._arraymax": "^3.0.0",
"lodash._basecallback": "^3.0.0", "lodash._basecallback": "^3.0.0",
"lodash._baseeach": "^3.0.0", "lodash._baseeach": "^3.0.0",
"lodash._isiterateecall": "^3.0.0", "lodash._isiterateecall": "^3.0.0",
"lodash._toiterable": "^3.0.0", "lodash._toiterable": "^3.0.0",
"lodash.isarray": "^3.0.0", "lodash.gt": "^3.0.0",
"lodash.isstring": "^3.0.0",
"lodash.keys": "^3.0.0" "lodash.keys": "^3.0.0"
} }
} }

View File

@@ -1,4 +1,4 @@
# lodash.merge v3.2.0 # lodash.merge v3.3.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.merge` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.merge` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var merge = require('lodash.merge'); var merge = require('lodash.merge');
``` ```
See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.merge) for more details. See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.3.2-npm-packages/lodash.merge) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -11,11 +11,9 @@ var arrayCopy = require('lodash._arraycopy'),
createAssigner = require('lodash._createassigner'), createAssigner = require('lodash._createassigner'),
isArguments = require('lodash.isarguments'), isArguments = require('lodash.isarguments'),
isArray = require('lodash.isarray'), isArray = require('lodash.isarray'),
isNative = require('lodash.isnative'),
isPlainObject = require('lodash.isplainobject'), isPlainObject = require('lodash.isplainobject'),
isTypedArray = require('lodash.istypedarray'), isTypedArray = require('lodash.istypedarray'),
keys = require('lodash.keys'), keys = require('lodash.keys'),
keysIn = require('lodash.keysin'),
toPlainObject = require('lodash.toplainobject'); toPlainObject = require('lodash.toplainobject');
/** /**
@@ -29,18 +27,11 @@ function isObjectLike(value) {
return !!value && typeof value == 'object'; return !!value && typeof value == 'object';
} }
/** Used for native method references. */
var arrayProto = Array.prototype;
/** Native method references. */
var getOwnPropertySymbols = isNative(getOwnPropertySymbols = Object.getOwnPropertySymbols) && getOwnPropertySymbols,
push = arrayProto.push;
/** /**
* 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. * of an array-like value.
*/ */
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; var MAX_SAFE_INTEGER = 9007199254740991;
/** /**
* The base implementation of `_.merge` without support for argument juggling, * The base implementation of `_.merge` without support for argument juggling,
@@ -49,7 +40,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
* @private * @private
* @param {Object} object The destination object. * @param {Object} object The destination object.
* @param {Object} source The source object. * @param {Object} source The source object.
* @param {Function} [customizer] The function to customize merging properties. * @param {Function} [customizer] The function to customize merged values.
* @param {Array} [stackA=[]] Tracks traversed source objects. * @param {Array} [stackA=[]] Tracks traversed source objects.
* @param {Array} [stackB=[]] Associates values with source counterparts. * @param {Array} [stackB=[]] Associates values with source counterparts.
* @returns {Object} Returns `object`. * @returns {Object} Returns `object`.
@@ -58,11 +49,9 @@ function baseMerge(object, source, customizer, stackA, stackB) {
if (!isObject(object)) { if (!isObject(object)) {
return object; return object;
} }
var isSrcArr = isLength(source.length) && (isArray(source) || isTypedArray(source)); var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source)),
if (!isSrcArr) { props = isSrcArr ? undefined : keys(source);
var props = keys(source);
push.apply(props, getSymbols(source));
}
arrayEach(props || source, function(srcValue, key) { arrayEach(props || source, function(srcValue, key) {
if (props) { if (props) {
key = srcValue; key = srcValue;
@@ -81,7 +70,7 @@ function baseMerge(object, source, customizer, stackA, stackB) {
if (isCommon) { if (isCommon) {
result = srcValue; result = srcValue;
} }
if ((isSrcArr || result !== undefined) && if ((result !== undefined || (isSrcArr && !(key in object))) &&
(isCommon || (result === result ? (result !== value) : (value === value)))) { (isCommon || (result === result ? (result !== value) : (value === value)))) {
object[key] = result; object[key] = result;
} }
@@ -100,7 +89,7 @@ function baseMerge(object, source, customizer, stackA, stackB) {
* @param {Object} source The source object. * @param {Object} source The source object.
* @param {string} key The key of the value to merge. * @param {string} key The key of the value to merge.
* @param {Function} mergeFunc The function to merge values. * @param {Function} mergeFunc The function to merge values.
* @param {Function} [customizer] The function to customize merging properties. * @param {Function} [customizer] The function to customize merged values.
* @param {Array} [stackA=[]] Tracks traversed source objects. * @param {Array} [stackA=[]] Tracks traversed source objects.
* @param {Array} [stackB=[]] Associates values with source counterparts. * @param {Array} [stackB=[]] Associates values with source counterparts.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
@@ -121,10 +110,10 @@ function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stack
if (isCommon) { if (isCommon) {
result = srcValue; result = srcValue;
if (isLength(srcValue.length) && (isArray(srcValue) || isTypedArray(srcValue))) { if (isArrayLike(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) {
result = isArray(value) result = isArray(value)
? value ? value
: (getLength(value) ? arrayCopy(value) : []); : (isArrayLike(value) ? arrayCopy(value) : []);
} }
else if (isPlainObject(srcValue) || isArguments(srcValue)) { else if (isPlainObject(srcValue) || isArguments(srcValue)) {
result = isArguments(value) result = isArguments(value)
@@ -165,7 +154,7 @@ function baseProperty(key) {
* Gets the "length" property value of `object`. * Gets the "length" property value of `object`.
* *
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
* in Safari on iOS 8.1 ARM64. * that affects Safari on at least iOS 8.1-8.3 ARM64.
* *
* @private * @private
* @param {Object} object The object to query. * @param {Object} object The object to query.
@@ -174,20 +163,20 @@ function baseProperty(key) {
var getLength = baseProperty('length'); var getLength = baseProperty('length');
/** /**
* Creates an array of the own symbols of `object`. * Checks if `value` is array-like.
* *
* @private * @private
* @param {Object} object The object to query. * @param {*} value The value to check.
* @returns {Array} Returns the array of symbols. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
*/ */
var getSymbols = !getOwnPropertySymbols ? constant([]) : function(object) { function isArrayLike(value) {
return getOwnPropertySymbols(toObject(object)); return value != null && isLength(getLength(value));
}; }
/** /**
* Checks if `value` is a valid array-like 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 * @private
* @param {*} value The value to check. * @param {*} value The value to check.
@@ -197,17 +186,6 @@ 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;
} }
/**
* Converts `value` to an object if it is not one.
*
* @private
* @param {*} value The value to process.
* @returns {Object} Returns the object.
*/
function toObject(value) {
return isObject(value) ? value : Object(value);
}
/** /**
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
@@ -232,14 +210,14 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20. // Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value; var type = typeof value;
return type == 'function' || (!!value && type == 'object'); return !!value && (type == 'object' || type == 'function');
} }
/** /**
* Recursively merges own enumerable properties of the source object(s), that * Recursively merges own enumerable properties of the source object(s), that
* don't resolve to `undefined` into the destination object. Subsequent sources * don't resolve to `undefined` into the destination object. Subsequent sources
* overwrite property assignments of previous sources. If `customizer` is * overwrite property assignments of previous sources. If `customizer` is
* provided it is invoked to produce the merged values of the destination and * provided it's invoked to produce the merged values of the destination and
* source properties. If `customizer` returns `undefined` merging is handled * source properties. If `customizer` returns `undefined` merging is handled
* by the method instead. The `customizer` is bound to `thisArg` and invoked * by the method instead. The `customizer` is bound to `thisArg` and invoked
* with five arguments: (objectValue, sourceValue, key, object, source). * with five arguments: (objectValue, sourceValue, key, object, source).
@@ -285,26 +263,4 @@ function isObject(value) {
*/ */
var merge = createAssigner(baseMerge); var merge = createAssigner(baseMerge);
/**
* 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;
};
}
module.exports = merge; module.exports = merge;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.merge", "name": "lodash.merge",
"version": "3.2.0", "version": "3.3.2",
"description": "The modern build of lodashs `_.merge` as a module.", "description": "The modern build of lodashs `_.merge` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -20,9 +20,9 @@
"lodash._arraycopy": "^3.0.0", "lodash._arraycopy": "^3.0.0",
"lodash._arrayeach": "^3.0.0", "lodash._arrayeach": "^3.0.0",
"lodash._createassigner": "^3.0.0", "lodash._createassigner": "^3.0.0",
"lodash._getnative": "^3.0.0",
"lodash.isarguments": "^3.0.0", "lodash.isarguments": "^3.0.0",
"lodash.isarray": "^3.0.0", "lodash.isarray": "^3.0.0",
"lodash.isnative": "^3.0.0",
"lodash.isplainobject": "^3.0.0", "lodash.isplainobject": "^3.0.0",
"lodash.istypedarray": "^3.0.0", "lodash.istypedarray": "^3.0.0",
"lodash.keys": "^3.0.0", "lodash.keys": "^3.0.0",

View File

@@ -1,4 +1,4 @@
# lodash.min v3.2.0 # lodash.min v3.3.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.min` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.min` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var min = require('lodash.min'); var min = require('lodash.min');
``` ```
See the [documentation](https://lodash.com/docs#min) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.min) for more details. See the [documentation](https://lodash.com/docs#min) or [package source](https://github.com/lodash/lodash/blob/3.3.1-npm-packages/lodash.min) for more details.

View File

@@ -1,85 +1,68 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var arrayMin = require('lodash._arraymin'), var baseCallback = require('lodash._basecallback'),
baseCallback = require('lodash._basecallback'),
baseEach = require('lodash._baseeach'), baseEach = require('lodash._baseeach'),
isIterateeCall = require('lodash._isiterateecall'), isIterateeCall = require('lodash._isiterateecall'),
toIterable = require('lodash._toiterable'), toIterable = require('lodash._toiterable'),
isArray = require('lodash.isarray'), lt = require('lodash.lt');
isString = require('lodash.isstring'),
keys = require('lodash.keys');
/**
* Used by `_.max` and `_.min` as the default callback for string values.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the code unit of the first character of the string.
*/
function charAtCallback(string) {
return string.charCodeAt(0);
}
/** Used as references for `-Infinity` and `Infinity`. */ /** Used as references for `-Infinity` and `Infinity`. */
var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY, var POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
POSITIVE_INFINITY = Number.POSITIVE_INFINITY;
/** /**
* Creates a `_.max` or `_.min` function. * A specialized version of `baseExtremum` for arrays which invokes `iteratee`
* with one argument: (value).
* *
* @private * @private
* @param {Function} arrayFunc The function to get the extremum value from an array. * @param {Array} array The array to iterate over.
* @param {boolean} [isMin] Specify returning the minimum, instead of the maximum, * @param {Function} iteratee The function invoked per iteration.
* extremum value. * @param {Function} comparator The function used to compare values.
* @returns {Function} Returns the new extremum function. * @param {*} exValue The initial extremum value.
* @returns {*} Returns the extremum value.
*/ */
function createExtremum(arrayFunc, isMin) { function arrayExtremum(array, iteratee, comparator, exValue) {
return function(collection, iteratee, thisArg) { var index = -1,
if (thisArg && isIterateeCall(collection, iteratee, thisArg)) { length = array.length,
iteratee = null; computed = exValue,
} result = computed;
var noIteratee = iteratee == null;
iteratee = noIteratee ? iteratee : baseCallback(iteratee, thisArg, 3); while (++index < length) {
if (noIteratee) { var value = array[index],
var isArr = isArray(collection); current = +iteratee(value);
if (!isArr && isString(collection)) {
iteratee = charAtCallback; if (comparator(current, computed)) {
} else { computed = current;
return arrayFunc(isArr ? collection : toIterable(collection)); result = value;
}
} }
return extremumBy(collection, iteratee, isMin); }
}; return result;
} }
/** /**
* Gets the extremum value of `collection` invoking `iteratee` for each value * Gets the extremum value of `collection` invoking `iteratee` for each value
* in `collection` to generate the criterion by which the value is ranked. * in `collection` to generate the criterion by which the value is ranked.
* The `iteratee` is invoked with three arguments: (value, index, collection). * The `iteratee` is invoked with three arguments: (value, index|key, collection).
* *
* @private * @private
* @param {Array|Object|string} collection The collection to iterate over. * @param {Array|Object|string} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration. * @param {Function} iteratee The function invoked per iteration.
* @param {boolean} [isMin] Specify returning the minimum, instead of the * @param {Function} comparator The function used to compare values.
* maximum, extremum value. * @param {*} exValue The initial extremum value.
* @returns {*} Returns the extremum value. * @returns {*} Returns the extremum value.
*/ */
function extremumBy(collection, iteratee, isMin) { function baseExtremum(collection, iteratee, comparator, exValue) {
var exValue = isMin ? POSITIVE_INFINITY : NEGATIVE_INFINITY, var computed = exValue,
computed = exValue,
result = computed; result = computed;
baseEach(collection, function(value, index, collection) { baseEach(collection, function(value, index, collection) {
var current = iteratee(value, index, collection); var current = +iteratee(value, index, collection);
if ((isMin ? (current < computed) : (current > computed)) || if (comparator(current, computed) || (current === exValue && current === result)) {
(current === exValue && current === result)) {
computed = current; computed = current;
result = value; result = value;
} }
@@ -87,6 +70,31 @@ function extremumBy(collection, iteratee, isMin) {
return result; return result;
} }
/**
* Creates a `_.max` or `_.min` function.
*
* @private
* @param {Function} comparator The function used to compare values.
* @param {*} exValue The initial extremum value.
* @returns {Function} Returns the new extremum function.
*/
function createExtremum(comparator, exValue) {
return function(collection, iteratee, thisArg) {
if (thisArg && isIterateeCall(collection, iteratee, thisArg)) {
iteratee = null;
}
iteratee = baseCallback(iteratee, thisArg, 3);
if (iteratee.length == 1) {
collection = toIterable(collection);
var result = arrayExtremum(collection, iteratee, comparator, exValue);
if (!(collection.length && result === exValue)) {
return result;
}
}
return baseExtremum(collection, iteratee, comparator, exValue);
};
}
/** /**
* Gets the minimum value of `collection`. If `collection` is empty or falsey * Gets the minimum value of `collection`. If `collection` is empty or falsey
* `Infinity` is returned. If an iteratee function is provided it is invoked * `Infinity` is returned. If an iteratee function is provided it is invoked
@@ -134,6 +142,6 @@ function extremumBy(collection, iteratee, isMin) {
* _.min(users, 'age'); * _.min(users, 'age');
* // => { 'user': 'barney', 'age': 36 } * // => { 'user': 'barney', 'age': 36 }
*/ */
var min = createExtremum(arrayMin, true); var min = createExtremum(lt, POSITIVE_INFINITY);
module.exports = min; module.exports = min;

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.min", "name": "lodash.min",
"version": "3.2.0", "version": "3.3.1",
"description": "The modern build of lodashs `_.min` as a module.", "description": "The modern build of lodashs `_.min` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -17,13 +17,11 @@
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": { "dependencies": {
"lodash._arraymin": "^3.0.0",
"lodash._basecallback": "^3.0.0", "lodash._basecallback": "^3.0.0",
"lodash._baseeach": "^3.0.0", "lodash._baseeach": "^3.0.0",
"lodash._isiterateecall": "^3.0.0", "lodash._isiterateecall": "^3.0.0",
"lodash._toiterable": "^3.0.0", "lodash._toiterable": "^3.0.0",
"lodash.isarray": "^3.0.0", "lodash.keys": "^3.0.0",
"lodash.isstring": "^3.0.0", "lodash.lt": "^3.0.0"
"lodash.keys": "^3.0.0"
} }
} }

View File

@@ -1,4 +1,4 @@
# lodash.pad v3.2.0 # lodash.pad v3.3.0
The [lodash](https://lodash.com/) method `_.pad` exported as a [Node.js](https://nodejs.org/) module. The [lodash](https://lodash.com/) method `_.pad` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var pad = require('lodash.pad'); var pad = require('lodash.pad');
``` ```
See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.pad) for more details. See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.3.0-npm-packages/lodash.pad) for more details.

View File

@@ -1,12 +1,13 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./` * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var repeat = require('lodash.repeat'); var repeat = require('lodash.repeat'),
root = require('lodash._root');
/** Used as references for various `Number` constants. */ /** Used as references for various `Number` constants. */
var INFINITY = 1 / 0, var INFINITY = 1 / 0,
@@ -32,13 +33,15 @@ var reIsOctal = /^0o[0-7]+$/i;
/** Used to compose unicode character classes. */ /** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff', var rsAstralRange = '\\ud800-\\udfff',
rsComboRange = '\\u0300-\\u036f\\ufe20-\\ufe23', rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
rsComboSymbolsRange = '\\u20d0-\\u20f0',
rsVarRange = '\\ufe0e\\ufe0f'; rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */ /** Used to compose unicode capture groups. */
var rsAstral = '[' + rsAstralRange + ']', var rsAstral = '[' + rsAstralRange + ']',
rsCombo = '[' + rsComboRange + ']', rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
rsModifier = '(?:\\ud83c[\\udffb-\\udfff])', rsFitz = '\\ud83c[\\udffb-\\udfff]',
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
rsNonAstral = '[^' + rsAstralRange + ']', rsNonAstral = '[^' + rsAstralRange + ']',
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
@@ -52,17 +55,18 @@ var reOptMod = rsModifier + '?',
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
var reComplexSymbol = RegExp(rsSymbol + rsSeq, 'g'); var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
/** Built-in method references without a dependency on `global`. */ /** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt; var freeParseInt = parseInt;
/** /**
* Gets the number of symbols in `string`. * Gets the number of symbols in `string`.
* *
* @private
* @param {string} string The string to inspect. * @param {string} string The string to inspect.
* @returns {number} Returns the string size. * @returns {number} Returns the string size.
*/ */
@@ -89,7 +93,7 @@ function stringToArray(string) {
} }
/** Used for built-in method references. */ /** 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) * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
@@ -98,15 +102,15 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString; var objectToString = objectProto.toString;
/** Built-in value references. */ /** 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. */ /* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil, var nativeCeil = Math.ceil,
nativeFloor = Math.floor; nativeFloor = Math.floor;
/** Used to convert symbols to primitives and strings. */ /** Used to convert symbols to primitives and strings. */
var symbolProto = _Symbol ? _Symbol.prototype : undefined, var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = _Symbol ? symbolProto.toString : undefined; symbolToString = Symbol ? symbolProto.toString : undefined;
/** /**
* Creates the padding for `string` based on `length`. The `chars` string * Creates the padding for `string` based on `length`. The `chars` string
@@ -182,8 +186,6 @@ function isFunction(value) {
* // => false * // => false
*/ */
function isObject(value) { 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; var type = typeof value;
return !!value && (type == 'object' || type == 'function'); return !!value && (type == 'object' || type == 'function');
} }
@@ -339,7 +341,7 @@ function toString(value) {
return ''; return '';
} }
if (isSymbol(value)) { if (isSymbol(value)) {
return _Symbol ? symbolToString.call(value) : ''; return Symbol ? symbolToString.call(value) : '';
} }
var result = (value + ''); var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;

View File

@@ -1,11 +1,11 @@
{ {
"name": "lodash.pad", "name": "lodash.pad",
"version": "3.2.0", "version": "3.3.0",
"description": "The lodash method `_.pad` exported as a module.", "description": "The lodash method `_.pad` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"license": "MIT", "license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util, pad", "keywords": "lodash-modularized, pad",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [ "contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
@@ -15,6 +15,7 @@
"repository": "lodash/lodash", "repository": "lodash/lodash",
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": { "dependencies": {
"lodash._root": "^3.0.0",
"lodash.repeat": "^3.0.0" "lodash.repeat": "^3.0.0"
} }
} }

View File

@@ -1,4 +1,4 @@
# lodash.some v3.2.0 # lodash.some v3.2.3
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.some` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.some` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var some = require('lodash.some'); var some = require('lodash.some');
``` ```
See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.some) for more details. See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/3.2.3-npm-packages/lodash.some) for more details.

View File

@@ -1,16 +1,15 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var baseCallback = require('lodash._basecallback'), var baseCallback = require('lodash._basecallback'),
baseEach = require('lodash._baseeach'), baseEach = require('lodash._baseeach'),
isIterateeCall = require('lodash._isiterateecall'), isIterateeCall = require('lodash._isiterateecall'),
isArray = require('lodash.isarray'), isArray = require('lodash.isarray');
keys = require('lodash.keys');
/** /**
* A specialized version of `_.some` for arrays without support for callback * A specialized version of `_.some` for arrays without support for callback
@@ -106,9 +105,9 @@ function baseSome(collection, predicate) {
function some(collection, predicate, thisArg) { function some(collection, predicate, thisArg) {
var func = isArray(collection) ? arraySome : baseSome; var func = isArray(collection) ? arraySome : baseSome;
if (thisArg && isIterateeCall(collection, predicate, thisArg)) { if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
predicate = null; predicate = undefined;
} }
if (typeof predicate != 'function' || typeof thisArg != 'undefined') { if (typeof predicate != 'function' || thisArg !== undefined) {
predicate = baseCallback(predicate, thisArg, 3); predicate = baseCallback(predicate, thisArg, 3);
} }
return func(collection, predicate); return func(collection, predicate);

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.some", "name": "lodash.some",
"version": "3.2.0", "version": "3.2.3",
"description": "The modern build of lodashs `_.some` as a module.", "description": "The modern build of lodashs `_.some` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,4 +1,4 @@
# lodash.sortbyall v3.2.0 # lodash.sortbyall v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.sortByAll` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.sortByAll` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var sortByAll = require('lodash.sortbyall'); var sortByAll = require('lodash.sortbyall');
``` ```
See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.sortbyall) for more details. See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.sortbyall) for more details.

View File

@@ -1,17 +1,14 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var baseEach = require('lodash._baseeach'), var baseFlatten = require('lodash._baseflatten'),
baseFlatten = require('lodash._baseflatten'),
baseSortByOrder = require('lodash._basesortbyorder'), baseSortByOrder = require('lodash._basesortbyorder'),
isIterateeCall = require('lodash._isiterateecall'), isIterateeCall = require('lodash._isiterateecall'),
isArguments = require('lodash.isarguments'),
isArray = require('lodash.isarray'),
restParam = require('lodash.restparam'); restParam = require('lodash.restparam');
/** /**

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.sortbyall", "name": "lodash.sortbyall",
"version": "3.2.0", "version": "3.2.1",
"description": "The modern build of lodashs `_.sortByAll` as a module.", "description": "The modern build of lodashs `_.sortByAll` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",

View File

@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining

View File

@@ -1,20 +1,18 @@
# lodash.spread v3.2.0 # lodash.spread v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.spread` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [lodash](https://lodash.com/) method `_.spread` exported as a [Node.js](https://nodejs.org/) module.
## Installation ## Installation
Using npm: Using npm:
```bash ```bash
$ {sudo -H} npm i -g npm $ {sudo -H} npm i -g npm
$ npm i --save lodash.spread $ npm i --save lodash.spread
``` ```
In Node.js/io.js: In Node.js:
```js ```js
var spread = require('lodash.spread'); var spread = require('lodash.spread');
``` ```
See the [documentation](https://lodash.com/docs#spread) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.spread) for more details. See the [documentation](https://lodash.com/docs#spread) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.spread) for more details.

View File

@@ -1,20 +1,41 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.2.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
/** Used as the `TypeError` message for "Functions" methods. */ /** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function'; var FUNC_ERROR_TEXT = 'Expected a function';
/**
* A faster alternative to `Function#apply`, this function invokes `func`
* with the `this` binding of `thisArg` and the arguments of `args`.
*
* @private
* @param {Function} func The function to invoke.
* @param {*} thisArg The `this` binding of `func`.
* @param {...*} [args] The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
var length = args ? args.length : 0;
switch (length) {
case 0: return func.call(thisArg);
case 1: return func.call(thisArg, args[0]);
case 2: return func.call(thisArg, args[0], args[1]);
case 3: return func.call(thisArg, args[0], args[1], args[2]);
}
return func.apply(thisArg, args);
}
/** /**
* Creates a function that invokes `func` with the `this` binding of the created * Creates a function that invokes `func` with the `this` binding of the created
* function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3). * function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3).
* *
* **Note:** This method is based on the [spread operator](https://developer.mozilla.org/Web/JavaScript/Reference/Operators/Spread_operator). * **Note:** This method is based on the [spread operator](https://mdn.io/spread_operator).
* *
* @static * @static
* @memberOf _ * @memberOf _
@@ -46,7 +67,7 @@ function spread(func) {
throw new TypeError(FUNC_ERROR_TEXT); throw new TypeError(FUNC_ERROR_TEXT);
} }
return function(array) { return function(array) {
return func.apply(this, array); return apply(func, this, array);
}; };
} }

View File

@@ -1,17 +1,15 @@
{ {
"name": "lodash.spread", "name": "lodash.spread",
"version": "3.2.0", "version": "3.2.1",
"description": "The modern build of lodashs `_.spread` as a module.", "description": "The lodash method `_.spread` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"license": "MIT", "license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util", "keywords": "lodash, lodash-modularized, stdlib, util, spread",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"contributors": [ "contributors": [
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", "Blaine Bublitz <blaine@iceddev.com> (https://github.com/phated)",
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
], ],
"repository": "lodash/lodash", "repository": "lodash/lodash",

View File

@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining

View File

@@ -1,4 +1,4 @@
# lodash.template v3.2.0 # lodash.template v3.3.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.template` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.template` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var template = require('lodash.template'); var template = require('lodash.template');
``` ```
See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.template) for more details. See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.3.2-npm-packages/lodash.template) for more details.

View File

@@ -1,16 +1,17 @@
/** /**
* lodash 3.2.0 (Custom Build) <https://lodash.com/> * lodash 3.3.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./` * Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <https://lodash.com/license> * Available under MIT license <https://lodash.com/license>
*/ */
var baseCopy = require('lodash._basecopy'), var baseCopy = require('lodash._basecopy'),
baseSlice = require('lodash._baseslice'), baseToString = require('lodash._basetostring'),
baseValues = require('lodash._basevalues'), baseValues = require('lodash._basevalues'),
isIterateeCall = require('lodash._isiterateecall'), isIterateeCall = require('lodash._isiterateecall'),
reInterpolate = require('lodash._reinterpolate'), reInterpolate = require('lodash._reinterpolate'),
escape = require('lodash.escape'),
keys = require('lodash.keys'), keys = require('lodash.keys'),
templateSettings = require('lodash.templatesettings'); templateSettings = require('lodash.templatesettings');
@@ -45,21 +46,6 @@ var stringEscapes = {
'\u2029': 'u2029' '\u2029': 'u2029'
}; };
/**
* Converts `value` to a string if it is not one. An empty string is returned
* for `null` or `undefined` values.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
if (typeof value == 'string') {
return value;
}
return value == null ? '' : (value + '');
}
/** /**
* Used by `_.template` to escape characters for inclusion in compiled * Used by `_.template` to escape characters for inclusion in compiled
* string literals. * string literals.
@@ -138,7 +124,7 @@ function baseAssign(object, source, customizer) {
value = object[key], value = object[key],
result = customizer(value, source[key], key, object, source); result = customizer(value, source[key], key, object, source);
if ((result === result ? result !== value : value === value) || if ((result === result ? (result !== value) : (value === value)) ||
(typeof value == 'undefined' && !(key in object))) { (typeof value == 'undefined' && !(key in object))) {
object[key] = result; object[key] = result;
} }
@@ -250,10 +236,10 @@ function isError(value) {
* var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' }); * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
* compiled.source; * compiled.source;
* // => function(data) { * // => function(data) {
* var __t, __p = ''; * // var __t, __p = '';
* __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!'; * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
* return __p; * // return __p;
* } * // }
* *
* // using the `source` property to inline compiled templates for meaningful * // using the `source` property to inline compiled templates for meaningful
* // line numbers in error messages and a stack trace * // line numbers in error messages and a stack trace
@@ -385,9 +371,16 @@ function template(string, options, otherOptions) {
* elements = []; * elements = [];
* } * }
*/ */
function attempt(func) { function attempt() {
var func = arguments[0],
length = arguments.length,
args = Array(length ? (length - 1) : 0);
while (--length > 0) {
args[length - 1] = arguments[length];
}
try { try {
return func.apply(undefined, baseSlice(arguments, 1)); return func.apply(undefined, args);
} catch(e) { } catch(e) {
return isError(e) ? e : new Error(e); return isError(e) ? e : new Error(e);
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.template", "name": "lodash.template",
"version": "3.2.0", "version": "3.3.2",
"description": "The modern build of lodashs `_.template` as a module.", "description": "The modern build of lodashs `_.template` as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
@@ -18,10 +18,11 @@
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" },
"dependencies": { "dependencies": {
"lodash._basecopy": "^3.0.0", "lodash._basecopy": "^3.0.0",
"lodash._baseslice": "^3.0.0", "lodash._basetostring": "^3.0.0",
"lodash._basevalues": "^3.0.0", "lodash._basevalues": "^3.0.0",
"lodash._isiterateecall": "^3.0.0", "lodash._isiterateecall": "^3.0.0",
"lodash._reinterpolate": "^3.0.0", "lodash._reinterpolate": "^3.0.0",
"lodash.escape": "^3.0.0",
"lodash.keys": "^3.0.0", "lodash.keys": "^3.0.0",
"lodash.templatesettings": "^3.0.0" "lodash.templatesettings": "^3.0.0"
} }

Some files were not shown because too many files have changed in this diff Show More