@nsshunt/stsconfig 1.25.23 → 1.25.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stsconfig.mjs +370 -478
- package/dist/stsconfig.umd.js +2 -4
- package/package.json +2 -2
package/dist/stsconfig.mjs
CHANGED
|
@@ -1,211 +1,212 @@
|
|
|
1
|
-
|
|
1
|
+
import * as Y from "dotenv";
|
|
2
|
+
const se = {}, $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2
3
|
__proto__: null,
|
|
3
|
-
default:
|
|
4
|
+
default: se
|
|
4
5
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
8
|
-
var e =
|
|
6
|
+
function re(o) {
|
|
7
|
+
if (o.__esModule)
|
|
8
|
+
return o;
|
|
9
|
+
var e = o.default;
|
|
9
10
|
if (typeof e == "function") {
|
|
10
|
-
var s = function
|
|
11
|
-
if (this instanceof
|
|
11
|
+
var s = function n() {
|
|
12
|
+
if (this instanceof n) {
|
|
12
13
|
var c = [null];
|
|
13
14
|
c.push.apply(c, arguments);
|
|
14
|
-
var
|
|
15
|
-
return new
|
|
15
|
+
var E = Function.bind.apply(e, c);
|
|
16
|
+
return new E();
|
|
16
17
|
}
|
|
17
18
|
return e.apply(this, arguments);
|
|
18
19
|
};
|
|
19
20
|
s.prototype = e.prototype;
|
|
20
21
|
} else
|
|
21
22
|
s = {};
|
|
22
|
-
return Object.defineProperty(s, "__esModule", { value: !0 }), Object.keys(
|
|
23
|
-
var c = Object.getOwnPropertyDescriptor(
|
|
24
|
-
Object.defineProperty(s,
|
|
23
|
+
return Object.defineProperty(s, "__esModule", { value: !0 }), Object.keys(o).forEach(function(n) {
|
|
24
|
+
var c = Object.getOwnPropertyDescriptor(o, n);
|
|
25
|
+
Object.defineProperty(s, n, c.get ? c : {
|
|
25
26
|
enumerable: !0,
|
|
26
27
|
get: function() {
|
|
27
|
-
return
|
|
28
|
+
return o[n];
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
31
|
}), s;
|
|
31
32
|
}
|
|
32
|
-
var
|
|
33
|
+
var h = {}, oe = {
|
|
33
34
|
get exports() {
|
|
34
|
-
return
|
|
35
|
+
return h;
|
|
35
36
|
},
|
|
36
|
-
set exports(
|
|
37
|
-
|
|
37
|
+
set exports(o) {
|
|
38
|
+
h = o;
|
|
38
39
|
}
|
|
39
|
-
},
|
|
40
|
-
function
|
|
41
|
-
if (
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var
|
|
48
|
-
if (
|
|
49
|
-
return v(
|
|
50
|
-
if (
|
|
51
|
-
return
|
|
40
|
+
}, K, V;
|
|
41
|
+
function te() {
|
|
42
|
+
if (V)
|
|
43
|
+
return K;
|
|
44
|
+
V = 1;
|
|
45
|
+
var o = 1e3, e = o * 60, s = e * 60, n = s * 24, c = n * 7, E = n * 365.25;
|
|
46
|
+
K = function(r, t) {
|
|
47
|
+
t = t || {};
|
|
48
|
+
var i = typeof r;
|
|
49
|
+
if (i === "string" && r.length > 0)
|
|
50
|
+
return v(r);
|
|
51
|
+
if (i === "number" && isFinite(r))
|
|
52
|
+
return t.long ? a(r) : u(r);
|
|
52
53
|
throw new Error(
|
|
53
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(
|
|
54
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(r)
|
|
54
55
|
);
|
|
55
56
|
};
|
|
56
|
-
function v(
|
|
57
|
-
if (
|
|
58
|
-
var
|
|
59
|
-
|
|
57
|
+
function v(r) {
|
|
58
|
+
if (r = String(r), !(r.length > 100)) {
|
|
59
|
+
var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
60
|
+
r
|
|
60
61
|
);
|
|
61
|
-
if (
|
|
62
|
-
var
|
|
63
|
-
switch (
|
|
62
|
+
if (t) {
|
|
63
|
+
var i = parseFloat(t[1]), S = (t[2] || "ms").toLowerCase();
|
|
64
|
+
switch (S) {
|
|
64
65
|
case "years":
|
|
65
66
|
case "year":
|
|
66
67
|
case "yrs":
|
|
67
68
|
case "yr":
|
|
68
69
|
case "y":
|
|
69
|
-
return
|
|
70
|
+
return i * E;
|
|
70
71
|
case "weeks":
|
|
71
72
|
case "week":
|
|
72
73
|
case "w":
|
|
73
|
-
return
|
|
74
|
+
return i * c;
|
|
74
75
|
case "days":
|
|
75
76
|
case "day":
|
|
76
77
|
case "d":
|
|
77
|
-
return
|
|
78
|
+
return i * n;
|
|
78
79
|
case "hours":
|
|
79
80
|
case "hour":
|
|
80
81
|
case "hrs":
|
|
81
82
|
case "hr":
|
|
82
83
|
case "h":
|
|
83
|
-
return
|
|
84
|
+
return i * s;
|
|
84
85
|
case "minutes":
|
|
85
86
|
case "minute":
|
|
86
87
|
case "mins":
|
|
87
88
|
case "min":
|
|
88
89
|
case "m":
|
|
89
|
-
return
|
|
90
|
+
return i * e;
|
|
90
91
|
case "seconds":
|
|
91
92
|
case "second":
|
|
92
93
|
case "secs":
|
|
93
94
|
case "sec":
|
|
94
95
|
case "s":
|
|
95
|
-
return
|
|
96
|
+
return i * o;
|
|
96
97
|
case "milliseconds":
|
|
97
98
|
case "millisecond":
|
|
98
99
|
case "msecs":
|
|
99
100
|
case "msec":
|
|
100
101
|
case "ms":
|
|
101
|
-
return
|
|
102
|
+
return i;
|
|
102
103
|
default:
|
|
103
104
|
return;
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
var
|
|
110
|
-
return
|
|
109
|
+
function u(r) {
|
|
110
|
+
var t = Math.abs(r);
|
|
111
|
+
return t >= n ? Math.round(r / n) + "d" : t >= s ? Math.round(r / s) + "h" : t >= e ? Math.round(r / e) + "m" : t >= o ? Math.round(r / o) + "s" : r + "ms";
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
-
var
|
|
114
|
-
return
|
|
113
|
+
function a(r) {
|
|
114
|
+
var t = Math.abs(r);
|
|
115
|
+
return t >= n ? T(r, t, n, "day") : t >= s ? T(r, t, s, "hour") : t >= e ? T(r, t, e, "minute") : t >= o ? T(r, t, o, "second") : r + " ms";
|
|
115
116
|
}
|
|
116
|
-
function T(
|
|
117
|
-
var f =
|
|
118
|
-
return Math.round(
|
|
117
|
+
function T(r, t, i, S) {
|
|
118
|
+
var f = t >= i * 1.5;
|
|
119
|
+
return Math.round(r / i) + " " + S + (f ? "s" : "");
|
|
119
120
|
}
|
|
120
|
-
return
|
|
121
|
+
return K;
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
-
s.debug = s, s.default = s, s.coerce =
|
|
124
|
-
s[
|
|
123
|
+
function ne(o) {
|
|
124
|
+
s.debug = s, s.default = s, s.coerce = a, s.disable = E, s.enable = c, s.enabled = v, s.humanize = te(), s.destroy = T, Object.keys(o).forEach((r) => {
|
|
125
|
+
s[r] = o[r];
|
|
125
126
|
}), s.names = [], s.skips = [], s.formatters = {};
|
|
126
|
-
function e(
|
|
127
|
-
let
|
|
128
|
-
for (let
|
|
129
|
-
|
|
130
|
-
return s.colors[Math.abs(
|
|
127
|
+
function e(r) {
|
|
128
|
+
let t = 0;
|
|
129
|
+
for (let i = 0; i < r.length; i++)
|
|
130
|
+
t = (t << 5) - t + r.charCodeAt(i), t |= 0;
|
|
131
|
+
return s.colors[Math.abs(t) % s.colors.length];
|
|
131
132
|
}
|
|
132
133
|
s.selectColor = e;
|
|
133
|
-
function s(
|
|
134
|
-
let
|
|
135
|
-
function
|
|
136
|
-
if (!
|
|
134
|
+
function s(r) {
|
|
135
|
+
let t, i = null, S, f;
|
|
136
|
+
function p(..._) {
|
|
137
|
+
if (!p.enabled)
|
|
137
138
|
return;
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
let
|
|
141
|
-
_[0] = _[0].replace(/%([a-zA-Z%])/g, (
|
|
142
|
-
if (
|
|
139
|
+
const R = p, I = Number(/* @__PURE__ */ new Date()), A = I - (t || I);
|
|
140
|
+
R.diff = A, R.prev = t, R.curr = I, t = I, _[0] = s.coerce(_[0]), typeof _[0] != "string" && _.unshift("%O");
|
|
141
|
+
let O = 0;
|
|
142
|
+
_[0] = _[0].replace(/%([a-zA-Z%])/g, (U, Q) => {
|
|
143
|
+
if (U === "%%")
|
|
143
144
|
return "%";
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
if (typeof
|
|
147
|
-
const
|
|
148
|
-
|
|
145
|
+
O++;
|
|
146
|
+
const B = s.formatters[Q];
|
|
147
|
+
if (typeof B == "function") {
|
|
148
|
+
const ee = _[O];
|
|
149
|
+
U = B.call(R, ee), _.splice(O, 1), O--;
|
|
149
150
|
}
|
|
150
|
-
return
|
|
151
|
-
}), s.formatArgs.call(
|
|
151
|
+
return U;
|
|
152
|
+
}), s.formatArgs.call(R, _), (R.log || s.log).apply(R, _);
|
|
152
153
|
}
|
|
153
|
-
return
|
|
154
|
+
return p.namespace = r, p.useColors = s.useColors(), p.color = s.selectColor(r), p.extend = n, p.destroy = s.destroy, Object.defineProperty(p, "enabled", {
|
|
154
155
|
enumerable: !0,
|
|
155
156
|
configurable: !1,
|
|
156
|
-
get: () =>
|
|
157
|
+
get: () => i !== null ? i : (S !== s.namespaces && (S = s.namespaces, f = s.enabled(r)), f),
|
|
157
158
|
set: (_) => {
|
|
158
|
-
|
|
159
|
+
i = _;
|
|
159
160
|
}
|
|
160
|
-
}), typeof s.init == "function" && s.init(
|
|
161
|
+
}), typeof s.init == "function" && s.init(p), p;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
const
|
|
164
|
-
return
|
|
163
|
+
function n(r, t) {
|
|
164
|
+
const i = s(this.namespace + (typeof t > "u" ? ":" : t) + r);
|
|
165
|
+
return i.log = this.log, i;
|
|
165
166
|
}
|
|
166
|
-
function c(
|
|
167
|
-
s.save(
|
|
168
|
-
let
|
|
169
|
-
const
|
|
170
|
-
for (
|
|
171
|
-
|
|
167
|
+
function c(r) {
|
|
168
|
+
s.save(r), s.namespaces = r, s.names = [], s.skips = [];
|
|
169
|
+
let t;
|
|
170
|
+
const i = (typeof r == "string" ? r : "").split(/[\s,]+/), S = i.length;
|
|
171
|
+
for (t = 0; t < S; t++)
|
|
172
|
+
i[t] && (r = i[t].replace(/\*/g, ".*?"), r[0] === "-" ? s.skips.push(new RegExp("^" + r.slice(1) + "$")) : s.names.push(new RegExp("^" + r + "$")));
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
-
const
|
|
175
|
-
...s.names.map(
|
|
176
|
-
...s.skips.map(
|
|
174
|
+
function E() {
|
|
175
|
+
const r = [
|
|
176
|
+
...s.names.map(u),
|
|
177
|
+
...s.skips.map(u).map((t) => "-" + t)
|
|
177
178
|
].join(",");
|
|
178
|
-
return s.enable(""),
|
|
179
|
+
return s.enable(""), r;
|
|
179
180
|
}
|
|
180
|
-
function v(
|
|
181
|
-
if (
|
|
181
|
+
function v(r) {
|
|
182
|
+
if (r[r.length - 1] === "*")
|
|
182
183
|
return !0;
|
|
183
|
-
let
|
|
184
|
-
for (
|
|
185
|
-
if (s.skips[
|
|
184
|
+
let t, i;
|
|
185
|
+
for (t = 0, i = s.skips.length; t < i; t++)
|
|
186
|
+
if (s.skips[t].test(r))
|
|
186
187
|
return !1;
|
|
187
|
-
for (
|
|
188
|
-
if (s.names[
|
|
188
|
+
for (t = 0, i = s.names.length; t < i; t++)
|
|
189
|
+
if (s.names[t].test(r))
|
|
189
190
|
return !0;
|
|
190
191
|
return !1;
|
|
191
192
|
}
|
|
192
|
-
function
|
|
193
|
-
return
|
|
193
|
+
function u(r) {
|
|
194
|
+
return r.toString().substring(2, r.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
-
return
|
|
196
|
+
function a(r) {
|
|
197
|
+
return r instanceof Error ? r.stack || r.message : r;
|
|
197
198
|
}
|
|
198
199
|
function T() {
|
|
199
200
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
200
201
|
}
|
|
201
202
|
return s.enable(s.load()), s;
|
|
202
203
|
}
|
|
203
|
-
var
|
|
204
|
-
(function(
|
|
205
|
-
e.formatArgs =
|
|
206
|
-
let
|
|
204
|
+
var ie = ne;
|
|
205
|
+
(function(o, e) {
|
|
206
|
+
e.formatArgs = n, e.save = c, e.load = E, e.useColors = s, e.storage = v(), e.destroy = (() => {
|
|
207
|
+
let a = !1;
|
|
207
208
|
return () => {
|
|
208
|
-
|
|
209
|
+
a || (a = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
209
210
|
};
|
|
210
211
|
})(), e.colors = [
|
|
211
212
|
"#0000CC",
|
|
@@ -292,31 +293,31 @@ var _e = pe;
|
|
|
292
293
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
293
294
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
294
295
|
}
|
|
295
|
-
function
|
|
296
|
-
if (
|
|
296
|
+
function n(a) {
|
|
297
|
+
if (a[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + a[0] + (this.useColors ? "%c " : " ") + "+" + o.exports.humanize(this.diff), !this.useColors)
|
|
297
298
|
return;
|
|
298
299
|
const T = "color: " + this.color;
|
|
299
|
-
|
|
300
|
-
let
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}),
|
|
300
|
+
a.splice(1, 0, T, "color: inherit");
|
|
301
|
+
let r = 0, t = 0;
|
|
302
|
+
a[0].replace(/%[a-zA-Z%]/g, (i) => {
|
|
303
|
+
i !== "%%" && (r++, i === "%c" && (t = r));
|
|
304
|
+
}), a.splice(t, 0, T);
|
|
304
305
|
}
|
|
305
306
|
e.log = console.debug || console.log || (() => {
|
|
306
307
|
});
|
|
307
|
-
function c(
|
|
308
|
+
function c(a) {
|
|
308
309
|
try {
|
|
309
|
-
|
|
310
|
+
a ? e.storage.setItem("debug", a) : e.storage.removeItem("debug");
|
|
310
311
|
} catch {
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
-
let
|
|
314
|
+
function E() {
|
|
315
|
+
let a;
|
|
315
316
|
try {
|
|
316
|
-
|
|
317
|
+
a = e.storage.getItem("debug");
|
|
317
318
|
} catch {
|
|
318
319
|
}
|
|
319
|
-
return !
|
|
320
|
+
return !a && typeof process < "u" && "env" in process && (a = process.env.DEBUG), a;
|
|
320
321
|
}
|
|
321
322
|
function v() {
|
|
322
323
|
try {
|
|
@@ -324,44 +325,44 @@ var _e = pe;
|
|
|
324
325
|
} catch {
|
|
325
326
|
}
|
|
326
327
|
}
|
|
327
|
-
|
|
328
|
-
const { formatters:
|
|
329
|
-
|
|
328
|
+
o.exports = ie(e);
|
|
329
|
+
const { formatters: u } = o.exports;
|
|
330
|
+
u.j = function(a) {
|
|
330
331
|
try {
|
|
331
|
-
return JSON.stringify(
|
|
332
|
+
return JSON.stringify(a);
|
|
332
333
|
} catch (T) {
|
|
333
334
|
return "[UnexpectedJSONParseError]: " + T.message;
|
|
334
335
|
}
|
|
335
336
|
};
|
|
336
|
-
})(
|
|
337
|
-
const
|
|
338
|
-
var
|
|
337
|
+
})(oe, h);
|
|
338
|
+
const ce = h;
|
|
339
|
+
var x = {}, _e = {
|
|
339
340
|
get exports() {
|
|
340
|
-
return
|
|
341
|
+
return x;
|
|
341
342
|
},
|
|
342
|
-
set exports(
|
|
343
|
-
|
|
343
|
+
set exports(o) {
|
|
344
|
+
x = o;
|
|
344
345
|
}
|
|
345
|
-
},
|
|
346
|
+
}, m = {}, pe = {
|
|
346
347
|
get exports() {
|
|
347
|
-
return
|
|
348
|
+
return m;
|
|
348
349
|
},
|
|
349
|
-
set exports(
|
|
350
|
-
|
|
350
|
+
set exports(o) {
|
|
351
|
+
m = o;
|
|
351
352
|
}
|
|
352
353
|
};
|
|
353
|
-
const
|
|
354
|
-
var
|
|
354
|
+
const q = /* @__PURE__ */ re($);
|
|
355
|
+
var w = {}, Ee = {
|
|
355
356
|
get exports() {
|
|
356
|
-
return
|
|
357
|
+
return w;
|
|
357
358
|
},
|
|
358
|
-
set exports(
|
|
359
|
-
|
|
359
|
+
set exports(o) {
|
|
360
|
+
w = o;
|
|
360
361
|
}
|
|
361
362
|
};
|
|
362
|
-
(function(
|
|
363
|
+
(function(o) {
|
|
363
364
|
var e = {};
|
|
364
|
-
|
|
365
|
+
o.exports = e;
|
|
365
366
|
var s = {
|
|
366
367
|
reset: [0, 0],
|
|
367
368
|
bold: [1, 22],
|
|
@@ -415,38 +416,38 @@ var x = {}, Te = {
|
|
|
415
416
|
cyanBG: [46, 49],
|
|
416
417
|
whiteBG: [47, 49]
|
|
417
418
|
};
|
|
418
|
-
Object.keys(s).forEach(function(
|
|
419
|
-
var c = s[
|
|
420
|
-
|
|
419
|
+
Object.keys(s).forEach(function(n) {
|
|
420
|
+
var c = s[n], E = e[n] = [];
|
|
421
|
+
E.open = "\x1B[" + c[0] + "m", E.close = "\x1B[" + c[1] + "m";
|
|
421
422
|
});
|
|
422
|
-
})(
|
|
423
|
-
var
|
|
423
|
+
})(Ee);
|
|
424
|
+
var ae = function(o, e) {
|
|
424
425
|
e = e || process.argv;
|
|
425
|
-
var s = e.indexOf("--"),
|
|
426
|
+
var s = e.indexOf("--"), n = /^-{1,2}/.test(o) ? "" : "--", c = e.indexOf(n + o);
|
|
426
427
|
return c !== -1 && (s === -1 ? !0 : c < s);
|
|
427
|
-
},
|
|
428
|
-
|
|
428
|
+
}, ve = q, d = ae, l = process.env, N = void 0;
|
|
429
|
+
d("no-color") || d("no-colors") || d("color=false") ? N = !1 : (d("color") || d("colors") || d("color=true") || d("color=always")) && (N = !0);
|
|
429
430
|
"FORCE_COLOR" in l && (N = l.FORCE_COLOR.length === 0 || parseInt(l.FORCE_COLOR, 10) !== 0);
|
|
430
|
-
function
|
|
431
|
-
return
|
|
432
|
-
level:
|
|
431
|
+
function Te(o) {
|
|
432
|
+
return o === 0 ? !1 : {
|
|
433
|
+
level: o,
|
|
433
434
|
hasBasic: !0,
|
|
434
|
-
has256:
|
|
435
|
-
has16m:
|
|
435
|
+
has256: o >= 2,
|
|
436
|
+
has16m: o >= 3
|
|
436
437
|
};
|
|
437
438
|
}
|
|
438
|
-
function
|
|
439
|
+
function Re(o) {
|
|
439
440
|
if (N === !1)
|
|
440
441
|
return 0;
|
|
441
|
-
if (
|
|
442
|
+
if (d("color=16m") || d("color=full") || d("color=truecolor"))
|
|
442
443
|
return 3;
|
|
443
|
-
if (
|
|
444
|
+
if (d("color=256"))
|
|
444
445
|
return 2;
|
|
445
|
-
if (
|
|
446
|
+
if (o && !o.isTTY && N !== !0)
|
|
446
447
|
return 0;
|
|
447
448
|
var e = N ? 1 : 0;
|
|
448
449
|
if (process.platform === "win32") {
|
|
449
|
-
var s =
|
|
450
|
+
var s = ve.release().split(".");
|
|
450
451
|
return Number(process.versions.node.split(".")[0]) >= 8 && Number(s[0]) >= 10 && Number(s[2]) >= 10586 ? Number(s[2]) >= 14931 ? 3 : 2 : 1;
|
|
451
452
|
}
|
|
452
453
|
if ("CI" in l)
|
|
@@ -456,10 +457,10 @@ function le(r) {
|
|
|
456
457
|
if ("TEAMCITY_VERSION" in l)
|
|
457
458
|
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION) ? 1 : 0;
|
|
458
459
|
if ("TERM_PROGRAM" in l) {
|
|
459
|
-
var
|
|
460
|
+
var n = parseInt((l.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
460
461
|
switch (l.TERM_PROGRAM) {
|
|
461
462
|
case "iTerm.app":
|
|
462
|
-
return
|
|
463
|
+
return n >= 3 ? 3 : 2;
|
|
463
464
|
case "Hyper":
|
|
464
465
|
return 3;
|
|
465
466
|
case "Apple_Terminal":
|
|
@@ -468,28 +469,28 @@ function le(r) {
|
|
|
468
469
|
}
|
|
469
470
|
return /-256(color)?$/i.test(l.TERM) ? 2 : /^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM) || "COLORTERM" in l ? 1 : (l.TERM === "dumb", e);
|
|
470
471
|
}
|
|
471
|
-
function
|
|
472
|
-
var e =
|
|
473
|
-
return
|
|
472
|
+
function H(o) {
|
|
473
|
+
var e = Re(o);
|
|
474
|
+
return Te(e);
|
|
474
475
|
}
|
|
475
|
-
var
|
|
476
|
-
supportsColor:
|
|
477
|
-
stdout:
|
|
478
|
-
stderr:
|
|
479
|
-
}, M = {},
|
|
476
|
+
var ue = {
|
|
477
|
+
supportsColor: H,
|
|
478
|
+
stdout: H(process.stdout),
|
|
479
|
+
stderr: H(process.stderr)
|
|
480
|
+
}, M = {}, Ie = {
|
|
480
481
|
get exports() {
|
|
481
482
|
return M;
|
|
482
483
|
},
|
|
483
|
-
set exports(
|
|
484
|
-
M =
|
|
484
|
+
set exports(o) {
|
|
485
|
+
M = o;
|
|
485
486
|
}
|
|
486
|
-
},
|
|
487
|
-
function
|
|
488
|
-
return
|
|
489
|
-
|
|
487
|
+
}, W;
|
|
488
|
+
function le() {
|
|
489
|
+
return W || (W = 1, function(o) {
|
|
490
|
+
o.exports = function(s, n) {
|
|
490
491
|
var c = "";
|
|
491
492
|
s = s || "Run the trap, drop the bass", s = s.split("");
|
|
492
|
-
var
|
|
493
|
+
var E = {
|
|
493
494
|
a: ["@", "Ą", "Ⱥ", "Ʌ", "Δ", "Λ", "Д"],
|
|
494
495
|
b: ["ß", "Ɓ", "Ƀ", "ɮ", "β", "฿"],
|
|
495
496
|
c: ["©", "Ȼ", "Ͼ"],
|
|
@@ -538,23 +539,23 @@ function Oe() {
|
|
|
538
539
|
};
|
|
539
540
|
return s.forEach(function(v) {
|
|
540
541
|
v = v.toLowerCase();
|
|
541
|
-
var
|
|
542
|
-
typeof
|
|
542
|
+
var u = E[v] || [" "], a = Math.floor(Math.random() * u.length);
|
|
543
|
+
typeof E[v] < "u" ? c += E[v][a] : c += v;
|
|
543
544
|
}), c;
|
|
544
545
|
};
|
|
545
|
-
}(
|
|
546
|
+
}(Ie)), M;
|
|
546
547
|
}
|
|
547
|
-
var
|
|
548
|
+
var L = {}, Se = {
|
|
548
549
|
get exports() {
|
|
549
|
-
return
|
|
550
|
+
return L;
|
|
550
551
|
},
|
|
551
|
-
set exports(
|
|
552
|
-
|
|
552
|
+
set exports(o) {
|
|
553
|
+
L = o;
|
|
553
554
|
}
|
|
554
|
-
},
|
|
555
|
-
function
|
|
556
|
-
return
|
|
557
|
-
|
|
555
|
+
}, G;
|
|
556
|
+
function Oe() {
|
|
557
|
+
return G || (G = 1, function(o) {
|
|
558
|
+
o.exports = function(s, n) {
|
|
558
559
|
s = s || " he is here ";
|
|
559
560
|
var c = {
|
|
560
561
|
up: [
|
|
@@ -675,59 +676,59 @@ function Ae() {
|
|
|
675
676
|
"͡",
|
|
676
677
|
" ҉"
|
|
677
678
|
]
|
|
678
|
-
},
|
|
679
|
+
}, E = [].concat(c.up, c.down, c.mid);
|
|
679
680
|
function v(T) {
|
|
680
|
-
var
|
|
681
|
-
return
|
|
681
|
+
var r = Math.floor(Math.random() * T);
|
|
682
|
+
return r;
|
|
682
683
|
}
|
|
683
|
-
function
|
|
684
|
-
var
|
|
685
|
-
return
|
|
686
|
-
|
|
687
|
-
}),
|
|
684
|
+
function u(T) {
|
|
685
|
+
var r = !1;
|
|
686
|
+
return E.filter(function(t) {
|
|
687
|
+
r = t === T;
|
|
688
|
+
}), r;
|
|
688
689
|
}
|
|
689
|
-
function
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
for (
|
|
693
|
-
if (!
|
|
694
|
-
switch (
|
|
690
|
+
function a(T, r) {
|
|
691
|
+
var t = "", i, S;
|
|
692
|
+
r = r || {}, r.up = typeof r.up < "u" ? r.up : !0, r.mid = typeof r.mid < "u" ? r.mid : !0, r.down = typeof r.down < "u" ? r.down : !0, r.size = typeof r.size < "u" ? r.size : "maxi", T = T.split("");
|
|
693
|
+
for (S in T)
|
|
694
|
+
if (!u(S)) {
|
|
695
|
+
switch (t = t + T[S], i = { up: 0, down: 0, mid: 0 }, r.size) {
|
|
695
696
|
case "mini":
|
|
696
|
-
|
|
697
|
+
i.up = v(8), i.mid = v(2), i.down = v(8);
|
|
697
698
|
break;
|
|
698
699
|
case "maxi":
|
|
699
|
-
|
|
700
|
+
i.up = v(16) + 3, i.mid = v(4) + 1, i.down = v(64) + 3;
|
|
700
701
|
break;
|
|
701
702
|
default:
|
|
702
|
-
|
|
703
|
+
i.up = v(8) + 1, i.mid = v(6) / 2, i.down = v(8) + 1;
|
|
703
704
|
break;
|
|
704
705
|
}
|
|
705
706
|
var f = ["up", "mid", "down"];
|
|
706
|
-
for (var
|
|
707
|
-
for (var _ = f[
|
|
708
|
-
|
|
707
|
+
for (var p in f)
|
|
708
|
+
for (var _ = f[p], R = 0; R <= i[_]; R++)
|
|
709
|
+
r[_] && (t = t + c[_][v(c[_].length)]);
|
|
709
710
|
}
|
|
710
|
-
return
|
|
711
|
+
return t;
|
|
711
712
|
}
|
|
712
|
-
return
|
|
713
|
+
return a(s, n);
|
|
713
714
|
};
|
|
714
|
-
}(
|
|
715
|
+
}(Se)), L;
|
|
715
716
|
}
|
|
716
|
-
var
|
|
717
|
+
var b = {}, de = {
|
|
717
718
|
get exports() {
|
|
718
|
-
return
|
|
719
|
+
return b;
|
|
719
720
|
},
|
|
720
|
-
set exports(
|
|
721
|
-
|
|
721
|
+
set exports(o) {
|
|
722
|
+
b = o;
|
|
722
723
|
}
|
|
723
|
-
},
|
|
724
|
-
function
|
|
725
|
-
return
|
|
726
|
-
|
|
727
|
-
return function(s,
|
|
724
|
+
}, j;
|
|
725
|
+
function fe() {
|
|
726
|
+
return j || (j = 1, function(o) {
|
|
727
|
+
o.exports = function(e) {
|
|
728
|
+
return function(s, n, c) {
|
|
728
729
|
if (s === " ")
|
|
729
730
|
return s;
|
|
730
|
-
switch (
|
|
731
|
+
switch (n % 3) {
|
|
731
732
|
case 0:
|
|
732
733
|
return e.red(s);
|
|
733
734
|
case 1:
|
|
@@ -737,54 +738,54 @@ function Pe() {
|
|
|
737
738
|
}
|
|
738
739
|
};
|
|
739
740
|
};
|
|
740
|
-
}(
|
|
741
|
+
}(de)), b;
|
|
741
742
|
}
|
|
742
|
-
var
|
|
743
|
+
var g = {}, Ae = {
|
|
743
744
|
get exports() {
|
|
744
|
-
return
|
|
745
|
+
return g;
|
|
745
746
|
},
|
|
746
|
-
set exports(
|
|
747
|
-
|
|
747
|
+
set exports(o) {
|
|
748
|
+
g = o;
|
|
748
749
|
}
|
|
749
|
-
},
|
|
750
|
-
function
|
|
751
|
-
return
|
|
752
|
-
|
|
753
|
-
return function(s,
|
|
754
|
-
return
|
|
750
|
+
}, J;
|
|
751
|
+
function Ce() {
|
|
752
|
+
return J || (J = 1, function(o) {
|
|
753
|
+
o.exports = function(e) {
|
|
754
|
+
return function(s, n, c) {
|
|
755
|
+
return n % 2 === 0 ? s : e.inverse(s);
|
|
755
756
|
};
|
|
756
757
|
};
|
|
757
|
-
}(
|
|
758
|
+
}(Ae)), g;
|
|
758
759
|
}
|
|
759
|
-
var
|
|
760
|
+
var F = {}, Pe = {
|
|
760
761
|
get exports() {
|
|
761
|
-
return
|
|
762
|
+
return F;
|
|
762
763
|
},
|
|
763
|
-
set exports(
|
|
764
|
-
|
|
764
|
+
set exports(o) {
|
|
765
|
+
F = o;
|
|
765
766
|
}
|
|
766
|
-
},
|
|
767
|
-
function
|
|
768
|
-
return
|
|
769
|
-
|
|
767
|
+
}, X;
|
|
768
|
+
function Ne() {
|
|
769
|
+
return X || (X = 1, function(o) {
|
|
770
|
+
o.exports = function(e) {
|
|
770
771
|
var s = ["red", "yellow", "green", "blue", "magenta"];
|
|
771
|
-
return function(
|
|
772
|
-
return
|
|
772
|
+
return function(n, c, E) {
|
|
773
|
+
return n === " " ? n : e[s[c++ % s.length]](n);
|
|
773
774
|
};
|
|
774
775
|
};
|
|
775
|
-
}(
|
|
776
|
+
}(Pe)), F;
|
|
776
777
|
}
|
|
777
|
-
var
|
|
778
|
+
var D = {}, he = {
|
|
778
779
|
get exports() {
|
|
779
|
-
return
|
|
780
|
+
return D;
|
|
780
781
|
},
|
|
781
|
-
set exports(
|
|
782
|
-
|
|
782
|
+
set exports(o) {
|
|
783
|
+
D = o;
|
|
783
784
|
}
|
|
784
|
-
},
|
|
785
|
-
function
|
|
786
|
-
return
|
|
787
|
-
|
|
785
|
+
}, z;
|
|
786
|
+
function me() {
|
|
787
|
+
return z || (z = 1, function(o) {
|
|
788
|
+
o.exports = function(e) {
|
|
788
789
|
var s = [
|
|
789
790
|
"underline",
|
|
790
791
|
"inverse",
|
|
@@ -804,119 +805,119 @@ function be() {
|
|
|
804
805
|
"brightCyan",
|
|
805
806
|
"brightMagenta"
|
|
806
807
|
];
|
|
807
|
-
return function(
|
|
808
|
-
return
|
|
808
|
+
return function(n, c, E) {
|
|
809
|
+
return n === " " ? n : e[s[Math.round(Math.random() * (s.length - 2))]](n);
|
|
809
810
|
};
|
|
810
811
|
};
|
|
811
|
-
}(
|
|
812
|
+
}(he)), D;
|
|
812
813
|
}
|
|
813
|
-
(function(
|
|
814
|
+
(function(o) {
|
|
814
815
|
var e = {};
|
|
815
|
-
|
|
816
|
-
var s =
|
|
817
|
-
e.supportsColor =
|
|
816
|
+
o.exports = e, e.themes = {};
|
|
817
|
+
var s = q, n = e.styles = w, c = Object.defineProperties, E = new RegExp(/[\r\n]+/g);
|
|
818
|
+
e.supportsColor = ue.supportsColor, typeof e.enabled > "u" && (e.enabled = e.supportsColor() !== !1), e.enable = function() {
|
|
818
819
|
e.enabled = !0;
|
|
819
820
|
}, e.disable = function() {
|
|
820
821
|
e.enabled = !1;
|
|
821
|
-
}, e.stripColors = e.strip = function(
|
|
822
|
-
return ("" +
|
|
823
|
-
}, e.stylize = function(_,
|
|
822
|
+
}, e.stripColors = e.strip = function(p) {
|
|
823
|
+
return ("" + p).replace(/\x1B\[\d+m/g, "");
|
|
824
|
+
}, e.stylize = function(_, R) {
|
|
824
825
|
if (!e.enabled)
|
|
825
826
|
return _ + "";
|
|
826
|
-
var I =
|
|
827
|
-
return !I &&
|
|
827
|
+
var I = n[R];
|
|
828
|
+
return !I && R in e ? e[R](_) : I.open + _ + I.close;
|
|
828
829
|
};
|
|
829
|
-
var v = /[|\\{}()[\]^$+*?.]/g,
|
|
830
|
-
if (typeof
|
|
830
|
+
var v = /[|\\{}()[\]^$+*?.]/g, u = function(p) {
|
|
831
|
+
if (typeof p != "string")
|
|
831
832
|
throw new TypeError("Expected a string");
|
|
832
|
-
return
|
|
833
|
+
return p.replace(v, "\\$&");
|
|
833
834
|
};
|
|
834
|
-
function
|
|
835
|
-
var _ = function
|
|
836
|
-
return
|
|
835
|
+
function a(p) {
|
|
836
|
+
var _ = function R() {
|
|
837
|
+
return t.apply(R, arguments);
|
|
837
838
|
};
|
|
838
|
-
return _._styles =
|
|
839
|
+
return _._styles = p, _.__proto__ = r, _;
|
|
839
840
|
}
|
|
840
841
|
var T = function() {
|
|
841
|
-
var
|
|
842
|
-
return
|
|
843
|
-
|
|
842
|
+
var p = {};
|
|
843
|
+
return n.grey = n.gray, Object.keys(n).forEach(function(_) {
|
|
844
|
+
n[_].closeRe = new RegExp(u(n[_].close), "g"), p[_] = {
|
|
844
845
|
get: function() {
|
|
845
|
-
return
|
|
846
|
+
return a(this._styles.concat(_));
|
|
846
847
|
}
|
|
847
848
|
};
|
|
848
|
-
}),
|
|
849
|
-
}(),
|
|
849
|
+
}), p;
|
|
850
|
+
}(), r = c(function() {
|
|
850
851
|
}, T);
|
|
851
|
-
function
|
|
852
|
-
var
|
|
852
|
+
function t() {
|
|
853
|
+
var p = Array.prototype.slice.call(arguments), _ = p.map(function(C) {
|
|
853
854
|
return C != null && C.constructor === String ? C : s.inspect(C);
|
|
854
855
|
}).join(" ");
|
|
855
856
|
if (!e.enabled || !_)
|
|
856
857
|
return _;
|
|
857
|
-
for (var
|
|
858
|
+
for (var R = _.indexOf(`
|
|
858
859
|
`) != -1, I = this._styles, A = I.length; A--; ) {
|
|
859
|
-
var
|
|
860
|
-
_ =
|
|
861
|
-
return
|
|
860
|
+
var O = n[I[A]];
|
|
861
|
+
_ = O.open + _.replace(O.closeRe, O.open) + O.close, R && (_ = _.replace(E, function(C) {
|
|
862
|
+
return O.close + C + O.open;
|
|
862
863
|
}));
|
|
863
864
|
}
|
|
864
865
|
return _;
|
|
865
866
|
}
|
|
866
|
-
e.setTheme = function(
|
|
867
|
-
if (typeof
|
|
867
|
+
e.setTheme = function(p) {
|
|
868
|
+
if (typeof p == "string") {
|
|
868
869
|
console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");
|
|
869
870
|
return;
|
|
870
871
|
}
|
|
871
|
-
for (var _ in
|
|
872
|
-
(function(
|
|
873
|
-
e[
|
|
874
|
-
if (typeof
|
|
872
|
+
for (var _ in p)
|
|
873
|
+
(function(R) {
|
|
874
|
+
e[R] = function(I) {
|
|
875
|
+
if (typeof p[R] == "object") {
|
|
875
876
|
var A = I;
|
|
876
|
-
for (var
|
|
877
|
-
A = e[
|
|
877
|
+
for (var O in p[R])
|
|
878
|
+
A = e[p[R][O]](A);
|
|
878
879
|
return A;
|
|
879
880
|
}
|
|
880
|
-
return e[
|
|
881
|
+
return e[p[R]](I);
|
|
881
882
|
};
|
|
882
883
|
})(_);
|
|
883
884
|
};
|
|
884
|
-
function
|
|
885
|
-
var
|
|
885
|
+
function i() {
|
|
886
|
+
var p = {};
|
|
886
887
|
return Object.keys(T).forEach(function(_) {
|
|
887
|
-
|
|
888
|
+
p[_] = {
|
|
888
889
|
get: function() {
|
|
889
|
-
return
|
|
890
|
+
return a([_]);
|
|
890
891
|
}
|
|
891
892
|
};
|
|
892
|
-
}),
|
|
893
|
+
}), p;
|
|
893
894
|
}
|
|
894
|
-
var
|
|
895
|
-
var I =
|
|
895
|
+
var S = function(_, R) {
|
|
896
|
+
var I = R.split("");
|
|
896
897
|
return I = I.map(_), I.join("");
|
|
897
898
|
};
|
|
898
|
-
e.trap =
|
|
899
|
+
e.trap = le(), e.zalgo = Oe(), e.maps = {}, e.maps.america = fe()(e), e.maps.zebra = Ce()(e), e.maps.rainbow = Ne()(e), e.maps.random = me()(e);
|
|
899
900
|
for (var f in e.maps)
|
|
900
|
-
(function(
|
|
901
|
-
e[
|
|
902
|
-
return
|
|
901
|
+
(function(p) {
|
|
902
|
+
e[p] = function(_) {
|
|
903
|
+
return S(e.maps[p], _);
|
|
903
904
|
};
|
|
904
905
|
})(f);
|
|
905
|
-
c(e,
|
|
906
|
-
})(
|
|
907
|
-
var
|
|
906
|
+
c(e, i());
|
|
907
|
+
})(pe);
|
|
908
|
+
var k = {}, Me = {
|
|
908
909
|
get exports() {
|
|
909
|
-
return
|
|
910
|
+
return k;
|
|
910
911
|
},
|
|
911
|
-
set exports(
|
|
912
|
-
|
|
912
|
+
set exports(o) {
|
|
913
|
+
k = o;
|
|
913
914
|
}
|
|
914
915
|
};
|
|
915
|
-
(function(
|
|
916
|
-
var e =
|
|
917
|
-
|
|
918
|
-
var s = function(
|
|
919
|
-
String.prototype.__defineGetter__(
|
|
916
|
+
(function(o) {
|
|
917
|
+
var e = m;
|
|
918
|
+
o.exports = function() {
|
|
919
|
+
var s = function(E, v) {
|
|
920
|
+
String.prototype.__defineGetter__(E, v);
|
|
920
921
|
};
|
|
921
922
|
s("strip", function() {
|
|
922
923
|
return e.strip(this);
|
|
@@ -935,13 +936,13 @@ var j = {}, Le = {
|
|
|
935
936
|
}), s("america", function() {
|
|
936
937
|
return e.america(this);
|
|
937
938
|
});
|
|
938
|
-
var
|
|
939
|
-
|
|
940
|
-
s(
|
|
941
|
-
return e.stylize(this,
|
|
939
|
+
var n = Object.keys(e.styles);
|
|
940
|
+
n.forEach(function(E) {
|
|
941
|
+
s(E, function() {
|
|
942
|
+
return e.stylize(this, E);
|
|
942
943
|
});
|
|
943
944
|
});
|
|
944
|
-
function c(
|
|
945
|
+
function c(E) {
|
|
945
946
|
var v = [
|
|
946
947
|
"__defineGetter__",
|
|
947
948
|
"__defineSetter__",
|
|
@@ -975,153 +976,43 @@ var j = {}, Le = {
|
|
|
975
976
|
"trimLeft",
|
|
976
977
|
"trimRight"
|
|
977
978
|
];
|
|
978
|
-
Object.keys(
|
|
979
|
-
if (v.indexOf(
|
|
980
|
-
console.log("warn: ".red + ("String.prototype" +
|
|
981
|
-
else if (typeof
|
|
982
|
-
e[
|
|
983
|
-
return e[
|
|
979
|
+
Object.keys(E).forEach(function(u) {
|
|
980
|
+
if (v.indexOf(u) !== -1)
|
|
981
|
+
console.log("warn: ".red + ("String.prototype" + u).magenta + " is probably something you don't want to override. Ignoring style name");
|
|
982
|
+
else if (typeof E[u] == "string")
|
|
983
|
+
e[u] = e[E[u]], s(u, function() {
|
|
984
|
+
return e[u](this);
|
|
984
985
|
});
|
|
985
986
|
else {
|
|
986
|
-
var
|
|
987
|
-
for (var
|
|
988
|
-
|
|
989
|
-
return
|
|
987
|
+
var a = function(T) {
|
|
988
|
+
for (var r = T || this, t = 0; t < E[u].length; t++)
|
|
989
|
+
r = e[E[u][t]](r);
|
|
990
|
+
return r;
|
|
990
991
|
};
|
|
991
|
-
s(
|
|
992
|
-
return
|
|
992
|
+
s(u, a), e[u] = function(T) {
|
|
993
|
+
return a(T);
|
|
993
994
|
};
|
|
994
995
|
}
|
|
995
996
|
});
|
|
996
997
|
}
|
|
997
|
-
e.setTheme = function(
|
|
998
|
-
if (typeof
|
|
998
|
+
e.setTheme = function(E) {
|
|
999
|
+
if (typeof E == "string") {
|
|
999
1000
|
console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");
|
|
1000
1001
|
return;
|
|
1001
1002
|
} else
|
|
1002
|
-
c(
|
|
1003
|
+
c(E);
|
|
1003
1004
|
};
|
|
1004
1005
|
};
|
|
1005
|
-
})(
|
|
1006
|
-
(function(
|
|
1007
|
-
var e =
|
|
1008
|
-
|
|
1009
|
-
})(
|
|
1010
|
-
|
|
1011
|
-
get exports() {
|
|
1012
|
-
return y;
|
|
1013
|
-
},
|
|
1014
|
-
set exports(r) {
|
|
1015
|
-
y = r;
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
const De = "dotenv", Ue = "16.0.3", ye = "Loads environment variables from .env file", we = "lib/main.js", Ke = "lib/main.d.ts", He = {
|
|
1019
|
-
".": {
|
|
1020
|
-
require: "./lib/main.js",
|
|
1021
|
-
types: "./lib/main.d.ts",
|
|
1022
|
-
default: "./lib/main.js"
|
|
1023
|
-
},
|
|
1024
|
-
"./config": "./config.js",
|
|
1025
|
-
"./config.js": "./config.js",
|
|
1026
|
-
"./lib/env-options": "./lib/env-options.js",
|
|
1027
|
-
"./lib/env-options.js": "./lib/env-options.js",
|
|
1028
|
-
"./lib/cli-options": "./lib/cli-options.js",
|
|
1029
|
-
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
1030
|
-
"./package.json": "./package.json"
|
|
1031
|
-
}, ke = {
|
|
1032
|
-
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
1033
|
-
lint: "standard",
|
|
1034
|
-
"lint-readme": "standard-markdown",
|
|
1035
|
-
pretest: "npm run lint && npm run dts-check",
|
|
1036
|
-
test: "tap tests/*.js --100 -Rspec",
|
|
1037
|
-
prerelease: "npm test",
|
|
1038
|
-
release: "standard-version"
|
|
1039
|
-
}, Be = {
|
|
1040
|
-
type: "git",
|
|
1041
|
-
url: "git://github.com/motdotla/dotenv.git"
|
|
1042
|
-
}, Ve = [
|
|
1043
|
-
"dotenv",
|
|
1044
|
-
"env",
|
|
1045
|
-
".env",
|
|
1046
|
-
"environment",
|
|
1047
|
-
"variables",
|
|
1048
|
-
"config",
|
|
1049
|
-
"settings"
|
|
1050
|
-
], xe = "README.md", je = "BSD-2-Clause", We = {
|
|
1051
|
-
"@types/node": "^17.0.9",
|
|
1052
|
-
decache: "^4.6.1",
|
|
1053
|
-
dtslint: "^3.7.0",
|
|
1054
|
-
sinon: "^12.0.1",
|
|
1055
|
-
standard: "^16.0.4",
|
|
1056
|
-
"standard-markdown": "^7.1.0",
|
|
1057
|
-
"standard-version": "^9.3.2",
|
|
1058
|
-
tap: "^15.1.6",
|
|
1059
|
-
tar: "^6.1.11",
|
|
1060
|
-
typescript: "^4.5.4"
|
|
1061
|
-
}, Ge = {
|
|
1062
|
-
node: ">=12"
|
|
1063
|
-
}, Je = {
|
|
1064
|
-
name: De,
|
|
1065
|
-
version: Ue,
|
|
1066
|
-
description: ye,
|
|
1067
|
-
main: we,
|
|
1068
|
-
types: Ke,
|
|
1069
|
-
exports: He,
|
|
1070
|
-
scripts: ke,
|
|
1071
|
-
repository: Be,
|
|
1072
|
-
keywords: Ve,
|
|
1073
|
-
readmeFilename: xe,
|
|
1074
|
-
license: je,
|
|
1075
|
-
devDependencies: We,
|
|
1076
|
-
engines: Ge
|
|
1077
|
-
}, Xe = h, se = h, $e = h, ze = Je, Ze = ze.version, Ye = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
1078
|
-
function qe(r) {
|
|
1079
|
-
const e = {};
|
|
1080
|
-
let s = r.toString();
|
|
1081
|
-
s = s.replace(/\r\n?/mg, `
|
|
1082
|
-
`);
|
|
1083
|
-
let t;
|
|
1084
|
-
for (; (t = Ye.exec(s)) != null; ) {
|
|
1085
|
-
const c = t[1];
|
|
1086
|
-
let i = t[2] || "";
|
|
1087
|
-
i = i.trim();
|
|
1088
|
-
const v = i[0];
|
|
1089
|
-
i = i.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"), v === '"' && (i = i.replace(/\\n/g, `
|
|
1090
|
-
`), i = i.replace(/\\r/g, "\r")), e[c] = i;
|
|
1091
|
-
}
|
|
1092
|
-
return e;
|
|
1093
|
-
}
|
|
1094
|
-
function B(r) {
|
|
1095
|
-
console.log(`[dotenv@${Ze}][DEBUG] ${r}`);
|
|
1096
|
-
}
|
|
1097
|
-
function Qe(r) {
|
|
1098
|
-
return r[0] === "~" ? se.join($e.homedir(), r.slice(1)) : r;
|
|
1099
|
-
}
|
|
1100
|
-
function es(r) {
|
|
1101
|
-
let e = se.resolve(process.cwd(), ".env"), s = "utf8";
|
|
1102
|
-
const t = !!(r && r.debug), c = !!(r && r.override);
|
|
1103
|
-
r && (r.path != null && (e = Qe(r.path)), r.encoding != null && (s = r.encoding));
|
|
1104
|
-
try {
|
|
1105
|
-
const i = w.parse(Xe.readFileSync(e, { encoding: s }));
|
|
1106
|
-
return Object.keys(i).forEach(function(v) {
|
|
1107
|
-
Object.prototype.hasOwnProperty.call(process.env, v) ? (c === !0 && (process.env[v] = i[v]), t && B(c === !0 ? `"${v}" is already defined in \`process.env\` and WAS overwritten` : `"${v}" is already defined in \`process.env\` and was NOT overwritten`)) : process.env[v] = i[v];
|
|
1108
|
-
}), { parsed: i };
|
|
1109
|
-
} catch (i) {
|
|
1110
|
-
return t && B(`Failed to load ${e} ${i.message}`), { error: i };
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
const w = {
|
|
1114
|
-
config: es,
|
|
1115
|
-
parse: qe
|
|
1116
|
-
};
|
|
1117
|
-
var ss = y.config = w.config;
|
|
1118
|
-
y.parse = w.parse;
|
|
1119
|
-
Fe.exports = w;
|
|
1120
|
-
const { accessSync: rs, constants: os, readFileSync: ns } = ee, Q = ae(`proc:${process.pid}`);
|
|
1006
|
+
})(Me);
|
|
1007
|
+
(function(o) {
|
|
1008
|
+
var e = m;
|
|
1009
|
+
o.exports = e, k();
|
|
1010
|
+
})(_e);
|
|
1011
|
+
const { accessSync: Le, constants: be, readFileSync: ge } = $, Z = ce(`proc:${process.pid}`);
|
|
1121
1012
|
let P = null;
|
|
1122
|
-
function
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1013
|
+
function Fe() {
|
|
1014
|
+
const o = process.env.STSENVFILE === void 0 ? "/.env" : process.env.STSENVFILE;
|
|
1015
|
+
Y.config({ path: o });
|
|
1125
1016
|
const e = {
|
|
1126
1017
|
// Node runtime environment
|
|
1127
1018
|
isProduction: process.env.NODE_ENV === void 0 ? !1 : process.env.NODE_ENV === "production",
|
|
@@ -1294,11 +1185,11 @@ function ts() {
|
|
|
1294
1185
|
jwksAuthConfigTimeout: process.env.JWKS_AUTH_CONFIG_TIMEOUT === void 0 ? 3e4 : parseInt(process.env.JWKS_AUTH_CONFIG_TIMEOUT)
|
|
1295
1186
|
}, s = (c) => {
|
|
1296
1187
|
try {
|
|
1297
|
-
|
|
1298
|
-
const
|
|
1299
|
-
return
|
|
1300
|
-
} catch (
|
|
1301
|
-
return
|
|
1188
|
+
Le(c, be.R_OK);
|
|
1189
|
+
const E = ge(c, "utf8");
|
|
1190
|
+
return Z(`Successfully loaded password file: [${c}]`.green), E;
|
|
1191
|
+
} catch (E) {
|
|
1192
|
+
return Z(`Problem loading password file: [${c}], Error: [${E}]`.red), "";
|
|
1302
1193
|
}
|
|
1303
1194
|
};
|
|
1304
1195
|
return [
|
|
@@ -1334,20 +1225,21 @@ function ts() {
|
|
|
1334
1225
|
e[c.fileprop] !== void 0 && (e[c.prop] = s(e[c.fileprop]));
|
|
1335
1226
|
}), e;
|
|
1336
1227
|
}
|
|
1337
|
-
function
|
|
1228
|
+
function Ue() {
|
|
1338
1229
|
if (P === null) {
|
|
1339
|
-
P =
|
|
1340
|
-
const
|
|
1341
|
-
P.connectionString = `postgresql://${
|
|
1230
|
+
P = Fe();
|
|
1231
|
+
const o = P;
|
|
1232
|
+
P.connectionString = `postgresql://${o.dbuser}:${o.dbpassword}@${o.dbhost}:${o.dbport}/${o.database}`, P.defaultDatabaseConnectionString = `postgresql://${o.dbuser}:${o.dbpassword}@${o.dbhost}:${o.dbport}/postgres`;
|
|
1342
1233
|
}
|
|
1343
1234
|
return P;
|
|
1344
1235
|
}
|
|
1345
|
-
async function
|
|
1346
|
-
return new Promise((e) => setTimeout(e,
|
|
1236
|
+
async function Ke(o = 1e3) {
|
|
1237
|
+
return new Promise((e) => setTimeout(e, o));
|
|
1347
1238
|
}
|
|
1348
|
-
let
|
|
1349
|
-
function
|
|
1350
|
-
|
|
1239
|
+
let y = null;
|
|
1240
|
+
function De() {
|
|
1241
|
+
const o = process.env.STSENVFILE === void 0 ? "/.env" : process.env.STSENVFILE;
|
|
1242
|
+
return Y.config({ path: o }), {
|
|
1351
1243
|
// Node runtime environment
|
|
1352
1244
|
isProduction: process.env.NODE_ENV === void 0 ? !1 : process.env.NODE_ENV === "production",
|
|
1353
1245
|
isTest: process.env.NODE_ENV === void 0 ? !1 : process.env.NODE_ENV === "test",
|
|
@@ -1519,11 +1411,11 @@ function is() {
|
|
|
1519
1411
|
jwksAuthConfigTimeout: process.env.JWKS_AUTH_CONFIG_TIMEOUT === void 0 ? 3e4 : parseInt(process.env.JWKS_AUTH_CONFIG_TIMEOUT)
|
|
1520
1412
|
};
|
|
1521
1413
|
}
|
|
1522
|
-
function
|
|
1523
|
-
return
|
|
1414
|
+
function He() {
|
|
1415
|
+
return y === null && (y = De()), y;
|
|
1524
1416
|
}
|
|
1525
1417
|
export {
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1418
|
+
Ue as $Options,
|
|
1419
|
+
He as $Options2,
|
|
1420
|
+
Ke as Sleep2
|
|
1529
1421
|
};
|