diff --git a/README.md b/README.md index 3f8ac48d1..e8398da65 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v4.12.1 +# lodash v4.13.0 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash._basesorteduniq/README.md b/lodash._basesorteduniq/README.md deleted file mode 100644 index 0c2b53bf7..000000000 --- a/lodash._basesorteduniq/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash._basesorteduniq v4.12.0 - -The internal [lodash](https://lodash.com/) function `baseSortedUniq` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basesorteduniq -``` - -In Node.js: -```js -var baseSortedUniq = require('lodash._basesorteduniq'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/4.12.0-npm-packages/lodash._basesorteduniq) for more details. diff --git a/lodash._basesorteduniq/index.js b/lodash._basesorteduniq/index.js deleted file mode 100644 index 68bd4d47f..000000000 --- a/lodash._basesorteduniq/index.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** - * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ -function baseSortedUniq(array, iteratee) { - var index = -1, - length = array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - if (!index || !eq(computed, seen)) { - var seen = computed; - result[resIndex++] = value === 0 ? 0 : value; - } - } - return result; -} - -/** - * 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 = { 'user': 'fred' }; - * var other = { 'user': 'fred' }; - * - * _.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); -} - -module.exports = baseSortedUniq; diff --git a/lodash._basetonumber/README.md b/lodash._basetonumber/README.md deleted file mode 100644 index e2c10d5df..000000000 --- a/lodash._basetonumber/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash._basetonumber v4.12.0 - -The internal [lodash](https://lodash.com/) function `baseToNumber` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basetonumber -``` - -In Node.js: -```js -var baseToNumber = require('lodash._basetonumber'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/4.12.0-npm-packages/lodash._basetonumber) for more details. diff --git a/lodash._basetonumber/index.js b/lodash._basetonumber/index.js deleted file mode 100644 index f399c6fa0..000000000 --- a/lodash._basetonumber/index.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as references for various `Number` constants. */ -var NAN = 0 / 0; - -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; - -/** 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 `_.toNumber` which doesn't ensure correct - * conversions of binary, hexadecimal, or octal string values. - * - * @private - * @param {*} value The value to process. - * @returns {number} Returns the number. - */ -function baseToNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; -} - -/** - * 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 correctly classified, - * else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -module.exports = baseToNumber; diff --git a/lodash._basetostring/README.md b/lodash._basetostring/README.md deleted file mode 100644 index ba060c94d..000000000 --- a/lodash._basetostring/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash._basetostring v4.12.0 - -The internal [lodash](https://lodash.com/) function `baseToString` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basetostring -``` - -In Node.js: -```js -var baseToString = require('lodash._basetostring'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/4.12.0-npm-packages/lodash._basetostring) for more details. diff --git a/lodash._basetostring/index.js b/lodash._basetostring/index.js deleted file mode 100644 index d58481074..000000000 --- a/lodash._basetostring/index.js +++ /dev/null @@ -1,153 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; - -/** Used to determine if values are of the language type `Object`. */ -var objectTypes = { - 'function': true, - 'object': true -}; - -/** Detect free variable `exports`. */ -var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) - ? exports - : undefined; - -/** Detect free variable `module`. */ -var freeModule = (objectTypes[typeof module] && module && !module.nodeType) - ? module - : undefined; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global); - -/** Detect free variable `self`. */ -var freeSelf = checkGlobal(objectTypes[typeof self] && self); - -/** Detect free variable `window`. */ -var freeWindow = checkGlobal(objectTypes[typeof window] && window); - -/** Detect `this` as the global object. */ -var thisGlobal = checkGlobal(objectTypes[typeof this] && this); - -/** - * Used as a reference to the global object. - * - * The `this` value is used if it's the global object to avoid Greasemonkey's - * restricted `window` object, otherwise the `window` object is used. - */ -var root = freeGlobal || - ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || - freeSelf || thisGlobal || Function('return this')(); - -/** - * Checks if `value` is a global object. - * - * @private - * @param {*} value The value to check. - * @returns {null|Object} Returns `value` if it's a global object, else `null`. - */ -function checkGlobal(value) { - return (value && value.Object === Object) ? value : null; -} - -/** Used for built-in method references. */ -var objectProto = 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; - -/** Built-in value references. */ -var Symbol = root.Symbol; - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * 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 correctly classified, - * else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -module.exports = baseToString; diff --git a/lodash._basesorteduniq/LICENSE b/lodash.stubarray/LICENSE similarity index 100% rename from lodash._basesorteduniq/LICENSE rename to lodash.stubarray/LICENSE diff --git a/lodash.stubarray/README.md b/lodash.stubarray/README.md new file mode 100644 index 000000000..2b342a5ce --- /dev/null +++ b/lodash.stubarray/README.md @@ -0,0 +1,18 @@ +# lodash.stubarray v4.13.0 + +The [lodash](https://lodash.com/) method `_.stubArray` exported as a [Node.js](https://nodejs.org/) module. + +## Installation + +Using npm: +```bash +$ {sudo -H} npm i -g npm +$ npm i --save lodash.stubarray +``` + +In Node.js: +```js +var stubArray = require('lodash.stubarray'); +``` + +See the [documentation](https://lodash.com/docs#stubArray) or [package source](https://github.com/lodash/lodash/blob/4.13.0-npm-packages/lodash.stubarray) for more details. diff --git a/lodash.stubarray/index.js b/lodash.stubarray/index.js new file mode 100644 index 000000000..f7ac9854b --- /dev/null +++ b/lodash.stubarray/index.js @@ -0,0 +1,32 @@ +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** + * This method returns a new empty array. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Array} Returns the new empty array. + * @example + * + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false + */ +function stubArray() { + return []; +} + +module.exports = stubArray; diff --git a/lodash._basetostring/package.json b/lodash.stubarray/package.json similarity index 76% rename from lodash._basetostring/package.json rename to lodash.stubarray/package.json index 821ef47a2..c99ce79f3 100644 --- a/lodash._basetostring/package.json +++ b/lodash.stubarray/package.json @@ -1,10 +1,11 @@ { - "name": "lodash._basetostring", - "version": "4.12.0", - "description": "The internal lodash function `baseToString` exported as a module.", + "name": "lodash.stubarray", + "version": "4.13.0", + "description": "The lodash method `_.stubArray` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", + "keywords": "lodash-modularized, stubarray", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", diff --git a/lodash._basetonumber/LICENSE b/lodash.stubfalse/LICENSE similarity index 100% rename from lodash._basetonumber/LICENSE rename to lodash.stubfalse/LICENSE diff --git a/lodash.stubfalse/README.md b/lodash.stubfalse/README.md new file mode 100644 index 000000000..059b29116 --- /dev/null +++ b/lodash.stubfalse/README.md @@ -0,0 +1,18 @@ +# lodash.stubfalse v4.13.0 + +The [lodash](https://lodash.com/) method `_.stubFalse` exported as a [Node.js](https://nodejs.org/) module. + +## Installation + +Using npm: +```bash +$ {sudo -H} npm i -g npm +$ npm i --save lodash.stubfalse +``` + +In Node.js: +```js +var stubFalse = require('lodash.stubfalse'); +``` + +See the [documentation](https://lodash.com/docs#stubFalse) or [package source](https://github.com/lodash/lodash/blob/4.13.0-npm-packages/lodash.stubfalse) for more details. diff --git a/lodash.stubfalse/index.js b/lodash.stubfalse/index.js new file mode 100644 index 000000000..fd65a31e0 --- /dev/null +++ b/lodash.stubfalse/index.js @@ -0,0 +1,27 @@ +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; diff --git a/lodash._basesorteduniq/package.json b/lodash.stubfalse/package.json similarity index 76% rename from lodash._basesorteduniq/package.json rename to lodash.stubfalse/package.json index ac17600b9..4736dfe8b 100644 --- a/lodash._basesorteduniq/package.json +++ b/lodash.stubfalse/package.json @@ -1,10 +1,11 @@ { - "name": "lodash._basesorteduniq", - "version": "4.12.0", - "description": "The internal lodash function `baseSortedUniq` exported as a module.", + "name": "lodash.stubfalse", + "version": "4.13.0", + "description": "The lodash method `_.stubFalse` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", + "keywords": "lodash-modularized, stubfalse", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", diff --git a/lodash._basetostring/LICENSE b/lodash.stubobject/LICENSE similarity index 100% rename from lodash._basetostring/LICENSE rename to lodash.stubobject/LICENSE diff --git a/lodash.stubobject/README.md b/lodash.stubobject/README.md new file mode 100644 index 000000000..9a5e740d0 --- /dev/null +++ b/lodash.stubobject/README.md @@ -0,0 +1,18 @@ +# lodash.stubobject v4.13.0 + +The [lodash](https://lodash.com/) method `_.stubObject` exported as a [Node.js](https://nodejs.org/) module. + +## Installation + +Using npm: +```bash +$ {sudo -H} npm i -g npm +$ npm i --save lodash.stubobject +``` + +In Node.js: +```js +var stubObject = require('lodash.stubobject'); +``` + +See the [documentation](https://lodash.com/docs#stubObject) or [package source](https://github.com/lodash/lodash/blob/4.13.0-npm-packages/lodash.stubobject) for more details. diff --git a/lodash.stubobject/index.js b/lodash.stubobject/index.js new file mode 100644 index 000000000..3a28f9efa --- /dev/null +++ b/lodash.stubobject/index.js @@ -0,0 +1,32 @@ +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** + * This method returns a new empty object. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Object} Returns the new empty object. + * @example + * + * var objects = _.times(2, _.stubObject); + * + * console.log(objects); + * // => [{}, {}] + * + * console.log(objects[0] === objects[1]); + * // => false + */ +function stubObject() { + return {}; +} + +module.exports = stubObject; diff --git a/lodash.stubobject/package.json b/lodash.stubobject/package.json new file mode 100644 index 000000000..b5ce76c7c --- /dev/null +++ b/lodash.stubobject/package.json @@ -0,0 +1,17 @@ +{ + "name": "lodash.stubobject", + "version": "4.13.0", + "description": "The lodash method `_.stubObject` exported as a module.", + "homepage": "https://lodash.com/", + "icon": "https://lodash.com/icon.svg", + "license": "MIT", + "keywords": "lodash-modularized, stubobject", + "author": "John-David Dalton (http://allyoucanleet.com/)", + "contributors": [ + "John-David Dalton (http://allyoucanleet.com/)", + "Blaine Bublitz (https://github.com/phated)", + "Mathias Bynens (https://mathiasbynens.be/)" + ], + "repository": "lodash/lodash", + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } +} diff --git a/lodash.stubstring/LICENSE b/lodash.stubstring/LICENSE new file mode 100644 index 000000000..e0c69d560 --- /dev/null +++ b/lodash.stubstring/LICENSE @@ -0,0 +1,47 @@ +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +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 +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. + +==== + +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. diff --git a/lodash.stubstring/README.md b/lodash.stubstring/README.md new file mode 100644 index 000000000..7f11e2713 --- /dev/null +++ b/lodash.stubstring/README.md @@ -0,0 +1,18 @@ +# lodash.stubstring v4.13.0 + +The [lodash](https://lodash.com/) method `_.stubString` exported as a [Node.js](https://nodejs.org/) module. + +## Installation + +Using npm: +```bash +$ {sudo -H} npm i -g npm +$ npm i --save lodash.stubstring +``` + +In Node.js: +```js +var stubString = require('lodash.stubstring'); +``` + +See the [documentation](https://lodash.com/docs#stubString) or [package source](https://github.com/lodash/lodash/blob/4.13.0-npm-packages/lodash.stubstring) for more details. diff --git a/lodash.stubstring/index.js b/lodash.stubstring/index.js new file mode 100644 index 000000000..dc3af7970 --- /dev/null +++ b/lodash.stubstring/index.js @@ -0,0 +1,27 @@ +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** + * This method returns an empty string. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {string} Returns the empty string. + * @example + * + * _.times(2, _.stubString); + * // => ['', ''] + */ +function stubString() { + return ''; +} + +module.exports = stubString; diff --git a/lodash.stubstring/package.json b/lodash.stubstring/package.json new file mode 100644 index 000000000..44dfe7907 --- /dev/null +++ b/lodash.stubstring/package.json @@ -0,0 +1,17 @@ +{ + "name": "lodash.stubstring", + "version": "4.13.0", + "description": "The lodash method `_.stubString` exported as a module.", + "homepage": "https://lodash.com/", + "icon": "https://lodash.com/icon.svg", + "license": "MIT", + "keywords": "lodash-modularized, stubstring", + "author": "John-David Dalton (http://allyoucanleet.com/)", + "contributors": [ + "John-David Dalton (http://allyoucanleet.com/)", + "Blaine Bublitz (https://github.com/phated)", + "Mathias Bynens (https://mathiasbynens.be/)" + ], + "repository": "lodash/lodash", + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } +} diff --git a/lodash.stubtrue/LICENSE b/lodash.stubtrue/LICENSE new file mode 100644 index 000000000..e0c69d560 --- /dev/null +++ b/lodash.stubtrue/LICENSE @@ -0,0 +1,47 @@ +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +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 +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. + +==== + +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. diff --git a/lodash.stubtrue/README.md b/lodash.stubtrue/README.md new file mode 100644 index 000000000..aa374b800 --- /dev/null +++ b/lodash.stubtrue/README.md @@ -0,0 +1,18 @@ +# lodash.stubtrue v4.13.0 + +The [lodash](https://lodash.com/) method `_.stubTrue` exported as a [Node.js](https://nodejs.org/) module. + +## Installation + +Using npm: +```bash +$ {sudo -H} npm i -g npm +$ npm i --save lodash.stubtrue +``` + +In Node.js: +```js +var stubTrue = require('lodash.stubtrue'); +``` + +See the [documentation](https://lodash.com/docs#stubTrue) or [package source](https://github.com/lodash/lodash/blob/4.13.0-npm-packages/lodash.stubtrue) for more details. diff --git a/lodash.stubtrue/index.js b/lodash.stubtrue/index.js new file mode 100644 index 000000000..cf3af29b8 --- /dev/null +++ b/lodash.stubtrue/index.js @@ -0,0 +1,27 @@ +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** + * This method returns `true`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `true`. + * @example + * + * _.times(2, _.stubTrue); + * // => [true, true] + */ +function stubTrue() { + return true; +} + +module.exports = stubTrue; diff --git a/lodash._basetonumber/package.json b/lodash.stubtrue/package.json similarity index 77% rename from lodash._basetonumber/package.json rename to lodash.stubtrue/package.json index c5ca8f79e..e2cc84f3a 100644 --- a/lodash._basetonumber/package.json +++ b/lodash.stubtrue/package.json @@ -1,10 +1,11 @@ { - "name": "lodash._basetonumber", - "version": "4.12.0", - "description": "The internal lodash function `baseToNumber` exported as a module.", + "name": "lodash.stubtrue", + "version": "4.13.0", + "description": "The lodash method `_.stubTrue` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", + "keywords": "lodash-modularized, stubtrue", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)",