@bleedingdev/modern-js-utils 3.2.0-ultramodern.5 → 3.2.0-ultramodern.9

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.
Files changed (271) hide show
  1. package/dist/types/cli/alias.d.ts +20 -0
  2. package/dist/types/cli/applyOptionsChain.d.ts +3 -0
  3. package/dist/types/cli/commands.d.ts +8 -0
  4. package/dist/types/cli/common.d.ts +9 -0
  5. package/dist/types/cli/config.d.ts +4 -0
  6. package/dist/types/cli/constants.d.ts +55 -0
  7. package/dist/types/cli/ensure.d.ts +8 -0
  8. package/dist/types/cli/fs.d.ts +7 -0
  9. package/dist/types/cli/get/config.d.ts +1 -0
  10. package/dist/types/cli/get/data.d.ts +6 -0
  11. package/dist/types/cli/get/index.d.ts +11 -0
  12. package/dist/types/cli/index.d.ts +23 -0
  13. package/dist/types/cli/is/config.d.ts +22 -0
  14. package/dist/types/cli/is/env.d.ts +8 -0
  15. package/dist/types/cli/is/index.d.ts +4 -0
  16. package/dist/types/cli/is/project.d.ts +39 -0
  17. package/dist/types/cli/is/type.d.ts +15 -0
  18. package/dist/types/cli/logger.d.ts +1 -0
  19. package/dist/types/cli/modulePath.d.ts +5 -0
  20. package/dist/types/cli/monorepo.d.ts +9 -0
  21. package/dist/types/cli/package.d.ts +5 -0
  22. package/dist/types/cli/path.d.ts +11 -0
  23. package/dist/types/cli/port.d.ts +12 -0
  24. package/dist/types/cli/prettyInstructions.d.ts +6 -0
  25. package/dist/types/cli/require.d.ts +9 -0
  26. package/dist/types/cli/route.d.ts +4 -0
  27. package/dist/types/cli/runtimeExports.d.ts +5 -0
  28. package/dist/types/cli/tsconfig.d.ts +1 -0
  29. package/dist/types/cli/version.d.ts +4 -0
  30. package/dist/types/cli/watch.d.ts +8 -0
  31. package/dist/types/compiled.d.ts +37 -0
  32. package/dist/types/import.d.ts +5 -0
  33. package/dist/types/index.d.ts +3 -0
  34. package/dist/types/universal/constants.d.ts +47 -0
  35. package/dist/types/universal/index.d.ts +1 -0
  36. package/dist/types/universal/path.d.ts +1 -0
  37. package/dist/types/universal/pluginDagSort.d.ts +1 -0
  38. package/package.json +2 -2
  39. package/dist/compiled/address/index.js +0 -171
  40. package/dist/compiled/address/lib/address.d.ts +0 -28
  41. package/dist/compiled/address/package.json +0 -1
  42. package/dist/compiled/browserslist/index.d.ts +0 -178
  43. package/dist/compiled/browserslist/index.js +0 -1329
  44. package/dist/compiled/browserslist/license +0 -20
  45. package/dist/compiled/browserslist/package.json +0 -1
  46. package/dist/compiled/chalk/index.d.ts +0 -415
  47. package/dist/compiled/chalk/index.js +0 -2368
  48. package/dist/compiled/chalk/license +0 -9
  49. package/dist/compiled/chalk/package.json +0 -1
  50. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  51. package/dist/compiled/chokidar/fsevents.node +0 -0
  52. package/dist/compiled/chokidar/index.js +0 -4162
  53. package/dist/compiled/chokidar/index.js.LICENSE.txt +0 -41
  54. package/dist/compiled/chokidar/license +0 -21
  55. package/dist/compiled/chokidar/package.json +0 -1
  56. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  57. package/dist/compiled/commander/index.js +0 -1540
  58. package/dist/compiled/commander/index.mjs +0 -2
  59. package/dist/compiled/commander/license +0 -22
  60. package/dist/compiled/commander/package.json +0 -1
  61. package/dist/compiled/commander/typings/index.d.ts +0 -890
  62. package/dist/compiled/debug/index.d.ts +0 -54
  63. package/dist/compiled/debug/index.js +0 -621
  64. package/dist/compiled/debug/license +0 -20
  65. package/dist/compiled/debug/ms/index.d.ts +0 -25
  66. package/dist/compiled/debug/package.json +0 -1
  67. package/dist/compiled/dotenv/index.js +0 -101
  68. package/dist/compiled/dotenv/license +0 -23
  69. package/dist/compiled/dotenv/package.json +0 -1
  70. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  71. package/dist/compiled/dotenv-expand/index.d.ts +0 -15
  72. package/dist/compiled/dotenv-expand/index.js +0 -54
  73. package/dist/compiled/dotenv-expand/license +0 -24
  74. package/dist/compiled/dotenv-expand/package.json +0 -1
  75. package/dist/compiled/execa/index.d.ts +0 -564
  76. package/dist/compiled/execa/index.js +0 -1738
  77. package/dist/compiled/execa/license +0 -9
  78. package/dist/compiled/execa/package.json +0 -1
  79. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  80. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  81. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  82. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  83. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  84. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  85. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  86. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  87. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  88. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  89. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  90. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  91. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  92. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  93. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  94. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  95. package/dist/compiled/fast-glob/index.js +0 -4665
  96. package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
  97. package/dist/compiled/fast-glob/license +0 -21
  98. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  99. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  100. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  101. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  102. package/dist/compiled/fast-glob/package.json +0 -1
  103. package/dist/compiled/filesize/filesize.d.ts +0 -131
  104. package/dist/compiled/filesize/index.js +0 -198
  105. package/dist/compiled/filesize/index.js.LICENSE.txt +0 -7
  106. package/dist/compiled/filesize/license +0 -28
  107. package/dist/compiled/filesize/package.json +0 -1
  108. package/dist/compiled/fs-extra/index.d.ts +0 -563
  109. package/dist/compiled/fs-extra/index.js +0 -2222
  110. package/dist/compiled/fs-extra/license +0 -15
  111. package/dist/compiled/fs-extra/package.json +0 -1
  112. package/dist/compiled/glob/index.d.ts +0 -91
  113. package/dist/compiled/glob/index.js +0 -2011
  114. package/dist/compiled/glob/license +0 -21
  115. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  116. package/dist/compiled/glob/package.json +0 -1
  117. package/dist/compiled/globby/index.d.ts +0 -186
  118. package/dist/compiled/globby/index.js +0 -690
  119. package/dist/compiled/globby/license +0 -9
  120. package/dist/compiled/globby/package.json +0 -1
  121. package/dist/compiled/gzip-size/index.d.ts +0 -96
  122. package/dist/compiled/gzip-size/index.js +0 -157
  123. package/dist/compiled/gzip-size/license +0 -9
  124. package/dist/compiled/gzip-size/package.json +0 -1
  125. package/dist/compiled/import-lazy/index.d.ts +0 -26
  126. package/dist/compiled/import-lazy/index.js +0 -45
  127. package/dist/compiled/import-lazy/license +0 -9
  128. package/dist/compiled/import-lazy/package.json +0 -1
  129. package/dist/compiled/inquirer/index.d.ts +0 -997
  130. package/dist/compiled/inquirer/index.js +0 -20167
  131. package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
  132. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  133. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  134. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  135. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  136. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  137. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  138. package/dist/compiled/inquirer/license +0 -22
  139. package/dist/compiled/inquirer/package.json +0 -1
  140. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  141. package/dist/compiled/js-yaml/index.d.ts +0 -154
  142. package/dist/compiled/js-yaml/index.js +0 -2191
  143. package/dist/compiled/js-yaml/index.mjs +0 -2167
  144. package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +0 -1
  145. package/dist/compiled/js-yaml/license +0 -21
  146. package/dist/compiled/js-yaml/package.json +0 -1
  147. package/dist/compiled/json5/index.js +0 -983
  148. package/dist/compiled/json5/lib/index.d.ts +0 -4
  149. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  150. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  151. package/dist/compiled/json5/package.json +0 -1
  152. package/dist/compiled/lodash/common/array.d.ts +0 -2126
  153. package/dist/compiled/lodash/common/collection.d.ts +0 -1930
  154. package/dist/compiled/lodash/common/common.d.ts +0 -280
  155. package/dist/compiled/lodash/common/date.d.ts +0 -23
  156. package/dist/compiled/lodash/common/function.d.ts +0 -1446
  157. package/dist/compiled/lodash/common/lang.d.ts +0 -1693
  158. package/dist/compiled/lodash/common/math.d.ts +0 -405
  159. package/dist/compiled/lodash/common/number.d.ts +0 -131
  160. package/dist/compiled/lodash/common/object.d.ts +0 -2519
  161. package/dist/compiled/lodash/common/seq.d.ts +0 -210
  162. package/dist/compiled/lodash/common/string.d.ts +0 -788
  163. package/dist/compiled/lodash/common/util.d.ts +0 -1220
  164. package/dist/compiled/lodash/index.d.ts +0 -46
  165. package/dist/compiled/lodash/index.js +0 -1
  166. package/dist/compiled/lodash/index.mjs +0 -1
  167. package/dist/compiled/lodash/license +0 -47
  168. package/dist/compiled/lodash/package.json +0 -1
  169. package/dist/compiled/mime-types/index.d.ts +0 -14
  170. package/dist/compiled/mime-types/index.js +0 -116
  171. package/dist/compiled/mime-types/index.js.LICENSE.txt +0 -13
  172. package/dist/compiled/mime-types/license +0 -23
  173. package/dist/compiled/mime-types/package.json +0 -1
  174. package/dist/compiled/minimist/index.d.ts +0 -95
  175. package/dist/compiled/minimist/index.js +0 -202
  176. package/dist/compiled/minimist/license +0 -18
  177. package/dist/compiled/minimist/package.json +0 -1
  178. package/dist/compiled/nanoid/index.d.ts +0 -91
  179. package/dist/compiled/nanoid/index.js +0 -83
  180. package/dist/compiled/nanoid/index.mjs +0 -69
  181. package/dist/compiled/nanoid/license +0 -20
  182. package/dist/compiled/nanoid/package.json +0 -1
  183. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  184. package/dist/compiled/ora/index.d.ts +0 -277
  185. package/dist/compiled/ora/index.js +0 -3936
  186. package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
  187. package/dist/compiled/ora/license +0 -9
  188. package/dist/compiled/ora/package.json +0 -1
  189. package/dist/compiled/pkg-up/index.d.ts +0 -48
  190. package/dist/compiled/pkg-up/index.js +0 -15
  191. package/dist/compiled/pkg-up/license +0 -9
  192. package/dist/compiled/pkg-up/package.json +0 -1
  193. package/dist/compiled/semver/classes/comparator.d.ts +0 -17
  194. package/dist/compiled/semver/classes/range.d.ts +0 -21
  195. package/dist/compiled/semver/classes/semver.d.ts +0 -62
  196. package/dist/compiled/semver/functions/clean.d.ts +0 -8
  197. package/dist/compiled/semver/functions/cmp.d.ts +0 -16
  198. package/dist/compiled/semver/functions/coerce.d.ts +0 -12
  199. package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
  200. package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
  201. package/dist/compiled/semver/functions/compare.d.ts +0 -20
  202. package/dist/compiled/semver/functions/diff.d.ts +0 -13
  203. package/dist/compiled/semver/functions/eq.d.ts +0 -9
  204. package/dist/compiled/semver/functions/gt.d.ts +0 -9
  205. package/dist/compiled/semver/functions/gte.d.ts +0 -9
  206. package/dist/compiled/semver/functions/inc.d.ts +0 -15
  207. package/dist/compiled/semver/functions/lt.d.ts +0 -9
  208. package/dist/compiled/semver/functions/lte.d.ts +0 -8
  209. package/dist/compiled/semver/functions/major.d.ts +0 -9
  210. package/dist/compiled/semver/functions/minor.d.ts +0 -9
  211. package/dist/compiled/semver/functions/neq.d.ts +0 -9
  212. package/dist/compiled/semver/functions/parse.d.ts +0 -12
  213. package/dist/compiled/semver/functions/patch.d.ts +0 -9
  214. package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
  215. package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
  216. package/dist/compiled/semver/functions/rsort.d.ts +0 -9
  217. package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
  218. package/dist/compiled/semver/functions/sort.d.ts +0 -9
  219. package/dist/compiled/semver/functions/valid.d.ts +0 -11
  220. package/dist/compiled/semver/index.d.ts +0 -133
  221. package/dist/compiled/semver/index.js +0 -1779
  222. package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
  223. package/dist/compiled/semver/license +0 -15
  224. package/dist/compiled/semver/package.json +0 -1
  225. package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
  226. package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
  227. package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
  228. package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
  229. package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
  230. package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
  231. package/dist/compiled/semver/ranges/outside.d.ts +0 -15
  232. package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
  233. package/dist/compiled/semver/ranges/subset.d.ts +0 -13
  234. package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
  235. package/dist/compiled/semver/ranges/valid.d.ts +0 -12
  236. package/dist/compiled/signale/index.d.ts +0 -162
  237. package/dist/compiled/signale/index.js +0 -1704
  238. package/dist/compiled/signale/package.json +0 -1
  239. package/dist/compiled/slash/index.d.ts +0 -25
  240. package/dist/compiled/slash/index.js +0 -32
  241. package/dist/compiled/slash/license +0 -9
  242. package/dist/compiled/slash/package.json +0 -1
  243. package/dist/compiled/strip-ansi/index.d.ts +0 -17
  244. package/dist/compiled/strip-ansi/index.js +0 -34
  245. package/dist/compiled/strip-ansi/license +0 -9
  246. package/dist/compiled/strip-ansi/package.json +0 -1
  247. package/dist/compiled/tsconfig-paths/index.js +0 -629
  248. package/dist/compiled/tsconfig-paths/index.mjs +0 -2
  249. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  250. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  251. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  252. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  253. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  254. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  255. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  256. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  257. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  258. package/dist/compiled/tsconfig-paths/license +0 -21
  259. package/dist/compiled/tsconfig-paths/package.json +0 -1
  260. package/dist/compiled/upath/index.js +0 -135
  261. package/dist/compiled/upath/license +0 -22
  262. package/dist/compiled/upath/package.json +0 -1
  263. package/dist/compiled/upath/upath.d.ts +0 -241
  264. package/dist/compiled/url-join/index.d.ts +0 -17
  265. package/dist/compiled/url-join/index.js +0 -61
  266. package/dist/compiled/url-join/license +0 -21
  267. package/dist/compiled/url-join/package.json +0 -1
  268. package/dist/compiled/webpack-chain/index.js +0 -1475
  269. package/dist/compiled/webpack-chain/license +0 -373
  270. package/dist/compiled/webpack-chain/package.json +0 -1
  271. package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
