@bleedingdev/modern-js-utils 3.2.0-ultramodern.4 → 3.2.0-ultramodern.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,25 +0,0 @@
1
- // Type definitions for ms v0.7.1
2
- // Project: https://github.com/zeit/ms
3
- // Definitions by: Zhiyuan Wang <https://github.com/danny8002>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
-
6
-
7
-
8
- /**
9
- * Short/Long format for `value`.
10
- *
11
- * @param {Number} value
12
- * @param {{long: boolean}} options
13
- * @return {String}
14
- */
15
- declare function ms(value: number, options?: { long: boolean }): string;
16
-
17
- /**
18
- * Parse the given `value` and return milliseconds.
19
- *
20
- * @param {String} value
21
- * @return {Number}
22
- */
23
- declare function ms(value: string): number;
24
-
25
- export = ms;
@@ -1 +0,0 @@
1
- {"name":"debug","author":"Josh Junon <josh.junon@protonmail.com>","version":"4.3.4","license":"MIT"}
@@ -1,101 +0,0 @@
1
- (()=>{
2
- var e = {
3
- 608: (e, r, n)=>{
4
- const t = n(147);
5
- const o = n(17);
6
- const s = n(37);
7
- function log(e) {
8
- console.log(`[dotenv][DEBUG] ${e}`);
9
- }
10
- const i = "\n";
11
- const c = /^\s*([\w.-]+)\s*=\s*(.*)?\s*$/;
12
- const l = /\\n/g;
13
- const a = /\r\n|\n|\r/;
14
- function parse(e, r) {
15
- const n = Boolean(r && r.debug);
16
- const t = {};
17
- e.toString().split(a).forEach(function(e, r) {
18
- const o = e.match(c);
19
- if (null != o) {
20
- const e = o[1];
21
- let r = o[2] || "";
22
- const n = r.length - 1;
23
- const s = '"' === r[0] && '"' === r[n];
24
- const c = "'" === r[0] && "'" === r[n];
25
- if (c || s) {
26
- r = r.substring(1, n);
27
- if (s) r = r.replace(l, i);
28
- } else r = r.trim();
29
- t[e] = r;
30
- } else if (n) log(`did not match key and value when parsing line ${r + 1}: ${e}`);
31
- });
32
- return t;
33
- }
34
- function resolveHome(e) {
35
- return "~" === e[0] ? o.join(s.homedir(), e.slice(1)) : e;
36
- }
37
- function config(e) {
38
- let r = o.resolve(process.cwd(), ".env");
39
- let n = "utf8";
40
- let s = false;
41
- if (e) {
42
- if (null != e.path) r = resolveHome(e.path);
43
- if (null != e.encoding) n = e.encoding;
44
- if (null != e.debug) s = true;
45
- }
46
- try {
47
- const e = parse(t.readFileSync(r, {
48
- encoding: n
49
- }), {
50
- debug: s
51
- });
52
- Object.keys(e).forEach(function(r) {
53
- if (Object.prototype.hasOwnProperty.call(process.env, r)) {
54
- if (s) log(`"${r}" is already defined in \`process.env\` and will not be overwritten`);
55
- } else process.env[r] = e[r];
56
- });
57
- return {
58
- parsed: e
59
- };
60
- } catch (e) {
61
- return {
62
- error: e
63
- };
64
- }
65
- }
66
- e.exports.config = config;
67
- e.exports.parse = parse;
68
- },
69
- 147: (e)=>{
70
- "use strict";
71
- e.exports = require("fs");
72
- },
73
- 37: (e)=>{
74
- "use strict";
75
- e.exports = require("os");
76
- },
77
- 17: (e)=>{
78
- "use strict";
79
- e.exports = require("path");
80
- }
81
- };
82
- var r = {};
83
- function __nccwpck_require__(n) {
84
- var t = r[n];
85
- if (void 0 !== t) return t.exports;
86
- var o = r[n] = {
87
- exports: {}
88
- };
89
- var s = true;
90
- try {
91
- e[n](o, o.exports, __nccwpck_require__);
92
- s = false;
93
- } finally{
94
- if (s) delete r[n];
95
- }
96
- return o.exports;
97
- }
98
- if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
99
- var n = __nccwpck_require__(608);
100
- module.exports = n;
101
- })();
@@ -1,23 +0,0 @@
1
- Copyright (c) 2015, Scott Motte
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1 +0,0 @@
1
- {"name":"dotenv","version":"10.0.0","license":"BSD-2-Clause","types":"types/index.d.ts"}
@@ -1,59 +0,0 @@
1
- // TypeScript Version: 3.0
2
- /// <reference types="node" />
3
-
4
- export interface DotenvParseOptions {
5
- /**
6
- * You may turn on logging to help debug why certain keys or values are not being set as you expect.
7
- */
8
- debug?: boolean;
9
- }
10
-
11
- export interface DotenvParseOutput {
12
- [name: string]: string;
13
- }
14
-
15
- /**
16
- * Parses a string or buffer in the .env file format into an object.
17
- *
18
- * @param src - contents to be parsed
19
- * @param options - additional options
20
- * @returns an object with keys and values based on `src`
21
- */
22
- export function parse<T extends DotenvParseOutput = DotenvParseOutput>(
23
- src: string | Buffer,
24
- options?: DotenvParseOptions
25
- ): T;
26
-
27
- export interface DotenvConfigOptions {
28
- /**
29
- * You may specify a custom path if your file containing environment variables is located elsewhere.
30
- */
31
- path?: string;
32
-
33
- /**
34
- * You may specify the encoding of your file containing environment variables.
35
- */
36
- encoding?: string;
37
-
38
- /**
39
- * You may turn on logging to help debug why certain keys or values are not being set as you expect.
40
- */
41
- debug?: boolean;
42
- }
43
-
44
- export interface DotenvConfigOutput {
45
- error?: Error;
46
- parsed?: DotenvParseOutput;
47
- }
48
-
49
- /**
50
- * Loads `.env` file contents into {@link https://nodejs.org/api/process.html#process_process_env `process.env`}.
51
- * Example: 'KEY=value' becomes { parsed: { KEY: 'value' } }
52
- *
53
- * @param options - controls behavior
54
- * @returns an object with a `parsed` key if successful or `error` key if an error occurred
55
- *
56
- */
57
- export function config(options?: DotenvConfigOptions): DotenvConfigOutput;
58
- /** @deprecated since v7.0.0 Use config instead. */
59
- export const load: typeof config;
@@ -1,15 +0,0 @@
1
- export = dotenv_expand;
2
-
3
- interface DotenvResult {
4
- error?: Error;
5
- parsed?: {
6
- [name: string]: string;
7
- };
8
- }
9
-
10
- declare function dotenv_expand(config: DotenvResult): DotenvResult;
11
-
12
- declare namespace dotenv_expand {
13
- const prototype: {
14
- };
15
- }
@@ -1,54 +0,0 @@
1
- (()=>{
2
- "use strict";
3
- var r = {
4
- 926: (r)=>{
5
- var dotenvExpand = function(r) {
6
- var e = r.ignoreProcessEnv ? {} : process.env;
7
- var interpolate = function(a) {
8
- var _ = a.match(/(.?\${?(?:[a-zA-Z0-9_]+)?}?)/g) || [];
9
- return _.reduce(function(a, _) {
10
- var n = /(.?)\${?([a-zA-Z0-9_]+)?}?/g.exec(_);
11
- var t = n[1];
12
- var s, p;
13
- if ("\\" === t) {
14
- p = n[0];
15
- s = p.replace("\\$", "$");
16
- } else {
17
- var i = n[2];
18
- p = n[0].substring(t.length);
19
- s = e.hasOwnProperty(i) ? e[i] : r.parsed[i] || "";
20
- s = interpolate(s);
21
- }
22
- return a.replace(p, s);
23
- }, a);
24
- };
25
- for(var a in r.parsed){
26
- var _ = e.hasOwnProperty(a) ? e[a] : r.parsed[a];
27
- r.parsed[a] = interpolate(_);
28
- }
29
- for(var n in r.parsed)e[n] = r.parsed[n];
30
- return r;
31
- };
32
- r.exports = dotenvExpand;
33
- }
34
- };
35
- var e = {};
36
- function __nccwpck_require__(a) {
37
- var _ = e[a];
38
- if (void 0 !== _) return _.exports;
39
- var n = e[a] = {
40
- exports: {}
41
- };
42
- var t = true;
43
- try {
44
- r[a](n, n.exports, __nccwpck_require__);
45
- t = false;
46
- } finally{
47
- if (t) delete e[a];
48
- }
49
- return n.exports;
50
- }
51
- if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
52
- var a = __nccwpck_require__(926);
53
- module.exports = a;
54
- })();
@@ -1,24 +0,0 @@
1
- Copyright (c) 2016, Scott Motte
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
-
10
- * Redistributions in binary form must reproduce the above copyright notice,
11
- this list of conditions and the following disclaimer in the documentation
12
- and/or other materials provided with the distribution.
13
-
14
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
-
@@ -1 +0,0 @@
1
- {"name":"dotenv-expand","author":"motdotla","version":"5.1.0","license":"BSD-2-Clause","types":"./index.d.ts"}