minimatch 6.1.1 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/cjs/index-cjs.d.ts +44 -0
- package/dist/cjs/index-cjs.js +7 -0
- package/dist/cjs/index-cjs.js.map +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -15,6 +15,11 @@ import { minimatch } from 'minimatch'
|
|
|
15
15
|
// or:
|
|
16
16
|
const { minimatch } = require('minimatch')
|
|
17
17
|
|
|
18
|
+
// default export also works
|
|
19
|
+
import minimatch from 'minimatch'
|
|
20
|
+
// or:
|
|
21
|
+
const minimatch = require('minimatch')
|
|
22
|
+
|
|
18
23
|
minimatch('bar.foo', '*.foo') // true!
|
|
19
24
|
minimatch('bar.foo', '*.bar') // false!
|
|
20
25
|
minimatch('bar.foo', '*.+(bar|foo)', { debug: true }) // true, and noisy!
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
(p: string, pattern: string, options?: import("./index.js").MinimatchOptions): boolean;
|
|
3
|
+
sep: string;
|
|
4
|
+
GLOBSTAR: typeof import("./index.js").GLOBSTAR;
|
|
5
|
+
filter: (pattern: string, options?: import("./index.js").MinimatchOptions) => (p: string) => boolean;
|
|
6
|
+
defaults: (def: import("./index.js").MinimatchOptions) => any;
|
|
7
|
+
braceExpand: (pattern: string, options?: import("./index.js").MinimatchOptions) => string[];
|
|
8
|
+
makeRe: (pattern: string, options?: import("./index.js").MinimatchOptions) => false | (RegExp & {
|
|
9
|
+
_src?: string | undefined;
|
|
10
|
+
_glob?: string | undefined;
|
|
11
|
+
});
|
|
12
|
+
match: (list: string[], pattern: string, options?: import("./index.js").MinimatchOptions) => string[];
|
|
13
|
+
Minimatch: typeof import("./index.js").Minimatch;
|
|
14
|
+
} & {
|
|
15
|
+
default: {
|
|
16
|
+
(p: string, pattern: string, options?: import("./index.js").MinimatchOptions): boolean;
|
|
17
|
+
sep: string;
|
|
18
|
+
GLOBSTAR: typeof import("./index.js").GLOBSTAR;
|
|
19
|
+
filter: (pattern: string, options?: import("./index.js").MinimatchOptions) => (p: string) => boolean;
|
|
20
|
+
defaults: (def: import("./index.js").MinimatchOptions) => any;
|
|
21
|
+
braceExpand: (pattern: string, options?: import("./index.js").MinimatchOptions) => string[];
|
|
22
|
+
makeRe: (pattern: string, options?: import("./index.js").MinimatchOptions) => false | (RegExp & {
|
|
23
|
+
_src?: string | undefined;
|
|
24
|
+
_glob?: string | undefined;
|
|
25
|
+
});
|
|
26
|
+
match: (list: string[], pattern: string, options?: import("./index.js").MinimatchOptions) => string[];
|
|
27
|
+
Minimatch: typeof import("./index.js").Minimatch;
|
|
28
|
+
};
|
|
29
|
+
minimatch: {
|
|
30
|
+
(p: string, pattern: string, options?: import("./index.js").MinimatchOptions): boolean;
|
|
31
|
+
sep: string;
|
|
32
|
+
GLOBSTAR: typeof import("./index.js").GLOBSTAR;
|
|
33
|
+
filter: (pattern: string, options?: import("./index.js").MinimatchOptions) => (p: string) => boolean;
|
|
34
|
+
defaults: (def: import("./index.js").MinimatchOptions) => any;
|
|
35
|
+
braceExpand: (pattern: string, options?: import("./index.js").MinimatchOptions) => string[];
|
|
36
|
+
makeRe: (pattern: string, options?: import("./index.js").MinimatchOptions) => false | (RegExp & {
|
|
37
|
+
_src?: string | undefined;
|
|
38
|
+
_glob?: string | undefined;
|
|
39
|
+
});
|
|
40
|
+
match: (list: string[], pattern: string, options?: import("./index.js").MinimatchOptions) => string[];
|
|
41
|
+
Minimatch: typeof import("./index.js").Minimatch;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export = _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
const index_js_1 = __importDefault(require("./index.js"));
|
|
6
|
+
module.exports = Object.assign(index_js_1.default, { default: index_js_1.default, minimatch: index_js_1.default });
|
|
7
|
+
//# sourceMappingURL=index-cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cjs.js","sourceRoot":"","sources":["../../src/index-cjs.ts"],"names":[],"mappings":";;;;AAAA,0DAAkC;AAElC,iBAAS,MAAM,CAAC,MAAM,CAAC,kBAAS,EAAE,EAAE,OAAO,EAAE,kBAAS,EAAE,SAAS,EAAT,kBAAS,EAAE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
|
|
3
3
|
"name": "minimatch",
|
|
4
4
|
"description": "a glob matcher in javascript",
|
|
5
|
-
"version": "6.1.
|
|
5
|
+
"version": "6.1.2",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git://github.com/isaacs/minimatch.git"
|
|
9
9
|
},
|
|
10
|
-
"main": "./dist/cjs/index.js",
|
|
10
|
+
"main": "./dist/cjs/index-cjs.js",
|
|
11
11
|
"module": "./dist/mjs/index.js",
|
|
12
12
|
"types": "./dist/cjs/index.d.ts",
|
|
13
13
|
"exports": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"postversion": "npm publish",
|
|
31
31
|
"prepublishOnly": "git push origin --follow-tags",
|
|
32
32
|
"preprepare": "rm -rf dist",
|
|
33
|
-
"prepare": "tsc -p tsconfig
|
|
33
|
+
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
|
|
34
34
|
"postprepare": "bash fixup.sh",
|
|
35
35
|
"pretest": "npm run prepare",
|
|
36
36
|
"presnap": "npm run prepare",
|