🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

ignore

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignore - npm Package Compare versions

Comparing version
7.0.4
to
7.0.5
+16
-11
index.js

@@ -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)

@@ -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);
{
"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",

@@ -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