test-exclude
Advanced tools
Comparing version
@@ -6,17 +6,23 @@ # Change Log | ||
<a name="4.2.2"></a> | ||
## [4.2.2](https://github.com/istanbuljs/istanbuljs/compare/test-exclude@4.2.1...test-exclude@4.2.2) (2018-06-06) | ||
<a name="4.2.3"></a> | ||
## [4.2.3](https://github.com/istanbuljs/istanbuljs/compare/test-exclude@4.2.0...test-exclude@4.2.3) (2018-09-05) | ||
### Bug Fixes | ||
* Tweak package.json files for republish as latest 1.x. ([#217](https://github.com/istanbuljs/istanbuljs/issues/217)) ([420481d](https://github.com/istanbuljs/istanbuljs/commit/420481d)), closes [#216](https://github.com/istanbuljs/istanbuljs/issues/216) | ||
**Note:** Version bump only for package test-exclude | ||
<a name="4.2.1"></a> | ||
## [4.2.1](https://github.com/istanbuljs/istanbuljs/compare/test-exclude@4.2.0...test-exclude@4.2.1) (2018-03-04) | ||
### BREAKING CHANGES | ||
* leaked into 1.x modules but it was thought they were | ||
never released to latest. Apparently releasing 2.x to latest makes | ||
those unwanted versions of 1.x available. | ||
### Bug Fixes | ||
This patch sets all modules to the latest 1.x version (4.x for | ||
test-exclude). This will allow a new release to be made to revert | ||
release of the breaking changes. | ||
* upgrade micromatch ([#142](https://github.com/istanbuljs/istanbuljs/issues/142)) ([24104a7](https://github.com/istanbuljs/istanbuljs/commit/24104a7)) | ||
Stop upgrading npm to latest for testing as it's not compatible with | ||
node 4.x. | ||
@@ -23,0 +29,0 @@ |
13
index.js
@@ -0,3 +1,4 @@ | ||
const assign = require('object-assign') | ||
const arrify = require('arrify') | ||
const minimatch = require('minimatch') | ||
const micromatch = require('micromatch') | ||
const path = require('path') | ||
@@ -8,3 +9,3 @@ const readPkgUp = require('read-pkg-up') | ||
function TestExclude (opts) { | ||
Object.assign(this, { | ||
assign(this, { | ||
cwd: process.cwd(), | ||
@@ -22,3 +23,3 @@ include: false, | ||
if (!this.include && !this.exclude && this.configKey) { | ||
Object.assign(this, this.pkgConf(this.configKey, this.configPath)) | ||
assign(this, this.pkgConf(this.configKey, this.configPath)) | ||
} | ||
@@ -89,5 +90,5 @@ | ||
!this.include || | ||
this.include.some(include => minimatch(pathToCheck, include, {dot: true}))) && | ||
(!this.exclude.some(exclude => minimatch(pathToCheck, exclude, {dot: true})) || | ||
this.excludeNegated.some(exclude => minimatch(pathToCheck, exclude, {dot: true}))) | ||
micromatch.any(pathToCheck, this.include, {dotfiles: true})) && | ||
(!micromatch.any(pathToCheck, this.exclude, {dotfiles: true}) || | ||
micromatch.any(pathToCheck, this.excludeNegated, {dotfiles: true})) | ||
} | ||
@@ -94,0 +95,0 @@ |
{ | ||
"name": "test-exclude", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "test for inclusion or exclusion of paths using pkg-conf and globs", | ||
@@ -31,12 +31,18 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"mocha": "^5.2.0", | ||
"standard": "^11.0.1" | ||
"chai": "^3.5.0", | ||
"mocha": "^3.1.2", | ||
"standard": "^9.0.0" | ||
}, | ||
"dependencies": { | ||
"arrify": "^1.0.1", | ||
"minimatch": "^3.0.4", | ||
"read-pkg-up": "^3.0.0", | ||
"micromatch": "^2.3.11", | ||
"object-assign": "^4.1.0", | ||
"read-pkg-up": "^1.0.1", | ||
"require-main-filename": "^1.0.1" | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"read-pkg-up" | ||
] | ||
} | ||
} |
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
14307
3.05%113
0.89%5
25%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated