+16
-11
@@ -742,14 +742,4 @@ // A simple implementation of make-array | ||
| // Windows | ||
| // -------------------------------------------------------------- | ||
| /* istanbul ignore next */ | ||
| if ( | ||
| // Detect `process` so that it can run in browsers. | ||
| typeof process !== 'undefined' | ||
| && ( | ||
| process.env && process.env.IGNORE_TEST_WIN32 | ||
| || process.platform === 'win32' | ||
| ) | ||
| ) { | ||
| const setupWindows = () => { | ||
| /* eslint no-control-regex: "off" */ | ||
@@ -771,2 +761,14 @@ const makePosix = str => /^\\\\\?\\/.test(str) | ||
| // Windows | ||
| // -------------------------------------------------------------- | ||
| /* istanbul ignore next */ | ||
| if ( | ||
| // Detect `process` so that it can run in browsers. | ||
| typeof process !== 'undefined' | ||
| && process.platform === 'win32' | ||
| ) { | ||
| setupWindows() | ||
| } | ||
| // COMMONJS_EXPORTS //////////////////////////////////////////////////////////// | ||
@@ -782,1 +784,4 @@ | ||
| module.exports.isPathValid = isPathValid | ||
| // For testing purposes | ||
| define(module.exports, Symbol.for('setupWindows'), setupWindows) |
+13
-5
@@ -645,8 +645,4 @@ "use strict"; | ||
| // Windows | ||
| // -------------------------------------------------------------- | ||
| /* istanbul ignore next */ | ||
| if ( | ||
| // Detect `process` so that it can run in browsers. | ||
| typeof process !== 'undefined' && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === 'win32')) { | ||
| var setupWindows = function setupWindows() { | ||
| /* eslint no-control-regex: "off" */ | ||
@@ -664,2 +660,11 @@ var makePosix = function makePosix(str) { | ||
| }; | ||
| }; | ||
| // Windows | ||
| // -------------------------------------------------------------- | ||
| /* istanbul ignore next */ | ||
| if ( | ||
| // Detect `process` so that it can run in browsers. | ||
| typeof process !== 'undefined' && process.platform === 'win32') { | ||
| setupWindows(); | ||
| } | ||
@@ -676,1 +681,4 @@ | ||
| module.exports.isPathValid = isPathValid; | ||
| // For testing purposes | ||
| define(module.exports, Symbol["for"]('setupWindows'), setupWindows); |
+1
-1
| { | ||
| "name": "ignore", | ||
| "version": "7.0.4", | ||
| "version": "7.0.5", | ||
| "description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
+2
-2
@@ -355,3 +355,3 @@ | Linux / MacOS / Windows | Coverage | Downloads | | ||
| Similar as the `core.ignorecase` option of [git-config](https://git-scm.com/docs/git-config), `node-ignore` will be case insensitive if `options.ignorecase` is set to `true` (the default value), otherwise case sensitive. | ||
| Similar to the `core.ignorecase` option of [git-config](https://git-scm.com/docs/git-config), `node-ignore` will be case insensitive if `options.ignorecase` is set to `true` (the default value), otherwise case sensitive. | ||
@@ -370,3 +370,3 @@ ```js | ||
| Which is alternative to `options.ignoreCase` | ||
| Which is an alternative to `options.ignoreCase` | ||
@@ -373,0 +373,0 @@ ### `options.allowRelativePaths?: boolean` since 5.2.0 |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances
63384
0.39%1355
0.67%1
-75%