@@ -1 +0,0 @@
1
- {"name":"globby","author":{"email":"sindresorhus@gmail.com","name":"Sindre Sorhus","url":"https://sindresorhus.com"},"version":"11.1.0","funding":"https://github.com/sponsors/sindresorhus","license":"MIT"}
@@ -1,96 +0,0 @@
1
- /// <reference types="node"/>
2
- import * as stream from 'stream';
3
- import {ZlibOptions} from 'zlib';
4
-
5
- declare namespace gzipSize {
6
- type Options = ZlibOptions;
7
-
8
- interface GzipSizeStream extends stream.PassThrough {
9
- /**
10
- Contains the gzip size of the stream after it is finished. Since this happens asynchronously, it is recommended you use the `gzip-size` event instead.
11
- */
12
- gzipSize?: number;
13
-
14
- addListener(event: 'gzip-size', listener: (size: number) => void): this;
15
- addListener(
16
- event: string | symbol,
17
- listener: (...args: any[]) => void
18
- ): this;
19
- on(event: 'gzip-size', listener: (size: number) => void): this;
20
- on(event: string | symbol, listener: (...args: any[]) => void): this;
21
- once(event: 'gzip-size', listener: (size: number) => void): this;
22
- once(event: string | symbol, listener: (...args: any[]) => void): this;
23
- removeListener(event: 'gzip-size', listener: (size: number) => void): this;
24
- removeListener(
25
- event: string | symbol,
26
- listener: (...args: any[]) => void
27
- ): this;
28
- off(event: 'gzip-size', listener: (size: number) => void): this;
29
- off(event: string | symbol, listener: (...args: any[]) => void): this;
30
- emit(event: 'gzip-size', size: number): boolean;
31
- emit(event: string | symbol, ...args: any[]): boolean;
32
- prependListener(event: 'gzip-size', listener: (size: number) => void): this;
33
- prependListener(
34
- event: string | symbol,
35
- listener: (...args: any[]) => void
36
- ): this;
37
- prependOnceListener(
38
- event: 'gzip-size',
39
- listener: (size: number) => void
40
- ): this;
41
- prependOnceListener(
42
- event: string | symbol,
43
- listener: (...args: any[]) => void
44
- ): this;
45
- }
46
- }
47
-
48
- declare const gzipSize: {
49
- /**
50
- Get the gzipped size of a string or buffer.
51
-
52
- @returns The gzipped size of `input`.
53
- */
54
- (input: string | Buffer, options?: gzipSize.Options): Promise<number>;
55
-
56
- /**
57
- Synchronously get the gzipped size of a string or buffer.
58
-
59
- @returns The gzipped size of `input`.
60
-
61
- @example
62
- ```
63
- import gzipSize = require('./gzip-size');
64
-
65
- const text = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.';
66
-
67
- console.log(text.length);
68
- //=> 191
69
-
70
- console.log(gzipSize.sync(text));
71
- //=> 78
72
- ```
73
- */
74
- sync(input: string | Buffer, options?: gzipSize.Options): number;
75
-
76
- /**
77
- @returns A stream that emits a `gzip-size` event and has a `gzipSize` property.
78
- */
79
- stream(options?: gzipSize.Options): gzipSize.GzipSizeStream;
80
-
81
- /**
82
- Get the gzipped size of a file.
83
-
84
- @returns The size of the file.
85
- */
86
- file(path: string, options?: gzipSize.Options): Promise<number>;
87
-
88
- /**
89
- Synchronously get the gzipped size of a file.
90
-
91
- @returns The size of the file.
92
- */
93
- fileSync(path: string, options?: gzipSize.Options): number;
94
- };
95
-
96
- export = gzipSize;
@@ -1,157 +0,0 @@
1
- (()=>{
2
- var e = {
3
- 325: (e, r, t)=>{
4
- var n = t(781);
5
- var o = [
6
- "write",
7
- "end",
8
- "destroy"
9
- ];
10
- var i = [
11
- "resume",
12
- "pause"
13
- ];
14
- var a = [
15
- "data",
16
- "close"
17
- ];
18
- var s = Array.prototype.slice;
19
- e.exports = duplex;
20
- function forEach(e, r) {
21
- if (e.forEach) return e.forEach(r);
22
- for(var t = 0; t < e.length; t++)r(e[t], t);
23
- }
24
- function duplex(e, r) {
25
- var t = new n;
26
- var p = false;
27
- forEach(o, proxyWriter);
28
- forEach(i, proxyReader);
29
- forEach(a, proxyStream);
30
- r.on("end", handleEnd);
31
- e.on("drain", function() {
32
- t.emit("drain");
33
- });
34
- e.on("error", reemit);
35
- r.on("error", reemit);
36
- t.writable = e.writable;
37
- t.readable = r.readable;
38
- return t;
39
- function proxyWriter(r) {
40
- t[r] = method;
41
- function method() {
42
- return e[r].apply(e, arguments);
43
- }
44
- }
45
- function proxyReader(e) {
46
- t[e] = method;
47
- function method() {
48
- t.emit(e);
49
- var n = r[e];
50
- if (n) return n.apply(r, arguments);
51
- r.emit(e);
52
- }
53
- }
54
- function proxyStream(e) {
55
- r.on(e, reemit);
56
- function reemit() {
57
- var r = s.call(arguments);
58
- r.unshift(e);
59
- t.emit.apply(t, r);
60
- }
61
- }
62
- function handleEnd() {
63
- if (p) return;
64
- p = true;
65
- var e = s.call(arguments);
66
- e.unshift("end");
67
- t.emit.apply(t, e);
68
- }
69
- function reemit(e) {
70
- t.emit("error", e);
71
- }
72
- }
73
- },
74
- 423: (e, r, t)=>{
75
- "use strict";
76
- const n = t(147);
77
- const o = t(781);
78
- const i = t(796);
79
- const { promisify: a } = t(837);
80
- const s = t(325);
81
- const getOptions = (e)=>({
82
- level: 9,
83
- ...e
84
- });
85
- const p = a(i.gzip);
86
- e.exports = async (e, r)=>{
87
- if (!e) return 0;
88
- const t = await p(e, getOptions(r));
89
- return t.length;
90
- };
91
- e.exports.sync = (e, r)=>i.gzipSync(e, getOptions(r)).length;
92
- e.exports.stream = (e)=>{
93
- const r = new o.PassThrough;
94
- const t = new o.PassThrough;
95
- const n = s(r, t);
96
- let a = 0;
97
- const p = i.createGzip(getOptions(e)).on("data", (e)=>{
98
- a += e.length;
99
- }).on("error", ()=>{
100
- n.gzipSize = 0;
101
- }).on("end", ()=>{
102
- n.gzipSize = a;
103
- n.emit("gzip-size", a);
104
- t.end();
105
- });
106
- r.pipe(p);
107
- r.pipe(t, {
108
- end: false
109
- });
110
- return n;
111
- };
112
- e.exports.file = (r, t)=>new Promise((o, i)=>{
113
- const a = n.createReadStream(r);
114
- a.on("error", i);
115
- const s = a.pipe(e.exports.stream(t));
116
- s.on("error", i);
117
- s.on("gzip-size", o);
118
- });
119
- e.exports.fileSync = (r, t)=>e.exports.sync(n.readFileSync(r), t);
120
- },
121
- 147: (e)=>{
122
- "use strict";
123
- e.exports = require("fs");
124
- },
125
- 781: (e)=>{
126
- "use strict";
127
- e.exports = require("stream");
128
- },
129
- 837: (e)=>{
130
- "use strict";
131
- e.exports = require("util");
132
- },
133
- 796: (e)=>{
134
- "use strict";
135
- e.exports = require("zlib");
136
- }
137
- };
138
- var r = {};
139
- function __nccwpck_require__(t) {
140
- var n = r[t];
141
- if (void 0 !== n) return n.exports;
142
- var o = r[t] = {
143
- exports: {}
144
- };
145
- var i = true;
146
- try {
147
- e[t](o, o.exports, __nccwpck_require__);
148
- i = false;
149
- } finally{
150
- if (i) delete r[t];
151
- }
152
- return o.exports;
153
- }
154
- if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
155
- var t = __nccwpck_require__(423);
156
- module.exports = t;
157
- })();
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
@@ -1 +0,0 @@
1
- {"name":"gzip-size","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"version":"6.0.0","funding":"https://github.com/sponsors/sindresorhus","license":"MIT"}
@@ -1,26 +0,0 @@
1
- /**
2
- Import a module lazily.
3
-
4
- @example
5
- ```
6
- // Pass in `require` or a custom import function
7
- import importLazy = require('./import-lazy');
8
- const _ = importLazy(require)('lodash');
9
-
10
- // Instead of referring to its exported properties directly…
11
- _.isNumber(2);
12
-
13
- // …it's cached on consecutive calls
14
- _.isNumber('unicorn');
15
-
16
- // Works out of the box for functions and regular properties
17
- const stuff = importLazy(require)('./math-lib');
18
- console.log(stuff.sum(1, 2)); // => 3
19
- console.log(stuff.PHI); // => 1.618033
20
- ```
21
- */
22
- declare function importLazy<T = unknown>(
23
- importFn: (moduleId: string) => T
24
- ): (moduleId: string) => T;
25
-
26
- export = importLazy;
@@ -1,45 +0,0 @@
1
- (()=>{
2
- "use strict";
3
- var e = {
4
- 42: (e)=>{
5
- const lazy = (e, r, t)=>void 0 === e ? r(t) : e;
6
- e.exports = (e)=>(r)=>{
7
- let t;
8
- const _ = {
9
- get: (_, n)=>{
10
- t = lazy(t, e, r);
11
- return Reflect.get(t, n);
12
- },
13
- apply: (_, n, u)=>{
14
- t = lazy(t, e, r);
15
- return Reflect.apply(t, n, u);
16
- },
17
- construct: (_, n)=>{
18
- t = lazy(t, e, r);
19
- return Reflect.construct(t, n);
20
- }
21
- };
22
- return new Proxy(function() {}, _);
23
- };
24
- }
25
- };
26
- var r = {};
27
- function __nccwpck_require__(t) {
28
- var _ = r[t];
29
- if (void 0 !== _) return _.exports;
30
- var n = r[t] = {
31
- exports: {}
32
- };
33
- var u = true;
34
- try {
35
- e[t](n, n.exports, __nccwpck_require__);
36
- u = false;
37
- } finally{
38
- if (u) delete r[t];
39
- }
40
- return n.exports;
41
- }
42
- if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
43
- var t = __nccwpck_require__(42);
44
- module.exports = t;
45
- })();
@@ -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.
@@ -1 +0,0 @@
1
- {"name":"import-lazy","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"version":"4.0.0","license":"MIT"}