Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2016-08-12 01:49:21 +0300
committerRebecca Turner <me@re-becca.org>2016-08-12 01:49:21 +0300
commita9f84ef61b4c719b646bf9cda00577ef16e3a113 (patch)
tree73567d4463ec639a446ea81693c2c116cee90535 /node_modules/lodash.without
parent803e538efaae4b56a764029742adcf6761e8398b (diff)
lodash.without@4.2.0
Credit: @jdalton
Diffstat (limited to 'node_modules/lodash.without')
-rw-r--r--node_modules/lodash.without/node_modules/lodash.rest/README.md4
-rw-r--r--node_modules/lodash.without/node_modules/lodash.rest/index.js65
-rw-r--r--node_modules/lodash.without/node_modules/lodash.rest/package.json59
-rw-r--r--node_modules/lodash.without/package.json50
4 files changed, 101 insertions, 77 deletions
diff --git a/node_modules/lodash.without/node_modules/lodash.rest/README.md b/node_modules/lodash.without/node_modules/lodash.rest/README.md
index 5342ca445..511f9fd17 100644
--- a/node_modules/lodash.without/node_modules/lodash.rest/README.md
+++ b/node_modules/lodash.without/node_modules/lodash.rest/README.md
@@ -1,4 +1,4 @@
-# lodash.rest v4.0.3
+# lodash.rest v4.0.4
The [lodash](https://lodash.com/) method `_.rest` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var rest = require('lodash.rest');
```
-See the [documentation](https://lodash.com/docs#rest) or [package source](https://github.com/lodash/lodash/blob/4.0.3-npm-packages/lodash.rest) for more details.
+See the [documentation](https://lodash.com/docs#rest) or [package source](https://github.com/lodash/lodash/blob/4.0.4-npm-packages/lodash.rest) for more details.
diff --git a/node_modules/lodash.without/node_modules/lodash.rest/index.js b/node_modules/lodash.without/node_modules/lodash.rest/index.js
index 231578641..98ace7c33 100644
--- a/node_modules/lodash.without/node_modules/lodash.rest/index.js
+++ b/node_modules/lodash.without/node_modules/lodash.rest/index.js
@@ -46,8 +46,7 @@ var freeParseInt = parseInt;
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
- var length = args.length;
- switch (length) {
+ switch (args.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]);
@@ -70,6 +69,35 @@ var objectToString = objectProto.toString;
var nativeMax = Math.max;
/**
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
+ *
+ * @private
+ * @param {Function} func The function to apply a rest parameter to.
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
+ * @returns {Function} Returns the new function.
+ */
+function baseRest(func, start) {
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
+ return function() {
+ var args = arguments,
+ index = -1,
+ length = nativeMax(args.length - start, 0),
+ array = Array(length);
+
+ while (++index < length) {
+ array[index] = args[start + index];
+ }
+ index = -1;
+ var otherArgs = Array(start + 1);
+ while (++index < start) {
+ otherArgs[index] = args[index];
+ }
+ otherArgs[start] = array;
+ return apply(func, this, otherArgs);
+ };
+}
+
+/**
* Creates a function that invokes `func` with the `this` binding of the
* created function and arguments from `start` and beyond provided as
* an array.
@@ -98,29 +126,8 @@ function rest(func, start) {
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
- start = nativeMax(start === undefined ? (func.length - 1) : toInteger(start), 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- switch (start) {
- case 0: return func.call(this, array);
- case 1: return func.call(this, args[0], array);
- case 2: return func.call(this, args[0], args[1], array);
- }
- var otherArgs = Array(start + 1);
- index = -1;
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = array;
- return apply(func, this, otherArgs);
- };
+ start = start === undefined ? start : toInteger(start);
+ return baseRest(func, start);
}
/**
@@ -131,8 +138,7 @@ function rest(func, start) {
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
@@ -215,8 +221,7 @@ function isObjectLike(value) {
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified,
- * else `false`.
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
@@ -268,7 +273,7 @@ function toFinite(value) {
/**
* Converts `value` to an integer.
*
- * **Note:** This function is loosely based on
+ * **Note:** This method is loosely based on
* [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
*
* @static
diff --git a/node_modules/lodash.without/node_modules/lodash.rest/package.json b/node_modules/lodash.without/node_modules/lodash.rest/package.json
index 3564a655c..33dd63a78 100644
--- a/node_modules/lodash.without/node_modules/lodash.rest/package.json
+++ b/node_modules/lodash.without/node_modules/lodash.rest/package.json
@@ -1,45 +1,54 @@
{
"_args": [
[
- "lodash.rest@^4.0.0",
+ {
+ "raw": "lodash.rest@^4.0.0",
+ "scope": null,
+ "escapedName": "lodash.rest",
+ "name": "lodash.rest",
+ "rawSpec": "^4.0.0",
+ "spec": ">=4.0.0 <5.0.0",
+ "type": "range"
+ },
"/Users/rebecca/code/npm/node_modules/lodash.without"
]
],
"_from": "lodash.rest@>=4.0.0 <5.0.0",
- "_id": "lodash.rest@4.0.3",
+ "_id": "lodash.rest@4.0.4",
"_inCache": true,
"_installable": true,
"_location": "/lodash.without/lodash.rest",
- "_nodeVersion": "5.5.0",
+ "_nodeVersion": "4.2.4",
"_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/lodash.rest-4.0.3.tgz_1463062507321_0.6458017621189356"
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/lodash.rest-4.0.4.tgz_1469458201804_0.20576561917550862"
},
"_npmUser": {
- "email": "john.david.dalton@gmail.com",
- "name": "jdalton"
+ "name": "jdalton",
+ "email": "john.david.dalton@gmail.com"
},
- "_npmVersion": "2.15.5",
+ "_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
- "name": "lodash.rest",
"raw": "lodash.rest@^4.0.0",
- "rawSpec": "^4.0.0",
"scope": null,
+ "escapedName": "lodash.rest",
+ "name": "lodash.rest",
+ "rawSpec": "^4.0.0",
"spec": ">=4.0.0 <5.0.0",
"type": "range"
},
"_requiredBy": [
"/lodash.without"
],
- "_resolved": "https://registry.npmjs.org/lodash.rest/-/lodash.rest-4.0.3.tgz",
- "_shasum": "4c1c32c40028087250fabf70d42e0151548f48c5",
+ "_resolved": "https://registry.npmjs.org/lodash.rest/-/lodash.rest-4.0.4.tgz",
+ "_shasum": "3e357a9c9e14843b5fa29d95021bc0466865fada",
"_shrinkwrap": null,
"_spec": "lodash.rest@^4.0.0",
"_where": "/Users/rebecca/code/npm/node_modules/lodash.without",
"author": {
- "email": "john.david.dalton@gmail.com",
"name": "John-David Dalton",
+ "email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
"bugs": {
@@ -47,18 +56,18 @@
},
"contributors": [
{
- "email": "john.david.dalton@gmail.com",
"name": "John-David Dalton",
+ "email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
- "email": "blaine.bublitz@gmail.com",
"name": "Blaine Bublitz",
+ "email": "blaine.bublitz@gmail.com",
"url": "https://github.com/phated"
},
{
- "email": "mathias@qiwi.be",
"name": "Mathias Bynens",
+ "email": "mathias@qiwi.be",
"url": "https://mathiasbynens.be/"
}
],
@@ -67,8 +76,8 @@
"devDependencies": {},
"directories": {},
"dist": {
- "shasum": "4c1c32c40028087250fabf70d42e0151548f48c5",
- "tarball": "https://registry.npmjs.org/lodash.rest/-/lodash.rest-4.0.3.tgz"
+ "shasum": "3e357a9c9e14843b5fa29d95021bc0466865fada",
+ "tarball": "https://registry.npmjs.org/lodash.rest/-/lodash.rest-4.0.4.tgz"
},
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
@@ -79,16 +88,16 @@
"license": "MIT",
"maintainers": [
{
- "email": "john.david.dalton@gmail.com",
- "name": "jdalton"
+ "name": "jdalton",
+ "email": "john.david.dalton@gmail.com"
},
{
- "email": "mathias@qiwi.be",
- "name": "mathias"
+ "name": "mathias",
+ "email": "mathias@qiwi.be"
},
{
- "email": "blaine@iceddev.com",
- "name": "phated"
+ "name": "phated",
+ "email": "blaine@iceddev.com"
}
],
"name": "lodash.rest",
@@ -101,5 +110,5 @@
"scripts": {
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
},
- "version": "4.0.3"
+ "version": "4.0.4"
}
diff --git a/node_modules/lodash.without/package.json b/node_modules/lodash.without/package.json
index 0aac3a5cb..4c69734bc 100644
--- a/node_modules/lodash.without/package.json
+++ b/node_modules/lodash.without/package.json
@@ -1,11 +1,19 @@
{
"_args": [
[
- "lodash.without@latest",
+ {
+ "raw": "lodash.without@4.2.0",
+ "scope": null,
+ "escapedName": "lodash.without",
+ "name": "lodash.without",
+ "rawSpec": "4.2.0",
+ "spec": "4.2.0",
+ "type": "version"
+ },
"/Users/rebecca/code/npm"
]
],
- "_from": "lodash.without@latest",
+ "_from": "lodash.without@4.2.0",
"_id": "lodash.without@4.2.0",
"_inCache": true,
"_installable": true,
@@ -16,30 +24,32 @@
"tmp": "tmp/lodash.without-4.2.0.tgz_1463062688060_0.9002856267616153"
},
"_npmUser": {
- "email": "john.david.dalton@gmail.com",
- "name": "jdalton"
+ "name": "jdalton",
+ "email": "john.david.dalton@gmail.com"
},
"_npmVersion": "2.15.5",
"_phantomChildren": {},
"_requested": {
- "name": "lodash.without",
- "raw": "lodash.without@latest",
- "rawSpec": "latest",
+ "raw": "lodash.without@4.2.0",
"scope": null,
- "spec": "latest",
- "type": "tag"
+ "escapedName": "lodash.without",
+ "name": "lodash.without",
+ "rawSpec": "4.2.0",
+ "spec": "4.2.0",
+ "type": "version"
},
"_requiredBy": [
+ "#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/lodash.without/-/lodash.without-4.2.0.tgz",
"_shasum": "f89ec9a8ee2d7ec14f8a9cad72a3f5ee12c5a4a6",
"_shrinkwrap": null,
- "_spec": "lodash.without@latest",
+ "_spec": "lodash.without@4.2.0",
"_where": "/Users/rebecca/code/npm",
"author": {
- "email": "john.david.dalton@gmail.com",
"name": "John-David Dalton",
+ "email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
"bugs": {
@@ -47,18 +57,18 @@
},
"contributors": [
{
- "email": "john.david.dalton@gmail.com",
"name": "John-David Dalton",
+ "email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
- "email": "blaine.bublitz@gmail.com",
"name": "Blaine Bublitz",
+ "email": "blaine.bublitz@gmail.com",
"url": "https://github.com/phated"
},
{
- "email": "mathias@qiwi.be",
"name": "Mathias Bynens",
+ "email": "mathias@qiwi.be",
"url": "https://mathiasbynens.be/"
}
],
@@ -82,16 +92,16 @@
"license": "MIT",
"maintainers": [
{
- "email": "john.david.dalton@gmail.com",
- "name": "jdalton"
+ "name": "jdalton",
+ "email": "john.david.dalton@gmail.com"
},
{
- "email": "mathias@qiwi.be",
- "name": "mathias"
+ "name": "mathias",
+ "email": "mathias@qiwi.be"
},
{
- "email": "blaine@iceddev.com",
- "name": "phated"
+ "name": "phated",
+ "email": "blaine@iceddev.com"
}
],
"name": "lodash.without",