diff options
author | isaacs <i@izs.me> | 2013-10-24 11:21:44 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-10-24 11:25:27 +0400 |
commit | b8882d23f2da334ec1abfb7ef13a8028903db4bc (patch) | |
tree | 4877349340d6910899ef0080d325b97f3c6a9d96 | |
parent | c75a0d876b8ab9a6056aa716f1352443eed24a8f (diff) |
npmconf update
6 files changed, 26 insertions, 9 deletions
diff --git a/node_modules/npmconf/node_modules/config-chain/index.js b/node_modules/npmconf/node_modules/config-chain/index.js index 523b2eb39..0ef3a91f7 100755 --- a/node_modules/npmconf/node_modules/config-chain/index.js +++ b/node_modules/npmconf/node_modules/config-chain/index.js @@ -141,7 +141,7 @@ ConfigChain.prototype.get = function (key, where) { if (where) { where = this.sources[where] if (where) where = where.data - if (where && where.hasOwnProperty(key)) return where[key] + if (where && Object.hasOwnProperty.call(where, key)) return where[key] return undefined } return this.list[0][key] diff --git a/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json b/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json index 9b9d3d7e8..1d73d658f 100644 --- a/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json +++ b/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json @@ -27,6 +27,7 @@ "bugs": { "url": "https://github.com/isaacs/proto-list/issues" }, + "homepage": "https://github.com/isaacs/proto-list", "_id": "proto-list@1.2.2", "_from": "proto-list@~1.2.1" } diff --git a/node_modules/npmconf/node_modules/config-chain/package.json b/node_modules/npmconf/node_modules/config-chain/package.json index d0d24eaae..10e9b4c4b 100644 --- a/node_modules/npmconf/node_modules/config-chain/package.json +++ b/node_modules/npmconf/node_modules/config-chain/package.json @@ -1,6 +1,6 @@ { "name": "config-chain", - "version": "1.1.7", + "version": "1.1.8", "description": "HANDLE CONFIGURATION ONCE AND FOR ALL", "homepage": "http://github.com/dominictarr/config-chain", "repository": { @@ -27,6 +27,6 @@ "bugs": { "url": "https://github.com/dominictarr/config-chain/issues" }, - "_id": "config-chain@1.1.7", - "_from": "config-chain@~1.1.1" + "_id": "config-chain@1.1.8", + "_from": "config-chain@~1.1.8" } diff --git a/node_modules/npmconf/node_modules/config-chain/test/get.js b/node_modules/npmconf/node_modules/config-chain/test/get.js new file mode 100644 index 000000000..d6fd79f74 --- /dev/null +++ b/node_modules/npmconf/node_modules/config-chain/test/get.js @@ -0,0 +1,15 @@ +var cc = require("../"); + +var chain = cc() + , name = "forFun"; + +chain + .add({ + __sample:"for fun only" + }, name) + .on("load", function() { + //It throw exception here + console.log(chain.get("__sample", name)); + //But if I drop the name param, it run normally and return as expected: "for fun only" + //console.log(chain.get("__sample")); + }); diff --git a/node_modules/npmconf/package.json b/node_modules/npmconf/package.json index 2f188df37..740568e17 100644 --- a/node_modules/npmconf/package.json +++ b/node_modules/npmconf/package.json @@ -1,15 +1,15 @@ { "name": "npmconf", - "version": "0.1.3", + "version": "0.1.5", "description": "The config thing npm uses", "main": "npmconf.js", "directories": { "test": "test" }, "dependencies": { - "config-chain": "~1.1.1", + "config-chain": "~1.1.8", "inherits": "~2.0.0", - "once": "~1.1.1", + "once": "~1.3.0", "mkdirp": "~0.3.3", "osenv": "0.0.3", "nopt": "2", @@ -44,6 +44,7 @@ "bugs": { "url": "https://github.com/isaacs/npmconf/issues" }, - "_id": "npmconf@0.1.3", + "homepage": "https://github.com/isaacs/npmconf", + "_id": "npmconf@0.1.5", "_from": "npmconf@latest" } diff --git a/package.json b/package.json index f0fc8b0e9..2a7f8d54b 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "lockfile": "~0.4.0", "retry": "~0.6.0", "once": "~1.3.0", - "npmconf": "~0.1.2", + "npmconf": "~0.1.5", "opener": "~1.3.0", "chmodr": "~0.1.0", "cmd-shim": "~1.1.1", |