minimatch
Advanced tools
Comparing version 2.0.0 to 2.0.1
104
browser.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
(function (process){ | ||
module.exports = minimatch | ||
minimatch.Minimatch = Minimatch | ||
var isWindows = false | ||
if (typeof process !== 'undefined' && process.platform === 'win32') | ||
isWindows = true | ||
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} | ||
@@ -111,2 +116,6 @@ , expand = require("brace-expansion") | ||
// windows support: need to use /, not \ | ||
if (isWindows) | ||
pattern = pattern.split("\\").join("/") | ||
this.options = options | ||
@@ -625,2 +634,6 @@ this.set = [] | ||
// windows: need to use /, not \ | ||
if (isWindows) | ||
f = f.split("\\").join("/") | ||
// treat the test path as a set of pathparts. | ||
@@ -838,3 +851,4 @@ f = f.split(slashSplit) | ||
},{"brace-expansion":2}],2:[function(require,module,exports){ | ||
}).call(this,require('_process')) | ||
},{"_process":5,"brace-expansion":2}],2:[function(require,module,exports){ | ||
var concatMap = require('concat-map'); | ||
@@ -1082,2 +1096,90 @@ var balanced = require('balanced-match'); | ||
},{}],5:[function(require,module,exports){ | ||
// shim for using process in browser | ||
var process = module.exports = {}; | ||
process.nextTick = (function () { | ||
var canSetImmediate = typeof window !== 'undefined' | ||
&& window.setImmediate; | ||
var canMutationObserver = typeof window !== 'undefined' | ||
&& window.MutationObserver; | ||
var canPost = typeof window !== 'undefined' | ||
&& window.postMessage && window.addEventListener | ||
; | ||
if (canSetImmediate) { | ||
return function (f) { return window.setImmediate(f) }; | ||
} | ||
var queue = []; | ||
if (canMutationObserver) { | ||
var hiddenDiv = document.createElement("div"); | ||
var observer = new MutationObserver(function () { | ||
var queueList = queue.slice(); | ||
queue.length = 0; | ||
queueList.forEach(function (fn) { | ||
fn(); | ||
}); | ||
}); | ||
observer.observe(hiddenDiv, { attributes: true }); | ||
return function nextTick(fn) { | ||
if (!queue.length) { | ||
hiddenDiv.setAttribute('yes', 'no'); | ||
} | ||
queue.push(fn); | ||
}; | ||
} | ||
if (canPost) { | ||
window.addEventListener('message', function (ev) { | ||
var source = ev.source; | ||
if ((source === window || source === null) && ev.data === 'process-tick') { | ||
ev.stopPropagation(); | ||
if (queue.length > 0) { | ||
var fn = queue.shift(); | ||
fn(); | ||
} | ||
} | ||
}, true); | ||
return function nextTick(fn) { | ||
queue.push(fn); | ||
window.postMessage('process-tick', '*'); | ||
}; | ||
} | ||
return function nextTick(fn) { | ||
setTimeout(fn, 0); | ||
}; | ||
})(); | ||
process.title = 'browser'; | ||
process.browser = true; | ||
process.env = {}; | ||
process.argv = []; | ||
function noop() {} | ||
process.on = noop; | ||
process.addListener = noop; | ||
process.once = noop; | ||
process.off = noop; | ||
process.removeListener = noop; | ||
process.removeAllListeners = noop; | ||
process.emit = noop; | ||
process.binding = function (name) { | ||
throw new Error('process.binding is not supported'); | ||
}; | ||
// TODO(shtylman) | ||
process.cwd = function () { return '/' }; | ||
process.chdir = function (dir) { | ||
throw new Error('process.chdir is not supported'); | ||
}; | ||
},{}]},{},[1]); |
module.exports = minimatch | ||
minimatch.Minimatch = Minimatch | ||
var isWindows = false | ||
if (typeof process !== 'undefined' && process.platform === 'win32') | ||
isWindows = true | ||
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} | ||
@@ -110,2 +114,6 @@ , expand = require("brace-expansion") | ||
// windows support: need to use /, not \ | ||
if (isWindows) | ||
pattern = pattern.split("\\").join("/") | ||
this.options = options | ||
@@ -624,2 +632,6 @@ this.set = [] | ||
// windows: need to use /, not \ | ||
if (isWindows) | ||
f = f.split("\\").join("/") | ||
// treat the test path as a set of pathparts. | ||
@@ -626,0 +638,0 @@ f = f.split(slashSplit) |
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
88824
2347
3