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/defaults
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/defaults')
-rw-r--r--node_modules/defaults/.npmignore1
-rw-r--r--node_modules/defaults/LICENSE21
-rw-r--r--node_modules/defaults/README.md43
-rw-r--r--node_modules/defaults/index.js13
-rw-r--r--node_modules/defaults/package.json77
-rw-r--r--node_modules/defaults/test.js34
6 files changed, 0 insertions, 189 deletions
diff --git a/node_modules/defaults/.npmignore b/node_modules/defaults/.npmignore
deleted file mode 100644
index 3c3629e64..000000000
--- a/node_modules/defaults/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/node_modules/defaults/LICENSE b/node_modules/defaults/LICENSE
deleted file mode 100644
index d88b07207..000000000
--- a/node_modules/defaults/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Elijah Insua
-
-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/defaults/README.md b/node_modules/defaults/README.md
deleted file mode 100644
index 1a4a2ea9c..000000000
--- a/node_modules/defaults/README.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# defaults
-
-A simple one level options merge utility
-
-## install
-
-`npm install defaults`
-
-## use
-
-```javascript
-
-var defaults = require('defaults');
-
-var handle = function(options, fn) {
- options = defaults(options, {
- timeout: 100
- });
-
- setTimeout(function() {
- fn(options);
- }, options.timeout);
-}
-
-handle({ timeout: 1000 }, function() {
- // we're here 1000 ms later
-});
-
-handle({ timeout: 10000 }, function() {
- // we're here 10s later
-});
-
-```
-
-## summary
-
-this module exports a function that takes 2 arguments: `options` and `defaults`. When called, it overrides all of `undefined` properties in `options` with the clones of properties defined in `defaults`
-
-Sidecases: if called with a falsy `options` value, options will be initialized to a new object before being merged onto.
-
-## license
-
-[MIT](LICENSE)
diff --git a/node_modules/defaults/index.js b/node_modules/defaults/index.js
deleted file mode 100644
index cb7d75c9c..000000000
--- a/node_modules/defaults/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var clone = require('clone');
-
-module.exports = function(options, defaults) {
- options = options || {};
-
- Object.keys(defaults).forEach(function(key) {
- if (typeof options[key] === 'undefined') {
- options[key] = clone(defaults[key]);
- }
- });
-
- return options;
-}; \ No newline at end of file
diff --git a/node_modules/defaults/package.json b/node_modules/defaults/package.json
deleted file mode 100644
index 7c025a168..000000000
--- a/node_modules/defaults/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_args": [
- [
- "defaults@^1.0.0",
- "/Users/rebecca/code/npm/node_modules/wcwidth"
- ]
- ],
- "_from": "defaults@>=1.0.0 <2.0.0",
- "_id": "defaults@1.0.2",
- "_inCache": true,
- "_location": "/defaults",
- "_npmUser": {
- "email": "tmpvar@gmail.com",
- "name": "tmpvar"
- },
- "_npmVersion": "1.4.23",
- "_phantomChildren": {},
- "_requested": {
- "name": "defaults",
- "raw": "defaults@^1.0.0",
- "rawSpec": "^1.0.0",
- "scope": null,
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/wcwidth"
- ],
- "_resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.2.tgz",
- "_shasum": "6902e25aa047649a501e19ef9e98f3e8365c109a",
- "_shrinkwrap": null,
- "_spec": "defaults@^1.0.0",
- "_where": "/Users/rebecca/code/npm/node_modules/wcwidth",
- "author": {
- "email": "tmpvar@gmail.com",
- "name": "Elijah Insua"
- },
- "bugs": {
- "url": "https://github.com/tmpvar/defaults/issues"
- },
- "dependencies": {
- "clone": "~0.1.5"
- },
- "description": "merge single level defaults over a config object",
- "devDependencies": {
- "tap": "~0.4.0"
- },
- "directories": {},
- "dist": {
- "shasum": "6902e25aa047649a501e19ef9e98f3e8365c109a",
- "tarball": "http://registry.npmjs.org/defaults/-/defaults-1.0.2.tgz"
- },
- "gitHead": "22c57d1f87a2f03c1f9d21bd39c67db8553a0064",
- "homepage": "https://github.com/tmpvar/defaults",
- "keywords": [
- "config",
- "defaults"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "name": "tmpvar",
- "email": "tmpvar@gmail.com"
- }
- ],
- "name": "defaults",
- "optionalDependencies": {},
- "repository": {
- "type": "git",
- "url": "git://github.com/tmpvar/defaults.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/defaults/test.js b/node_modules/defaults/test.js
deleted file mode 100644
index 60e0ffba8..000000000
--- a/node_modules/defaults/test.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var defaults = require('./'),
- test = require('tap').test;
-
-test("ensure options is an object", function(t) {
- var options = defaults(false, { a : true });
- t.ok(options.a);
- t.end()
-});
-
-test("ensure defaults override keys", function(t) {
- var result = defaults({}, { a: false, b: true });
- t.ok(result.b, 'b merges over undefined');
- t.equal(result.a, false, 'a merges over undefined');
- t.end();
-});
-
-test("ensure defined keys are not overwritten", function(t) {
- var result = defaults({ b: false }, { a: false, b: true });
- t.equal(result.b, false, 'b not merged');
- t.equal(result.a, false, 'a merges over undefined');
- t.end();
-});
-
-test("ensure defaults clone nested objects", function(t) {
- var d = { a: [1,2,3], b: { hello : 'world' } };
- var result = defaults({}, d);
- t.equal(result.a.length, 3, 'objects should be clones');
- t.ok(result.a !== d.a, 'objects should be clones');
-
- t.equal(Object.keys(result.b).length, 1, 'objects should be clones');
- t.ok(result.b !== d.b, 'objects should be clones');
- t.end();
-});
-