test-exclude
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -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" | ||
] | ||
} | ||
} |
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
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
14307
113
5
1
+ Addedmicromatch@^2.3.11
+ Addedobject-assign@^4.1.0
+ Addedarr-diff@2.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarray-unique@0.2.1(transitive)
+ Addedbraces@1.8.5(transitive)
+ Addedexpand-brackets@0.1.5(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedextglob@0.3.2(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.4(transitive)
+ Addedfind-up@1.1.2(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedis-extglob@1.0.0(transitive)
+ Addedis-glob@2.0.1(transitive)
+ Addedis-number@2.1.04.0.0(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedis-utf8@0.2.1(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisobject@2.1.0(transitive)
+ Addedkind-of@3.2.26.0.3(transitive)
+ Addedload-json-file@1.1.0(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmicromatch@2.3.11(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedparse-json@2.2.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpath-type@1.1.0(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedread-pkg@1.1.0(transitive)
+ Addedread-pkg-up@1.0.1(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedstrip-bom@2.0.0(transitive)
- Removedminimatch@^3.0.4
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfind-up@2.1.0(transitive)
- Removedjson-parse-better-errors@1.0.2(transitive)
- Removedload-json-file@4.0.0(transitive)
- Removedlocate-path@2.0.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedp-limit@1.3.0(transitive)
- Removedp-locate@2.0.0(transitive)
- Removedp-try@1.0.0(transitive)
- Removedparse-json@4.0.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedpath-type@3.0.0(transitive)
- Removedpify@3.0.0(transitive)
- Removedread-pkg@3.0.0(transitive)
- Removedread-pkg-up@3.0.0(transitive)
- Removedstrip-bom@3.0.0(transitive)
Updatedread-pkg-up@^1.0.1