1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.glob = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.globIterate = exports.globIterateSync = exports.globSync = exports.globStream = exports.globStreamSync = void 0;
|
4 | const minimatch_1 = require("minimatch");
|
5 | const glob_js_1 = require("./glob.js");
|
6 | const has_magic_js_1 = require("./has-magic.js");
|
7 | function globStreamSync(pattern, options = {}) {
|
8 | return new glob_js_1.Glob(pattern, options).streamSync();
|
9 | }
|
10 | exports.globStreamSync = globStreamSync;
|
11 | function globStream(pattern, options = {}) {
|
12 | return new glob_js_1.Glob(pattern, options).stream();
|
13 | }
|
14 | exports.globStream = globStream;
|
15 | function globSync(pattern, options = {}) {
|
16 | return new glob_js_1.Glob(pattern, options).walkSync();
|
17 | }
|
18 | exports.globSync = globSync;
|
19 | async function glob_(pattern, options = {}) {
|
20 | return new glob_js_1.Glob(pattern, options).walk();
|
21 | }
|
22 | function globIterateSync(pattern, options = {}) {
|
23 | return new glob_js_1.Glob(pattern, options).iterateSync();
|
24 | }
|
25 | exports.globIterateSync = globIterateSync;
|
26 | function globIterate(pattern, options = {}) {
|
27 | return new glob_js_1.Glob(pattern, options).iterate();
|
28 | }
|
29 | exports.globIterate = globIterate;
|
30 |
|
31 | exports.streamSync = globStreamSync;
|
32 | exports.stream = Object.assign(globStream, { sync: globStreamSync });
|
33 | exports.iterateSync = globIterateSync;
|
34 | exports.iterate = Object.assign(globIterate, {
|
35 | sync: globIterateSync,
|
36 | });
|
37 | exports.sync = Object.assign(globSync, {
|
38 | stream: globStreamSync,
|
39 | iterate: globIterateSync,
|
40 | });
|
41 |
|
42 | var minimatch_2 = require("minimatch");
|
43 | Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return minimatch_2.escape; } });
|
44 | Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return minimatch_2.unescape; } });
|
45 | var glob_js_2 = require("./glob.js");
|
46 | Object.defineProperty(exports, "Glob", { enumerable: true, get: function () { return glob_js_2.Glob; } });
|
47 | var has_magic_js_2 = require("./has-magic.js");
|
48 | Object.defineProperty(exports, "hasMagic", { enumerable: true, get: function () { return has_magic_js_2.hasMagic; } });
|
49 |
|
50 | exports.glob = Object.assign(glob_, {
|
51 | glob: glob_,
|
52 | globSync,
|
53 | sync: exports.sync,
|
54 | globStream,
|
55 | stream: exports.stream,
|
56 | globStreamSync,
|
57 | streamSync: exports.streamSync,
|
58 | globIterate,
|
59 | iterate: exports.iterate,
|
60 | globIterateSync,
|
61 | iterateSync: exports.iterateSync,
|
62 | Glob: glob_js_1.Glob,
|
63 | hasMagic: has_magic_js_1.hasMagic,
|
64 | escape: minimatch_1.escape,
|
65 | unescape: minimatch_1.unescape,
|
66 | });
|
67 | exports.glob.glob = exports.glob;
|
68 |
|
\ | No newline at end of file |