Comparing version 2.0.7 to 2.0.8
@@ -7,5 +7,6 @@ // the nice wrapper around the raw C++ binding. | ||
exports.glob = glob | ||
exports.globSync = globSync | ||
exports.fnmatch = fnmatch | ||
module.exports = glob | ||
glob.glob = glob | ||
glob.globSync = glob.sync = globSync | ||
glob.fnmatch = fnmatch | ||
@@ -15,3 +16,3 @@ Object.keys(binding) | ||
.forEach(function (k) { | ||
glob[k] = globSync[k] = exports[k] = binding[k] | ||
glob[k] = globSync[k] = binding[k] | ||
globSync[binding[k]] = glob[binding[k]] = k | ||
@@ -23,3 +24,3 @@ }) | ||
.forEach(function (k) { | ||
fnmatch[k] = exports[k] = binding[k] | ||
fnmatch[k] = glob[k] = binding[k] | ||
fnmatch[binding[k]] = k | ||
@@ -29,11 +30,11 @@ }) | ||
// sane defaults. | ||
exports.FNM_DEFAULT = binding.FNM_PATHNAME | binding.FNM_PERIOD | ||
fnmatch.FNM_DEFAULT = exports.FNM_DEFAULT | ||
glob.FNM_DEFAULT = binding.FNM_PATHNAME | binding.FNM_PERIOD | ||
fnmatch.FNM_DEFAULT = glob.FNM_DEFAULT | ||
fnmatch[fnmatch.FNM_DEFAULT] = "FNM_DEFAULT" | ||
exports.GLOB_DEFAULT = binding.GLOB_BRACE | ||
| binding.GLOB_STAR | ||
| binding.GLOB_MARK | ||
| binding.GLOB_TILDE | ||
glob.GLOB_DEFAULT = globSync.GLOB_DEFAULT = exports.GLOB_DEFAULT | ||
glob.GLOB_DEFAULT = binding.GLOB_BRACE | ||
| binding.GLOB_STAR | ||
| binding.GLOB_MARK | ||
| binding.GLOB_TILDE | ||
globSync.GLOB_DEFAULT = glob.GLOB_DEFAULT | ||
glob[glob.GLOB_DEFAULT] = globSync[glob.GLOB_DEFAULT] = "GLOB_DEFAULT" | ||
@@ -47,3 +48,3 @@ | ||
if (!flags) flags = exports.GLOB_DEFAULT | ||
if (!flags) flags = glob.GLOB_DEFAULT | ||
@@ -55,4 +56,4 @@ // console.log("glob", pattern, flags, cb) | ||
if (er && er.message === "GLOB_NOMATCH") matches = [], er = null | ||
if (er && exports.hasOwnProperty(er.message)) { | ||
er.errno = exports[er.message] | ||
if (er && glob.hasOwnProperty(er.message)) { | ||
er.errno = glob[er.message] | ||
} | ||
@@ -64,3 +65,3 @@ cb(er, matches) | ||
function globSync (pattern, flags) { | ||
if (!flags) flags = exports.GLOB_DEFAULT | ||
if (!flags) flags = glob.GLOB_DEFAULT | ||
if (typeof pattern !== "string") throw new Error( | ||
@@ -72,4 +73,4 @@ "usage: globSync(pattern [, flags])") | ||
if (er.message === "GLOB_NOMATCH") return [] | ||
if (exports.hasOwnProperty(er.message)) { | ||
er.errno = exports[er.message] | ||
if (glob.hasOwnProperty(er.message)) { | ||
er.errno = glob[er.message] | ||
} | ||
@@ -82,3 +83,3 @@ throw er | ||
if (typeof flags !== "number") { | ||
flags = exports.FNM_DEFAULT | ||
flags = glob.FNM_DEFAULT | ||
} | ||
@@ -85,0 +86,0 @@ var res = binding.fnmatch(pattern, str, flags) |
{ "name" : "glob" | ||
, "description" : "glob/fnmatch binding for node" | ||
, "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)" | ||
, "version" : "2.0.7" | ||
, "version" : "2.0.8" | ||
, "main" : "./lib/glob" | ||
@@ -6,0 +6,0 @@ , "repository" : "git://github.com/isaacs/node-glob.git" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
144
0
67555