diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-12-22 19:16:15 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-12-22 19:16:15 +0300 |
commit | a4e4e33edb35c68813f04bf42bdf933a6f727bcd (patch) | |
tree | 906737a4e748d3f8d05b996cb2752ab86e7b4711 | |
parent | aa2ea543e080461521cc1235d971284f012aae63 (diff) |
read-installed@3.1.5
Safer fix than read-installed@3.1.4.
-rw-r--r-- | node_modules/read-installed/package.json | 10 | ||||
-rw-r--r-- | node_modules/read-installed/read-installed.js | 4 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/node_modules/read-installed/package.json b/node_modules/read-installed/package.json index 279d8716b..145205fcc 100644 --- a/node_modules/read-installed/package.json +++ b/node_modules/read-installed/package.json @@ -1,7 +1,7 @@ { "name": "read-installed", "description": "Read all the installed packages in a folder, and return a tree structure with all the data.", - "version": "3.1.4", + "version": "3.1.5", "repository": { "type": "git", "url": "git://github.com/isaacs/read-installed" @@ -35,12 +35,12 @@ }, "readme": "# read-installed\n\nRead all the installed packages in a folder, and return a tree\nstructure with all the data.\n\nnpm uses this.\n\n## 2.0.0\n\nBreaking changes in `2.0.0`:\n\nThe second argument is now an `Object` that contains the following keys:\n\n * `depth` optional, defaults to Infinity\n * `log` optional log Function\n * `dev` optional, default false, set to true to include devDependencies\n\n## Usage\n\n```javascript\nvar readInstalled = require(\"read-installed\")\n// optional options\nvar options = { dev: false, log: fn, depth: 2 }\nreadInstalled(folder, options, function (er, data) {\n ...\n})\n```\n", "readmeFilename": "README.md", - "gitHead": "f9c77b228bbc2721dc2fa30c3fd78cc53fb72a3a", + "gitHead": "577c3f3f4f1e435f9bd944b8f99ce3f7552709ef", "bugs": { "url": "https://github.com/isaacs/read-installed/issues" }, "homepage": "https://github.com/isaacs/read-installed", - "_id": "read-installed@3.1.4", - "_shasum": "a27b10f3ce24e2d152c5e4a8542d749c0bb1f485", - "_from": "read-installed@>=3.1.4 <3.2.0" + "_id": "read-installed@3.1.5", + "_shasum": "4ae36081afd3e2204dc2e279807aaa52c30c8c0c", + "_from": "read-installed@>=3.1.5 <3.2.0" } diff --git a/node_modules/read-installed/read-installed.js b/node_modules/read-installed/read-installed.js index 466b421d0..2e299445b 100644 --- a/node_modules/read-installed/read-installed.js +++ b/node_modules/read-installed/read-installed.js @@ -345,7 +345,7 @@ function unmarkExtraneous (obj, opts) { obj.extraneous = false - var deps = obj._dependencies + var deps = obj._dependencies || [] if (opts.dev && obj.devDependencies && (obj.root || obj.link)) { Object.keys(obj.devDependencies).forEach(function (k) { deps[k] = obj.devDependencies[k] @@ -359,7 +359,7 @@ function unmarkExtraneous (obj, opts) { } debug("not extraneous", obj._id, deps) - Object.keys(deps || []).forEach(function (d) { + Object.keys(deps).forEach(function (d) { var dep = findDep(obj, d) if (dep && dep.extraneous) { unmarkExtraneous(dep, opts) diff --git a/package.json b/package.json index 02a7aa58e..362c335d4 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "osenv": "~0.1.0", "path-is-inside": "~1.0.0", "read": "~1.0.4", - "read-installed": "~3.1.4", + "read-installed": "~3.1.5", "read-package-json": "~1.2.7", "readable-stream": "~1.0.33", "realize-package-specifier": "~1.3.0", |