From 5d0612f31e226cba32a05351c47b055c0ab6c557 Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Fri, 27 Feb 2015 03:53:55 -0800 Subject: glob@4.4.1 More informative error messages when calling sync versions of functions with a callback. --- node_modules/glob/package.json | 17 ++++++++--------- node_modules/glob/sync.js | 6 ++++-- package.json | 2 +- 3 files changed, 13 insertions(+), 12 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) diff --git a/package.json b/package.json index 654de8447..dac2e7c7a 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "fstream-npm": "~1.0.1", "github-url-from-git": "~1.4.0", "github-url-from-username-repo": "~1.0.2", - "glob": "~4.4.0", + "glob": "~4.4.1", "graceful-fs": "~3.0.5", "inflight": "~1.0.4", "inherits": "~2.0.1", -- cgit v1.2.3