test-exclude
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -6,2 +6,10 @@ # 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) | ||
**Note:** Version bump only for package test-exclude | ||
<a name="4.2.1"></a> | ||
@@ -8,0 +16,0 @@ ## [4.2.1](https://github.com/istanbuljs/istanbuljs/compare/test-exclude@4.2.0...test-exclude@4.2.1) (2018-03-04) |
13
index.js
@@ -1,4 +0,3 @@ | ||
const assign = require('object-assign') | ||
const arrify = require('arrify') | ||
const micromatch = require('micromatch') | ||
const minimatch = require('minimatch') | ||
const path = require('path') | ||
@@ -9,3 +8,3 @@ const readPkgUp = require('read-pkg-up') | ||
function TestExclude (opts) { | ||
assign(this, { | ||
Object.assign(this, { | ||
cwd: process.cwd(), | ||
@@ -23,3 +22,3 @@ include: false, | ||
if (!this.include && !this.exclude && this.configKey) { | ||
assign(this, this.pkgConf(this.configKey, this.configPath)) | ||
Object.assign(this, this.pkgConf(this.configKey, this.configPath)) | ||
} | ||
@@ -90,5 +89,5 @@ | ||
!this.include || | ||
micromatch.any(pathToCheck, this.include, {dot: true})) && | ||
(!micromatch.any(pathToCheck, this.exclude, {dot: true}) || | ||
micromatch.any(pathToCheck, this.excludeNegated, {dot: true})) | ||
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}))) | ||
} | ||
@@ -95,0 +94,0 @@ |
{ | ||
"name": "test-exclude", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "test for inclusion or exclusion of paths using pkg-conf and globs", | ||
@@ -31,18 +31,12 @@ "main": "index.js", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"mocha": "^3.1.2", | ||
"standard": "^9.0.0" | ||
"chai": "^4.1.2", | ||
"mocha": "^5.2.0", | ||
"standard": "^11.0.1" | ||
}, | ||
"dependencies": { | ||
"arrify": "^1.0.1", | ||
"micromatch": "^3.1.8", | ||
"object-assign": "^4.1.0", | ||
"read-pkg-up": "^1.0.1", | ||
"minimatch": "^3.0.4", | ||
"read-pkg-up": "^3.0.0", | ||
"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
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
13883
4
112
+ Addedminimatch@^3.0.4
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfind-up@2.1.0(transitive)
+ Addedjson-parse-better-errors@1.0.2(transitive)
+ Addedload-json-file@4.0.0(transitive)
+ Addedlocate-path@2.0.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedp-limit@1.3.0(transitive)
+ Addedp-locate@2.0.0(transitive)
+ Addedp-try@1.0.0(transitive)
+ Addedparse-json@4.0.0(transitive)
+ Addedpath-exists@3.0.0(transitive)
+ Addedpath-type@3.0.0(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedread-pkg@3.0.0(transitive)
+ Addedread-pkg-up@3.0.0(transitive)
+ Addedstrip-bom@3.0.0(transitive)
- Removedmicromatch@^3.1.8
- Removedobject-assign@^4.1.0
- Removedarr-diff@4.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedarray-unique@0.3.2(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedatob@2.1.2(transitive)
- Removedbase@0.11.2(transitive)
- Removedbraces@2.3.2(transitive)
- Removedcache-base@1.0.1(transitive)
- Removedclass-utils@0.3.6(transitive)
- Removedcollection-visit@1.0.0(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedcopy-descriptor@0.1.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddefine-property@0.2.51.0.02.0.2(transitive)
- Removedexpand-brackets@2.1.4(transitive)
- Removedextend-shallow@2.0.13.0.2(transitive)
- Removedextglob@2.0.4(transitive)
- Removedfill-range@4.0.0(transitive)
- Removedfind-up@1.1.2(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfragment-cache@0.2.1(transitive)
- Removedget-value@2.0.6(transitive)
- Removedhas-value@0.3.11.0.0(transitive)
- Removedhas-values@0.1.41.0.0(transitive)
- Removedis-accessor-descriptor@1.0.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-data-descriptor@1.0.1(transitive)
- Removedis-descriptor@0.1.71.0.3(transitive)
- Removedis-extendable@0.1.11.0.1(transitive)
- Removedis-number@3.0.0(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedis-windows@1.0.2(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@2.1.03.0.1(transitive)
- Removedkind-of@3.2.24.0.06.0.3(transitive)
- Removedload-json-file@1.1.0(transitive)
- Removedmap-cache@0.2.2(transitive)
- Removedmap-visit@1.0.0(transitive)
- Removedmicromatch@3.1.10(transitive)
- Removedmixin-deep@1.3.2(transitive)
- Removedms@2.0.0(transitive)
- Removednanomatch@1.2.13(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject-copy@0.1.0(transitive)
- Removedobject-visit@1.0.1(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpascalcase@0.1.1(transitive)
- Removedpath-exists@2.1.0(transitive)
- Removedpath-type@1.1.0(transitive)
- Removedpify@2.3.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedposix-character-classes@0.1.1(transitive)
- Removedread-pkg@1.1.0(transitive)
- Removedread-pkg-up@1.0.1(transitive)
- Removedregex-not@1.0.2(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedret@0.1.15(transitive)
- Removedsafe-regex@1.1.0(transitive)
- Removedset-value@2.0.1(transitive)
- Removedsnapdragon@0.8.2(transitive)
- Removedsnapdragon-node@2.1.1(transitive)
- Removedsnapdragon-util@3.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedsplit-string@3.1.0(transitive)
- Removedstatic-extend@0.1.2(transitive)
- Removedstrip-bom@2.0.0(transitive)
- Removedto-object-path@0.3.0(transitive)
- Removedto-regex@3.0.2(transitive)
- Removedto-regex-range@2.1.1(transitive)
- Removedunion-value@1.0.1(transitive)
- Removedunset-value@1.0.0(transitive)
- Removedurix@0.1.0(transitive)
- Removeduse@3.1.1(transitive)
Updatedread-pkg-up@^3.0.0