@umijs/utils 3.5.19 → 4.0.0-beta.11
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 +2 -0
- package/compiled/address/index.js +1 -0
- package/compiled/address/lib/address.d.ts +28 -0
- package/compiled/address/package.json +1 -0
- package/compiled/axios/LICENSE +19 -0
- package/compiled/axios/index.d.ts +206 -0
- package/compiled/axios/index.js +1 -0
- package/compiled/axios/package.json +1 -0
- package/compiled/chalk/LICENSE +9 -0
- package/compiled/chalk/index.d.ts +415 -0
- package/compiled/chalk/index.js +1 -0
- package/compiled/chalk/package.json +1 -0
- package/compiled/cheerio/LICENSE +21 -0
- package/compiled/cheerio/domelementtype/lib/index.d.ts +48 -0
- package/compiled/cheerio/domhandler/lib/index.d.ts +85 -0
- package/compiled/cheerio/domhandler/lib/node.d.ts +169 -0
- package/compiled/cheerio/htmlparser2/lib/Parser.d.ts +159 -0
- package/compiled/cheerio/htmlparser2/lib/Tokenizer.d.ts +182 -0
- package/compiled/cheerio/htmlparser2/lib/index.d.ts +39 -0
- package/compiled/cheerio/index.js +16 -0
- package/compiled/cheerio/lib/api/attributes.d.ts +317 -0
- package/compiled/cheerio/lib/api/css.d.ts +41 -0
- package/compiled/cheerio/lib/api/forms.d.ts +31 -0
- package/compiled/cheerio/lib/api/manipulation.d.ts +496 -0
- package/compiled/cheerio/lib/api/traversing.d.ts +644 -0
- package/compiled/cheerio/lib/cheerio.d.ts +53 -0
- package/compiled/cheerio/lib/index.d.ts +91 -0
- package/compiled/cheerio/lib/load.d.ts +73 -0
- package/compiled/cheerio/lib/options.d.ts +31 -0
- package/compiled/cheerio/lib/static.d.ts +88 -0
- package/compiled/cheerio/lib/types.d.ts +20 -0
- package/compiled/cheerio/package.json +1 -0
- package/compiled/color/LICENSE +21 -0
- package/compiled/color/color-convert/conversions.d.ts +149 -0
- package/compiled/color/color-convert/index.d.ts +113 -0
- package/compiled/color/color-convert/route.d.ts +294 -0
- package/compiled/color/color-name/index.d.ts +161 -0
- package/compiled/color/index.d.ts +142 -0
- package/compiled/color/index.js +1 -0
- package/compiled/color/package.json +4 -0
- package/compiled/cross-spawn/LICENSE +21 -0
- package/compiled/cross-spawn/index.d.ts +36 -0
- package/compiled/cross-spawn/index.js +1 -0
- package/compiled/cross-spawn/package.json +1 -0
- package/compiled/debug/LICENSE +19 -0
- package/compiled/debug/index.d.ts +54 -0
- package/compiled/debug/index.js +1 -0
- package/compiled/debug/ms/index.d.ts +25 -0
- package/compiled/debug/package.json +1 -0
- package/compiled/deepmerge/index.d.ts +16 -0
- package/compiled/deepmerge/index.js +1 -0
- package/compiled/deepmerge/package.json +1 -0
- package/compiled/execa/LICENSE +9 -0
- package/compiled/execa/index.d.ts +564 -0
- package/compiled/execa/index.js +1 -0
- package/compiled/execa/package.json +1 -0
- package/compiled/fs-extra/LICENSE +15 -0
- package/compiled/fs-extra/index.d.ts +332 -0
- package/compiled/fs-extra/index.js +1 -0
- package/compiled/fs-extra/package.json +1 -0
- package/compiled/glob/LICENSE +21 -0
- package/compiled/glob/index.d.ts +89 -0
- package/compiled/glob/index.js +1 -0
- package/compiled/glob/minimatch/index.d.ts +204 -0
- package/compiled/glob/package.json +1 -0
- package/compiled/import-lazy/LICENSE +9 -0
- package/compiled/import-lazy/index.d.ts +26 -0
- package/compiled/import-lazy/index.js +1 -0
- package/compiled/import-lazy/package.json +1 -0
- package/compiled/lodash/LICENSE +47 -0
- package/compiled/lodash/common/array.d.ts +2126 -0
- package/compiled/lodash/common/collection.d.ts +1930 -0
- package/compiled/lodash/common/common.d.ts +280 -0
- package/compiled/lodash/common/date.d.ts +23 -0
- package/compiled/lodash/common/function.d.ts +1430 -0
- package/compiled/lodash/common/lang.d.ts +1692 -0
- package/compiled/lodash/common/math.d.ts +405 -0
- package/compiled/lodash/common/number.d.ts +131 -0
- package/compiled/lodash/common/object.d.ts +2519 -0
- package/compiled/lodash/common/seq.d.ts +210 -0
- package/compiled/lodash/common/string.d.ts +788 -0
- package/compiled/lodash/common/util.d.ts +1219 -0
- package/compiled/lodash/index.d.ts +46 -0
- package/compiled/lodash/index.js +9 -0
- package/compiled/lodash/package.json +1 -0
- package/compiled/mustache/LICENSE +11 -0
- package/compiled/mustache/index.d.ts +437 -0
- package/compiled/mustache/index.js +5 -0
- package/compiled/mustache/package.json +1 -0
- package/compiled/pkg-up/LICENSE +9 -0
- package/compiled/pkg-up/index.d.ts +48 -0
- package/compiled/pkg-up/index.js +1 -0
- package/compiled/pkg-up/package.json +1 -0
- package/compiled/portfinder/LICENSE +22 -0
- package/compiled/portfinder/index.js +1 -0
- package/compiled/portfinder/lib/portfinder.d.ts +47 -0
- package/compiled/portfinder/package.json +1 -0
- package/compiled/prettier/LICENSE +7 -0
- package/compiled/prettier/index.d.ts +756 -0
- package/compiled/prettier/index.js +263 -0
- package/compiled/prettier/package.json +1 -0
- package/compiled/prompts/LICENSE +21 -0
- package/compiled/prompts/index.d.ts +120 -0
- package/compiled/prompts/index.js +1 -0
- package/compiled/prompts/package.json +1 -0
- package/compiled/resolve/LICENSE +21 -0
- package/compiled/resolve/index.d.ts +166 -0
- package/compiled/resolve/index.js +1 -0
- package/compiled/resolve/package.json +1 -0
- package/compiled/rimraf/LICENSE +15 -0
- package/compiled/rimraf/glob/index.d.ts +89 -0
- package/compiled/rimraf/index.d.ts +49 -0
- package/compiled/rimraf/index.js +1 -0
- package/compiled/rimraf/minimatch/index.d.ts +204 -0
- package/compiled/rimraf/package.json +1 -0
- package/compiled/semver/LICENSE +15 -0
- package/compiled/semver/classes/comparator.d.ts +17 -0
- package/compiled/semver/classes/range.d.ts +21 -0
- package/compiled/semver/classes/semver.d.ts +62 -0
- package/compiled/semver/functions/clean.d.ts +8 -0
- package/compiled/semver/functions/cmp.d.ts +16 -0
- package/compiled/semver/functions/coerce.d.ts +12 -0
- package/compiled/semver/functions/compare-build.d.ts +16 -0
- package/compiled/semver/functions/compare-loose.d.ts +5 -0
- package/compiled/semver/functions/compare.d.ts +20 -0
- package/compiled/semver/functions/diff.d.ts +13 -0
- package/compiled/semver/functions/eq.d.ts +9 -0
- package/compiled/semver/functions/gt.d.ts +9 -0
- package/compiled/semver/functions/gte.d.ts +9 -0
- package/compiled/semver/functions/inc.d.ts +15 -0
- package/compiled/semver/functions/lt.d.ts +9 -0
- package/compiled/semver/functions/lte.d.ts +8 -0
- package/compiled/semver/functions/major.d.ts +9 -0
- package/compiled/semver/functions/minor.d.ts +9 -0
- package/compiled/semver/functions/neq.d.ts +9 -0
- package/compiled/semver/functions/parse.d.ts +12 -0
- package/compiled/semver/functions/patch.d.ts +9 -0
- package/compiled/semver/functions/prerelease.d.ts +12 -0
- package/compiled/semver/functions/rcompare.d.ts +15 -0
- package/compiled/semver/functions/rsort.d.ts +9 -0
- package/compiled/semver/functions/satisfies.d.ts +14 -0
- package/compiled/semver/functions/sort.d.ts +9 -0
- package/compiled/semver/functions/valid.d.ts +11 -0
- package/compiled/semver/index.d.ts +133 -0
- package/compiled/semver/index.js +1 -0
- package/compiled/semver/internals/identifiers.d.ts +13 -0
- package/compiled/semver/package.json +1 -0
- package/compiled/semver/ranges/gtr.d.ts +14 -0
- package/compiled/semver/ranges/intersects.d.ts +13 -0
- package/compiled/semver/ranges/ltr.d.ts +14 -0
- package/compiled/semver/ranges/max-satisfying.d.ts +14 -0
- package/compiled/semver/ranges/min-satisfying.d.ts +14 -0
- package/compiled/semver/ranges/min-version.d.ts +10 -0
- package/compiled/semver/ranges/outside.d.ts +15 -0
- package/compiled/semver/ranges/simplify.d.ts +14 -0
- package/compiled/semver/ranges/subset.d.ts +13 -0
- package/compiled/semver/ranges/to-comparators.d.ts +9 -0
- package/compiled/semver/ranges/valid.d.ts +12 -0
- package/compiled/strip-ansi/LICENSE +9 -0
- package/compiled/strip-ansi/index.d.ts +17 -0
- package/compiled/strip-ansi/index.js +1 -0
- package/compiled/strip-ansi/package.json +1 -0
- package/compiled/yargs-parser/index.d.ts +112 -0
- package/compiled/yargs-parser/index.js +1 -0
- package/compiled/yargs-parser/package.json +1 -0
- package/dist/BaseGenerator/BaseGenerator.d.ts +18 -0
- package/dist/BaseGenerator/BaseGenerator.js +58 -0
- package/dist/BaseGenerator/generateFile.d.ts +8 -0
- package/dist/BaseGenerator/generateFile.js +25 -0
- package/{lib → dist}/Generator/Generator.d.ts +3 -3
- package/dist/Generator/Generator.js +74 -0
- package/dist/importLazy.d.ts +6 -0
- package/dist/importLazy.js +17 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +88 -0
- package/dist/installDeps.d.ts +9 -0
- package/dist/installDeps.js +39 -0
- package/dist/logger.d.ts +14 -0
- package/dist/logger.js +39 -0
- package/dist/npmClient.d.ts +15 -0
- package/dist/npmClient.js +43 -0
- package/dist/randomColor/randomColor.d.ts +6 -0
- package/dist/randomColor/randomColor.js +19 -0
- package/dist/register.d.ts +6 -0
- package/dist/register.js +48 -0
- package/dist/updatePackageJSON.d.ts +5 -0
- package/dist/updatePackageJSON.js +21 -0
- package/dist/winPath.d.ts +1 -0
- package/dist/winPath.js +11 -0
- package/package.json +102 -18
- package/lib/BabelRegister/BabelRegister.d.ts +0 -9
- package/lib/BabelRegister/BabelRegister.js +0 -66
- package/lib/Generator/Generator.js +0 -120
- package/lib/cheerio/cheerio.d.ts +0 -2
- package/lib/cheerio/cheerio.js +0 -37
- package/lib/cleanRequireCache/cleanRequireCache.d.ts +0 -1
- package/lib/cleanRequireCache/cleanRequireCache.js +0 -40
- package/lib/compatESModuleRequire/compatESModuleRequire.d.ts +0 -7
- package/lib/compatESModuleRequire/compatESModuleRequire.js +0 -22
- package/lib/delay/delay.d.ts +0 -1
- package/lib/delay/delay.js +0 -22
- package/lib/getFile/getFile.d.ts +0 -22
- package/lib/getFile/getFile.js +0 -85
- package/lib/index.d.ts +0 -66
- package/lib/index.js +0 -619
- package/lib/isLernaPackage/isLernaPackage.d.ts +0 -1
- package/lib/isLernaPackage/isLernaPackage.js +0 -42
- package/lib/mergeConfig/mergeConfig.d.ts +0 -8
- package/lib/mergeConfig/mergeConfig.js +0 -42
- package/lib/parseRequireDeps/parseRequireDeps.d.ts +0 -1
- package/lib/parseRequireDeps/parseRequireDeps.js +0 -98
- package/lib/randomColor/randomColor.d.ts +0 -6
- package/lib/randomColor/randomColor.js +0 -42
- package/lib/routes.d.ts +0 -11
- package/lib/routes.js +0 -53
- package/lib/ssr.d.ts +0 -12
- package/lib/ssr.js +0 -41
- package/lib/types.d.ts +0 -7
- package/lib/types.js +0 -17
- package/lib/winEOL/winEOL.d.ts +0 -7
- package/lib/winEOL/winEOL.js +0 -39
- package/lib/winPath/winPath.d.ts +0 -1
- package/lib/winPath/winPath.js +0 -28
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
// Type definitions for Mustache 4.1.0
|
|
2
|
+
// Project: https://github.com/janl/mustache.js
|
|
3
|
+
// Definitions by: Mark Ashley Bell <https://github.com/markashleybell>,
|
|
4
|
+
// Manuel Thalmann <https://github.com/manuth>,
|
|
5
|
+
// Phillip Johnsen <https://github.com/phillipj>
|
|
6
|
+
// Steve Dignam <https://github.com/sbdchd>
|
|
7
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
8
|
+
// Minimum TypeScript Version: 3.7
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Provides the functionality to render templates with `{{mustaches}}`.
|
|
12
|
+
*/
|
|
13
|
+
interface MustacheStatic {
|
|
14
|
+
/**
|
|
15
|
+
* The name of the module.
|
|
16
|
+
*/
|
|
17
|
+
readonly name: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The version of the module.
|
|
21
|
+
*/
|
|
22
|
+
readonly version: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The default opening and closing tags used while parsing the templates.
|
|
26
|
+
*
|
|
27
|
+
* Different default tags can be overridden by setting this field. They will have effect on all subsequent
|
|
28
|
+
* calls to `.render()` or `.parse()`, unless custom tags are given as arguments to those functions.
|
|
29
|
+
*
|
|
30
|
+
* Default value is `[ "{{", "}}" ]`.
|
|
31
|
+
*/
|
|
32
|
+
tags: OpeningAndClosingTags;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A simple string scanner that is used by the template parser to find tokens in template strings.
|
|
36
|
+
*/
|
|
37
|
+
Scanner: typeof MustacheScanner;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Represents a rendering context by wrapping a view object and maintaining a reference to the parent context.
|
|
41
|
+
*/
|
|
42
|
+
Context: typeof MustacheContext;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A Writer knows how to take a stream of tokens and render them to a `string`, given a context.
|
|
46
|
+
*
|
|
47
|
+
* It also maintains a cache of templates to avoid the need to parse the same template twice.
|
|
48
|
+
*/
|
|
49
|
+
Writer: typeof MustacheWriter;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* HTML escaping by default, can be overriden by setting Mustache.escape explicitly or providing the `options`
|
|
53
|
+
* argument with an `escape` function when invoking Mustache.render().
|
|
54
|
+
*
|
|
55
|
+
* Escaping can be avoided when needed by using `{{{ value }}}` or `{{& value }}` in templates.
|
|
56
|
+
*
|
|
57
|
+
* @param value
|
|
58
|
+
* The value to escape into a string.
|
|
59
|
+
*/
|
|
60
|
+
escape: EscapeFunction;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Clears all cached templates in this writer.
|
|
64
|
+
*/
|
|
65
|
+
clearCache(): void;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Customise the template caching behaviour by either:
|
|
69
|
+
*
|
|
70
|
+
* disable it completely by setting it to `undefined`
|
|
71
|
+
*
|
|
72
|
+
* -- or --
|
|
73
|
+
*
|
|
74
|
+
* provide a custom cache strategy that satisfies the `TemplateCache` interface
|
|
75
|
+
*/
|
|
76
|
+
templateCache: TemplateCache | undefined;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Parses and caches the given template in the default writer and returns the array of tokens it contains.
|
|
80
|
+
*
|
|
81
|
+
* Doing this ahead of time avoids the need to parse templates on the fly as they are rendered.
|
|
82
|
+
*
|
|
83
|
+
* @param template
|
|
84
|
+
* The template to parse.
|
|
85
|
+
*
|
|
86
|
+
* @param tags
|
|
87
|
+
* The tags to use.
|
|
88
|
+
*/
|
|
89
|
+
parse(template: string, tags?: OpeningAndClosingTags): TemplateSpans;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Renders the `template` with the given `view` and `partials` using the default writer.
|
|
93
|
+
*
|
|
94
|
+
* @param template
|
|
95
|
+
* The template to render.
|
|
96
|
+
*
|
|
97
|
+
* @param view
|
|
98
|
+
* The view to render the template with.
|
|
99
|
+
*
|
|
100
|
+
* @param partials
|
|
101
|
+
* Either an object that contains the names and templates of partials that are used in a template
|
|
102
|
+
*
|
|
103
|
+
* -- or --
|
|
104
|
+
*
|
|
105
|
+
* A function that is used to load partial template on the fly that takes a single argument: the name of the partial.
|
|
106
|
+
*
|
|
107
|
+
* @param tagsOrOptions
|
|
108
|
+
* The delimeter tags to use or options overriding global defaults.
|
|
109
|
+
*/
|
|
110
|
+
render(
|
|
111
|
+
template: string,
|
|
112
|
+
view: any | MustacheContext,
|
|
113
|
+
partials?: PartialsOrLookupFn,
|
|
114
|
+
tagsOrOptions?: OpeningAndClosingTags | RenderOptions,
|
|
115
|
+
): string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* A simple string scanner that is used by the template parser to find tokens in template strings.
|
|
120
|
+
*/
|
|
121
|
+
declare class MustacheScanner {
|
|
122
|
+
string: string;
|
|
123
|
+
tail: string;
|
|
124
|
+
pos: number;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Initializes a new instance of the `MustacheScanner` class.
|
|
128
|
+
*/
|
|
129
|
+
constructor(string: string);
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Returns `true` if the tail is empty (end of string).
|
|
133
|
+
*/
|
|
134
|
+
eos(): boolean;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Tries to match the given regular expression at the current position.
|
|
138
|
+
*
|
|
139
|
+
* @param re
|
|
140
|
+
* The regex-pattern to match.
|
|
141
|
+
*
|
|
142
|
+
* @returns
|
|
143
|
+
* The matched text if it can match, the empty string otherwise.
|
|
144
|
+
*/
|
|
145
|
+
scan(re: RegExp): string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Skips all text until the given regular expression can be matched.
|
|
149
|
+
*
|
|
150
|
+
* @param re
|
|
151
|
+
* The regex-pattern to match.
|
|
152
|
+
*
|
|
153
|
+
* @returns
|
|
154
|
+
* Returns the skipped string, which is the entire tail if no match can be made.
|
|
155
|
+
*/
|
|
156
|
+
scanUntil(re: RegExp): string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Represents a rendering context by wrapping a view object and maintaining a reference to the parent context.
|
|
161
|
+
*/
|
|
162
|
+
declare class MustacheContext {
|
|
163
|
+
view: any;
|
|
164
|
+
parent: MustacheContext | undefined;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Initializes a new instance of the `MustacheContext` class.
|
|
168
|
+
*/
|
|
169
|
+
constructor(view: any, parentContext?: MustacheContext);
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Creates a new context using the given view with this context as the parent.
|
|
173
|
+
*
|
|
174
|
+
* @param view
|
|
175
|
+
* The view to create the new context with.
|
|
176
|
+
*/
|
|
177
|
+
push(view: any): MustacheContext;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Returns the value of the given name in this context, traversing up the context hierarchy if the value is absent in this context's view.
|
|
181
|
+
*
|
|
182
|
+
* @param name
|
|
183
|
+
* The name to look up.
|
|
184
|
+
*/
|
|
185
|
+
lookup(name: string): any;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* A Writer knows how to take a stream of tokens and render them to a `string`, given a context.
|
|
190
|
+
*
|
|
191
|
+
* It also maintains a cache of templates to avoid the need to parse the same template twice.
|
|
192
|
+
*/
|
|
193
|
+
declare class MustacheWriter {
|
|
194
|
+
/**
|
|
195
|
+
* Initializes a new instance of the `MustacheWriter` class.
|
|
196
|
+
*/
|
|
197
|
+
constructor();
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Clears all cached templates in this writer.
|
|
201
|
+
*/
|
|
202
|
+
clearCache(): void;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Parses and caches the given `template` and returns the array of tokens that is generated from the parse.
|
|
206
|
+
*
|
|
207
|
+
* @param template
|
|
208
|
+
* The template to parse.
|
|
209
|
+
*
|
|
210
|
+
* @param tags
|
|
211
|
+
* The tags to use.
|
|
212
|
+
*/
|
|
213
|
+
parse(template: string, tags?: OpeningAndClosingTags): any;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* High-level method that is used to render the given `template` with the given `view`.
|
|
217
|
+
*
|
|
218
|
+
* @param template
|
|
219
|
+
* The template to render.
|
|
220
|
+
*
|
|
221
|
+
* @param view
|
|
222
|
+
* The view to render the template with.
|
|
223
|
+
*
|
|
224
|
+
* @param partials
|
|
225
|
+
* Either an object that contains the names and templates of partials that are used in a template
|
|
226
|
+
*
|
|
227
|
+
* -- or --
|
|
228
|
+
*
|
|
229
|
+
* A function that is used to load partial template on the fly that takes a single argument: the name of the partial.
|
|
230
|
+
*
|
|
231
|
+
* @param tags
|
|
232
|
+
* The tags to use.
|
|
233
|
+
*/
|
|
234
|
+
render(
|
|
235
|
+
template: string,
|
|
236
|
+
view: any | MustacheContext,
|
|
237
|
+
partials?: PartialsOrLookupFn,
|
|
238
|
+
config?: OpeningAndClosingTags | RenderOptions,
|
|
239
|
+
): string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Low-level method that renders the given array of `tokens` using the given `context` and `partials`.
|
|
243
|
+
*
|
|
244
|
+
* @param tokens
|
|
245
|
+
* The tokens to render.
|
|
246
|
+
*
|
|
247
|
+
* @param context
|
|
248
|
+
* The context to use for rendering the tokens.
|
|
249
|
+
*
|
|
250
|
+
* @param partials
|
|
251
|
+
* The partials to use for rendering the tokens.
|
|
252
|
+
*
|
|
253
|
+
* @param originalTemplate
|
|
254
|
+
* An object used to extract the portion of the original template that was contained in a higher-order section.
|
|
255
|
+
*
|
|
256
|
+
* If the template doesn't use higher-order sections, this argument may be omitted.
|
|
257
|
+
*/
|
|
258
|
+
renderTokens(
|
|
259
|
+
tokens: string[][],
|
|
260
|
+
context: MustacheContext,
|
|
261
|
+
partials?: PartialsOrLookupFn,
|
|
262
|
+
originalTemplate?: string,
|
|
263
|
+
config?: RenderOptions,
|
|
264
|
+
): string;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Renders a section block.
|
|
268
|
+
*
|
|
269
|
+
* @param token
|
|
270
|
+
* The token to render.
|
|
271
|
+
*
|
|
272
|
+
* @param context
|
|
273
|
+
* The context to use for rendering the token.
|
|
274
|
+
*
|
|
275
|
+
* @param partials
|
|
276
|
+
* The partials to use for rendering the token.
|
|
277
|
+
*
|
|
278
|
+
* @param originalTemplate
|
|
279
|
+
* An object used to extract the portion of the original template that was contained in a higher-order section.
|
|
280
|
+
*/
|
|
281
|
+
renderSection(
|
|
282
|
+
token: string[],
|
|
283
|
+
context: MustacheContext,
|
|
284
|
+
partials?: PartialsOrLookupFn,
|
|
285
|
+
originalTemplate?: string,
|
|
286
|
+
config?: RenderOptions,
|
|
287
|
+
): string;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Renders an inverted section block.
|
|
291
|
+
*
|
|
292
|
+
* @param token
|
|
293
|
+
* The token to render.
|
|
294
|
+
*
|
|
295
|
+
* @param context
|
|
296
|
+
* The context to use for rendering the token.
|
|
297
|
+
*
|
|
298
|
+
* @param partials
|
|
299
|
+
* The partials to use for rendering the token.
|
|
300
|
+
*
|
|
301
|
+
* @param originalTemplate
|
|
302
|
+
* An object used to extract the portion of the original template that was contained in a higher-order section.
|
|
303
|
+
*/
|
|
304
|
+
renderInverted(
|
|
305
|
+
token: string[],
|
|
306
|
+
context: MustacheContext,
|
|
307
|
+
partials?: PartialsOrLookupFn,
|
|
308
|
+
originalTemplate?: string,
|
|
309
|
+
config?: RenderOptions,
|
|
310
|
+
): string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Adds indentation to each line of the given partial.
|
|
314
|
+
*
|
|
315
|
+
* @param partial
|
|
316
|
+
* The partial to indent.
|
|
317
|
+
*
|
|
318
|
+
* @param indentation
|
|
319
|
+
* String containing a combination of spaces and tabs to use as indentation.
|
|
320
|
+
*
|
|
321
|
+
* @param lineHasNonSpace
|
|
322
|
+
* Whether to indent lines that are empty.
|
|
323
|
+
*/
|
|
324
|
+
indentPartial(partial: string, indentation: string, lineHasNonSpace: boolean): string;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Renders a partial.
|
|
328
|
+
*
|
|
329
|
+
* @param token
|
|
330
|
+
* The token to render.
|
|
331
|
+
*
|
|
332
|
+
* @param context
|
|
333
|
+
* The context to use for rendering the token.
|
|
334
|
+
*
|
|
335
|
+
* @param partials
|
|
336
|
+
* The partials to use for rendering the token.
|
|
337
|
+
*
|
|
338
|
+
* @param tags
|
|
339
|
+
* The tags to use.
|
|
340
|
+
*/
|
|
341
|
+
renderPartial(
|
|
342
|
+
token: string[],
|
|
343
|
+
context: MustacheContext,
|
|
344
|
+
partials?: PartialsOrLookupFn,
|
|
345
|
+
config?: OpeningAndClosingTags | RenderOptions,
|
|
346
|
+
): string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Renders an unescaped value.
|
|
350
|
+
*
|
|
351
|
+
* @param token
|
|
352
|
+
* The token to render.
|
|
353
|
+
*
|
|
354
|
+
* @param context
|
|
355
|
+
* The context to use for rendering the token.
|
|
356
|
+
*/
|
|
357
|
+
unescapedValue(token: string[], context: MustacheContext): string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Renders an escaped value.
|
|
361
|
+
*
|
|
362
|
+
* @param token
|
|
363
|
+
* The token to render.
|
|
364
|
+
*
|
|
365
|
+
* @param context
|
|
366
|
+
* The context to use for rendering the token.
|
|
367
|
+
*/
|
|
368
|
+
escapedValue(
|
|
369
|
+
token: string[],
|
|
370
|
+
context: MustacheContext,
|
|
371
|
+
config?: RenderOptions,
|
|
372
|
+
): string;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Renders a raw token.
|
|
376
|
+
*
|
|
377
|
+
* @param token
|
|
378
|
+
* The token to render.
|
|
379
|
+
*/
|
|
380
|
+
rawValue(token: string[]): string;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
type RAW_VALUE = 'text';
|
|
384
|
+
type ESCAPED_VALUE = 'name';
|
|
385
|
+
type UNESCAPED_VALUE = '&';
|
|
386
|
+
type SECTION = '#';
|
|
387
|
+
type INVERTED = '^';
|
|
388
|
+
type COMMENT = '!';
|
|
389
|
+
type PARTIAL = '>';
|
|
390
|
+
type EQUAL = '=';
|
|
391
|
+
|
|
392
|
+
type TemplateSpanType = RAW_VALUE | ESCAPED_VALUE | SECTION | UNESCAPED_VALUE | INVERTED | COMMENT | PARTIAL | EQUAL;
|
|
393
|
+
|
|
394
|
+
type TemplateSpans = Array<
|
|
395
|
+
| [TemplateSpanType, string, number, number]
|
|
396
|
+
| [TemplateSpanType, string, number, number, TemplateSpans, number]
|
|
397
|
+
| [TemplateSpanType, string, number, number, string, number, boolean]
|
|
398
|
+
>;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Function responsible for escaping values from the view into the rendered output when templates
|
|
402
|
+
* has `{{ value }}` in them.
|
|
403
|
+
*/
|
|
404
|
+
type EscapeFunction = (value: any) => string;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* An array of two strings, representing the opening and closing tags respectively, to be used in the templates being rendered.
|
|
408
|
+
*/
|
|
409
|
+
type OpeningAndClosingTags = [string, string];
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Whenever partials are provided, it can either be an object that contains the names and templates of partials that are used in tempaltes
|
|
413
|
+
*
|
|
414
|
+
* -- or --
|
|
415
|
+
*
|
|
416
|
+
* A function that is used to load partial template on the fly that takes a single argument: the name of the partial.
|
|
417
|
+
*/
|
|
418
|
+
type PartialsOrLookupFn = Record<string, string> | PartialLookupFn;
|
|
419
|
+
type PartialLookupFn = (partialName: string) => string | undefined;
|
|
420
|
+
|
|
421
|
+
interface RenderOptions {
|
|
422
|
+
escape?: EscapeFunction | undefined;
|
|
423
|
+
tags?: OpeningAndClosingTags | undefined;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
interface TemplateCache {
|
|
427
|
+
set(cacheKey: string, value: string): void;
|
|
428
|
+
get(cacheKey: string): string | undefined;
|
|
429
|
+
clear(): void;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Provides the functionality to render templates with `{{mustaches}}`.
|
|
434
|
+
*/
|
|
435
|
+
declare var Mustache: MustacheStatic;
|
|
436
|
+
export = Mustache;
|
|
437
|
+
export as namespace Mustache;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(){var e={746:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
4
|
+
* http://github.com/janl/mustache.js
|
|
5
|
+
*/var e=Object.prototype.toString;var t=Array.isArray||function isArrayPolyfill(t){return e.call(t)==="[object Array]"};function isFunction(e){return typeof e==="function"}function typeStr(e){return t(e)?"array":typeof e}function escapeRegExp(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hasProperty(e,t){return e!=null&&typeof e==="object"&&t in e}function primitiveHasOwnProperty(e,t){return e!=null&&typeof e!=="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var r=RegExp.prototype.test;function testRegExp(e,t){return r.call(e,t)}var n=/\S/;function isWhitespace(e){return!testRegExp(n,e)}var i={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function escapeHtml(e){return String(e).replace(/[&<>"'`=\/]/g,(function fromEntityMap(e){return i[e]}))}var a=/\s*/;var s=/\s+/;var o=/\s*=/;var p=/\s*\}/;var u=/#|\^|\/|>|\{|&|=|!/;function parseTemplate(e,r){if(!e)return[];var n=false;var i=[];var l=[];var f=[];var h=false;var d=false;var v="";var g=0;function stripSpace(){if(h&&!d){while(f.length)delete l[f.pop()]}else{f=[]}h=false;d=false}var y,w,m;function compileTags(e){if(typeof e==="string")e=e.split(s,2);if(!t(e)||e.length!==2)throw new Error("Invalid tags: "+e);y=new RegExp(escapeRegExp(e[0])+"\\s*");w=new RegExp("\\s*"+escapeRegExp(e[1]));m=new RegExp("\\s*"+escapeRegExp("}"+e[1]))}compileTags(r||c.tags);var x=new Scanner(e);var C,_,k,b,T,E;while(!x.eos()){C=x.pos;k=x.scanUntil(y);if(k){for(var S=0,W=k.length;S<W;++S){b=k.charAt(S);if(isWhitespace(b)){f.push(l.length);v+=b}else{d=true;n=true;v+=" "}l.push(["text",b,C,C+1]);C+=1;if(b==="\n"){stripSpace();v="";g=0;n=false}}}if(!x.scan(y))break;h=true;_=x.scan(u)||"name";x.scan(a);if(_==="="){k=x.scanUntil(o);x.scan(o);x.scanUntil(w)}else if(_==="{"){k=x.scanUntil(m);x.scan(p);x.scanUntil(w);_="&"}else{k=x.scanUntil(w)}if(!x.scan(w))throw new Error("Unclosed tag at "+x.pos);if(_==">"){T=[_,k,C,x.pos,v,g,n]}else{T=[_,k,C,x.pos]}g++;l.push(T);if(_==="#"||_==="^"){i.push(T)}else if(_==="/"){E=i.pop();if(!E)throw new Error('Unopened section "'+k+'" at '+C);if(E[1]!==k)throw new Error('Unclosed section "'+E[1]+'" at '+C)}else if(_==="name"||_==="{"||_==="&"){d=true}else if(_==="="){compileTags(k)}}stripSpace();E=i.pop();if(E)throw new Error('Unclosed section "'+E[1]+'" at '+x.pos);return nestTokens(squashTokens(l))}function squashTokens(e){var t=[];var r,n;for(var i=0,a=e.length;i<a;++i){r=e[i];if(r){if(r[0]==="text"&&n&&n[0]==="text"){n[1]+=r[1];n[3]=r[3]}else{t.push(r);n=r}}}return t}function nestTokens(e){var t=[];var r=t;var n=[];var i,a;for(var s=0,o=e.length;s<o;++s){i=e[s];switch(i[0]){case"#":case"^":r.push(i);n.push(i);r=i[4]=[];break;case"/":a=n.pop();a[5]=i[2];r=n.length>0?n[n.length-1][4]:t;break;default:r.push(i)}}return t}function Scanner(e){this.string=e;this.tail=e;this.pos=0}Scanner.prototype.eos=function eos(){return this.tail===""};Scanner.prototype.scan=function scan(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var r=t[0];this.tail=this.tail.substring(r.length);this.pos+=r.length;return r};Scanner.prototype.scanUntil=function scanUntil(e){var t=this.tail.search(e),r;switch(t){case-1:r=this.tail;this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,t);this.tail=this.tail.substring(t)}this.pos+=r.length;return r};function Context(e,t){this.view=e;this.cache={".":this.view};this.parent=t}Context.prototype.push=function push(e){return new Context(e,this)};Context.prototype.lookup=function lookup(e){var t=this.cache;var r;if(t.hasOwnProperty(e)){r=t[e]}else{var n=this,i,a,s,o=false;while(n){if(e.indexOf(".")>0){i=n.view;a=e.split(".");s=0;while(i!=null&&s<a.length){if(s===a.length-1)o=hasProperty(i,a[s])||primitiveHasOwnProperty(i,a[s]);i=i[a[s++]]}}else{i=n.view[e];o=hasProperty(n.view,e)}if(o){r=i;break}n=n.parent}t[e]=r}if(isFunction(r))r=r.call(this.view);return r};function Writer(){this.templateCache={_cache:{},set:function set(e,t){this._cache[e]=t},get:function get(e){return this._cache[e]},clear:function clear(){this._cache={}}}}Writer.prototype.clearCache=function clearCache(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};Writer.prototype.parse=function parse(e,t){var r=this.templateCache;var n=e+":"+(t||c.tags).join(":");var i=typeof r!=="undefined";var a=i?r.get(n):undefined;if(a==undefined){a=parseTemplate(e,t);i&&r.set(n,a)}return a};Writer.prototype.render=function render(e,t,r,n){var i=this.getConfigTags(n);var a=this.parse(e,i);var s=t instanceof Context?t:new Context(t,undefined);return this.renderTokens(a,s,r,e,n)};Writer.prototype.renderTokens=function renderTokens(e,t,r,n,i){var a="";var s,o,p;for(var u=0,c=e.length;u<c;++u){p=undefined;s=e[u];o=s[0];if(o==="#")p=this.renderSection(s,t,r,n,i);else if(o==="^")p=this.renderInverted(s,t,r,n,i);else if(o===">")p=this.renderPartial(s,t,r,i);else if(o==="&")p=this.unescapedValue(s,t);else if(o==="name")p=this.escapedValue(s,t,i);else if(o==="text")p=this.rawValue(s);if(p!==undefined)a+=p}return a};Writer.prototype.renderSection=function renderSection(e,r,n,i,a){var s=this;var o="";var p=r.lookup(e[1]);function subRender(e){return s.render(e,r,n,a)}if(!p)return;if(t(p)){for(var u=0,c=p.length;u<c;++u){o+=this.renderTokens(e[4],r.push(p[u]),n,i,a)}}else if(typeof p==="object"||typeof p==="string"||typeof p==="number"){o+=this.renderTokens(e[4],r.push(p),n,i,a)}else if(isFunction(p)){if(typeof i!=="string")throw new Error("Cannot use higher-order sections without the original template");p=p.call(r.view,i.slice(e[3],e[5]),subRender);if(p!=null)o+=p}else{o+=this.renderTokens(e[4],r,n,i,a)}return o};Writer.prototype.renderInverted=function renderInverted(e,r,n,i,a){var s=r.lookup(e[1]);if(!s||t(s)&&s.length===0)return this.renderTokens(e[4],r,n,i,a)};Writer.prototype.indentPartial=function indentPartial(e,t,r){var n=t.replace(/[^ \t]/g,"");var i=e.split("\n");for(var a=0;a<i.length;a++){if(i[a].length&&(a>0||!r)){i[a]=n+i[a]}}return i.join("\n")};Writer.prototype.renderPartial=function renderPartial(e,t,r,n){if(!r)return;var i=this.getConfigTags(n);var a=isFunction(r)?r(e[1]):r[e[1]];if(a!=null){var s=e[6];var o=e[5];var p=e[4];var u=a;if(o==0&&p){u=this.indentPartial(a,p,s)}var c=this.parse(u,i);return this.renderTokens(c,t,r,u,n)}};Writer.prototype.unescapedValue=function unescapedValue(e,t){var r=t.lookup(e[1]);if(r!=null)return r};Writer.prototype.escapedValue=function escapedValue(e,t,r){var n=this.getConfigEscape(r)||c.escape;var i=t.lookup(e[1]);if(i!=null)return typeof i==="number"&&n===c.escape?String(i):n(i)};Writer.prototype.rawValue=function rawValue(e){return e[1]};Writer.prototype.getConfigTags=function getConfigTags(e){if(t(e)){return e}else if(e&&typeof e==="object"){return e.tags}else{return undefined}};Writer.prototype.getConfigEscape=function getConfigEscape(e){if(e&&typeof e==="object"&&!t(e)){return e.escape}else{return undefined}};var c={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(e){l.templateCache=e},get templateCache(){return l.templateCache}};var l=new Writer;c.clearCache=function clearCache(){return l.clearCache()};c.parse=function parse(e,t){return l.parse(e,t)};c.render=function render(e,t,r,n){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+typeStr(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return l.render(e,t,r,n)};c.escape=escapeHtml;c.Scanner=Scanner;c.Context=Context;c.Writer=Writer;return c}))}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var a=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(746);module.exports=r})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"mustache","author":"mustache.js Authors <http://github.com/janl/mustache.js>","license":"MIT"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare namespace pkgUp {
|
|
2
|
+
interface Options {
|
|
3
|
+
/**
|
|
4
|
+
Directory to start from.
|
|
5
|
+
|
|
6
|
+
@default process.cwd()
|
|
7
|
+
*/
|
|
8
|
+
readonly cwd?: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const pkgUp: {
|
|
13
|
+
/**
|
|
14
|
+
Find the closest `package.json` file.
|
|
15
|
+
|
|
16
|
+
@returns The filepath, or `null` if it couldn't be found.
|
|
17
|
+
|
|
18
|
+
@example
|
|
19
|
+
```
|
|
20
|
+
// /
|
|
21
|
+
// └── Users
|
|
22
|
+
// └── sindresorhus
|
|
23
|
+
// └── foo
|
|
24
|
+
// ├── package.json
|
|
25
|
+
// └── bar
|
|
26
|
+
// ├── baz
|
|
27
|
+
// └── example.js
|
|
28
|
+
|
|
29
|
+
// example.js
|
|
30
|
+
import pkgUp = require('../pkg-up');
|
|
31
|
+
|
|
32
|
+
(async () => {
|
|
33
|
+
console.log(await pkgUp());
|
|
34
|
+
//=> '/Users/sindresorhus/foo/package.json'
|
|
35
|
+
})();
|
|
36
|
+
```
|
|
37
|
+
*/
|
|
38
|
+
(options?: pkgUp.Options): Promise<string | null>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Synchronously find the closest `package.json` file.
|
|
42
|
+
|
|
43
|
+
@returns The filepath, or `null` if it couldn't be found.
|
|
44
|
+
*/
|
|
45
|
+
sync(options?: pkgUp.Options): string | null;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export = pkgUp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var e={555:function(e,r,n){const t=n(622);const s=n(326);e.exports=(e,r={})=>{const n=t.resolve(r.cwd||"");const{root:c}=t.parse(n);const o=[].concat(e);return new Promise((e=>{(function find(r){s(o,{cwd:r}).then((n=>{if(n){e(t.join(r,n))}else if(r===c){e(null)}else{find(t.dirname(r))}}))})(n)}))};e.exports.sync=(e,r={})=>{let n=t.resolve(r.cwd||"");const{root:c}=t.parse(n);const o=[].concat(e);while(true){const e=s.sync(o,{cwd:n});if(e){return t.join(n,e)}if(n===c){return null}n=t.dirname(n)}}},326:function(e,r,n){const t=n(622);const s=n(720);const c=n(463);e.exports=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);return c(e,(e=>s(t.resolve(r.cwd,e))),r)};e.exports.sync=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);for(const n of e){if(s.sync(t.resolve(r.cwd,n))){return n}}}},66:function(e,r,n){const t=n(502);const pLimit=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const r=[];let n=0;const next=()=>{n--;if(r.length>0){r.shift()()}};const run=(e,r,...s)=>{n++;const c=t(e,...s);r(c);c.then(next,next)};const enqueue=(t,s,...c)=>{if(n<e){run(t,s,...c)}else{r.push(run.bind(null,t,s,...c))}};const generator=(e,...r)=>new Promise((n=>enqueue(e,n,...r)));Object.defineProperties(generator,{activeCount:{get:()=>n},pendingCount:{get:()=>r.length},clearQueue:{value:()=>{r.length=0}}});return generator};e.exports=pLimit;e.exports.default=pLimit},463:function(e,r,n){const t=n(66);class EndError extends Error{constructor(e){super();this.value=e}}const testElement=(e,r)=>Promise.resolve(e).then(r);const finder=e=>Promise.all(e).then((e=>e[1]===true&&Promise.reject(new EndError(e[0]))));e.exports=(e,r,n)=>{n=Object.assign({concurrency:Infinity,preserveOrder:true},n);const s=t(n.concurrency);const c=[...e].map((e=>[e,s(testElement,e,r)]));const o=t(n.preserveOrder?1:Infinity);return Promise.all(c.map((e=>o(finder,e)))).then((()=>{})).catch((e=>e instanceof EndError?e.value:Promise.reject(e)))}},502:function(e){const pTry=(e,...r)=>new Promise((n=>{n(e(...r))}));e.exports=pTry;e.exports.default=pTry},720:function(e,r,n){const t=n(747);e.exports=e=>new Promise((r=>{t.access(e,(e=>{r(!e)}))}));e.exports.sync=e=>{try{t.accessSync(e);return true}catch(e){return false}}},258:function(e,r,n){const t=n(555);e.exports=async({cwd:e}={})=>t("package.json",{cwd:e});e.exports.sync=({cwd:e}={})=>t.sync("package.json",{cwd:e})},747:function(e){e.exports=require("fs")},622:function(e){e.exports=require("path")}};var r={};function __nccwpck_require__(n){var t=r[n];if(t!==undefined){return t.exports}var s=r[n]={exports:{}};var c=true;try{e[n](s,s.exports,__nccwpck_require__);c=false}finally{if(c)delete r[n]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(258);module.exports=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"pkg-up","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"license":"MIT"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
node-portfinder
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2012 Charlie Robbins
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){var e={557:function(e,r,t){e=t.nmd(e);(function(e,t){true?t(r):0})(this,(function(r){"use strict";function slice(e,r){r=r|0;var t=Math.max(e.length-r,0);var n=Array(t);for(var i=0;i<t;i++){n[i]=e[r+i]}return n}var apply=function(e){var r=slice(arguments,1);return function(){var t=slice(arguments);return e.apply(null,r.concat(t))}};var initialParams=function(e){return function(){var r=slice(arguments);var t=r.pop();e.call(this,r,t)}};function isObject(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var t=typeof setImmediate==="function"&&setImmediate;var n=typeof process==="object"&&typeof process.nextTick==="function";function fallback(e){setTimeout(e,0)}function wrap(e){return function(r){var t=slice(arguments,1);e((function(){r.apply(null,t)}))}}var i;if(t){i=setImmediate}else if(n){i=process.nextTick}else{i=fallback}var a=wrap(i);function asyncify(e){return initialParams((function(r,t){var n;try{n=e.apply(this,r)}catch(e){return t(e)}if(isObject(n)&&typeof n.then==="function"){n.then((function(e){invokeCallback(t,null,e)}),(function(e){invokeCallback(t,e.message?e:new Error(e))}))}else{t(null,n)}}))}function invokeCallback(e,r,t){try{e(r,t)}catch(e){a(rethrow,e)}}function rethrow(e){throw e}var o=typeof Symbol==="function";function isAsync(e){return o&&e[Symbol.toStringTag]==="AsyncFunction"}function wrapAsync(e){return isAsync(e)?asyncify(e):e}function applyEach$1(e){return function(r){var t=slice(arguments,1);var n=initialParams((function(t,n){var i=this;return e(r,(function(e,r){wrapAsync(e).apply(i,t.concat(r))}),n)}));if(t.length){return n.apply(this,t)}else{return n}}}var c=typeof global=="object"&&global&&global.Object===Object&&global;var u=typeof self=="object"&&self&&self.Object===Object&&self;var s=c||u||Function("return this")();var l=s.Symbol;var f=Object.prototype;var p=f.hasOwnProperty;var v=f.toString;var h=l?l.toStringTag:undefined;function getRawTag(e){var r=p.call(e,h),t=e[h];try{e[h]=undefined;var n=true}catch(e){}var i=v.call(e);if(n){if(r){e[h]=t}else{delete e[h]}}return i}var y=Object.prototype;var d=y.toString;function objectToString(e){return d.call(e)}var m="[object Null]";var b="[object Undefined]";var g=l?l.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?b:m}return g&&g in Object(e)?getRawTag(e):objectToString(e)}var L="[object AsyncFunction]";var k="[object Function]";var w="[object GeneratorFunction]";var A="[object Proxy]";function isFunction(e){if(!isObject(e)){return false}var r=baseGetTag(e);return r==k||r==w||r==L||r==A}var j=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var O={};function noop(){}function once(e){return function(){if(e===null)return;var r=e;e=null;r.apply(this,arguments)}}var S=typeof Symbol==="function"&&Symbol.iterator;var getIterator=function(e){return S&&e[S]&&e[S]()};function baseTimes(e,r){var t=-1,n=Array(e);while(++t<e){n[t]=r(t)}return n}function isObjectLike(e){return e!=null&&typeof e=="object"}var P="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==P}var x=Object.prototype;var _=x.hasOwnProperty;var E=x.propertyIsEnumerable;var T=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&_.call(e,"callee")&&!E.call(e,"callee")};var I=Array.isArray;function stubFalse(){return false}var F=typeof r=="object"&&r&&!r.nodeType&&r;var D=F&&"object"=="object"&&e&&!e.nodeType&&e;var q=D&&D.exports===F;var N=q?s.Buffer:undefined;var $=N?N.isBuffer:undefined;var B=$||stubFalse;var R=9007199254740991;var M=/^(?:0|[1-9]\d*)$/;function isIndex(e,r){var t=typeof e;r=r==null?R:r;return!!r&&(t=="number"||t!="symbol"&&M.test(e))&&(e>-1&&e%1==0&&e<r)}var C="[object Arguments]";var z="[object Array]";var U="[object Boolean]";var V="[object Date]";var G="[object Error]";var H="[object Function]";var W="[object Map]";var K="[object Number]";var Q="[object Object]";var J="[object RegExp]";var X="[object Set]";var Y="[object String]";var Z="[object WeakMap]";var ee="[object ArrayBuffer]";var re="[object DataView]";var te="[object Float32Array]";var ne="[object Float64Array]";var ie="[object Int8Array]";var ae="[object Int16Array]";var oe="[object Int32Array]";var ce="[object Uint8Array]";var ue="[object Uint8ClampedArray]";var se="[object Uint16Array]";var le="[object Uint32Array]";var fe={};fe[te]=fe[ne]=fe[ie]=fe[ae]=fe[oe]=fe[ce]=fe[ue]=fe[se]=fe[le]=true;fe[C]=fe[z]=fe[ee]=fe[U]=fe[re]=fe[V]=fe[G]=fe[H]=fe[W]=fe[K]=fe[Q]=fe[J]=fe[X]=fe[Y]=fe[Z]=false;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!fe[baseGetTag(e)]}function baseUnary(e){return function(r){return e(r)}}var pe=typeof r=="object"&&r&&!r.nodeType&&r;var ve=pe&&"object"=="object"&&e&&!e.nodeType&&e;var he=ve&&ve.exports===pe;var ye=he&&c.process;var de=function(){try{var e=ve&&ve.require&&ve.require("util").types;if(e){return e}return ye&&ye.binding&&ye.binding("util")}catch(e){}}();var me=de&&de.isTypedArray;var be=me?baseUnary(me):baseIsTypedArray;var ge=Object.prototype;var Le=ge.hasOwnProperty;function arrayLikeKeys(e,r){var t=I(e),n=!t&&T(e),i=!t&&!n&&B(e),a=!t&&!n&&!i&&be(e),o=t||n||i||a,c=o?baseTimes(e.length,String):[],u=c.length;for(var s in e){if((r||Le.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||isIndex(s,u)))){c.push(s)}}return c}var ke=Object.prototype;function isPrototype(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||ke;return e===t}function overArg(e,r){return function(t){return e(r(t))}}var we=overArg(Object.keys,Object);var Ae=Object.prototype;var je=Ae.hasOwnProperty;function baseKeys(e){if(!isPrototype(e)){return we(e)}var r=[];for(var t in Object(e)){if(je.call(e,t)&&t!="constructor"){r.push(t)}}return r}function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function createArrayIterator(e){var r=-1;var t=e.length;return function next(){return++r<t?{value:e[r],key:r}:null}}function createES2015Iterator(e){var r=-1;return function next(){var t=e.next();if(t.done)return null;r++;return{value:t.value,key:r}}}function createObjectIterator(e){var r=keys(e);var t=-1;var n=r.length;return function next(){var i=r[++t];return t<n?{value:e[i],key:i}:null}}function iterator(e){if(isArrayLike(e)){return createArrayIterator(e)}var r=getIterator(e);return r?createES2015Iterator(r):createObjectIterator(e)}function onlyOnce(e){return function(){if(e===null)throw new Error("Callback was already called.");var r=e;e=null;r.apply(this,arguments)}}function _eachOfLimit(e){return function(r,t,n){n=once(n||noop);if(e<=0||!r){return n(null)}var i=iterator(r);var a=false;var o=0;var c=false;function iterateeCallback(e,r){o-=1;if(e){a=true;n(e)}else if(r===O||a&&o<=0){a=true;return n(null)}else if(!c){replenish()}}function replenish(){c=true;while(o<e&&!a){var r=i();if(r===null){a=true;if(o<=0){n(null)}return}o+=1;t(r.value,r.key,onlyOnce(iterateeCallback))}c=false}replenish()}}function eachOfLimit(e,r,t,n){_eachOfLimit(r)(e,wrapAsync(t),n)}function doLimit(e,r){return function(t,n,i){return e(t,r,n,i)}}function eachOfArrayLike(e,r,t){t=once(t||noop);var n=0,i=0,a=e.length;if(a===0){t(null)}function iteratorCallback(e,r){if(e){t(e)}else if(++i===a||r===O){t(null)}}for(;n<a;n++){r(e[n],n,onlyOnce(iteratorCallback))}}var Oe=doLimit(eachOfLimit,Infinity);var eachOf=function(e,r,t){var n=isArrayLike(e)?eachOfArrayLike:Oe;n(e,wrapAsync(r),t)};function doParallel(e){return function(r,t,n){return e(eachOf,r,wrapAsync(t),n)}}function _asyncMap(e,r,t,n){n=n||noop;r=r||[];var i=[];var a=0;var o=wrapAsync(t);e(r,(function(e,r,t){var n=a++;o(e,(function(e,r){i[n]=r;t(e)}))}),(function(e){n(e,i)}))}var Se=doParallel(_asyncMap);var Pe=applyEach$1(Se);function doParallelLimit(e){return function(r,t,n,i){return e(_eachOfLimit(t),r,wrapAsync(n),i)}}var xe=doParallelLimit(_asyncMap);var _e=doLimit(xe,1);var Ee=applyEach$1(_e);function arrayEach(e,r){var t=-1,n=e==null?0:e.length;while(++t<n){if(r(e[t],t,e)===false){break}}return e}function createBaseFor(e){return function(r,t,n){var i=-1,a=Object(r),o=n(r),c=o.length;while(c--){var u=o[e?c:++i];if(t(a[u],u,a)===false){break}}return r}}var Te=createBaseFor();function baseForOwn(e,r){return e&&Te(e,r,keys)}function baseFindIndex(e,r,t,n){var i=e.length,a=t+(n?1:-1);while(n?a--:++a<i){if(r(e[a],a,e)){return a}}return-1}function baseIsNaN(e){return e!==e}function strictIndexOf(e,r,t){var n=t-1,i=e.length;while(++n<i){if(e[n]===r){return n}}return-1}function baseIndexOf(e,r,t){return r===r?strictIndexOf(e,r,t):baseFindIndex(e,baseIsNaN,t)}var auto=function(e,r,t){if(typeof r==="function"){t=r;r=null}t=once(t||noop);var n=keys(e);var i=n.length;if(!i){return t(null)}if(!r){r=i}var a={};var o=0;var c=false;var u=Object.create(null);var s=[];var l=[];var f={};baseForOwn(e,(function(r,t){if(!I(r)){enqueueTask(t,[r]);l.push(t);return}var n=r.slice(0,r.length-1);var i=n.length;if(i===0){enqueueTask(t,r);l.push(t);return}f[t]=i;arrayEach(n,(function(a){if(!e[a]){throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+a+"` in "+n.join(", "))}addListener(a,(function(){i--;if(i===0){enqueueTask(t,r)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(e,r){s.push((function(){runTask(e,r)}))}function processQueue(){if(s.length===0&&o===0){return t(null,a)}while(s.length&&o<r){var e=s.shift();e()}}function addListener(e,r){var t=u[e];if(!t){t=u[e]=[]}t.push(r)}function taskComplete(e){var r=u[e]||[];arrayEach(r,(function(e){e()}));processQueue()}function runTask(e,r){if(c)return;var n=onlyOnce((function(r,n){o--;if(arguments.length>2){n=slice(arguments,1)}if(r){var i={};baseForOwn(a,(function(e,r){i[r]=e}));i[e]=n;c=true;u=Object.create(null);t(r,i)}else{a[e]=n;taskComplete(e)}}));o++;var i=wrapAsync(r[r.length-1]);if(r.length>1){i(a,n)}else{i(n)}}function checkForDeadlocks(){var e;var r=0;while(l.length){e=l.pop();r++;arrayEach(getDependents(e),(function(e){if(--f[e]===0){l.push(e)}}))}if(r!==i){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(r){var t=[];baseForOwn(e,(function(e,n){if(I(e)&&baseIndexOf(e,r,0)>=0){t.push(n)}}));return t}};function arrayMap(e,r){var t=-1,n=e==null?0:e.length,i=Array(n);while(++t<n){i[t]=r(e[t],t,e)}return i}var Ie="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==Ie}var Fe=1/0;var De=l?l.prototype:undefined;var qe=De?De.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(I(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return qe?qe.call(e):""}var r=e+"";return r=="0"&&1/e==-Fe?"-0":r}function baseSlice(e,r,t){var n=-1,i=e.length;if(r<0){r=-r>i?0:i+r}t=t>i?i:t;if(t<0){t+=i}i=r>t?0:t-r>>>0;r>>>=0;var a=Array(i);while(++n<i){a[n]=e[n+r]}return a}function castSlice(e,r,t){var n=e.length;t=t===undefined?n:t;return!r&&t>=n?e:baseSlice(e,r,t)}function charsEndIndex(e,r){var t=e.length;while(t--&&baseIndexOf(r,e[t],0)>-1){}return t}function charsStartIndex(e,r){var t=-1,n=e.length;while(++t<n&&baseIndexOf(r,e[t],0)>-1){}return t}function asciiToArray(e){return e.split("")}var Ne="\\ud800-\\udfff";var $e="\\u0300-\\u036f";var Be="\\ufe20-\\ufe2f";var Re="\\u20d0-\\u20ff";var Me=$e+Be+Re;var Ce="\\ufe0e\\ufe0f";var ze="\\u200d";var Ue=RegExp("["+ze+Ne+Me+Ce+"]");function hasUnicode(e){return Ue.test(e)}var Ve="\\ud800-\\udfff";var Ge="\\u0300-\\u036f";var He="\\ufe20-\\ufe2f";var We="\\u20d0-\\u20ff";var Ke=Ge+He+We;var Qe="\\ufe0e\\ufe0f";var Je="["+Ve+"]";var Xe="["+Ke+"]";var Ye="\\ud83c[\\udffb-\\udfff]";var Ze="(?:"+Xe+"|"+Ye+")";var er="[^"+Ve+"]";var rr="(?:\\ud83c[\\udde6-\\uddff]){2}";var tr="[\\ud800-\\udbff][\\udc00-\\udfff]";var nr="\\u200d";var ir=Ze+"?";var ar="["+Qe+"]?";var or="(?:"+nr+"(?:"+[er,rr,tr].join("|")+")"+ar+ir+")*";var cr=ar+ir+or;var ur="(?:"+[er+Xe+"?",Xe,rr,tr,Je].join("|")+")";var sr=RegExp(Ye+"(?="+Ye+")|"+ur+cr,"g");function unicodeToArray(e){return e.match(sr)||[]}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function toString(e){return e==null?"":baseToString(e)}var lr=/^\s+|\s+$/g;function trim(e,r,t){e=toString(e);if(e&&(t||r===undefined)){return e.replace(lr,"")}if(!e||!(r=baseToString(r))){return e}var n=stringToArray(e),i=stringToArray(r),a=charsStartIndex(n,i),o=charsEndIndex(n,i)+1;return castSlice(n,a,o).join("")}var fr=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var pr=/,/;var vr=/(=.+)?(\s*)$/;var hr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace(hr,"");e=e.match(fr)[2].replace(" ","");e=e?e.split(pr):[];e=e.map((function(e){return trim(e.replace(vr,""))}));return e}function autoInject(e,r){var t={};baseForOwn(e,(function(e,r){var n;var i=isAsync(e);var a=!i&&e.length===1||i&&e.length===0;if(I(e)){n=e.slice(0,-1);e=e[e.length-1];t[r]=n.concat(n.length>0?newTask:e)}else if(a){t[r]=e}else{n=parseParams(e);if(e.length===0&&!i&&n.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!i)n.pop();t[r]=n.concat(newTask)}function newTask(r,t){var i=arrayMap(n,(function(e){return r[e]}));i.push(t);wrapAsync(e).apply(null,i)}}));auto(t,r)}function DLL(){this.head=this.tail=null;this.length=0}function setInitial(e,r){e.length=1;e.head=e.tail=r}DLL.prototype.removeLink=function(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e};DLL.prototype.empty=function(){while(this.head)this.shift();return this};DLL.prototype.insertAfter=function(e,r){r.prev=e;r.next=e.next;if(e.next)e.next.prev=r;else this.tail=r;e.next=r;this.length+=1};DLL.prototype.insertBefore=function(e,r){r.prev=e.prev;r.next=e;if(e.prev)e.prev.next=r;else this.head=r;e.prev=r;this.length+=1};DLL.prototype.unshift=function(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)};DLL.prototype.push=function(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)};DLL.prototype.shift=function(){return this.head&&this.removeLink(this.head)};DLL.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};DLL.prototype.toArray=function(){var e=Array(this.length);var r=this.head;for(var t=0;t<this.length;t++){e[t]=r.data;r=r.next}return e};DLL.prototype.remove=function(e){var r=this.head;while(!!r){var t=r.next;if(e(r)){this.removeLink(r)}r=t}return this};function queue(e,r,t){if(r==null){r=1}else if(r===0){throw new Error("Concurrency must not be zero")}var n=wrapAsync(e);var i=0;var o=[];var c=false;function _insert(e,r,t){if(t!=null&&typeof t!=="function"){throw new Error("task callback must be a function")}s.started=true;if(!I(e)){e=[e]}if(e.length===0&&s.idle()){return a((function(){s.drain()}))}for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:t||noop};if(r){s._tasks.unshift(o)}else{s._tasks.push(o)}}if(!c){c=true;a((function(){c=false;s.process()}))}}function _next(e){return function(r){i-=1;for(var t=0,n=e.length;t<n;t++){var a=e[t];var c=baseIndexOf(o,a,0);if(c===0){o.shift()}else if(c>0){o.splice(c,1)}a.callback.apply(a,arguments);if(r!=null){s.error(r,a.data)}}if(i<=s.concurrency-s.buffer){s.unsaturated()}if(s.idle()){s.drain()}s.process()}}var u=false;var s={_tasks:new DLL,concurrency:r,payload:t,saturated:noop,unsaturated:noop,buffer:r/4,empty:noop,drain:noop,error:noop,started:false,paused:false,push:function(e,r){_insert(e,false,r)},kill:function(){s.drain=noop;s._tasks.empty()},unshift:function(e,r){_insert(e,true,r)},remove:function(e){s._tasks.remove(e)},process:function(){if(u){return}u=true;while(!s.paused&&i<s.concurrency&&s._tasks.length){var e=[],r=[];var t=s._tasks.length;if(s.payload)t=Math.min(t,s.payload);for(var a=0;a<t;a++){var c=s._tasks.shift();e.push(c);o.push(c);r.push(c.data)}i+=1;if(s._tasks.length===0){s.empty()}if(i===s.concurrency){s.saturated()}var l=onlyOnce(_next(e));n(r,l)}u=false},length:function(){return s._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return s._tasks.length+i===0},pause:function(){s.paused=true},resume:function(){if(s.paused===false){return}s.paused=false;a(s.process)}};return s}function cargo(e,r){return queue(e,1,r)}var yr=doLimit(eachOfLimit,1);function reduce(e,r,t,n){n=once(n||noop);var i=wrapAsync(t);yr(e,(function(e,t,n){i(r,e,(function(e,t){r=t;n(e)}))}),(function(e){n(e,r)}))}function seq(){var e=arrayMap(arguments,wrapAsync);return function(){var r=slice(arguments);var t=this;var n=r[r.length-1];if(typeof n=="function"){r.pop()}else{n=noop}reduce(e,r,(function(e,r,n){r.apply(t,e.concat((function(e){var r=slice(arguments,1);n(e,r)})))}),(function(e,r){n.apply(t,[e].concat(r))}))}}var compose=function(){return seq.apply(null,slice(arguments).reverse())};var dr=Array.prototype.concat;var concatLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(e){if(e)return r(e);return r(null,slice(arguments,1))}))}),(function(e,r){var t=[];for(var i=0;i<r.length;i++){if(r[i]){t=dr.apply(t,r[i])}}return n(e,t)}))};var mr=doLimit(concatLimit,Infinity);var br=doLimit(concatLimit,1);var constant=function(){var e=slice(arguments);var r=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,r)}};function identity(e){return e}function _createTester(e,r){return function(t,n,i,a){a=a||noop;var o=false;var c;t(n,(function(t,n,a){i(t,(function(n,i){if(n){a(n)}else if(e(i)&&!c){o=true;c=r(true,t);a(null,O)}else{a()}}))}),(function(e){if(e){a(e)}else{a(null,o?c:r(false))}}))}}function _findGetResult(e,r){return r}var gr=doParallel(_createTester(identity,_findGetResult));var Lr=doParallelLimit(_createTester(identity,_findGetResult));var kr=doLimit(Lr,1);function consoleFunc(e){return function(r){var t=slice(arguments,1);t.push((function(r){var t=slice(arguments,1);if(typeof console==="object"){if(r){if(console.error){console.error(r)}}else if(console[e]){arrayEach(t,(function(r){console[e](r)}))}}}));wrapAsync(r).apply(null,t)}}var wr=consoleFunc("dir");function doDuring(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var i=wrapAsync(r);function next(e){if(e)return t(e);var r=slice(arguments,1);r.push(check);i.apply(this,r)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}check(null,true)}function doWhilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(e);var next=function(e){if(e)return t(e);var i=slice(arguments,1);if(r.apply(this,i))return n(next);t.apply(null,[null].concat(i))};n(next)}function doUntil(e,r,t){doWhilst(e,(function(){return!r.apply(this,arguments)}),t)}function during(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);var i=wrapAsync(e);function next(e){if(e)return t(e);i(check)}function check(e,r){if(e)return t(e);if(!r)return t(null);n(next)}i(check)}function _withoutIndex(e){return function(r,t,n){return e(r,n)}}function eachLimit(e,r,t){eachOf(e,_withoutIndex(wrapAsync(r)),t)}function eachLimit$1(e,r,t,n){_eachOfLimit(r)(e,_withoutIndex(wrapAsync(t)),n)}var Ar=doLimit(eachLimit$1,1);function ensureAsync(e){if(isAsync(e))return e;return initialParams((function(r,t){var n=true;r.push((function(){var e=arguments;if(n){a((function(){t.apply(null,e)}))}else{t.apply(null,e)}}));e.apply(this,r);n=false}))}function notId(e){return!e}var jr=doParallel(_createTester(notId,notId));var Or=doParallelLimit(_createTester(notId,notId));var Sr=doLimit(Or,1);function baseProperty(e){return function(r){return r==null?undefined:r[e]}}function filterArray(e,r,t,n){var i=new Array(r.length);e(r,(function(e,r,n){t(e,(function(e,t){i[r]=!!t;n(e)}))}),(function(e){if(e)return n(e);var t=[];for(var a=0;a<r.length;a++){if(i[a])t.push(r[a])}n(null,t)}))}function filterGeneric(e,r,t,n){var i=[];e(r,(function(e,r,n){t(e,(function(t,a){if(t){n(t)}else{if(a){i.push({index:r,value:e})}n()}}))}),(function(e){if(e){n(e)}else{n(null,arrayMap(i.sort((function(e,r){return e.index-r.index})),baseProperty("value")))}}))}function _filter(e,r,t,n){var i=isArrayLike(r)?filterArray:filterGeneric;i(e,r,wrapAsync(t),n||noop)}var Pr=doParallel(_filter);var xr=doParallelLimit(_filter);var _r=doLimit(xr,1);function forever(e,r){var t=onlyOnce(r||noop);var n=wrapAsync(ensureAsync(e));function next(e){if(e)return t(e);n(next)}next()}var groupByLimit=function(e,r,t,n){n=n||noop;var i=wrapAsync(t);xe(e,r,(function(e,r){i(e,(function(t,n){if(t)return r(t);return r(null,{key:n,val:e})}))}),(function(e,r){var t={};var i=Object.prototype.hasOwnProperty;for(var a=0;a<r.length;a++){if(r[a]){var o=r[a].key;var c=r[a].val;if(i.call(t,o)){t[o].push(c)}else{t[o]=[c]}}}return n(e,t)}))};var Er=doLimit(groupByLimit,Infinity);var Tr=doLimit(groupByLimit,1);var Ir=consoleFunc("log");function mapValuesLimit(e,r,t,n){n=once(n||noop);var i={};var a=wrapAsync(t);eachOfLimit(e,r,(function(e,r,t){a(e,r,(function(e,n){if(e)return t(e);i[r]=n;t()}))}),(function(e){n(e,i)}))}var Fr=doLimit(mapValuesLimit,Infinity);var Dr=doLimit(mapValuesLimit,1);function has(e,r){return r in e}function memoize(e,r){var t=Object.create(null);var n=Object.create(null);r=r||identity;var i=wrapAsync(e);var o=initialParams((function memoized(e,o){var c=r.apply(null,e);if(has(t,c)){a((function(){o.apply(null,t[c])}))}else if(has(n,c)){n[c].push(o)}else{n[c]=[o];i.apply(null,e.concat((function(){var e=slice(arguments);t[c]=e;var r=n[c];delete n[c];for(var i=0,a=r.length;i<a;i++){r[i].apply(null,e)}})))}}));o.memo=t;o.unmemoized=e;return o}var qr;if(n){qr=process.nextTick}else if(t){qr=setImmediate}else{qr=fallback}var Nr=wrap(qr);function _parallel(e,r,t){t=t||noop;var n=isArrayLike(r)?[]:{};e(r,(function(e,r,t){wrapAsync(e)((function(e,i){if(arguments.length>2){i=slice(arguments,1)}n[r]=i;t(e)}))}),(function(e){t(e,n)}))}function parallelLimit(e,r){_parallel(eachOf,e,r)}function parallelLimit$1(e,r,t){_parallel(_eachOfLimit(r),e,t)}var queue$1=function(e,r){var t=wrapAsync(e);return queue((function(e,r){t(e[0],r)}),r,1)};var priorityQueue=function(e,r){var t=queue$1(e,r);t.push=function(e,r,n){if(n==null)n=noop;if(typeof n!=="function"){throw new Error("task callback must be a function")}t.started=true;if(!I(e)){e=[e]}if(e.length===0){return a((function(){t.drain()}))}r=r||0;var i=t._tasks.head;while(i&&r>=i.priority){i=i.next}for(var o=0,c=e.length;o<c;o++){var u={data:e[o],priority:r,callback:n};if(i){t._tasks.insertBefore(i,u)}else{t._tasks.push(u)}}a(t.process)};delete t.unshift;return t};function race(e,r){r=once(r||noop);if(!I(e))return r(new TypeError("First argument to race must be an array of functions"));if(!e.length)return r();for(var t=0,n=e.length;t<n;t++){wrapAsync(e[t])(r)}}function reduceRight(e,r,t,n){var i=slice(e).reverse();reduce(i,r,t,n)}function reflect(e){var r=wrapAsync(e);return initialParams((function reflectOn(e,t){e.push((function callback(e,r){if(e){t(null,{error:e})}else{var n;if(arguments.length<=2){n=r}else{n=slice(arguments,1)}t(null,{value:n})}}));return r.apply(this,e)}))}function reflectAll(e){var r;if(I(e)){r=arrayMap(e,reflect)}else{r={};baseForOwn(e,(function(e,t){r[t]=reflect.call(this,e)}))}return r}function reject$1(e,r,t,n){_filter(e,r,(function(e,r){t(e,(function(e,t){r(e,!t)}))}),n)}var $r=doParallel(reject$1);var Br=doParallelLimit(reject$1);var Rr=doLimit(Br,1);function constant$1(e){return function(){return e}}function retry(e,r,t){var n=5;var i=0;var a={times:n,intervalFunc:constant$1(i)};function parseTimes(e,r){if(typeof r==="object"){e.times=+r.times||n;e.intervalFunc=typeof r.interval==="function"?r.interval:constant$1(+r.interval||i);e.errorFilter=r.errorFilter}else if(typeof r==="number"||typeof r==="string"){e.times=+r||n}else{throw new Error("Invalid arguments for async.retry")}}if(arguments.length<3&&typeof e==="function"){t=r||noop;r=e}else{parseTimes(a,e);t=t||noop}if(typeof r!=="function"){throw new Error("Invalid arguments for async.retry")}var o=wrapAsync(r);var c=1;function retryAttempt(){o((function(e){if(e&&c++<a.times&&(typeof a.errorFilter!="function"||a.errorFilter(e))){setTimeout(retryAttempt,a.intervalFunc(c))}else{t.apply(null,arguments)}}))}retryAttempt()}var retryable=function(e,r){if(!r){r=e;e=null}var t=wrapAsync(r);return initialParams((function(r,n){function taskFn(e){t.apply(null,r.concat(e))}if(e)retry(e,taskFn,n);else retry(taskFn,n)}))};function series(e,r){_parallel(yr,e,r)}var Mr=doParallel(_createTester(Boolean,identity));var Cr=doParallelLimit(_createTester(Boolean,identity));var zr=doLimit(Cr,1);function sortBy(e,r,t){var n=wrapAsync(r);Se(e,(function(e,r){n(e,(function(t,n){if(t)return r(t);r(null,{value:e,criteria:n})}))}),(function(e,r){if(e)return t(e);t(null,arrayMap(r.sort(comparator),baseProperty("value")))}));function comparator(e,r){var t=e.criteria,n=r.criteria;return t<n?-1:t>n?1:0}}function timeout(e,r,t){var n=wrapAsync(e);return initialParams((function(i,a){var o=false;var c;function timeoutCallback(){var r=e.name||"anonymous";var n=new Error('Callback function "'+r+'" timed out.');n.code="ETIMEDOUT";if(t){n.info=t}o=true;a(n)}i.push((function(){if(!o){a.apply(null,arguments);clearTimeout(c)}}));c=setTimeout(timeoutCallback,r);n.apply(null,i)}))}var Ur=Math.ceil;var Vr=Math.max;function baseRange(e,r,t,n){var i=-1,a=Vr(Ur((r-e)/(t||1)),0),o=Array(a);while(a--){o[n?a:++i]=e;e+=t}return o}function timeLimit(e,r,t,n){var i=wrapAsync(t);xe(baseRange(0,e,1),r,i,n)}var Gr=doLimit(timeLimit,Infinity);var Hr=doLimit(timeLimit,1);function transform(e,r,t,n){if(arguments.length<=3){n=t;t=r;r=I(e)?[]:{}}n=once(n||noop);var i=wrapAsync(t);eachOf(e,(function(e,t,n){i(r,e,t,n)}),(function(e){n(e,r)}))}function tryEach(e,r){var t=null;var n;r=r||noop;Ar(e,(function(e,r){wrapAsync(e)((function(e,i){if(arguments.length>2){n=slice(arguments,1)}else{n=i}t=e;r(!e)}))}),(function(){r(t,n)}))}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function whilst(e,r,t){t=onlyOnce(t||noop);var n=wrapAsync(r);if(!e())return t(null);var next=function(r){if(r)return t(r);if(e())return n(next);var i=slice(arguments,1);t.apply(null,[null].concat(i))};n(next)}function until(e,r,t){whilst((function(){return!e.apply(this,arguments)}),r,t)}var waterfall=function(e,r){r=once(r||noop);if(!I(e))return r(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return r();var t=0;function nextTask(r){var n=wrapAsync(e[t++]);r.push(onlyOnce(next));n.apply(null,r)}function next(n){if(n||t===e.length){return r.apply(null,arguments)}nextTask(slice(arguments,1))}nextTask([])};var Wr={apply:apply,applyEach:Pe,applyEachSeries:Ee,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo,compose:compose,concat:mr,concatLimit:concatLimit,concatSeries:br,constant:constant,detect:gr,detectLimit:Lr,detectSeries:kr,dir:wr,doDuring:doDuring,doUntil:doUntil,doWhilst:doWhilst,during:during,each:eachLimit,eachLimit:eachLimit$1,eachOf:eachOf,eachOfLimit:eachOfLimit,eachOfSeries:yr,eachSeries:Ar,ensureAsync:ensureAsync,every:jr,everyLimit:Or,everySeries:Sr,filter:Pr,filterLimit:xr,filterSeries:_r,forever:forever,groupBy:Er,groupByLimit:groupByLimit,groupBySeries:Tr,log:Ir,map:Se,mapLimit:xe,mapSeries:_e,mapValues:Fr,mapValuesLimit:mapValuesLimit,mapValuesSeries:Dr,memoize:memoize,nextTick:Nr,parallel:parallelLimit,parallelLimit:parallelLimit$1,priorityQueue:priorityQueue,queue:queue$1,race:race,reduce:reduce,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:$r,rejectLimit:Br,rejectSeries:Rr,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:a,some:Mr,someLimit:Cr,someSeries:zr,sortBy:sortBy,timeout:timeout,times:Gr,timesLimit:timeLimit,timesSeries:Hr,transform:transform,tryEach:tryEach,unmemoize:unmemoize,until:until,waterfall:waterfall,whilst:whilst,all:jr,allLimit:Or,allSeries:Sr,any:Mr,anyLimit:Cr,anySeries:zr,find:gr,findLimit:Lr,findSeries:kr,forEach:eachLimit,forEachSeries:Ar,forEachLimit:eachLimit$1,forEachOf:eachOf,forEachOfSeries:yr,forEachOfLimit:eachOfLimit,inject:reduce,foldl:reduce,foldr:reduceRight,select:Pr,selectLimit:xr,selectSeries:_r,wrapSync:asyncify};r["default"]=Wr;r.apply=apply;r.applyEach=Pe;r.applyEachSeries=Ee;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo;r.compose=compose;r.concat=mr;r.concatLimit=concatLimit;r.concatSeries=br;r.constant=constant;r.detect=gr;r.detectLimit=Lr;r.detectSeries=kr;r.dir=wr;r.doDuring=doDuring;r.doUntil=doUntil;r.doWhilst=doWhilst;r.during=during;r.each=eachLimit;r.eachLimit=eachLimit$1;r.eachOf=eachOf;r.eachOfLimit=eachOfLimit;r.eachOfSeries=yr;r.eachSeries=Ar;r.ensureAsync=ensureAsync;r.every=jr;r.everyLimit=Or;r.everySeries=Sr;r.filter=Pr;r.filterLimit=xr;r.filterSeries=_r;r.forever=forever;r.groupBy=Er;r.groupByLimit=groupByLimit;r.groupBySeries=Tr;r.log=Ir;r.map=Se;r.mapLimit=xe;r.mapSeries=_e;r.mapValues=Fr;r.mapValuesLimit=mapValuesLimit;r.mapValuesSeries=Dr;r.memoize=memoize;r.nextTick=Nr;r.parallel=parallelLimit;r.parallelLimit=parallelLimit$1;r.priorityQueue=priorityQueue;r.queue=queue$1;r.race=race;r.reduce=reduce;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=$r;r.rejectLimit=Br;r.rejectSeries=Rr;r.retry=retry;r.retryable=retryable;r.seq=seq;r.series=series;r.setImmediate=a;r.some=Mr;r.someLimit=Cr;r.someSeries=zr;r.sortBy=sortBy;r.timeout=timeout;r.times=Gr;r.timesLimit=timeLimit;r.timesSeries=Hr;r.transform=transform;r.tryEach=tryEach;r.unmemoize=unmemoize;r.until=until;r.waterfall=waterfall;r.whilst=whilst;r.all=jr;r.allLimit=Or;r.allSeries=Sr;r.any=Mr;r.anyLimit=Cr;r.anySeries=zr;r.find=gr;r.findLimit=Lr;r.findSeries=kr;r.forEach=eachLimit;r.forEachSeries=Ar;r.forEachLimit=eachLimit$1;r.forEachOf=eachOf;r.forEachOfSeries=yr;r.forEachOfLimit=eachOfLimit;r.inject=reduce;r.foldl=reduce;r.foldr=reduceRight;r.select=Pr;r.selectLimit=xr;r.selectSeries=_r;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},917:function(e,r,t){var n=t(622);var i=t(747);var a=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,r,t,o){if(typeof r==="function"){t=r;r={}}else if(!r||typeof r!=="object"){r={mode:r}}var c=r.mode;var u=r.fs||i;if(c===undefined){c=a}if(!o)o=null;var s=t||function(){};e=n.resolve(e);u.mkdir(e,c,(function(t){if(!t){o=o||e;return s(null,o)}switch(t.code){case"ENOENT":if(n.dirname(e)===e)return s(t);mkdirP(n.dirname(e),r,(function(t,n){if(t)s(t,n);else mkdirP(e,r,s,n)}));break;default:u.stat(e,(function(e,r){if(e||!r.isDirectory())s(t,o);else s(null,o)}));break}}))}mkdirP.sync=function sync(e,r,t){if(!r||typeof r!=="object"){r={mode:r}}var o=r.mode;var c=r.fs||i;if(o===undefined){o=a}if(!t)t=null;e=n.resolve(e);try{c.mkdirSync(e,o);t=t||e}catch(i){switch(i.code){case"ENOENT":t=sync(n.dirname(e),r,t);sync(e,r,t);break;default:var u;try{u=c.statSync(e)}catch(e){throw i}if(!u.isDirectory())throw i;break}}return t}},811:function(e,r,t){"use strict";var n=t(747),i=t(87),a=t(631),o=t(622),c=t(557),u=t(627),s=t(917).mkdirp;var l=u("portfinder:testPort"),f=u("portfinder:getPort"),p=u("portfinder:defaultHosts");var v={};v.testPort=function(e,t){if(!t){t=e;e={}}e.server=e.server||a.createServer((function(){}));l("entered testPort(): trying",e.host,"port",e.port);function onListen(){l("done w/ testPort(): OK",e.host,"port",e.port);e.server.removeListener("error",onError);e.server.close();t(null,e.port)}function onError(n){l("done w/ testPort(): failed",e.host,"w/ port",e.port,"with error",n.code);e.server.removeListener("listening",onListen);if(!(n.code=="EADDRINUSE"||n.code=="EACCES")){return t(n)}var i=r.nextPort(e.port);if(i>r.highestPort){return t(new Error("No open ports available"))}v.testPort({port:i,host:e.host,server:e.server},t)}e.server.once("error",onError);e.server.once("listening",onListen);if(e.host){e.server.listen(e.port,e.host)}else{e.server.listen(e.port)}};r.basePort=8e3;r.highestPort=65535;r.basePath="/tmp/portfinder";r.getPort=function(e,t){if(!t){t=e;e={}}e.port=Number(e.port)||Number(r.basePort);e.host=e.host||null;e.stopPort=Number(e.stopPort)||Number(r.highestPort);if(!e.startPort){e.startPort=Number(e.port);if(e.startPort<0){throw Error("Provided options.startPort("+e.startPort+") is less than 0, which are cannot be bound.")}if(e.stopPort<e.startPort){throw Error("Provided options.stopPort("+e.stopPort+"is less than options.startPort ("+e.startPort+")")}}if(e.host){var n;for(var i=0;i<r._defaultHosts.length;i++){if(r._defaultHosts[i]===e.host){n=true;break}}if(!n){r._defaultHosts.push(e.host)}}var a=[],o;return c.eachSeries(r._defaultHosts,(function(r,t){f("in eachSeries() iteration callback: host is",r);return v.testPort({host:r,port:e.port},(function(e,n){if(e){f("in eachSeries() iteration callback testPort() callback","with an err:",e.code);o=r;return t(e)}else{f("in eachSeries() iteration callback testPort() callback","with a success for port",n);a.push(n);return t()}}))}),(function(n){if(n){f("in eachSeries() result callback: err is",n);if(n.code==="EADDRNOTAVAIL"||n.code==="EINVAL"){if(e.host===o){var i="Provided host "+e.host+" could NOT be bound. Please provide a different host address or hostname";return t(Error(i))}else{var c=r._defaultHosts.indexOf(o);r._defaultHosts.splice(c,1);return r.getPort(e,t)}}else{return t(n)}}a.sort((function(e,r){return e-r}));f("in eachSeries() result callback: openPorts is",a);if(a[0]===a[a.length-1]){if(a[0]<=e.stopPort){return t(null,a[0])}else{var i="No open ports found in between "+e.startPort+" and "+e.stopPort;return t(Error(i))}}else{return r.getPort({port:a.pop(),host:e.host,startPort:e.startPort,stopPort:e.stopPort},t)}}))};r.getPortPromise=function(e){if(typeof Promise!=="function"){throw Error("Native promise support is not available in this version of node."+"Please install a polyfill and assign Promise to global.Promise before calling this method")}if(!e){e={}}return new Promise((function(t,n){r.getPort(e,(function(e,r){if(e){return n(e)}t(r)}))}))};r.getPorts=function(e,t,n){if(!n){n=t;t={}}var i=null;c.timesSeries(e,(function(e,n){if(i){t.port=r.nextPort(i)}r.getPort(t,(function(e,r){if(e){n(e)}else{i=r;n(null,r)}}))}),n)};r.getSocket=function(e,t){if(!t){t=e;e={}}e.mod=e.mod||parseInt(755,8);e.path=e.path||r.basePath+".sock";function testSocket(){n.stat(e.path,(function(n){if(n){if(n.code=="ENOENT"){t(null,e.path)}else{t(n)}}else{e.path=r.nextSocket(e.path);r.getSocket(e,t)}}))}function createAndTestSocket(r){s(r,e.mod,(function(r){if(r){return t(r)}e.exists=true;testSocket()}))}function checkAndTestSocket(){var r=o.dirname(e.path);n.stat(r,(function(t,n){if(t||!n.isDirectory()){return createAndTestSocket(r)}e.exists=true;testSocket()}))}return e.exists?testSocket():checkAndTestSocket()};r.nextPort=function(e){return e+1};r.nextSocket=function(e){var r=o.dirname(e),t=o.basename(e,".sock"),n=t.match(/^([a-zA-z]+)(\d*)$/i),i=parseInt(n[2]),a=n[1];if(isNaN(i)){i=0}i+=1;return o.join(r,a+i+".sock")};r._defaultHosts=function(){var e={};try{e=i.networkInterfaces()}catch(e){if(e.syscall==="uv_interface_addresses"){}else{throw e}}var r=Object.keys(e),t="0.0.0.0",n=[t];for(var a=0;a<r.length;a++){var o=e[r[a]];for(var c=0;c<o.length;c++){var u=o[c];n.push(u.address)}}n.push(null);p("exports._defaultHosts is: %o",n);return n}()},627:function(e){"use strict";e.exports=require("@umijs/utils/compiled/debug")},747:function(e){"use strict";e.exports=require("fs")},631:function(e){"use strict";e.exports=require("net")},87:function(e){"use strict";e.exports=require("os")},622:function(e){"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={id:t,loaded:false,exports:{}};var a=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}i.loaded=true;return i.exports}!function(){__nccwpck_require__.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(811);module.exports=t})();
|