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:
authorForrest L Norvell <forrest@npmjs.com>2015-10-15 08:17:03 +0300
committerRebecca Turner <me@re-becca.org>2015-10-16 01:25:33 +0300
commit25a234b4595ee3f1a2c09e2a39e3c238aa642557 (patch)
treedef772e3c15c7bd3d0b05eeeb6069898617cbf23 /node_modules/lodash.union
parent4cd74b0cdc639081fcf292eb9a03dbd93451c7c0 (diff)
src: install npm@3 with npm@2
Restore the ability to do one-shot upgrades from the versions of npm bundled with Node 0.8 to npm@3, which simplifies using Travis with old Node and new npm, for compatibility testing purposes. Older versions of npm repack packages on install, which works poorly with the way npm@3 handles bundledDependencies with flat trees. Fixes: #9668 PR-URL: https://github.com/npm/npm/pull/9981
Diffstat (limited to 'node_modules/lodash.union')
-rw-r--r--node_modules/lodash.union/node_modules/lodash._baseflatten/LICENSE22
-rw-r--r--node_modules/lodash.union/node_modules/lodash._baseflatten/README.md20
-rw-r--r--node_modules/lodash.union/node_modules/lodash._baseflatten/index.js131
-rw-r--r--node_modules/lodash.union/node_modules/lodash._baseflatten/package.json60
-rw-r--r--node_modules/lodash.union/package.json95
5 files changed, 268 insertions, 60 deletions
diff --git a/node_modules/lodash.union/node_modules/lodash._baseflatten/LICENSE b/node_modules/lodash.union/node_modules/lodash._baseflatten/LICENSE
new file mode 100644
index 000000000..9cd87e5dc
--- /dev/null
+++ b/node_modules/lodash.union/node_modules/lodash._baseflatten/LICENSE
@@ -0,0 +1,22 @@
+Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
+Based on Underscore.js, copyright 2009-2015 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.
diff --git a/node_modules/lodash.union/node_modules/lodash._baseflatten/README.md b/node_modules/lodash.union/node_modules/lodash._baseflatten/README.md
new file mode 100644
index 000000000..f3e227779
--- /dev/null
+++ b/node_modules/lodash.union/node_modules/lodash._baseflatten/README.md
@@ -0,0 +1,20 @@
+# lodash._baseflatten v3.1.4
+
+The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFlatten` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
+
+## Installation
+
+Using npm:
+
+```bash
+$ {sudo -H} npm i -g npm
+$ npm i --save lodash._baseflatten
+```
+
+In Node.js/io.js:
+
+```js
+var baseFlatten = require('lodash._baseflatten');
+```
+
+See the [package source](https://github.com/lodash/lodash/blob/3.1.4-npm-packages/lodash._baseflatten) for more details.
diff --git a/node_modules/lodash.union/node_modules/lodash._baseflatten/index.js b/node_modules/lodash.union/node_modules/lodash._baseflatten/index.js
new file mode 100644
index 000000000..c43acfa72
--- /dev/null
+++ b/node_modules/lodash.union/node_modules/lodash._baseflatten/index.js
@@ -0,0 +1,131 @@
+/**
+ * lodash 3.1.4 (Custom Build) <https://lodash.com/>
+ * Build: `lodash modern modularize exports="npm" -o ./`
+ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ * Available under MIT license <https://lodash.com/license>
+ */
+var isArguments = require('lodash.isarguments'),
+ isArray = require('lodash.isarray');
+
+/**
+ * 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.
+ */
+var MAX_SAFE_INTEGER = 9007199254740991;
+
+/**
+ * Appends the elements of `values` to `array`.
+ *
+ * @private
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to append.
+ * @returns {Array} Returns `array`.
+ */
+function arrayPush(array, values) {
+ var index = -1,
+ length = values.length,
+ offset = array.length;
+
+ while (++index < length) {
+ array[offset + index] = values[index];
+ }
+ return array;
+}
+
+/**
+ * The base implementation of `_.flatten` with added support for restricting
+ * flattening and specifying the start index.
+ *
+ * @private
+ * @param {Array} array The array to flatten.
+ * @param {boolean} [isDeep] Specify a deep flatten.
+ * @param {boolean} [isStrict] Restrict flattening to arrays-like objects.
+ * @param {Array} [result=[]] The initial result value.
+ * @returns {Array} Returns the new flattened array.
+ */
+function baseFlatten(array, isDeep, isStrict, result) {
+ result || (result = []);
+
+ var index = -1,
+ length = array.length;
+
+ while (++index < length) {
+ var value = array[index];
+ if (isObjectLike(value) && isArrayLike(value) &&
+ (isStrict || isArray(value) || isArguments(value))) {
+ if (isDeep) {
+ // Recursively flatten arrays (susceptible to call stack limits).
+ baseFlatten(value, isDeep, isStrict, result);
+ } else {
+ arrayPush(result, value);
+ }
+ } else if (!isStrict) {
+ result[result.length] = value;
+ }
+ }
+ return result;
+}
+
+/**
+ * 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 function.
+ */
+function baseProperty(key) {
+ return function(object) {
+ return object == null ? undefined : object[key];
+ };
+}
+
+/**
+ * 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 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.
+ *
+ * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ */
+function isLength(value) {
+ return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+}
+
+module.exports = baseFlatten;
diff --git a/node_modules/lodash.union/node_modules/lodash._baseflatten/package.json b/node_modules/lodash.union/node_modules/lodash._baseflatten/package.json
new file mode 100644
index 000000000..6d142e1cb
--- /dev/null
+++ b/node_modules/lodash.union/node_modules/lodash._baseflatten/package.json
@@ -0,0 +1,60 @@
+{
+ "name": "lodash._baseflatten",
+ "version": "3.1.4",
+ "description": "The modern build of lodash’s internal `baseFlatten` as a module.",
+ "homepage": "https://lodash.com/",
+ "icon": "https://lodash.com/icon.svg",
+ "license": "MIT",
+ "author": {
+ "name": "John-David Dalton",
+ "email": "john.david.dalton@gmail.com",
+ "url": "http://allyoucanleet.com/"
+ },
+ "contributors": [
+ {
+ "name": "John-David Dalton",
+ "email": "john.david.dalton@gmail.com",
+ "url": "http://allyoucanleet.com/"
+ },
+ {
+ "name": "Benjamin Tan",
+ "email": "demoneaux@gmail.com",
+ "url": "https://d10.github.io/"
+ },
+ {
+ "name": "Blaine Bublitz",
+ "email": "blaine@iceddev.com",
+ "url": "http://www.iceddev.com/"
+ },
+ {
+ "name": "Kit Cambridge",
+ "email": "github@kitcambridge.be",
+ "url": "http://kitcambridge.be/"
+ },
+ {
+ "name": "Mathias Bynens",
+ "email": "mathias@qiwi.be",
+ "url": "https://mathiasbynens.be/"
+ }
+ ],
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/lodash/lodash.git"
+ },
+ "scripts": {
+ "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
+ },
+ "dependencies": {
+ "lodash.isarguments": "^3.0.0",
+ "lodash.isarray": "^3.0.0"
+ },
+ "readme": "# lodash._baseflatten v3.1.4\n\nThe [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFlatten` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.\n\n## Installation\n\nUsing npm:\n\n```bash\n$ {sudo -H} npm i -g npm\n$ npm i --save lodash._baseflatten\n```\n\nIn Node.js/io.js:\n\n```js\nvar baseFlatten = require('lodash._baseflatten');\n```\n\nSee the [package source](https://github.com/lodash/lodash/blob/3.1.4-npm-packages/lodash._baseflatten) for more details.\n",
+ "readmeFilename": "README.md",
+ "bugs": {
+ "url": "https://github.com/lodash/lodash/issues"
+ },
+ "_id": "lodash._baseflatten@3.1.4",
+ "_shasum": "0770ff80131af6e34f3b511796a7ba5214e65ff7",
+ "_resolved": "https://registry.npmjs.org/lodash._baseflatten/-/lodash._baseflatten-3.1.4.tgz",
+ "_from": "lodash._baseflatten@>=3.0.0 <4.0.0"
+}
diff --git a/node_modules/lodash.union/package.json b/node_modules/lodash.union/package.json
index 4359aa2c3..7c82a1ef4 100644
--- a/node_modules/lodash.union/package.json
+++ b/node_modules/lodash.union/package.json
@@ -1,45 +1,21 @@
{
- "_args": [
- [
- "lodash.union@~3.1.0",
- "/Users/rebecca/code/npm"
- ]
- ],
- "_from": "lodash.union@>=3.1.0 <3.2.0",
- "_id": "lodash.union@3.1.0",
- "_inCache": true,
- "_location": "/lodash.union",
- "_nodeVersion": "0.12.0",
- "_npmUser": {
- "email": "john.david.dalton@gmail.com",
- "name": "jdalton"
- },
- "_npmVersion": "2.7.3",
- "_phantomChildren": {},
- "_requested": {
- "name": "lodash.union",
- "raw": "lodash.union@~3.1.0",
- "rawSpec": "~3.1.0",
- "scope": null,
- "spec": ">=3.1.0 <3.2.0",
- "type": "range"
- },
- "_requiredBy": [
- "/"
+ "name": "lodash.union",
+ "version": "3.1.0",
+ "description": "The modern build of lodash’s `_.union` as a module.",
+ "homepage": "https://lodash.com/",
+ "icon": "https://lodash.com/icon.svg",
+ "license": "MIT",
+ "keywords": [
+ "lodash",
+ "lodash-modularized",
+ "stdlib",
+ "util"
],
- "_resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-3.1.0.tgz",
- "_shasum": "a4a3066fc15d6a7f8151cce9bdfe63dce7f5bcff",
- "_shrinkwrap": null,
- "_spec": "lodash.union@~3.1.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": {
- "url": "https://github.com/lodash/lodash/issues"
- },
"contributors": [
{
"name": "John-David Dalton",
@@ -67,27 +43,30 @@
"url": "https://mathiasbynens.be/"
}
],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/lodash/lodash"
+ },
+ "scripts": {
+ "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
+ },
"dependencies": {
"lodash._baseflatten": "^3.0.0",
"lodash._baseuniq": "^3.0.0",
"lodash.restparam": "^3.0.0"
},
- "description": "The modern build of lodash’s `_.union` as a module.",
- "devDependencies": {},
- "directories": {},
- "dist": {
- "shasum": "a4a3066fc15d6a7f8151cce9bdfe63dce7f5bcff",
- "tarball": "http://registry.npmjs.org/lodash.union/-/lodash.union-3.1.0.tgz"
+ "bugs": {
+ "url": "https://github.com/lodash/lodash/issues"
+ },
+ "_id": "lodash.union@3.1.0",
+ "_shasum": "a4a3066fc15d6a7f8151cce9bdfe63dce7f5bcff",
+ "_from": "lodash.union@>=3.1.0 <3.2.0",
+ "_npmVersion": "2.7.3",
+ "_nodeVersion": "0.12.0",
+ "_npmUser": {
+ "name": "jdalton",
+ "email": "john.david.dalton@gmail.com"
},
- "homepage": "https://lodash.com/",
- "icon": "https://lodash.com/icon.svg",
- "keywords": [
- "lodash",
- "lodash-modularized",
- "stdlib",
- "util"
- ],
- "license": "MIT",
"maintainers": [
{
"name": "jdalton",
@@ -110,14 +89,10 @@
"email": "demoneaux@gmail.com"
}
],
- "name": "lodash.union",
- "optionalDependencies": {},
- "repository": {
- "type": "git",
- "url": "https://github.com/lodash/lodash"
- },
- "scripts": {
- "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
+ "dist": {
+ "shasum": "a4a3066fc15d6a7f8151cce9bdfe63dce7f5bcff",
+ "tarball": "http://registry.npmjs.org/lodash.union/-/lodash.union-3.1.0.tgz"
},
- "version": "3.1.0"
+ "directories": {},
+ "_resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-3.1.0.tgz"
}