diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-02-27 14:53:55 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-02-27 14:53:55 +0300 |
commit | 5d0612f31e226cba32a05351c47b055c0ab6c557 (patch) | |
tree | fe94ee4a517eaf66a2613eb48c3cfabf3c5f7142 /node_modules/glob | |
parent | 64b07f6caf6cb07e4102f1e4e5f2ff2b944e452e (diff) |
glob@4.4.1
More informative error messages when calling sync versions of functions
with a callback.
Diffstat (limited to 'node_modules/glob')
-rw-r--r-- | node_modules/glob/package.json | 17 | ||||
-rw-r--r-- | node_modules/glob/sync.js | 6 |
2 files changed, 12 insertions, 11 deletions
diff --git a/node_modules/glob/package.json b/node_modules/glob/package.json index c5032684b..8c11fbb77 100644 --- a/node_modules/glob/package.json +++ b/node_modules/glob/package.json @@ -6,7 +6,7 @@ }, "name": "glob", "description": "a little globber", - "version": "4.4.0", + "version": "4.4.1", "repository": { "type": "git", "url": "git://github.com/isaacs/node-glob.git" @@ -42,14 +42,14 @@ "benchclean": "bash benchclean.sh" }, "license": "ISC", - "gitHead": "57e6b293108b48d9771a05e2b9a6a1b12cb81c12", + "gitHead": "a10b0294183788c0e9f56fc3ac88832e2c3513bc", "bugs": { "url": "https://github.com/isaacs/node-glob/issues" }, "homepage": "https://github.com/isaacs/node-glob", - "_id": "glob@4.4.0", - "_shasum": "91d63dc1ed1d82b52ba2cb76044852ccafc2130f", - "_from": "glob@>=4.4.0 <4.5.0", + "_id": "glob@4.4.1", + "_shasum": "8395b16d01f4a58f0bf3f6359174997b78d74197", + "_from": "glob@>=4.4.1 <4.5.0", "_npmVersion": "2.6.0", "_nodeVersion": "1.1.0", "_npmUser": { @@ -63,10 +63,9 @@ } ], "dist": { - "shasum": "91d63dc1ed1d82b52ba2cb76044852ccafc2130f", - "tarball": "http://registry.npmjs.org/glob/-/glob-4.4.0.tgz" + "shasum": "8395b16d01f4a58f0bf3f6359174997b78d74197", + "tarball": "http://registry.npmjs.org/glob/-/glob-4.4.1.tgz" }, "directories": {}, - "_resolved": "https://registry.npmjs.org/glob/-/glob-4.4.0.tgz", - "readme": "ERROR: No README data found!" + "_resolved": "https://registry.npmjs.org/glob/-/glob-4.4.1.tgz" } diff --git a/node_modules/glob/sync.js b/node_modules/glob/sync.js index 686f2c369..7aa0d07c5 100644 --- a/node_modules/glob/sync.js +++ b/node_modules/glob/sync.js @@ -18,7 +18,8 @@ var childrenIgnored = common.childrenIgnored function globSync (pattern, options) { if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob') + throw new TypeError('callback provided to sync glob\n'+ + 'See: https://github.com/isaacs/node-glob/issues/167') return new GlobSync(pattern, options).found } @@ -28,7 +29,8 @@ function GlobSync (pattern, options) { throw new Error('must provide pattern') if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob') + throw new TypeError('callback provided to sync glob\n'+ + 'See: https://github.com/isaacs/node-glob/issues/167') if (!(this instanceof GlobSync)) return new GlobSync(pattern, options) |