Compare commits

...

2 Commits

Author SHA1 Message Date
jdalton
ee29e79294 Bump to v3.5.2. 2018-02-03 19:13:32 -08:00
jdalton
9f7937cb84 Bump to v3.5.1. 2018-02-03 19:13:32 -08:00
7 changed files with 25 additions and 32 deletions

View File

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

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.5.0 (Custom Build) <https://lodash.com/> * lodash 3.5.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>
@@ -56,7 +56,7 @@ function compareMultiple(object, other, orders) {
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#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 `_.map` without support for callback shorthands * The base implementation of `_.map` without support for callback shorthands
@@ -69,8 +69,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
*/ */
function baseMap(collection, iteratee) { function baseMap(collection, iteratee) {
var index = -1, var index = -1,
length = getLength(collection), result = isArrayLike(collection) ? Array(collection.length) : [];
result = isLength(length) ? Array(length) : [];
baseEach(collection, function(value, key, collection) { baseEach(collection, function(value, key, collection) {
result[++index] = iteratee(value, key, collection); result[++index] = iteratee(value, key, collection);
@@ -119,7 +118,7 @@ function baseSortByOrder(collection, iteratees, orders) {
* 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.
@@ -127,6 +126,17 @@ function baseSortByOrder(collection, iteratees, orders) {
*/ */
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 valid array-like length. * Checks if `value` is a valid array-like length.
* *

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash._basesortbyorder", "name": "lodash._basesortbyorder",
"version": "3.5.0", "version": "3.5.2",
"description": "The modern build of lodashs internal `baseSortByOrder` as a module.", "description": "The modern build of lodashs internal `baseSortByOrder` 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.template v3.5.0 # lodash.template v3.5.1
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.5.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.5.1-npm-packages/lodash.template) for more details.

View File

@@ -1,5 +1,5 @@
/** /**
* lodash 3.5.0 (Custom Build) <https://lodash.com/> * lodash 3.5.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>
@@ -82,24 +82,7 @@ var objToString = objectProto.toString;
/** Native method references. */ /** Native method references. */
var getOwnPropertySymbols = isNative(getOwnPropertySymbols = Object.getOwnPropertySymbols) && getOwnPropertySymbols, var getOwnPropertySymbols = isNative(getOwnPropertySymbols = Object.getOwnPropertySymbols) && getOwnPropertySymbols,
push = arrayProto.push, push = arrayProto.push;
preventExtensions = isNative(Object.preventExtensions = Object.preventExtensions) && preventExtensions;
/** Used as `baseAssign`. */
var nativeAssign = (function() {
// Avoid `Object.assign` in Firefox 34-37 which have an early implementation
// with a now defunct try/catch behavior. See https://bugzilla.mozilla.org/show_bug.cgi?id=1103344
// for more details.
//
// Use `Object.preventExtensions` on a plain object instead of simply using
// `Object('x')` because Chrome and IE fail to throw an error when attempting
// to assign values to readonly indexes of strings in strict mode.
var object = { '1': 0 },
func = preventExtensions && isNative(func = Object.assign) && func;
try { func(preventExtensions(object), 'xo'); } catch(e) {}
return !object[1] && func;
}());
/** /**
* Used by `_.template` to customize its `_.assign` use. * Used by `_.template` to customize its `_.assign` use.
@@ -160,7 +143,7 @@ function assignWith(object, source, customizer) {
* @param {Object} source The source object. * @param {Object} source The source object.
* @returns {Object} Returns `object`. * @returns {Object} Returns `object`.
*/ */
var baseAssign = nativeAssign || function(object, source) { var baseAssign = function(object, source) {
return source == null return source == null
? object ? object
: baseCopy(source, getSymbols(source), baseCopy(source, keys(source), object)); : baseCopy(source, getSymbols(source), baseCopy(source, keys(source), object));

View File

@@ -1,6 +1,6 @@
{ {
"name": "lodash.template", "name": "lodash.template",
"version": "3.5.0", "version": "3.5.1",
"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",