fix(core): update
This commit is contained in:
parent
a92cb2e612
commit
74a08d6e39
20
package-lock.json
generated
20
package-lock.json
generated
@ -1012,6 +1012,21 @@
|
|||||||
"p-defer": "^1.0.0"
|
"p-defer": "^1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"matcher": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/matcher/-/matcher-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-o+nZr+vtJtgPNklyeUKkkH42OsK8WAfdgaJE2FNxcjLPg+5QbeEoT6vRj8Xq/iv18JlQ9cmKsEu0b94ixWf1YQ==",
|
||||||
|
"requires": {
|
||||||
|
"escape-string-regexp": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"escape-string-regexp": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"mem": {
|
"mem": {
|
||||||
"version": "4.3.0",
|
"version": "4.3.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/mem/-/mem-4.3.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/mem/-/mem-4.3.0.tgz",
|
||||||
@ -1256,11 +1271,6 @@
|
|||||||
"integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=",
|
"integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"picomatch": {
|
|
||||||
"version": "2.2.1",
|
|
||||||
"resolved": "https://verdaccio.lossless.one/picomatch/-/picomatch-2.2.1.tgz",
|
|
||||||
"integrity": "sha512-ISBaA8xQNmwELC7eOjqFKMESB2VIqt4PPDD0nsS95b/9dZXvVKOlz9keMSnoGGKcOHXfTvDD6WMaRoSc9UuhRA=="
|
|
||||||
},
|
|
||||||
"pump": {
|
"pump": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://verdaccio.lossless.one/pump/-/pump-3.0.0.tgz",
|
"resolved": "https://verdaccio.lossless.one/pump/-/pump-3.0.0.tgz",
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"tslint-config-prettier": "^1.15.0"
|
"tslint-config-prettier": "^1.15.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"picomatch": "^2.2.1"
|
"matcher": "^2.1.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
@ -2,13 +2,12 @@ import * as plugins from './smartmatch.plugins';
|
|||||||
|
|
||||||
export class SmartMatch {
|
export class SmartMatch {
|
||||||
private picomatch;
|
private picomatch;
|
||||||
public globString;
|
public wildcard;
|
||||||
constructor(globStringArg: string) {
|
constructor(wildcardArg: string) {
|
||||||
this.globString = globStringArg;
|
this.wildcard = wildcardArg;
|
||||||
this.picomatch = plugins.picomatch(this.globString);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public match(matchStringArg): boolean {
|
public match(matchStringArg): boolean {
|
||||||
return this.picomatch(matchStringArg);
|
return plugins.matcher.isMatch(matchStringArg, this.wildcard);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
// third party scope
|
// third party scope
|
||||||
import picomatch from 'picomatch';
|
import matcher from 'matcher';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
picomatch
|
matcher
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user