mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Compare commits
3 Commits
4.17.5-amd
...
4.17.11-am
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db0dbd39a7 | ||
|
|
bbcefc5447 | ||
|
|
cf8bb34a76 |
@@ -1,4 +1,4 @@
|
|||||||
# lodash-amd v4.17.5
|
# lodash-amd v4.17.11
|
||||||
|
|
||||||
The [Lodash](https://lodash.com/) library exported as [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules.
|
The [Lodash](https://lodash.com/) library exported as [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules.
|
||||||
|
|
||||||
@@ -27,4 +27,4 @@ require({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/tree/4.17.5-amd) for more details.
|
See the [package source](https://github.com/lodash/lodash/tree/4.17.11-amd) for more details.
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ define(['./_assignMergeValue', './_cloneBuffer', './_cloneTypedArray', './_copyA
|
|||||||
if (isArguments(objValue)) {
|
if (isArguments(objValue)) {
|
||||||
newValue = toPlainObject(objValue);
|
newValue = toPlainObject(objValue);
|
||||||
}
|
}
|
||||||
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
|
else if (!isObject(objValue) || isFunction(objValue)) {
|
||||||
newValue = initCloneObject(srcValue);
|
newValue = initCloneObject(srcValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
define([], function() {
|
define([], function() {
|
||||||
|
|
||||||
/** Used to detect strings that need a more robust regexp to match words. */
|
/** Used to detect strings that need a more robust regexp to match words. */
|
||||||
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `string` contains a word composed of Unicode symbols.
|
* Checks if `string` contains a word composed of Unicode symbols.
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ define(['./_freeGlobal'], function(freeGlobal) {
|
|||||||
/** Used to access faster Node.js helpers. */
|
/** Used to access faster Node.js helpers. */
|
||||||
var nodeUtil = (function() {
|
var nodeUtil = (function() {
|
||||||
try {
|
try {
|
||||||
|
// Use `util.types` for Node.js 10+.
|
||||||
|
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
||||||
|
|
||||||
|
if (types) {
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Legacy `process.binding('util')` for Node.js < 10.
|
||||||
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}());
|
}());
|
||||||
|
|||||||
11
_safeGet.js
11
_safeGet.js
@@ -1,8 +1,5 @@
|
|||||||
define([], function() {
|
define([], function() {
|
||||||
|
|
||||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
|
||||||
var undefined;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the value at `key`, unless `key` is "__proto__".
|
* Gets the value at `key`, unless `key` is "__proto__".
|
||||||
*
|
*
|
||||||
@@ -12,9 +9,11 @@ define([], function() {
|
|||||||
* @returns {*} Returns the property value.
|
* @returns {*} Returns the property value.
|
||||||
*/
|
*/
|
||||||
function safeGet(object, key) {
|
function safeGet(object, key) {
|
||||||
return key == '__proto__'
|
if (key == '__proto__') {
|
||||||
? undefined
|
return;
|
||||||
: object[key];
|
}
|
||||||
|
|
||||||
|
return object[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
return safeGet;
|
return safeGet;
|
||||||
|
|||||||
44
main.js
44
main.js
@@ -13,7 +13,7 @@
|
|||||||
var undefined;
|
var undefined;
|
||||||
|
|
||||||
/** Used as the semantic version number. */
|
/** Used as the semantic version number. */
|
||||||
var VERSION = '4.17.5';
|
var VERSION = '4.17.11';
|
||||||
|
|
||||||
/** Used as the size to enable large array optimizations. */
|
/** Used as the size to enable large array optimizations. */
|
||||||
var LARGE_ARRAY_SIZE = 200;
|
var LARGE_ARRAY_SIZE = 200;
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
|
var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
|
||||||
|
|
||||||
/** Used to detect strings that need a more robust regexp to match words. */
|
/** Used to detect strings that need a more robust regexp to match words. */
|
||||||
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
||||||
|
|
||||||
/** Used to assign default `context` object properties. */
|
/** Used to assign default `context` object properties. */
|
||||||
var contextProps = [
|
var contextProps = [
|
||||||
@@ -437,6 +437,14 @@
|
|||||||
/** Used to access faster Node.js helpers. */
|
/** Used to access faster Node.js helpers. */
|
||||||
var nodeUtil = (function() {
|
var nodeUtil = (function() {
|
||||||
try {
|
try {
|
||||||
|
// Use `util.types` for Node.js 10+.
|
||||||
|
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
||||||
|
|
||||||
|
if (types) {
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Legacy `process.binding('util')` for Node.js < 10.
|
||||||
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}());
|
}());
|
||||||
@@ -1217,20 +1225,6 @@
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the value at `key`, unless `key` is "__proto__".
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} object The object to query.
|
|
||||||
* @param {string} key The key of the property to get.
|
|
||||||
* @returns {*} Returns the property value.
|
|
||||||
*/
|
|
||||||
function safeGet(object, key) {
|
|
||||||
return key == '__proto__'
|
|
||||||
? undefined
|
|
||||||
: object[key];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `set` to an array of its values.
|
* Converts `set` to an array of its values.
|
||||||
*
|
*
|
||||||
@@ -3688,7 +3682,7 @@
|
|||||||
if (isArguments(objValue)) {
|
if (isArguments(objValue)) {
|
||||||
newValue = toPlainObject(objValue);
|
newValue = toPlainObject(objValue);
|
||||||
}
|
}
|
||||||
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
|
else if (!isObject(objValue) || isFunction(objValue)) {
|
||||||
newValue = initCloneObject(srcValue);
|
newValue = initCloneObject(srcValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6611,6 +6605,22 @@
|
|||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the value at `key`, unless `key` is "__proto__".
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Object} object The object to query.
|
||||||
|
* @param {string} key The key of the property to get.
|
||||||
|
* @returns {*} Returns the property value.
|
||||||
|
*/
|
||||||
|
function safeGet(object, key) {
|
||||||
|
if (key == '__proto__') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
return object[key];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets metadata for `func`.
|
* Sets metadata for `func`.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash-amd",
|
"name": "lodash-amd",
|
||||||
"version": "4.17.5",
|
"version": "4.17.11",
|
||||||
"description": "Lodash exported as AMD modules.",
|
"description": "Lodash exported as AMD modules.",
|
||||||
"keywords": "amd, modules, stdlib, util",
|
"keywords": "amd, modules, stdlib, util",
|
||||||
"homepage": "https://lodash.com/custom-builds",
|
"homepage": "https://lodash.com/custom-builds",
|
||||||
|
|||||||
Reference in New Issue
Block a user