diff options
author | Rebecca Turner <me@re-becca.org> | 2015-10-29 16:50:12 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2015-11-02 14:25:04 -0500 |
commit | 507fc53e37d3fc6abb5ce0f7c46c8d7479e647ab (patch) | |
tree | 68ea2bbf0733eb1a1977b899040e18d035737a51 /deps/npm/node_modules/util-extend | |
parent | 6e40bf065931e20737875b27ab9ee71eaf5c7f99 (diff) | |
download | node-new-507fc53e37d3fc6abb5ce0f7c46c8d7479e647ab.tar.gz |
deps: upgrade npm to 3.3.10
PR-URL: https://github.com/nodejs/node/pull/3599
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/util-extend')
-rw-r--r-- | deps/npm/node_modules/util-extend/README.md | 13 | ||||
-rw-r--r-- | deps/npm/node_modules/util-extend/extend.js | 33 | ||||
-rw-r--r-- | deps/npm/node_modules/util-extend/package.json | 66 | ||||
-rw-r--r-- | deps/npm/node_modules/util-extend/test.js | 10 |
4 files changed, 0 insertions, 122 deletions
diff --git a/deps/npm/node_modules/util-extend/README.md b/deps/npm/node_modules/util-extend/README.md deleted file mode 100644 index be03922ab0..0000000000 --- a/deps/npm/node_modules/util-extend/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# util-extend - -The Node object extending function that Node uses for Node! - -## Usage - -```js -var extend = require('util-extend'); -function functionThatTakesOptions(options) { - var options = extend(defaults, options); - // now any unset options are set to the defaults. -} -``` diff --git a/deps/npm/node_modules/util-extend/extend.js b/deps/npm/node_modules/util-extend/extend.js deleted file mode 100644 index de9fcf471a..0000000000 --- a/deps/npm/node_modules/util-extend/extend.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// 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. - -module.exports = extend; -function extend(origin, add) { - // Don't do anything if add isn't an object - if (!add || typeof add !== 'object') return origin; - - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; - } - return origin; -} diff --git a/deps/npm/node_modules/util-extend/package.json b/deps/npm/node_modules/util-extend/package.json deleted file mode 100644 index 90d27e158c..0000000000 --- a/deps/npm/node_modules/util-extend/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_args": [ - [ - "util-extend@^1.0.1", - "/Users/rebecca/code/npm/node_modules/read-installed" - ] - ], - "_from": "util-extend@>=1.0.1 <2.0.0", - "_id": "util-extend@1.0.1", - "_inCache": true, - "_location": "/util-extend", - "_npmUser": { - "email": "i@izs.me", - "name": "isaacs" - }, - "_npmVersion": "1.3.4", - "_phantomChildren": {}, - "_requested": { - "name": "util-extend", - "raw": "util-extend@^1.0.1", - "rawSpec": "^1.0.1", - "scope": null, - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "_requiredBy": [ - "/read-installed" - ], - "_resolved": "https://registry.npmjs.org/util-extend/-/util-extend-1.0.1.tgz", - "_shasum": "bb703b79480293ddcdcfb3c6a9fea20f483415bc", - "_shrinkwrap": null, - "_spec": "util-extend@^1.0.1", - "_where": "/Users/rebecca/code/npm/node_modules/read-installed", - "author": "", - "bugs": { - "url": "https://github.com/isaacs/util-extend/issues" - }, - "dependencies": {}, - "description": "Node's internal object extension function", - "devDependencies": {}, - "directories": {}, - "dist": { - "shasum": "bb703b79480293ddcdcfb3c6a9fea20f483415bc", - "tarball": "http://registry.npmjs.org/util-extend/-/util-extend-1.0.1.tgz" - }, - "license": "MIT", - "main": "extend.js", - "maintainers": [ - { - "name": "isaacs", - "email": "i@izs.me" - } - ], - "name": "util-extend", - "optionalDependencies": {}, - "readme": "# util-extend\n\nThe Node object extending function that Node uses for Node!\n\n## Usage\n\n```js\nvar extend = require('util-extend');\nfunction functionThatTakesOptions(options) {\n var options = extend(defaults, options);\n // now any unset options are set to the defaults.\n}\n```\n", - "readmeFilename": "README.md", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/util-extend" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.1" -} diff --git a/deps/npm/node_modules/util-extend/test.js b/deps/npm/node_modules/util-extend/test.js deleted file mode 100644 index fbee2b1e1b..0000000000 --- a/deps/npm/node_modules/util-extend/test.js +++ /dev/null @@ -1,10 +0,0 @@ -var assert = require('assert'); -var extend = require('./'); -assert.deepEqual(extend({a:1}), {a:1}); -assert.deepEqual(extend({a:1}, []), {a:1}); -assert.deepEqual(extend({a:1}, null), {a:1}); -assert.deepEqual(extend({a:1}, true), {a:1}); -assert.deepEqual(extend({a:1}, false), {a:1}); -assert.deepEqual(extend({a:1}, {b:2}), {a:1, b:2}); -assert.deepEqual(extend({a:1, b:2}, {b:3}), {a:1, b:3}); -console.log('ok'); |