@pushrocks/smartmatch
Advanced tools
Comparing version 1.0.4 to 1.0.5
export declare class SmartMatch { | ||
private picomatch; | ||
globString: any; | ||
constructor(globStringArg: string); | ||
wildcard: any; | ||
constructor(wildcardArg: string); | ||
match(matchStringArg: any): boolean; | ||
} |
@@ -12,11 +12,10 @@ "use strict"; | ||
class SmartMatch { | ||
constructor(globStringArg) { | ||
this.globString = globStringArg; | ||
this.picomatch = plugins.picomatch(this.globString); | ||
constructor(wildcardArg) { | ||
this.wildcard = wildcardArg; | ||
} | ||
match(matchStringArg) { | ||
return this.picomatch(matchStringArg); | ||
return plugins.matcher.isMatch(matchStringArg, this.wildcard); | ||
} | ||
} | ||
exports.SmartMatch = SmartMatch; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSw4REFBZ0Q7QUFFaEQsTUFBYSxVQUFVO0lBR3JCLFlBQVksYUFBcUI7UUFDL0IsSUFBSSxDQUFDLFVBQVUsR0FBRyxhQUFhLENBQUM7UUFDaEMsSUFBSSxDQUFDLFNBQVMsR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUN0RCxDQUFDO0lBRU0sS0FBSyxDQUFDLGNBQWM7UUFDekIsT0FBTyxJQUFJLENBQUMsU0FBUyxDQUFDLGNBQWMsQ0FBQyxDQUFDO0lBQ3hDLENBQUM7Q0FDRjtBQVhELGdDQVdDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSw4REFBZ0Q7QUFFaEQsTUFBYSxVQUFVO0lBR3JCLFlBQVksV0FBbUI7UUFDN0IsSUFBSSxDQUFDLFFBQVEsR0FBRyxXQUFXLENBQUM7SUFDOUIsQ0FBQztJQUVNLEtBQUssQ0FBQyxjQUFjO1FBQ3pCLE9BQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsY0FBYyxFQUFFLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNoRSxDQUFDO0NBQ0Y7QUFWRCxnQ0FVQyJ9 |
@@ -1,2 +0,2 @@ | ||
import picomatch from 'picomatch'; | ||
export { picomatch }; | ||
import matcher from 'matcher'; | ||
export { matcher }; |
@@ -7,4 +7,4 @@ "use strict"; | ||
// third party scope | ||
const picomatch_1 = __importDefault(require("picomatch")); | ||
exports.picomatch = picomatch_1.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRtYXRjaC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRtYXRjaC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsb0JBQW9CO0FBQ3BCLDBEQUFrQztBQUdoQyxvQkFISyxtQkFBUyxDQUdMIn0= | ||
const matcher_1 = __importDefault(require("matcher")); | ||
exports.matcher = matcher_1.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRtYXRjaC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRtYXRjaC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsb0JBQW9CO0FBQ3BCLHNEQUE4QjtBQUc1QixrQkFISyxpQkFBTyxDQUdMIn0= |
{ | ||
"name": "@pushrocks/smartmatch", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"private": false, | ||
@@ -24,3 +24,3 @@ "description": "a minimal matching library using picomatch", | ||
"dependencies": { | ||
"picomatch": "^2.2.1" | ||
"matcher": "^2.1.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "files": [ |
@@ -5,11 +5,10 @@ import * as plugins from './smartmatch.plugins'; | ||
private picomatch; | ||
public globString; | ||
constructor(globStringArg: string) { | ||
this.globString = globStringArg; | ||
this.picomatch = plugins.picomatch(this.globString); | ||
public wildcard; | ||
constructor(wildcardArg: string) { | ||
this.wildcard = wildcardArg; | ||
} | ||
public match(matchStringArg): boolean { | ||
return this.picomatch(matchStringArg); | ||
return plugins.matcher.isMatch(matchStringArg, this.wildcard); | ||
} | ||
} |
// third party scope | ||
import picomatch from 'picomatch'; | ||
import matcher from 'matcher'; | ||
export { | ||
picomatch | ||
matcher | ||
} |
6825
66
+ Addedmatcher@^2.1.0
+ Addedescape-string-regexp@2.0.0(transitive)
+ Addedmatcher@2.1.0(transitive)
- Removedpicomatch@^2.2.1
- Removedpicomatch@2.3.1(transitive)