@bleedingdev/modern-js-utils 3.2.0-ultramodern.5 → 3.2.0-ultramodern.8
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/dist/types/cli/alias.d.ts +20 -0
- package/dist/types/cli/applyOptionsChain.d.ts +3 -0
- package/dist/types/cli/commands.d.ts +8 -0
- package/dist/types/cli/common.d.ts +9 -0
- package/dist/types/cli/config.d.ts +4 -0
- package/dist/types/cli/constants.d.ts +55 -0
- package/dist/types/cli/ensure.d.ts +8 -0
- package/dist/types/cli/fs.d.ts +7 -0
- package/dist/types/cli/get/config.d.ts +1 -0
- package/dist/types/cli/get/data.d.ts +6 -0
- package/dist/types/cli/get/index.d.ts +11 -0
- package/dist/types/cli/index.d.ts +23 -0
- package/dist/types/cli/is/config.d.ts +22 -0
- package/dist/types/cli/is/env.d.ts +8 -0
- package/dist/types/cli/is/index.d.ts +4 -0
- package/dist/types/cli/is/project.d.ts +39 -0
- package/dist/types/cli/is/type.d.ts +15 -0
- package/dist/types/cli/logger.d.ts +1 -0
- package/dist/types/cli/modulePath.d.ts +5 -0
- package/dist/types/cli/monorepo.d.ts +9 -0
- package/dist/types/cli/package.d.ts +5 -0
- package/dist/types/cli/path.d.ts +11 -0
- package/dist/types/cli/port.d.ts +12 -0
- package/dist/types/cli/prettyInstructions.d.ts +6 -0
- package/dist/types/cli/require.d.ts +9 -0
- package/dist/types/cli/route.d.ts +4 -0
- package/dist/types/cli/runtimeExports.d.ts +5 -0
- package/dist/types/cli/tsconfig.d.ts +1 -0
- package/dist/types/cli/version.d.ts +4 -0
- package/dist/types/cli/watch.d.ts +8 -0
- package/dist/types/compiled.d.ts +37 -0
- package/dist/types/import.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/universal/constants.d.ts +47 -0
- package/dist/types/universal/index.d.ts +1 -0
- package/dist/types/universal/path.d.ts +1 -0
- package/dist/types/universal/pluginDagSort.d.ts +1 -0
- package/package.json +3 -3
- package/dist/compiled/address/index.js +0 -171
- package/dist/compiled/address/lib/address.d.ts +0 -28
- package/dist/compiled/address/package.json +0 -1
- package/dist/compiled/browserslist/index.d.ts +0 -178
- package/dist/compiled/browserslist/index.js +0 -1329
- package/dist/compiled/browserslist/license +0 -20
- package/dist/compiled/browserslist/package.json +0 -1
- package/dist/compiled/chalk/index.d.ts +0 -415
- package/dist/compiled/chalk/index.js +0 -2368
- package/dist/compiled/chalk/license +0 -9
- package/dist/compiled/chalk/package.json +0 -1
- package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/index.js +0 -4162
- package/dist/compiled/chokidar/index.js.LICENSE.txt +0 -41
- package/dist/compiled/chokidar/license +0 -21
- package/dist/compiled/chokidar/package.json +0 -1
- package/dist/compiled/chokidar/types/index.d.ts +0 -188
- package/dist/compiled/commander/index.js +0 -1540
- package/dist/compiled/commander/index.mjs +0 -2
- package/dist/compiled/commander/license +0 -22
- package/dist/compiled/commander/package.json +0 -1
- package/dist/compiled/commander/typings/index.d.ts +0 -890
- package/dist/compiled/debug/index.d.ts +0 -54
- package/dist/compiled/debug/index.js +0 -621
- package/dist/compiled/debug/license +0 -20
- package/dist/compiled/debug/ms/index.d.ts +0 -25
- package/dist/compiled/debug/package.json +0 -1
- package/dist/compiled/dotenv/index.js +0 -101
- package/dist/compiled/dotenv/license +0 -23
- package/dist/compiled/dotenv/package.json +0 -1
- package/dist/compiled/dotenv/types/index.d.ts +0 -59
- package/dist/compiled/dotenv-expand/index.d.ts +0 -15
- package/dist/compiled/dotenv-expand/index.js +0 -54
- package/dist/compiled/dotenv-expand/license +0 -24
- package/dist/compiled/dotenv-expand/package.json +0 -1
- package/dist/compiled/execa/index.d.ts +0 -564
- package/dist/compiled/execa/index.js +0 -1738
- package/dist/compiled/execa/license +0 -9
- package/dist/compiled/execa/package.json +0 -1
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/dist/compiled/fast-glob/index.js +0 -4665
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
- package/dist/compiled/fast-glob/license +0 -21
- package/dist/compiled/fast-glob/out/index.d.ts +0 -27
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
- package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
- package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
- package/dist/compiled/fast-glob/package.json +0 -1
- package/dist/compiled/filesize/filesize.d.ts +0 -131
- package/dist/compiled/filesize/index.js +0 -198
- package/dist/compiled/filesize/index.js.LICENSE.txt +0 -7
- package/dist/compiled/filesize/license +0 -28
- package/dist/compiled/filesize/package.json +0 -1
- package/dist/compiled/fs-extra/index.d.ts +0 -563
- package/dist/compiled/fs-extra/index.js +0 -2222
- package/dist/compiled/fs-extra/license +0 -15
- package/dist/compiled/fs-extra/package.json +0 -1
- package/dist/compiled/glob/index.d.ts +0 -91
- package/dist/compiled/glob/index.js +0 -2011
- package/dist/compiled/glob/license +0 -21
- package/dist/compiled/glob/minimatch/index.d.ts +0 -204
- package/dist/compiled/glob/package.json +0 -1
- package/dist/compiled/globby/index.d.ts +0 -186
- package/dist/compiled/globby/index.js +0 -690
- package/dist/compiled/globby/license +0 -9
- package/dist/compiled/globby/package.json +0 -1
- package/dist/compiled/gzip-size/index.d.ts +0 -96
- package/dist/compiled/gzip-size/index.js +0 -157
- package/dist/compiled/gzip-size/license +0 -9
- package/dist/compiled/gzip-size/package.json +0 -1
- package/dist/compiled/import-lazy/index.d.ts +0 -26
- package/dist/compiled/import-lazy/index.js +0 -45
- package/dist/compiled/import-lazy/license +0 -9
- package/dist/compiled/import-lazy/package.json +0 -1
- package/dist/compiled/inquirer/index.d.ts +0 -997
- package/dist/compiled/inquirer/index.js +0 -20167
- package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
- package/dist/compiled/inquirer/license +0 -22
- package/dist/compiled/inquirer/package.json +0 -1
- package/dist/compiled/inquirer/through/index.d.ts +0 -25
- package/dist/compiled/js-yaml/index.d.ts +0 -154
- package/dist/compiled/js-yaml/index.js +0 -2191
- package/dist/compiled/js-yaml/index.mjs +0 -2167
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +0 -1
- package/dist/compiled/js-yaml/license +0 -21
- package/dist/compiled/js-yaml/package.json +0 -1
- package/dist/compiled/json5/index.js +0 -983
- package/dist/compiled/json5/lib/index.d.ts +0 -4
- package/dist/compiled/json5/lib/parse.d.ts +0 -15
- package/dist/compiled/json5/lib/stringify.d.ts +0 -89
- package/dist/compiled/json5/package.json +0 -1
- package/dist/compiled/lodash/common/array.d.ts +0 -2126
- package/dist/compiled/lodash/common/collection.d.ts +0 -1930
- package/dist/compiled/lodash/common/common.d.ts +0 -280
- package/dist/compiled/lodash/common/date.d.ts +0 -23
- package/dist/compiled/lodash/common/function.d.ts +0 -1446
- package/dist/compiled/lodash/common/lang.d.ts +0 -1693
- package/dist/compiled/lodash/common/math.d.ts +0 -405
- package/dist/compiled/lodash/common/number.d.ts +0 -131
- package/dist/compiled/lodash/common/object.d.ts +0 -2519
- package/dist/compiled/lodash/common/seq.d.ts +0 -210
- package/dist/compiled/lodash/common/string.d.ts +0 -788
- package/dist/compiled/lodash/common/util.d.ts +0 -1220
- package/dist/compiled/lodash/index.d.ts +0 -46
- package/dist/compiled/lodash/index.js +0 -1
- package/dist/compiled/lodash/index.mjs +0 -1
- package/dist/compiled/lodash/license +0 -47
- package/dist/compiled/lodash/package.json +0 -1
- package/dist/compiled/mime-types/index.d.ts +0 -14
- package/dist/compiled/mime-types/index.js +0 -116
- package/dist/compiled/mime-types/index.js.LICENSE.txt +0 -13
- package/dist/compiled/mime-types/license +0 -23
- package/dist/compiled/mime-types/package.json +0 -1
- package/dist/compiled/minimist/index.d.ts +0 -95
- package/dist/compiled/minimist/index.js +0 -202
- package/dist/compiled/minimist/license +0 -18
- package/dist/compiled/minimist/package.json +0 -1
- package/dist/compiled/nanoid/index.d.ts +0 -91
- package/dist/compiled/nanoid/index.js +0 -83
- package/dist/compiled/nanoid/index.mjs +0 -69
- package/dist/compiled/nanoid/license +0 -20
- package/dist/compiled/nanoid/package.json +0 -1
- package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
- package/dist/compiled/ora/index.d.ts +0 -277
- package/dist/compiled/ora/index.js +0 -3936
- package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
- package/dist/compiled/ora/license +0 -9
- package/dist/compiled/ora/package.json +0 -1
- package/dist/compiled/pkg-up/index.d.ts +0 -48
- package/dist/compiled/pkg-up/index.js +0 -15
- package/dist/compiled/pkg-up/license +0 -9
- package/dist/compiled/pkg-up/package.json +0 -1
- package/dist/compiled/semver/classes/comparator.d.ts +0 -17
- package/dist/compiled/semver/classes/range.d.ts +0 -21
- package/dist/compiled/semver/classes/semver.d.ts +0 -62
- package/dist/compiled/semver/functions/clean.d.ts +0 -8
- package/dist/compiled/semver/functions/cmp.d.ts +0 -16
- package/dist/compiled/semver/functions/coerce.d.ts +0 -12
- package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
- package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
- package/dist/compiled/semver/functions/compare.d.ts +0 -20
- package/dist/compiled/semver/functions/diff.d.ts +0 -13
- package/dist/compiled/semver/functions/eq.d.ts +0 -9
- package/dist/compiled/semver/functions/gt.d.ts +0 -9
- package/dist/compiled/semver/functions/gte.d.ts +0 -9
- package/dist/compiled/semver/functions/inc.d.ts +0 -15
- package/dist/compiled/semver/functions/lt.d.ts +0 -9
- package/dist/compiled/semver/functions/lte.d.ts +0 -8
- package/dist/compiled/semver/functions/major.d.ts +0 -9
- package/dist/compiled/semver/functions/minor.d.ts +0 -9
- package/dist/compiled/semver/functions/neq.d.ts +0 -9
- package/dist/compiled/semver/functions/parse.d.ts +0 -12
- package/dist/compiled/semver/functions/patch.d.ts +0 -9
- package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
- package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
- package/dist/compiled/semver/functions/rsort.d.ts +0 -9
- package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
- package/dist/compiled/semver/functions/sort.d.ts +0 -9
- package/dist/compiled/semver/functions/valid.d.ts +0 -11
- package/dist/compiled/semver/index.d.ts +0 -133
- package/dist/compiled/semver/index.js +0 -1779
- package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
- package/dist/compiled/semver/license +0 -15
- package/dist/compiled/semver/package.json +0 -1
- package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
- package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
- package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
- package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
- package/dist/compiled/semver/ranges/outside.d.ts +0 -15
- package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
- package/dist/compiled/semver/ranges/subset.d.ts +0 -13
- package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
- package/dist/compiled/semver/ranges/valid.d.ts +0 -12
- package/dist/compiled/signale/index.d.ts +0 -162
- package/dist/compiled/signale/index.js +0 -1704
- package/dist/compiled/signale/package.json +0 -1
- package/dist/compiled/slash/index.d.ts +0 -25
- package/dist/compiled/slash/index.js +0 -32
- package/dist/compiled/slash/license +0 -9
- package/dist/compiled/slash/package.json +0 -1
- package/dist/compiled/strip-ansi/index.d.ts +0 -17
- package/dist/compiled/strip-ansi/index.js +0 -34
- package/dist/compiled/strip-ansi/license +0 -9
- package/dist/compiled/strip-ansi/package.json +0 -1
- package/dist/compiled/tsconfig-paths/index.js +0 -629
- package/dist/compiled/tsconfig-paths/index.mjs +0 -2
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
- package/dist/compiled/tsconfig-paths/license +0 -21
- package/dist/compiled/tsconfig-paths/package.json +0 -1
- package/dist/compiled/upath/index.js +0 -135
- package/dist/compiled/upath/license +0 -22
- package/dist/compiled/upath/package.json +0 -1
- package/dist/compiled/upath/upath.d.ts +0 -241
- package/dist/compiled/url-join/index.d.ts +0 -17
- package/dist/compiled/url-join/index.js +0 -61
- package/dist/compiled/url-join/license +0 -21
- package/dist/compiled/url-join/package.json +0 -1
- package/dist/compiled/webpack-chain/index.js +0 -1475
- package/dist/compiled/webpack-chain/license +0 -373
- package/dist/compiled/webpack-chain/package.json +0 -1
- package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
|
@@ -1,690 +0,0 @@
|
|
|
1
|
-
(()=>{
|
|
2
|
-
var t = {
|
|
3
|
-
337: (t)=>{
|
|
4
|
-
"use strict";
|
|
5
|
-
t.exports = (...t)=>[
|
|
6
|
-
...new Set([].concat(...t))
|
|
7
|
-
];
|
|
8
|
-
},
|
|
9
|
-
352: (t, e, r)=>{
|
|
10
|
-
"use strict";
|
|
11
|
-
const n = r(17);
|
|
12
|
-
const s = r(223);
|
|
13
|
-
const getExtensions = (t)=>t.length > 1 ? `{${t.join(",")}}` : t[0];
|
|
14
|
-
const getPath = (t, e)=>{
|
|
15
|
-
const r = "!" === t[0] ? t.slice(1) : t;
|
|
16
|
-
return n.isAbsolute(r) ? r : n.join(e, r);
|
|
17
|
-
};
|
|
18
|
-
const addExtensions = (t, e)=>{
|
|
19
|
-
if (n.extname(t)) return `**/${t}`;
|
|
20
|
-
return `**/${t}.${getExtensions(e)}`;
|
|
21
|
-
};
|
|
22
|
-
const getGlob = (t, e)=>{
|
|
23
|
-
if (e.files && !Array.isArray(e.files)) throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);
|
|
24
|
-
if (e.extensions && !Array.isArray(e.extensions)) throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);
|
|
25
|
-
if (e.files && e.extensions) return e.files.map((r)=>n.posix.join(t, addExtensions(r, e.extensions)));
|
|
26
|
-
if (e.files) return e.files.map((e)=>n.posix.join(t, `**/${e}`));
|
|
27
|
-
if (e.extensions) return [
|
|
28
|
-
n.posix.join(t, `**/*.${getExtensions(e.extensions)}`)
|
|
29
|
-
];
|
|
30
|
-
return [
|
|
31
|
-
n.posix.join(t, "**")
|
|
32
|
-
];
|
|
33
|
-
};
|
|
34
|
-
t.exports = async (t, e)=>{
|
|
35
|
-
e = {
|
|
36
|
-
cwd: process.cwd(),
|
|
37
|
-
...e
|
|
38
|
-
};
|
|
39
|
-
if ("string" != typeof e.cwd) throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);
|
|
40
|
-
const r = await Promise.all([].concat(t).map(async (t)=>{
|
|
41
|
-
const r = await s.isDirectory(getPath(t, e.cwd));
|
|
42
|
-
return r ? getGlob(t, e) : t;
|
|
43
|
-
}));
|
|
44
|
-
return [].concat.apply([], r);
|
|
45
|
-
};
|
|
46
|
-
t.exports.sync = (t, e)=>{
|
|
47
|
-
e = {
|
|
48
|
-
cwd: process.cwd(),
|
|
49
|
-
...e
|
|
50
|
-
};
|
|
51
|
-
if ("string" != typeof e.cwd) throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);
|
|
52
|
-
const r = [].concat(t).map((t)=>s.isDirectorySync(getPath(t, e.cwd)) ? getGlob(t, e) : t);
|
|
53
|
-
return [].concat.apply([], r);
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
153: (t, e, r)=>{
|
|
57
|
-
"use strict";
|
|
58
|
-
const { promisify: n } = r(837);
|
|
59
|
-
const s = r(147);
|
|
60
|
-
const o = r(17);
|
|
61
|
-
const i = r(592);
|
|
62
|
-
const c = r(302);
|
|
63
|
-
const a = r(398);
|
|
64
|
-
const p = [
|
|
65
|
-
"**/node_modules/**",
|
|
66
|
-
"**/flow-typed/**",
|
|
67
|
-
"**/coverage/**",
|
|
68
|
-
"**/.git"
|
|
69
|
-
];
|
|
70
|
-
const u = n(s.readFile);
|
|
71
|
-
const mapGitIgnorePatternTo = (t)=>(e)=>{
|
|
72
|
-
if (e.startsWith("!")) return "!" + o.posix.join(t, e.slice(1));
|
|
73
|
-
return o.posix.join(t, e);
|
|
74
|
-
};
|
|
75
|
-
const parseGitIgnore = (t, e)=>{
|
|
76
|
-
const r = a(o.relative(e.cwd, o.dirname(e.fileName)));
|
|
77
|
-
return t.split(/\r?\n/).filter(Boolean).filter((t)=>!t.startsWith("#")).map(mapGitIgnorePatternTo(r));
|
|
78
|
-
};
|
|
79
|
-
const reduceIgnore = (t)=>{
|
|
80
|
-
const e = c();
|
|
81
|
-
for (const r of t)e.add(parseGitIgnore(r.content, {
|
|
82
|
-
cwd: r.cwd,
|
|
83
|
-
fileName: r.filePath
|
|
84
|
-
}));
|
|
85
|
-
return e;
|
|
86
|
-
};
|
|
87
|
-
const ensureAbsolutePathForCwd = (t, e)=>{
|
|
88
|
-
t = a(t);
|
|
89
|
-
if (o.isAbsolute(e)) {
|
|
90
|
-
if (a(e).startsWith(t)) return e;
|
|
91
|
-
throw new Error(`Path ${e} is not in cwd ${t}`);
|
|
92
|
-
}
|
|
93
|
-
return o.join(t, e);
|
|
94
|
-
};
|
|
95
|
-
const getIsIgnoredPredecate = (t, e)=>(r)=>t.ignores(a(o.relative(e, ensureAbsolutePathForCwd(e, r.path || r))));
|
|
96
|
-
const getFile = async (t, e)=>{
|
|
97
|
-
const r = o.join(e, t);
|
|
98
|
-
const n = await u(r, "utf8");
|
|
99
|
-
return {
|
|
100
|
-
cwd: e,
|
|
101
|
-
filePath: r,
|
|
102
|
-
content: n
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
const getFileSync = (t, e)=>{
|
|
106
|
-
const r = o.join(e, t);
|
|
107
|
-
const n = s.readFileSync(r, "utf8");
|
|
108
|
-
return {
|
|
109
|
-
cwd: e,
|
|
110
|
-
filePath: r,
|
|
111
|
-
content: n
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
const normalizeOptions = ({ ignore: t = [], cwd: e = a(process.cwd()) } = {})=>({
|
|
115
|
-
ignore: t,
|
|
116
|
-
cwd: e
|
|
117
|
-
});
|
|
118
|
-
t.exports = async (t)=>{
|
|
119
|
-
t = normalizeOptions(t);
|
|
120
|
-
const e = await i("**/.gitignore", {
|
|
121
|
-
ignore: p.concat(t.ignore),
|
|
122
|
-
cwd: t.cwd
|
|
123
|
-
});
|
|
124
|
-
const r = await Promise.all(e.map((e)=>getFile(e, t.cwd)));
|
|
125
|
-
const n = reduceIgnore(r);
|
|
126
|
-
return getIsIgnoredPredecate(n, t.cwd);
|
|
127
|
-
};
|
|
128
|
-
t.exports.sync = (t)=>{
|
|
129
|
-
t = normalizeOptions(t);
|
|
130
|
-
const e = i.sync("**/.gitignore", {
|
|
131
|
-
ignore: p.concat(t.ignore),
|
|
132
|
-
cwd: t.cwd
|
|
133
|
-
});
|
|
134
|
-
const r = e.map((e)=>getFileSync(e, t.cwd));
|
|
135
|
-
const n = reduceIgnore(r);
|
|
136
|
-
return getIsIgnoredPredecate(n, t.cwd);
|
|
137
|
-
};
|
|
138
|
-
},
|
|
139
|
-
718: (t, e, r)=>{
|
|
140
|
-
"use strict";
|
|
141
|
-
const n = r(147);
|
|
142
|
-
const s = r(337);
|
|
143
|
-
const o = r(382);
|
|
144
|
-
const i = r(592);
|
|
145
|
-
const c = r(352);
|
|
146
|
-
const a = r(153);
|
|
147
|
-
const { FilterStream: p, UniqueStream: u } = r(546);
|
|
148
|
-
const DEFAULT_FILTER = ()=>false;
|
|
149
|
-
const isNegative = (t)=>"!" === t[0];
|
|
150
|
-
const assertPatternsInput = (t)=>{
|
|
151
|
-
if (!t.every((t)=>"string" == typeof t)) throw new TypeError("Patterns must be a string or an array of strings");
|
|
152
|
-
};
|
|
153
|
-
const checkCwdOption = (t = {})=>{
|
|
154
|
-
if (!t.cwd) return;
|
|
155
|
-
let e;
|
|
156
|
-
try {
|
|
157
|
-
e = n.statSync(t.cwd);
|
|
158
|
-
} catch {
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (!e.isDirectory()) throw new Error("The `cwd` option must be a path to a directory");
|
|
162
|
-
};
|
|
163
|
-
const getPathString = (t)=>t.stats instanceof n.Stats ? t.path : t;
|
|
164
|
-
const generateGlobTasks = (t, e)=>{
|
|
165
|
-
t = s([].concat(t));
|
|
166
|
-
assertPatternsInput(t);
|
|
167
|
-
checkCwdOption(e);
|
|
168
|
-
const r = [];
|
|
169
|
-
e = {
|
|
170
|
-
ignore: [],
|
|
171
|
-
expandDirectories: true,
|
|
172
|
-
...e
|
|
173
|
-
};
|
|
174
|
-
for (const [n, s] of t.entries()){
|
|
175
|
-
if (isNegative(s)) continue;
|
|
176
|
-
const o = t.slice(n).filter((t)=>isNegative(t)).map((t)=>t.slice(1));
|
|
177
|
-
const i = {
|
|
178
|
-
...e,
|
|
179
|
-
ignore: e.ignore.concat(o)
|
|
180
|
-
};
|
|
181
|
-
r.push({
|
|
182
|
-
pattern: s,
|
|
183
|
-
options: i
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
return r;
|
|
187
|
-
};
|
|
188
|
-
const globDirs = (t, e)=>{
|
|
189
|
-
let r = {};
|
|
190
|
-
if (t.options.cwd) r.cwd = t.options.cwd;
|
|
191
|
-
if (Array.isArray(t.options.expandDirectories)) r = {
|
|
192
|
-
...r,
|
|
193
|
-
files: t.options.expandDirectories
|
|
194
|
-
};
|
|
195
|
-
else if ("object" == typeof t.options.expandDirectories) r = {
|
|
196
|
-
...r,
|
|
197
|
-
...t.options.expandDirectories
|
|
198
|
-
};
|
|
199
|
-
return e(t.pattern, r);
|
|
200
|
-
};
|
|
201
|
-
const getPattern = (t, e)=>t.options.expandDirectories ? globDirs(t, e) : [
|
|
202
|
-
t.pattern
|
|
203
|
-
];
|
|
204
|
-
const getFilterSync = (t)=>t && t.gitignore ? a.sync({
|
|
205
|
-
cwd: t.cwd,
|
|
206
|
-
ignore: t.ignore
|
|
207
|
-
}) : DEFAULT_FILTER;
|
|
208
|
-
const globToTask = (t)=>(e)=>{
|
|
209
|
-
const { options: r } = t;
|
|
210
|
-
if (r.ignore && Array.isArray(r.ignore) && r.expandDirectories) r.ignore = c.sync(r.ignore);
|
|
211
|
-
return {
|
|
212
|
-
pattern: e,
|
|
213
|
-
options: r
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
t.exports = async (t, e)=>{
|
|
217
|
-
const r = generateGlobTasks(t, e);
|
|
218
|
-
const getFilter = async ()=>e && e.gitignore ? a({
|
|
219
|
-
cwd: e.cwd,
|
|
220
|
-
ignore: e.ignore
|
|
221
|
-
}) : DEFAULT_FILTER;
|
|
222
|
-
const getTasks = async ()=>{
|
|
223
|
-
const t = await Promise.all(r.map(async (t)=>{
|
|
224
|
-
const e = await getPattern(t, c);
|
|
225
|
-
return Promise.all(e.map(globToTask(t)));
|
|
226
|
-
}));
|
|
227
|
-
return s(...t);
|
|
228
|
-
};
|
|
229
|
-
const [n, o] = await Promise.all([
|
|
230
|
-
getFilter(),
|
|
231
|
-
getTasks()
|
|
232
|
-
]);
|
|
233
|
-
const p = await Promise.all(o.map((t)=>i(t.pattern, t.options)));
|
|
234
|
-
return s(...p).filter((t)=>!n(getPathString(t)));
|
|
235
|
-
};
|
|
236
|
-
t.exports.sync = (t, e)=>{
|
|
237
|
-
const r = generateGlobTasks(t, e);
|
|
238
|
-
const n = [];
|
|
239
|
-
for (const t of r){
|
|
240
|
-
const e = getPattern(t, c.sync).map(globToTask(t));
|
|
241
|
-
n.push(...e);
|
|
242
|
-
}
|
|
243
|
-
const o = getFilterSync(e);
|
|
244
|
-
let a = [];
|
|
245
|
-
for (const t of n)a = s(a, i.sync(t.pattern, t.options));
|
|
246
|
-
return a.filter((t)=>!o(t));
|
|
247
|
-
};
|
|
248
|
-
t.exports.stream = (t, e)=>{
|
|
249
|
-
const r = generateGlobTasks(t, e);
|
|
250
|
-
const n = [];
|
|
251
|
-
for (const t of r){
|
|
252
|
-
const e = getPattern(t, c.sync).map(globToTask(t));
|
|
253
|
-
n.push(...e);
|
|
254
|
-
}
|
|
255
|
-
const s = getFilterSync(e);
|
|
256
|
-
const a = new p((t)=>!s(t));
|
|
257
|
-
const l = new u;
|
|
258
|
-
return o(n.map((t)=>i.stream(t.pattern, t.options))).pipe(a).pipe(l);
|
|
259
|
-
};
|
|
260
|
-
t.exports.generateGlobTasks = generateGlobTasks;
|
|
261
|
-
t.exports.hasMagic = (t, e)=>[].concat(t).some((t)=>i.isDynamicPattern(t, e));
|
|
262
|
-
t.exports.gitignore = a;
|
|
263
|
-
},
|
|
264
|
-
546: (t, e, r)=>{
|
|
265
|
-
"use strict";
|
|
266
|
-
const { Transform: n } = r(781);
|
|
267
|
-
class ObjectTransform extends n {
|
|
268
|
-
constructor(){
|
|
269
|
-
super({
|
|
270
|
-
objectMode: true
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
class FilterStream extends ObjectTransform {
|
|
275
|
-
constructor(t){
|
|
276
|
-
super();
|
|
277
|
-
this._filter = t;
|
|
278
|
-
}
|
|
279
|
-
_transform(t, e, r) {
|
|
280
|
-
if (this._filter(t)) this.push(t);
|
|
281
|
-
r();
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
class UniqueStream extends ObjectTransform {
|
|
285
|
-
constructor(){
|
|
286
|
-
super();
|
|
287
|
-
this._pushed = new Set;
|
|
288
|
-
}
|
|
289
|
-
_transform(t, e, r) {
|
|
290
|
-
if (!this._pushed.has(t)) {
|
|
291
|
-
this.push(t);
|
|
292
|
-
this._pushed.add(t);
|
|
293
|
-
}
|
|
294
|
-
r();
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
t.exports = {
|
|
298
|
-
FilterStream: FilterStream,
|
|
299
|
-
UniqueStream: UniqueStream
|
|
300
|
-
};
|
|
301
|
-
},
|
|
302
|
-
302: (t)=>{
|
|
303
|
-
function makeArray(t) {
|
|
304
|
-
return Array.isArray(t) ? t : [
|
|
305
|
-
t
|
|
306
|
-
];
|
|
307
|
-
}
|
|
308
|
-
const e = "";
|
|
309
|
-
const r = " ";
|
|
310
|
-
const n = "\\";
|
|
311
|
-
const s = /^\s+$/;
|
|
312
|
-
const o = /^\\!/;
|
|
313
|
-
const i = /^\\#/;
|
|
314
|
-
const c = /\r?\n/g;
|
|
315
|
-
const a = /^\.*\/|^\.+$/;
|
|
316
|
-
const p = "/";
|
|
317
|
-
const u = "u" > typeof Symbol ? Symbol.for("node-ignore") : "node-ignore";
|
|
318
|
-
const define = (t, e, r)=>Object.defineProperty(t, e, {
|
|
319
|
-
value: r
|
|
320
|
-
});
|
|
321
|
-
const l = /([0-z])-([0-z])/g;
|
|
322
|
-
const RETURN_FALSE = ()=>false;
|
|
323
|
-
const sanitizeRange = (t)=>t.replace(l, (t, r, n)=>r.charCodeAt(0) <= n.charCodeAt(0) ? t : e);
|
|
324
|
-
const cleanRangeBackSlash = (t)=>{
|
|
325
|
-
const { length: e } = t;
|
|
326
|
-
return t.slice(0, e - e % 2);
|
|
327
|
-
};
|
|
328
|
-
const f = [
|
|
329
|
-
[
|
|
330
|
-
/\\?\s+$/,
|
|
331
|
-
(t)=>0 === t.indexOf("\\") ? r : e
|
|
332
|
-
],
|
|
333
|
-
[
|
|
334
|
-
/\\\s/g,
|
|
335
|
-
()=>r
|
|
336
|
-
],
|
|
337
|
-
[
|
|
338
|
-
/[\\$.|*+(){^]/g,
|
|
339
|
-
(t)=>`\\${t}`
|
|
340
|
-
],
|
|
341
|
-
[
|
|
342
|
-
/(?!\\)\?/g,
|
|
343
|
-
()=>"[^/]"
|
|
344
|
-
],
|
|
345
|
-
[
|
|
346
|
-
/^\//,
|
|
347
|
-
()=>"^"
|
|
348
|
-
],
|
|
349
|
-
[
|
|
350
|
-
/\//g,
|
|
351
|
-
()=>"\\/"
|
|
352
|
-
],
|
|
353
|
-
[
|
|
354
|
-
/^\^*\\\*\\\*\\\//,
|
|
355
|
-
()=>"^(?:.*\\/)?"
|
|
356
|
-
],
|
|
357
|
-
[
|
|
358
|
-
/^(?=[^^])/,
|
|
359
|
-
function() {
|
|
360
|
-
return /\/(?!$)/.test(this) ? "^" : "(?:^|\\/)";
|
|
361
|
-
}
|
|
362
|
-
],
|
|
363
|
-
[
|
|
364
|
-
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
365
|
-
(t, e, r)=>e + 6 < r.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
|
|
366
|
-
],
|
|
367
|
-
[
|
|
368
|
-
/(^|[^\\]+)\\\*(?=.+)/g,
|
|
369
|
-
(t, e)=>`${e}[^\\/]*`
|
|
370
|
-
],
|
|
371
|
-
[
|
|
372
|
-
/\\\\\\(?=[$.|*+(){^])/g,
|
|
373
|
-
()=>n
|
|
374
|
-
],
|
|
375
|
-
[
|
|
376
|
-
/\\\\/g,
|
|
377
|
-
()=>n
|
|
378
|
-
],
|
|
379
|
-
[
|
|
380
|
-
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
381
|
-
(t, e, r, s, o)=>e === n ? `\\[${r}${cleanRangeBackSlash(s)}${o}` : "]" === o ? s.length % 2 === 0 ? `[${sanitizeRange(r)}${s}]` : "[]" : "[]"
|
|
382
|
-
],
|
|
383
|
-
[
|
|
384
|
-
/(?:[^*])$/,
|
|
385
|
-
(t)=>/\/$/.test(t) ? `${t}$` : `${t}(?=$|\\/$)`
|
|
386
|
-
],
|
|
387
|
-
[
|
|
388
|
-
/(\^|\\\/)?\\\*$/,
|
|
389
|
-
(t, e)=>{
|
|
390
|
-
const r = e ? `${e}[^/]+` : "[^/]*";
|
|
391
|
-
return `${r}(?=$|\\/$)`;
|
|
392
|
-
}
|
|
393
|
-
]
|
|
394
|
-
];
|
|
395
|
-
const d = Object.create(null);
|
|
396
|
-
const makeRegex = (t, e)=>{
|
|
397
|
-
let r = d[t];
|
|
398
|
-
if (!r) {
|
|
399
|
-
r = f.reduce((e, r)=>e.replace(r[0], r[1].bind(t)), t);
|
|
400
|
-
d[t] = r;
|
|
401
|
-
}
|
|
402
|
-
return e ? new RegExp(r, "i") : new RegExp(r);
|
|
403
|
-
};
|
|
404
|
-
const isString = (t)=>"string" == typeof t;
|
|
405
|
-
const checkPattern = (t)=>t && isString(t) && !s.test(t) && 0 !== t.indexOf("#");
|
|
406
|
-
const splitPattern = (t)=>t.split(c);
|
|
407
|
-
class IgnoreRule {
|
|
408
|
-
constructor(t, e, r, n){
|
|
409
|
-
this.origin = t;
|
|
410
|
-
this.pattern = e;
|
|
411
|
-
this.negative = r;
|
|
412
|
-
this.regex = n;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
const createRule = (t, e)=>{
|
|
416
|
-
const r = t;
|
|
417
|
-
let n = false;
|
|
418
|
-
if (0 === t.indexOf("!")) {
|
|
419
|
-
n = true;
|
|
420
|
-
t = t.substr(1);
|
|
421
|
-
}
|
|
422
|
-
t = t.replace(o, "!").replace(i, "#");
|
|
423
|
-
const s = makeRegex(t, e);
|
|
424
|
-
return new IgnoreRule(r, t, n, s);
|
|
425
|
-
};
|
|
426
|
-
const throwError = (t, e)=>{
|
|
427
|
-
throw new e(t);
|
|
428
|
-
};
|
|
429
|
-
const checkPath = (t, e, r)=>{
|
|
430
|
-
if (!isString(t)) return r(`path must be a string, but got \`${e}\``, TypeError);
|
|
431
|
-
if (!t) return r("path must not be empty", TypeError);
|
|
432
|
-
if (checkPath.isNotRelative(t)) {
|
|
433
|
-
const t = "`path.relative()`d";
|
|
434
|
-
return r(`path should be a ${t} string, but got "${e}"`, RangeError);
|
|
435
|
-
}
|
|
436
|
-
return true;
|
|
437
|
-
};
|
|
438
|
-
const isNotRelative = (t)=>a.test(t);
|
|
439
|
-
checkPath.isNotRelative = isNotRelative;
|
|
440
|
-
checkPath.convert = (t)=>t;
|
|
441
|
-
class Ignore {
|
|
442
|
-
constructor({ ignorecase: t = true, ignoreCase: e = t, allowRelativePaths: r = false } = {}){
|
|
443
|
-
define(this, u, true);
|
|
444
|
-
this._rules = [];
|
|
445
|
-
this._ignoreCase = e;
|
|
446
|
-
this._allowRelativePaths = r;
|
|
447
|
-
this._initCache();
|
|
448
|
-
}
|
|
449
|
-
_initCache() {
|
|
450
|
-
this._ignoreCache = Object.create(null);
|
|
451
|
-
this._testCache = Object.create(null);
|
|
452
|
-
}
|
|
453
|
-
_addPattern(t) {
|
|
454
|
-
if (t && t[u]) {
|
|
455
|
-
this._rules = this._rules.concat(t._rules);
|
|
456
|
-
this._added = true;
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
if (checkPattern(t)) {
|
|
460
|
-
const e = createRule(t, this._ignoreCase);
|
|
461
|
-
this._added = true;
|
|
462
|
-
this._rules.push(e);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
add(t) {
|
|
466
|
-
this._added = false;
|
|
467
|
-
makeArray(isString(t) ? splitPattern(t) : t).forEach(this._addPattern, this);
|
|
468
|
-
if (this._added) this._initCache();
|
|
469
|
-
return this;
|
|
470
|
-
}
|
|
471
|
-
addPattern(t) {
|
|
472
|
-
return this.add(t);
|
|
473
|
-
}
|
|
474
|
-
_testOne(t, e) {
|
|
475
|
-
let r = false;
|
|
476
|
-
let n = false;
|
|
477
|
-
this._rules.forEach((s)=>{
|
|
478
|
-
const { negative: o } = s;
|
|
479
|
-
if (n === o && r !== n || o && !r && !n && !e) return;
|
|
480
|
-
const i = s.regex.test(t);
|
|
481
|
-
if (i) {
|
|
482
|
-
r = !o;
|
|
483
|
-
n = o;
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
return {
|
|
487
|
-
ignored: r,
|
|
488
|
-
unignored: n
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
_test(t, e, r, n) {
|
|
492
|
-
const s = t && checkPath.convert(t);
|
|
493
|
-
checkPath(s, t, this._allowRelativePaths ? RETURN_FALSE : throwError);
|
|
494
|
-
return this._t(s, e, r, n);
|
|
495
|
-
}
|
|
496
|
-
_t(t, e, r, n) {
|
|
497
|
-
if (t in e) return e[t];
|
|
498
|
-
if (!n) n = t.split(p);
|
|
499
|
-
n.pop();
|
|
500
|
-
if (!n.length) return e[t] = this._testOne(t, r);
|
|
501
|
-
const s = this._t(n.join(p) + p, e, r, n);
|
|
502
|
-
return e[t] = s.ignored ? s : this._testOne(t, r);
|
|
503
|
-
}
|
|
504
|
-
ignores(t) {
|
|
505
|
-
return this._test(t, this._ignoreCache, false).ignored;
|
|
506
|
-
}
|
|
507
|
-
createFilter() {
|
|
508
|
-
return (t)=>!this.ignores(t);
|
|
509
|
-
}
|
|
510
|
-
filter(t) {
|
|
511
|
-
return makeArray(t).filter(this.createFilter());
|
|
512
|
-
}
|
|
513
|
-
test(t) {
|
|
514
|
-
return this._test(t, this._testCache, true);
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
const factory = (t)=>new Ignore(t);
|
|
518
|
-
const isPathValid = (t)=>checkPath(t && checkPath.convert(t), t, RETURN_FALSE);
|
|
519
|
-
factory.isPathValid = isPathValid;
|
|
520
|
-
factory.default = factory;
|
|
521
|
-
t.exports = factory;
|
|
522
|
-
if ("u" > typeof process && (process.env && process.env.IGNORE_TEST_WIN32 || "win32" === process.platform)) {
|
|
523
|
-
const makePosix = (t)=>/^\\\\\?\\/.test(t) || /["<>|\u0000-\u001F]+/u.test(t) ? t : t.replace(/\\/g, "/");
|
|
524
|
-
checkPath.convert = makePosix;
|
|
525
|
-
const t = /^[a-z]:\//i;
|
|
526
|
-
checkPath.isNotRelative = (e)=>t.test(e) || isNotRelative(e);
|
|
527
|
-
}
|
|
528
|
-
},
|
|
529
|
-
382: (t, e, r)=>{
|
|
530
|
-
"use strict";
|
|
531
|
-
const n = r(781);
|
|
532
|
-
const s = n.PassThrough;
|
|
533
|
-
const o = Array.prototype.slice;
|
|
534
|
-
t.exports = merge2;
|
|
535
|
-
function merge2() {
|
|
536
|
-
const t = [];
|
|
537
|
-
const e = o.call(arguments);
|
|
538
|
-
let r = false;
|
|
539
|
-
let n = e[e.length - 1];
|
|
540
|
-
if (n && !Array.isArray(n) && null == n.pipe) e.pop();
|
|
541
|
-
else n = {};
|
|
542
|
-
const i = false !== n.end;
|
|
543
|
-
const c = true === n.pipeError;
|
|
544
|
-
if (null == n.objectMode) n.objectMode = true;
|
|
545
|
-
if (null == n.highWaterMark) n.highWaterMark = 65536;
|
|
546
|
-
const a = s(n);
|
|
547
|
-
function addStream() {
|
|
548
|
-
for(let e = 0, r = arguments.length; e < r; e++)t.push(pauseStreams(arguments[e], n));
|
|
549
|
-
mergeStream();
|
|
550
|
-
return this;
|
|
551
|
-
}
|
|
552
|
-
function mergeStream() {
|
|
553
|
-
if (r) return;
|
|
554
|
-
r = true;
|
|
555
|
-
let e = t.shift();
|
|
556
|
-
if (!e) return void process.nextTick(endStream);
|
|
557
|
-
if (!Array.isArray(e)) e = [
|
|
558
|
-
e
|
|
559
|
-
];
|
|
560
|
-
let n = e.length + 1;
|
|
561
|
-
function next() {
|
|
562
|
-
if (--n > 0) return;
|
|
563
|
-
r = false;
|
|
564
|
-
mergeStream();
|
|
565
|
-
}
|
|
566
|
-
function pipe(t) {
|
|
567
|
-
function onend() {
|
|
568
|
-
t.removeListener("merge2UnpipeEnd", onend);
|
|
569
|
-
t.removeListener("end", onend);
|
|
570
|
-
if (c) t.removeListener("error", onerror);
|
|
571
|
-
next();
|
|
572
|
-
}
|
|
573
|
-
function onerror(t) {
|
|
574
|
-
a.emit("error", t);
|
|
575
|
-
}
|
|
576
|
-
if (t._readableState.endEmitted) return next();
|
|
577
|
-
t.on("merge2UnpipeEnd", onend);
|
|
578
|
-
t.on("end", onend);
|
|
579
|
-
if (c) t.on("error", onerror);
|
|
580
|
-
t.pipe(a, {
|
|
581
|
-
end: false
|
|
582
|
-
});
|
|
583
|
-
t.resume();
|
|
584
|
-
}
|
|
585
|
-
for(let t = 0; t < e.length; t++)pipe(e[t]);
|
|
586
|
-
next();
|
|
587
|
-
}
|
|
588
|
-
function endStream() {
|
|
589
|
-
r = false;
|
|
590
|
-
a.emit("queueDrain");
|
|
591
|
-
if (i) a.end();
|
|
592
|
-
}
|
|
593
|
-
a.setMaxListeners(0);
|
|
594
|
-
a.add = addStream;
|
|
595
|
-
a.on("unpipe", function(t) {
|
|
596
|
-
t.emit("merge2UnpipeEnd");
|
|
597
|
-
});
|
|
598
|
-
if (e.length) addStream.apply(null, e);
|
|
599
|
-
return a;
|
|
600
|
-
}
|
|
601
|
-
function pauseStreams(t, e) {
|
|
602
|
-
if (Array.isArray(t)) for(let r = 0, n = t.length; r < n; r++)t[r] = pauseStreams(t[r], e);
|
|
603
|
-
else {
|
|
604
|
-
if (!t._readableState && t.pipe) t = t.pipe(s(e));
|
|
605
|
-
if (!t._readableState || !t.pause || !t.pipe) throw new Error("Only readable stream can be merged.");
|
|
606
|
-
t.pause();
|
|
607
|
-
}
|
|
608
|
-
return t;
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
223: (t, e, r)=>{
|
|
612
|
-
"use strict";
|
|
613
|
-
const { promisify: n } = r(837);
|
|
614
|
-
const s = r(147);
|
|
615
|
-
async function isType(t, e, r) {
|
|
616
|
-
if ("string" != typeof r) throw new TypeError(`Expected a string, got ${typeof r}`);
|
|
617
|
-
try {
|
|
618
|
-
const o = await n(s[t])(r);
|
|
619
|
-
return o[e]();
|
|
620
|
-
} catch (t) {
|
|
621
|
-
if ("ENOENT" === t.code) return false;
|
|
622
|
-
throw t;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
function isTypeSync(t, e, r) {
|
|
626
|
-
if ("string" != typeof r) throw new TypeError(`Expected a string, got ${typeof r}`);
|
|
627
|
-
try {
|
|
628
|
-
return s[t](r)[e]();
|
|
629
|
-
} catch (t) {
|
|
630
|
-
if ("ENOENT" === t.code) return false;
|
|
631
|
-
throw t;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
e.isFile = isType.bind(null, "stat", "isFile");
|
|
635
|
-
e.isDirectory = isType.bind(null, "stat", "isDirectory");
|
|
636
|
-
e.isSymlink = isType.bind(null, "lstat", "isSymbolicLink");
|
|
637
|
-
e.isFileSync = isTypeSync.bind(null, "statSync", "isFile");
|
|
638
|
-
e.isDirectorySync = isTypeSync.bind(null, "statSync", "isDirectory");
|
|
639
|
-
e.isSymlinkSync = isTypeSync.bind(null, "lstatSync", "isSymbolicLink");
|
|
640
|
-
},
|
|
641
|
-
398: (t)=>{
|
|
642
|
-
"use strict";
|
|
643
|
-
t.exports = (t)=>{
|
|
644
|
-
const e = /^\\\\\?\\/.test(t);
|
|
645
|
-
const r = /[^\u0000-\u0080]+/.test(t);
|
|
646
|
-
if (e || r) return t;
|
|
647
|
-
return t.replace(/\\/g, "/");
|
|
648
|
-
};
|
|
649
|
-
},
|
|
650
|
-
592: (t)=>{
|
|
651
|
-
"use strict";
|
|
652
|
-
t.exports = require("../fast-glob");
|
|
653
|
-
},
|
|
654
|
-
147: (t)=>{
|
|
655
|
-
"use strict";
|
|
656
|
-
t.exports = require("fs");
|
|
657
|
-
},
|
|
658
|
-
17: (t)=>{
|
|
659
|
-
"use strict";
|
|
660
|
-
t.exports = require("path");
|
|
661
|
-
},
|
|
662
|
-
781: (t)=>{
|
|
663
|
-
"use strict";
|
|
664
|
-
t.exports = require("stream");
|
|
665
|
-
},
|
|
666
|
-
837: (t)=>{
|
|
667
|
-
"use strict";
|
|
668
|
-
t.exports = require("util");
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
var e = {};
|
|
672
|
-
function __nccwpck_require__(r) {
|
|
673
|
-
var n = e[r];
|
|
674
|
-
if (void 0 !== n) return n.exports;
|
|
675
|
-
var s = e[r] = {
|
|
676
|
-
exports: {}
|
|
677
|
-
};
|
|
678
|
-
var o = true;
|
|
679
|
-
try {
|
|
680
|
-
t[r](s, s.exports, __nccwpck_require__);
|
|
681
|
-
o = false;
|
|
682
|
-
} finally{
|
|
683
|
-
if (o) delete e[r];
|
|
684
|
-
}
|
|
685
|
-
return s.exports;
|
|
686
|
-
}
|
|
687
|
-
if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
|
|
688
|
-
var r = __nccwpck_require__(718);
|
|
689
|
-
module.exports = r;
|
|
690
|
-
})();
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|