@jsfsi-core/ts-nestjs 1.1.44 → 1.1.45
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/index.cjs +10 -10
- package/dist/index.mjs +288 -285
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -79,89 +79,89 @@ function yg() {
|
|
|
79
79
|
} : function() {
|
|
80
80
|
return yr({});
|
|
81
81
|
},
|
|
82
|
-
has: p ? function(
|
|
83
|
-
return a.call(
|
|
84
|
-
} : function(
|
|
85
|
-
return G in
|
|
82
|
+
has: p ? function(V, G) {
|
|
83
|
+
return a.call(V, G);
|
|
84
|
+
} : function(V, G) {
|
|
85
|
+
return G in V;
|
|
86
86
|
},
|
|
87
|
-
get: p ? function(
|
|
88
|
-
return a.call(
|
|
89
|
-
} : function(
|
|
90
|
-
return
|
|
87
|
+
get: p ? function(V, G) {
|
|
88
|
+
return a.call(V, G) ? V[G] : void 0;
|
|
89
|
+
} : function(V, G) {
|
|
90
|
+
return V[G];
|
|
91
91
|
}
|
|
92
92
|
}, d = Object.getPrototypeOf(Function), f = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Ke(), h = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : wi(), m = typeof WeakMap == "function" ? WeakMap : Si(), v = i ? /* @__PURE__ */ Symbol.for("@reflect-metadata:registry") : void 0, _ = _e(), g = Fe(_);
|
|
93
|
-
function y(
|
|
93
|
+
function y(V, G, K, ne) {
|
|
94
94
|
if (N(K)) {
|
|
95
|
-
if (!I(
|
|
95
|
+
if (!I(V))
|
|
96
96
|
throw new TypeError();
|
|
97
97
|
if (!ee(G))
|
|
98
98
|
throw new TypeError();
|
|
99
|
-
return q(
|
|
99
|
+
return q(V, G);
|
|
100
100
|
} else {
|
|
101
|
-
if (!I(
|
|
101
|
+
if (!I(V))
|
|
102
102
|
throw new TypeError();
|
|
103
103
|
if (!M(G))
|
|
104
104
|
throw new TypeError();
|
|
105
105
|
if (!M(ne) && !N(ne) && !L(ne))
|
|
106
106
|
throw new TypeError();
|
|
107
|
-
return L(ne) && (ne = void 0), K = R(K), D(
|
|
107
|
+
return L(ne) && (ne = void 0), K = R(K), D(V, G, K, ne);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
r("decorate", y);
|
|
111
|
-
function b(
|
|
111
|
+
function b(V, G) {
|
|
112
112
|
function K(ne, he) {
|
|
113
113
|
if (!M(ne))
|
|
114
114
|
throw new TypeError();
|
|
115
115
|
if (!N(he) && !se(he))
|
|
116
116
|
throw new TypeError();
|
|
117
|
-
Q(
|
|
117
|
+
Q(V, G, ne, he);
|
|
118
118
|
}
|
|
119
119
|
return K;
|
|
120
120
|
}
|
|
121
121
|
r("metadata", b);
|
|
122
|
-
function E(
|
|
122
|
+
function E(V, G, K, ne) {
|
|
123
123
|
if (!M(K))
|
|
124
124
|
throw new TypeError();
|
|
125
|
-
return N(ne) || (ne = R(ne)), Q(
|
|
125
|
+
return N(ne) || (ne = R(ne)), Q(V, G, K, ne);
|
|
126
126
|
}
|
|
127
127
|
r("defineMetadata", E);
|
|
128
|
-
function x(
|
|
128
|
+
function x(V, G, K) {
|
|
129
129
|
if (!M(G))
|
|
130
130
|
throw new TypeError();
|
|
131
|
-
return N(K) || (K = R(K)), V
|
|
131
|
+
return N(K) || (K = R(K)), H(V, G, K);
|
|
132
132
|
}
|
|
133
133
|
r("hasMetadata", x);
|
|
134
|
-
function O(
|
|
134
|
+
function O(V, G, K) {
|
|
135
135
|
if (!M(G))
|
|
136
136
|
throw new TypeError();
|
|
137
|
-
return N(K) || (K = R(K)), k(
|
|
137
|
+
return N(K) || (K = R(K)), k(V, G, K);
|
|
138
138
|
}
|
|
139
139
|
r("hasOwnMetadata", O);
|
|
140
|
-
function S(
|
|
140
|
+
function S(V, G, K) {
|
|
141
141
|
if (!M(G))
|
|
142
142
|
throw new TypeError();
|
|
143
|
-
return N(K) || (K = R(K)), F(
|
|
143
|
+
return N(K) || (K = R(K)), F(V, G, K);
|
|
144
144
|
}
|
|
145
145
|
r("getMetadata", S);
|
|
146
|
-
function w(
|
|
146
|
+
function w(V, G, K) {
|
|
147
147
|
if (!M(G))
|
|
148
148
|
throw new TypeError();
|
|
149
|
-
return N(K) || (K = R(K)), Z(
|
|
149
|
+
return N(K) || (K = R(K)), Z(V, G, K);
|
|
150
150
|
}
|
|
151
151
|
r("getOwnMetadata", w);
|
|
152
|
-
function A(
|
|
153
|
-
if (!M(
|
|
152
|
+
function A(V, G) {
|
|
153
|
+
if (!M(V))
|
|
154
154
|
throw new TypeError();
|
|
155
|
-
return N(G) || (G = R(G)), U(
|
|
155
|
+
return N(G) || (G = R(G)), U(V, G);
|
|
156
156
|
}
|
|
157
157
|
r("getMetadataKeys", A);
|
|
158
|
-
function T(
|
|
159
|
-
if (!M(
|
|
158
|
+
function T(V, G) {
|
|
159
|
+
if (!M(V))
|
|
160
160
|
throw new TypeError();
|
|
161
|
-
return N(G) || (G = R(G)), $(
|
|
161
|
+
return N(G) || (G = R(G)), $(V, G);
|
|
162
162
|
}
|
|
163
163
|
r("getOwnMetadataKeys", T);
|
|
164
|
-
function P(
|
|
164
|
+
function P(V, G, K) {
|
|
165
165
|
if (!M(G))
|
|
166
166
|
throw new TypeError();
|
|
167
167
|
if (N(K) || (K = R(K)), !M(G))
|
|
@@ -173,12 +173,12 @@ function yg() {
|
|
|
173
173
|
/*Create*/
|
|
174
174
|
!1
|
|
175
175
|
);
|
|
176
|
-
return N(ne) ? !1 : ne.OrdinaryDeleteMetadata(
|
|
176
|
+
return N(ne) ? !1 : ne.OrdinaryDeleteMetadata(V, G, K);
|
|
177
177
|
}
|
|
178
178
|
r("deleteMetadata", P);
|
|
179
|
-
function q(
|
|
180
|
-
for (var K =
|
|
181
|
-
var ne =
|
|
179
|
+
function q(V, G) {
|
|
180
|
+
for (var K = V.length - 1; K >= 0; --K) {
|
|
181
|
+
var ne = V[K], he = ne(G);
|
|
182
182
|
if (!N(he) && !L(he)) {
|
|
183
183
|
if (!ee(he))
|
|
184
184
|
throw new TypeError();
|
|
@@ -187,9 +187,9 @@ function yg() {
|
|
|
187
187
|
}
|
|
188
188
|
return G;
|
|
189
189
|
}
|
|
190
|
-
function D(
|
|
191
|
-
for (var he =
|
|
192
|
-
var Ge =
|
|
190
|
+
function D(V, G, K, ne) {
|
|
191
|
+
for (var he = V.length - 1; he >= 0; --he) {
|
|
192
|
+
var Ge = V[he], Be = Ge(G, K, ne);
|
|
193
193
|
if (!N(Be) && !L(Be)) {
|
|
194
194
|
if (!M(Be))
|
|
195
195
|
throw new TypeError();
|
|
@@ -198,31 +198,31 @@ function yg() {
|
|
|
198
198
|
}
|
|
199
199
|
return ne;
|
|
200
200
|
}
|
|
201
|
-
function V
|
|
202
|
-
var ne = k(
|
|
201
|
+
function H(V, G, K) {
|
|
202
|
+
var ne = k(V, G, K);
|
|
203
203
|
if (ne)
|
|
204
204
|
return !0;
|
|
205
205
|
var he = xe(G);
|
|
206
|
-
return L(he) ? !1 : V
|
|
206
|
+
return L(he) ? !1 : H(V, he, K);
|
|
207
207
|
}
|
|
208
|
-
function k(
|
|
208
|
+
function k(V, G, K) {
|
|
209
209
|
var ne = be(
|
|
210
210
|
G,
|
|
211
211
|
K,
|
|
212
212
|
/*Create*/
|
|
213
213
|
!1
|
|
214
214
|
);
|
|
215
|
-
return N(ne) ? !1 : X(ne.OrdinaryHasOwnMetadata(
|
|
215
|
+
return N(ne) ? !1 : X(ne.OrdinaryHasOwnMetadata(V, G, K));
|
|
216
216
|
}
|
|
217
|
-
function F(
|
|
218
|
-
var ne = k(
|
|
217
|
+
function F(V, G, K) {
|
|
218
|
+
var ne = k(V, G, K);
|
|
219
219
|
if (ne)
|
|
220
|
-
return Z(
|
|
220
|
+
return Z(V, G, K);
|
|
221
221
|
var he = xe(G);
|
|
222
222
|
if (!L(he))
|
|
223
|
-
return F(
|
|
223
|
+
return F(V, he, K);
|
|
224
224
|
}
|
|
225
|
-
function Z(
|
|
225
|
+
function Z(V, G, K) {
|
|
226
226
|
var ne = be(
|
|
227
227
|
G,
|
|
228
228
|
K,
|
|
@@ -230,19 +230,19 @@ function yg() {
|
|
|
230
230
|
!1
|
|
231
231
|
);
|
|
232
232
|
if (!N(ne))
|
|
233
|
-
return ne.OrdinaryGetOwnMetadata(
|
|
233
|
+
return ne.OrdinaryGetOwnMetadata(V, G, K);
|
|
234
234
|
}
|
|
235
|
-
function Q(
|
|
235
|
+
function Q(V, G, K, ne) {
|
|
236
236
|
var he = be(
|
|
237
237
|
K,
|
|
238
238
|
ne,
|
|
239
239
|
/*Create*/
|
|
240
240
|
!0
|
|
241
241
|
);
|
|
242
|
-
he.OrdinaryDefineOwnMetadata(
|
|
242
|
+
he.OrdinaryDefineOwnMetadata(V, G, K, ne);
|
|
243
243
|
}
|
|
244
|
-
function U(
|
|
245
|
-
var K = $(
|
|
244
|
+
function U(V, G) {
|
|
245
|
+
var K = $(V, G), ne = xe(V);
|
|
246
246
|
if (ne === null)
|
|
247
247
|
return K;
|
|
248
248
|
var he = U(ne, G);
|
|
@@ -260,19 +260,19 @@ function yg() {
|
|
|
260
260
|
}
|
|
261
261
|
return Be;
|
|
262
262
|
}
|
|
263
|
-
function $(
|
|
263
|
+
function $(V, G) {
|
|
264
264
|
var K = be(
|
|
265
|
-
|
|
265
|
+
V,
|
|
266
266
|
G,
|
|
267
267
|
/*create*/
|
|
268
268
|
!1
|
|
269
269
|
);
|
|
270
|
-
return K ? K.OrdinaryOwnMetadataKeys(
|
|
270
|
+
return K ? K.OrdinaryOwnMetadataKeys(V, G) : [];
|
|
271
271
|
}
|
|
272
|
-
function C(
|
|
273
|
-
if (
|
|
272
|
+
function C(V) {
|
|
273
|
+
if (V === null)
|
|
274
274
|
return 1;
|
|
275
|
-
switch (typeof
|
|
275
|
+
switch (typeof V) {
|
|
276
276
|
case "undefined":
|
|
277
277
|
return 0;
|
|
278
278
|
case "boolean":
|
|
@@ -284,86 +284,86 @@ function yg() {
|
|
|
284
284
|
case "number":
|
|
285
285
|
return 5;
|
|
286
286
|
case "object":
|
|
287
|
-
return
|
|
287
|
+
return V === null ? 1 : 6;
|
|
288
288
|
default:
|
|
289
289
|
return 6;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
function N(
|
|
293
|
-
return
|
|
292
|
+
function N(V) {
|
|
293
|
+
return V === void 0;
|
|
294
294
|
}
|
|
295
|
-
function L(
|
|
296
|
-
return
|
|
295
|
+
function L(V) {
|
|
296
|
+
return V === null;
|
|
297
297
|
}
|
|
298
|
-
function B(
|
|
299
|
-
return typeof
|
|
298
|
+
function B(V) {
|
|
299
|
+
return typeof V == "symbol";
|
|
300
300
|
}
|
|
301
|
-
function M(
|
|
302
|
-
return typeof
|
|
301
|
+
function M(V) {
|
|
302
|
+
return typeof V == "object" ? V !== null : typeof V == "function";
|
|
303
303
|
}
|
|
304
|
-
function j(
|
|
305
|
-
switch (C(
|
|
304
|
+
function j(V, G) {
|
|
305
|
+
switch (C(V)) {
|
|
306
306
|
case 0:
|
|
307
|
-
return
|
|
307
|
+
return V;
|
|
308
308
|
case 1:
|
|
309
|
-
return
|
|
309
|
+
return V;
|
|
310
310
|
case 2:
|
|
311
|
-
return
|
|
311
|
+
return V;
|
|
312
312
|
case 3:
|
|
313
|
-
return
|
|
313
|
+
return V;
|
|
314
314
|
case 4:
|
|
315
|
-
return
|
|
315
|
+
return V;
|
|
316
316
|
case 5:
|
|
317
|
-
return
|
|
317
|
+
return V;
|
|
318
318
|
}
|
|
319
|
-
var K = "string", ne = de(
|
|
319
|
+
var K = "string", ne = de(V, s);
|
|
320
320
|
if (ne !== void 0) {
|
|
321
|
-
var he = ne.call(
|
|
321
|
+
var he = ne.call(V, K);
|
|
322
322
|
if (M(he))
|
|
323
323
|
throw new TypeError();
|
|
324
324
|
return he;
|
|
325
325
|
}
|
|
326
|
-
return z(
|
|
326
|
+
return z(V);
|
|
327
327
|
}
|
|
328
|
-
function z(
|
|
328
|
+
function z(V, G) {
|
|
329
329
|
var K, ne;
|
|
330
330
|
{
|
|
331
|
-
var he =
|
|
331
|
+
var he = V.toString;
|
|
332
332
|
if (W(he)) {
|
|
333
|
-
var ne = he.call(
|
|
333
|
+
var ne = he.call(V);
|
|
334
334
|
if (!M(ne))
|
|
335
335
|
return ne;
|
|
336
336
|
}
|
|
337
|
-
var K =
|
|
337
|
+
var K = V.valueOf;
|
|
338
338
|
if (W(K)) {
|
|
339
|
-
var ne = K.call(
|
|
339
|
+
var ne = K.call(V);
|
|
340
340
|
if (!M(ne))
|
|
341
341
|
return ne;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
throw new TypeError();
|
|
345
345
|
}
|
|
346
|
-
function X(
|
|
347
|
-
return !!
|
|
346
|
+
function X(V) {
|
|
347
|
+
return !!V;
|
|
348
348
|
}
|
|
349
|
-
function te(
|
|
350
|
-
return "" +
|
|
349
|
+
function te(V) {
|
|
350
|
+
return "" + V;
|
|
351
351
|
}
|
|
352
|
-
function R(
|
|
353
|
-
var G = j(
|
|
352
|
+
function R(V) {
|
|
353
|
+
var G = j(V);
|
|
354
354
|
return B(G) ? G : te(G);
|
|
355
355
|
}
|
|
356
|
-
function I(
|
|
357
|
-
return Array.isArray ? Array.isArray(
|
|
356
|
+
function I(V) {
|
|
357
|
+
return Array.isArray ? Array.isArray(V) : V instanceof Object ? V instanceof Array : Object.prototype.toString.call(V) === "[object Array]";
|
|
358
358
|
}
|
|
359
|
-
function W(
|
|
360
|
-
return typeof
|
|
359
|
+
function W(V) {
|
|
360
|
+
return typeof V == "function";
|
|
361
361
|
}
|
|
362
|
-
function ee(
|
|
363
|
-
return typeof
|
|
362
|
+
function ee(V) {
|
|
363
|
+
return typeof V == "function";
|
|
364
364
|
}
|
|
365
|
-
function se(
|
|
366
|
-
switch (C(
|
|
365
|
+
function se(V) {
|
|
366
|
+
switch (C(V)) {
|
|
367
367
|
case 3:
|
|
368
368
|
return !0;
|
|
369
369
|
case 4:
|
|
@@ -372,50 +372,50 @@ function yg() {
|
|
|
372
372
|
return !1;
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
function re(
|
|
376
|
-
return
|
|
375
|
+
function re(V, G) {
|
|
376
|
+
return V === G || V !== V && G !== G;
|
|
377
377
|
}
|
|
378
|
-
function de(
|
|
379
|
-
var K =
|
|
378
|
+
function de(V, G) {
|
|
379
|
+
var K = V[G];
|
|
380
380
|
if (K != null) {
|
|
381
381
|
if (!W(K))
|
|
382
382
|
throw new TypeError();
|
|
383
383
|
return K;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function ge(
|
|
387
|
-
var G = de(
|
|
386
|
+
function ge(V) {
|
|
387
|
+
var G = de(V, o);
|
|
388
388
|
if (!W(G))
|
|
389
389
|
throw new TypeError();
|
|
390
|
-
var K = G.call(
|
|
390
|
+
var K = G.call(V);
|
|
391
391
|
if (!M(K))
|
|
392
392
|
throw new TypeError();
|
|
393
393
|
return K;
|
|
394
394
|
}
|
|
395
|
-
function Ee(
|
|
396
|
-
return
|
|
395
|
+
function Ee(V) {
|
|
396
|
+
return V.value;
|
|
397
397
|
}
|
|
398
|
-
function Pe(
|
|
399
|
-
var G =
|
|
398
|
+
function Pe(V) {
|
|
399
|
+
var G = V.next();
|
|
400
400
|
return G.done ? !1 : G;
|
|
401
401
|
}
|
|
402
|
-
function Me(
|
|
403
|
-
var G =
|
|
404
|
-
G && G.call(
|
|
402
|
+
function Me(V) {
|
|
403
|
+
var G = V.return;
|
|
404
|
+
G && G.call(V);
|
|
405
405
|
}
|
|
406
|
-
function xe(
|
|
407
|
-
var G = Object.getPrototypeOf(
|
|
408
|
-
if (typeof
|
|
406
|
+
function xe(V) {
|
|
407
|
+
var G = Object.getPrototypeOf(V);
|
|
408
|
+
if (typeof V != "function" || V === d || G !== d)
|
|
409
409
|
return G;
|
|
410
|
-
var K =
|
|
410
|
+
var K = V.prototype, ne = K && Object.getPrototypeOf(K);
|
|
411
411
|
if (ne == null || ne === Object.prototype)
|
|
412
412
|
return G;
|
|
413
413
|
var he = ne.constructor;
|
|
414
|
-
return typeof he != "function" || he ===
|
|
414
|
+
return typeof he != "function" || he === V ? G : he;
|
|
415
415
|
}
|
|
416
416
|
function Ae() {
|
|
417
|
-
var
|
|
418
|
-
!N(v) && typeof n.Reflect < "u" && !(v in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (
|
|
417
|
+
var V;
|
|
418
|
+
!N(v) && typeof n.Reflect < "u" && !(v in n.Reflect) && typeof n.Reflect.defineMetadata == "function" && (V = Qe(n.Reflect));
|
|
419
419
|
var G, K, ne, he = new m(), Ge = {
|
|
420
420
|
registerProvider: Be,
|
|
421
421
|
getProvider: ae,
|
|
@@ -426,7 +426,7 @@ function yg() {
|
|
|
426
426
|
if (!Object.isExtensible(Ge))
|
|
427
427
|
throw new Error("Cannot add provider to a frozen registry.");
|
|
428
428
|
switch (!0) {
|
|
429
|
-
case
|
|
429
|
+
case V === pe:
|
|
430
430
|
break;
|
|
431
431
|
case N(G):
|
|
432
432
|
G = pe;
|
|
@@ -461,8 +461,8 @@ function yg() {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
if (!N(
|
|
465
|
-
return
|
|
464
|
+
if (!N(V) && V.isProviderFor(pe, Te))
|
|
465
|
+
return V;
|
|
466
466
|
}
|
|
467
467
|
function ae(pe, Te) {
|
|
468
468
|
var Ie = he.get(pe), De;
|
|
@@ -487,15 +487,15 @@ function yg() {
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
function _e() {
|
|
490
|
-
var
|
|
491
|
-
return !N(v) && M(n.Reflect) && Object.isExtensible(n.Reflect) && (
|
|
490
|
+
var V;
|
|
491
|
+
return !N(v) && M(n.Reflect) && Object.isExtensible(n.Reflect) && (V = n.Reflect[v]), N(V) && (V = Ae()), !N(v) && M(n.Reflect) && Object.isExtensible(n.Reflect) && Object.defineProperty(n.Reflect, v, {
|
|
492
492
|
enumerable: !1,
|
|
493
493
|
configurable: !1,
|
|
494
494
|
writable: !1,
|
|
495
|
-
value:
|
|
496
|
-
}),
|
|
495
|
+
value: V
|
|
496
|
+
}), V;
|
|
497
497
|
}
|
|
498
|
-
function Fe(
|
|
498
|
+
function Fe(V) {
|
|
499
499
|
var G = new m(), K = {
|
|
500
500
|
isProviderFor: function(ce, le) {
|
|
501
501
|
var pe = G.get(ce);
|
|
@@ -519,7 +519,7 @@ function yg() {
|
|
|
519
519
|
if (N(De)) {
|
|
520
520
|
if (!pe)
|
|
521
521
|
return;
|
|
522
|
-
if (De = new f(), Te.set(le, De), !
|
|
522
|
+
if (De = new f(), Te.set(le, De), !V.setProvider(ce, le, K))
|
|
523
523
|
throw Te.delete(le), Ie && G.delete(ce), new Error("Wrong provider for target.");
|
|
524
524
|
}
|
|
525
525
|
return De;
|
|
@@ -594,8 +594,8 @@ function yg() {
|
|
|
594
594
|
return !0;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
function Qe(
|
|
598
|
-
var G =
|
|
597
|
+
function Qe(V) {
|
|
598
|
+
var G = V.defineMetadata, K = V.hasOwnMetadata, ne = V.getOwnMetadata, he = V.getOwnMetadataKeys, Ge = V.deleteMetadata, Be = new m(), we = {
|
|
599
599
|
isProviderFor: function(ae, ce) {
|
|
600
600
|
var le = Be.get(ae);
|
|
601
601
|
return !N(le) && le.has(ce) ? !0 : he(ae, ce).length ? (N(le) && (le = new h(), Be.set(ae, le)), le.add(ce), !0) : !1;
|
|
@@ -608,18 +608,18 @@ function yg() {
|
|
|
608
608
|
};
|
|
609
609
|
return we;
|
|
610
610
|
}
|
|
611
|
-
function be(
|
|
612
|
-
var ne = _.getProvider(
|
|
611
|
+
function be(V, G, K) {
|
|
612
|
+
var ne = _.getProvider(V, G);
|
|
613
613
|
if (!N(ne))
|
|
614
614
|
return ne;
|
|
615
615
|
if (K) {
|
|
616
|
-
if (_.setProvider(
|
|
616
|
+
if (_.setProvider(V, G, g))
|
|
617
617
|
return g;
|
|
618
618
|
throw new Error("Illegal state.");
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
function Ke() {
|
|
622
|
-
var
|
|
622
|
+
var V = {}, G = [], K = (
|
|
623
623
|
/** @class */
|
|
624
624
|
(function() {
|
|
625
625
|
function we(ae, ce, le) {
|
|
@@ -646,7 +646,7 @@ function yg() {
|
|
|
646
646
|
/** @class */
|
|
647
647
|
(function() {
|
|
648
648
|
function we() {
|
|
649
|
-
this._keys = [], this._values = [], this._cacheKey =
|
|
649
|
+
this._keys = [], this._values = [], this._cacheKey = V, this._cacheIndex = -2;
|
|
650
650
|
}
|
|
651
651
|
return Object.defineProperty(we.prototype, "size", {
|
|
652
652
|
get: function() {
|
|
@@ -683,11 +683,11 @@ function yg() {
|
|
|
683
683
|
if (ce >= 0) {
|
|
684
684
|
for (var le = this._keys.length, pe = ce + 1; pe < le; pe++)
|
|
685
685
|
this._keys[pe - 1] = this._keys[pe], this._values[pe - 1] = this._values[pe];
|
|
686
|
-
return this._keys.length--, this._values.length--, re(ae, this._cacheKey) && (this._cacheKey =
|
|
686
|
+
return this._keys.length--, this._values.length--, re(ae, this._cacheKey) && (this._cacheKey = V, this._cacheIndex = -2), !0;
|
|
687
687
|
}
|
|
688
688
|
return !1;
|
|
689
689
|
}, we.prototype.clear = function() {
|
|
690
|
-
this._keys.length = 0, this._values.length = 0, this._cacheKey =
|
|
690
|
+
this._keys.length = 0, this._values.length = 0, this._cacheKey = V, this._cacheIndex = -2;
|
|
691
691
|
}, we.prototype.keys = function() {
|
|
692
692
|
return new K(this._keys, this._values, he);
|
|
693
693
|
}, we.prototype.values = function() {
|
|
@@ -723,7 +723,7 @@ function yg() {
|
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
725
|
function wi() {
|
|
726
|
-
var
|
|
726
|
+
var V = (
|
|
727
727
|
/** @class */
|
|
728
728
|
(function() {
|
|
729
729
|
function G() {
|
|
@@ -756,10 +756,10 @@ function yg() {
|
|
|
756
756
|
}, G;
|
|
757
757
|
})()
|
|
758
758
|
);
|
|
759
|
-
return
|
|
759
|
+
return V;
|
|
760
760
|
}
|
|
761
761
|
function Si() {
|
|
762
|
-
var
|
|
762
|
+
var V = 16, G = l.create(), K = ne();
|
|
763
763
|
return (
|
|
764
764
|
/** @class */
|
|
765
765
|
(function() {
|
|
@@ -827,17 +827,17 @@ function yg() {
|
|
|
827
827
|
return Ge(new Array(ae), ae);
|
|
828
828
|
}
|
|
829
829
|
function we() {
|
|
830
|
-
var ae = Be(
|
|
830
|
+
var ae = Be(V);
|
|
831
831
|
ae[6] = ae[6] & 79 | 64, ae[8] = ae[8] & 191 | 128;
|
|
832
|
-
for (var ce = "", le = 0; le <
|
|
832
|
+
for (var ce = "", le = 0; le < V; ++le) {
|
|
833
833
|
var pe = ae[le];
|
|
834
834
|
(le === 4 || le === 6 || le === 8) && (ce += "-"), pe < 16 && (ce += "0"), ce += pe.toString(16).toLowerCase();
|
|
835
835
|
}
|
|
836
836
|
return ce;
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
|
-
function yr(
|
|
840
|
-
return
|
|
839
|
+
function yr(V) {
|
|
840
|
+
return V.__ = void 0, delete V.__, V;
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
})(e || (e = {})), Hy;
|
|
@@ -887,11 +887,11 @@ function Hk() {
|
|
|
887
887
|
let q;
|
|
888
888
|
for (; (q = p.exec(P)) != null; ) {
|
|
889
889
|
const D = q[1];
|
|
890
|
-
let
|
|
891
|
-
|
|
892
|
-
const k =
|
|
893
|
-
|
|
894
|
-
`),
|
|
890
|
+
let H = q[2] || "";
|
|
891
|
+
H = H.trim();
|
|
892
|
+
const k = H[0];
|
|
893
|
+
H = H.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"), k === '"' && (H = H.replace(/\\n/g, `
|
|
894
|
+
`), H = H.replace(/\\r/g, "\r")), T[D] = H;
|
|
895
895
|
}
|
|
896
896
|
return T;
|
|
897
897
|
}
|
|
@@ -905,17 +905,17 @@ function Hk() {
|
|
|
905
905
|
throw k.code = "MISSING_DATA", k;
|
|
906
906
|
}
|
|
907
907
|
const q = v(A).split(","), D = q.length;
|
|
908
|
-
let
|
|
908
|
+
let H;
|
|
909
909
|
for (let k = 0; k < D; k++)
|
|
910
910
|
try {
|
|
911
911
|
const F = q[k].trim(), Z = _(P, F);
|
|
912
|
-
|
|
912
|
+
H = w.decrypt(Z.ciphertext, Z.key);
|
|
913
913
|
break;
|
|
914
914
|
} catch (F) {
|
|
915
915
|
if (k + 1 >= D)
|
|
916
916
|
throw F;
|
|
917
917
|
}
|
|
918
|
-
return w.parse(
|
|
918
|
+
return w.parse(H);
|
|
919
919
|
}
|
|
920
920
|
function f(A) {
|
|
921
921
|
console.error(`[dotenv@${a}][WARN] ${A}`);
|
|
@@ -950,9 +950,9 @@ function Hk() {
|
|
|
950
950
|
const F = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
951
951
|
throw F.code = "INVALID_DOTENV_KEY", F;
|
|
952
952
|
}
|
|
953
|
-
const
|
|
953
|
+
const H = `DOTENV_VAULT_${D.toUpperCase()}`, k = A.parsed[H];
|
|
954
954
|
if (!k) {
|
|
955
|
-
const F = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${
|
|
955
|
+
const F = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${H} in your .env.vault file.`);
|
|
956
956
|
throw F.code = "NOT_FOUND_DOTENV_ENVIRONMENT", F;
|
|
957
957
|
}
|
|
958
958
|
return { ciphertext: k, key: q };
|
|
@@ -983,7 +983,7 @@ function Hk() {
|
|
|
983
983
|
const T = t.resolve(process.cwd(), ".env");
|
|
984
984
|
let P = "utf8", q = process.env;
|
|
985
985
|
A && A.processEnv != null && (q = A.processEnv);
|
|
986
|
-
let D = o(q.DOTENV_CONFIG_DEBUG || A && A.debug),
|
|
986
|
+
let D = o(q.DOTENV_CONFIG_DEBUG || A && A.debug), H = o(q.DOTENV_CONFIG_QUIET || A && A.quiet);
|
|
987
987
|
A && A.encoding ? P = A.encoding : D && h("No encoding is specified. UTF-8 is used by default");
|
|
988
988
|
let k = [T];
|
|
989
989
|
if (A && A.path)
|
|
@@ -1004,7 +1004,7 @@ function Hk() {
|
|
|
1004
1004
|
D && h(`Failed to load ${U} ${$.message}`), F = $;
|
|
1005
1005
|
}
|
|
1006
1006
|
const Q = w.populate(q, Z, A);
|
|
1007
|
-
if (D = o(q.DOTENV_CONFIG_DEBUG || D),
|
|
1007
|
+
if (D = o(q.DOTENV_CONFIG_DEBUG || D), H = o(q.DOTENV_CONFIG_QUIET || H), D || !H) {
|
|
1008
1008
|
const U = Object.keys(Q).length, $ = [];
|
|
1009
1009
|
for (const C of k)
|
|
1010
1010
|
try {
|
|
@@ -1026,11 +1026,11 @@ function Hk() {
|
|
|
1026
1026
|
function O(A, T) {
|
|
1027
1027
|
const P = Buffer.from(T.slice(-64), "hex");
|
|
1028
1028
|
let q = Buffer.from(A, "base64");
|
|
1029
|
-
const D = q.subarray(0, 12),
|
|
1029
|
+
const D = q.subarray(0, 12), H = q.subarray(-16);
|
|
1030
1030
|
q = q.subarray(12, -16);
|
|
1031
1031
|
try {
|
|
1032
1032
|
const k = n.createDecipheriv("aes-256-gcm", P, D);
|
|
1033
|
-
return k.setAuthTag(
|
|
1033
|
+
return k.setAuthTag(H), `${k.update(q)}${k.final()}`;
|
|
1034
1034
|
} catch (k) {
|
|
1035
1035
|
const F = k instanceof RangeError, Z = k.message === "Invalid key length", Q = k.message === "Unsupported state or unable to authenticate data";
|
|
1036
1036
|
if (F || Z) {
|
|
@@ -1044,14 +1044,14 @@ function Hk() {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
}
|
|
1046
1046
|
function S(A, T, P = {}) {
|
|
1047
|
-
const q = !!(P && P.debug), D = !!(P && P.override),
|
|
1047
|
+
const q = !!(P && P.debug), D = !!(P && P.override), H = {};
|
|
1048
1048
|
if (typeof T != "object") {
|
|
1049
1049
|
const k = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
1050
1050
|
throw k.code = "OBJECT_REQUIRED", k;
|
|
1051
1051
|
}
|
|
1052
1052
|
for (const k of Object.keys(T))
|
|
1053
|
-
Object.prototype.hasOwnProperty.call(A, k) ? (D === !0 && (A[k] = T[k],
|
|
1054
|
-
return
|
|
1053
|
+
Object.prototype.hasOwnProperty.call(A, k) ? (D === !0 && (A[k] = T[k], H[k] = T[k]), q && h(D === !0 ? `"${k}" is already defined and WAS overwritten` : `"${k}" is already defined and was NOT overwritten`)) : (A[k] = T[k], H[k] = T[k]);
|
|
1054
|
+
return H;
|
|
1055
1055
|
}
|
|
1056
1056
|
const w = {
|
|
1057
1057
|
configDotenv: E,
|
|
@@ -1208,7 +1208,7 @@ Kk();
|
|
|
1208
1208
|
var Pf = {}, Er = {}, Ai = {}, Af = {}, Rf = { exports: {} }, Zy;
|
|
1209
1209
|
function oe() {
|
|
1210
1210
|
return Zy || (Zy = 1, (function(e) {
|
|
1211
|
-
var t, r, n, a, i, s, o, c, u, p, l, d, f, h, m, v, _, g, y, b, E, x, O, S, w, A, T, P, q, D,
|
|
1211
|
+
var t, r, n, a, i, s, o, c, u, p, l, d, f, h, m, v, _, g, y, b, E, x, O, S, w, A, T, P, q, D, H, k;
|
|
1212
1212
|
(function(F) {
|
|
1213
1213
|
var Z = typeof vt == "object" ? vt : typeof self == "object" ? self : typeof this == "object" ? this : {};
|
|
1214
1214
|
F(Q(Z, Q(e.exports)));
|
|
@@ -1547,7 +1547,7 @@ function oe() {
|
|
|
1547
1547
|
var B = new Error(L);
|
|
1548
1548
|
return B.name = "SuppressedError", B.error = C, B.suppressed = N, B;
|
|
1549
1549
|
};
|
|
1550
|
-
|
|
1550
|
+
H = function(C) {
|
|
1551
1551
|
function N(j) {
|
|
1552
1552
|
C.error = C.hasError ? new $(j, C.error, "An error was suppressed during disposal.") : j, C.hasError = !0;
|
|
1553
1553
|
}
|
|
@@ -1573,7 +1573,7 @@ function oe() {
|
|
|
1573
1573
|
return typeof C == "string" && /^\.\.?\//.test(C) ? C.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(L, B, M, j, z) {
|
|
1574
1574
|
return B ? N ? ".jsx" : ".js" : M && (!j || !z) ? L : M + j + "." + z.toLowerCase() + "js";
|
|
1575
1575
|
}) : C;
|
|
1576
|
-
}, F("__extends", t), F("__assign", r), F("__rest", n), F("__decorate", a), F("__param", i), F("__esDecorate", s), F("__runInitializers", o), F("__propKey", c), F("__setFunctionName", u), F("__metadata", p), F("__awaiter", l), F("__generator", d), F("__exportStar", f), F("__createBinding", q), F("__values", h), F("__read", m), F("__spread", v), F("__spreadArrays", _), F("__spreadArray", g), F("__await", y), F("__asyncGenerator", b), F("__asyncDelegator", E), F("__asyncValues", x), F("__makeTemplateObject", O), F("__importStar", S), F("__importDefault", w), F("__classPrivateFieldGet", A), F("__classPrivateFieldSet", T), F("__classPrivateFieldIn", P), F("__addDisposableResource", D), F("__disposeResources",
|
|
1576
|
+
}, F("__extends", t), F("__assign", r), F("__rest", n), F("__decorate", a), F("__param", i), F("__esDecorate", s), F("__runInitializers", o), F("__propKey", c), F("__setFunctionName", u), F("__metadata", p), F("__awaiter", l), F("__generator", d), F("__exportStar", f), F("__createBinding", q), F("__values", h), F("__read", m), F("__spread", v), F("__spreadArrays", _), F("__spreadArray", g), F("__await", y), F("__asyncGenerator", b), F("__asyncDelegator", E), F("__asyncValues", x), F("__makeTemplateObject", O), F("__importStar", S), F("__importDefault", w), F("__classPrivateFieldGet", A), F("__classPrivateFieldSet", T), F("__classPrivateFieldIn", P), F("__addDisposableResource", D), F("__disposeResources", H), F("__rewriteRelativeImportExtension", k);
|
|
1577
1577
|
});
|
|
1578
1578
|
})(Rf)), Rf.exports;
|
|
1579
1579
|
}
|
|
@@ -5897,7 +5897,7 @@ function Se() {
|
|
|
5897
5897
|
q(Z);
|
|
5898
5898
|
}
|
|
5899
5899
|
}
|
|
5900
|
-
function
|
|
5900
|
+
function H(F) {
|
|
5901
5901
|
try {
|
|
5902
5902
|
k(A.throw(F));
|
|
5903
5903
|
} catch (Z) {
|
|
@@ -5905,7 +5905,7 @@ function Se() {
|
|
|
5905
5905
|
}
|
|
5906
5906
|
}
|
|
5907
5907
|
function k(F) {
|
|
5908
|
-
F.done ? P(F.value) : T(F.value).then(D,
|
|
5908
|
+
F.done ? P(F.value) : T(F.value).then(D, H);
|
|
5909
5909
|
}
|
|
5910
5910
|
k((A = A.apply(O, S || [])).next());
|
|
5911
5911
|
});
|
|
@@ -5919,10 +5919,10 @@ function Se() {
|
|
|
5919
5919
|
}), q;
|
|
5920
5920
|
function D(k) {
|
|
5921
5921
|
return function(F) {
|
|
5922
|
-
return
|
|
5922
|
+
return H([k, F]);
|
|
5923
5923
|
};
|
|
5924
5924
|
}
|
|
5925
|
-
function
|
|
5925
|
+
function H(k) {
|
|
5926
5926
|
if (A) throw new TypeError("Generator is already executing.");
|
|
5927
5927
|
for (; w; ) try {
|
|
5928
5928
|
if (A = 1, T && (P = k[0] & 2 ? T.return : k[0] ? T.throw || ((P = T.return) && P.call(T), 0) : T.next) && !(P = P.call(T, k[1])).done) return P;
|
|
@@ -5976,13 +5976,13 @@ function Se() {
|
|
|
5976
5976
|
}, w);
|
|
5977
5977
|
function A(P) {
|
|
5978
5978
|
w[P] = O[P] && function(q) {
|
|
5979
|
-
return new Promise(function(D,
|
|
5980
|
-
q = O[P](q), T(D,
|
|
5979
|
+
return new Promise(function(D, H) {
|
|
5980
|
+
q = O[P](q), T(D, H, q.done, q.value);
|
|
5981
5981
|
});
|
|
5982
5982
|
};
|
|
5983
5983
|
}
|
|
5984
|
-
function T(P, q, D,
|
|
5985
|
-
Promise.resolve(
|
|
5984
|
+
function T(P, q, D, H) {
|
|
5985
|
+
Promise.resolve(H).then(function(k) {
|
|
5986
5986
|
P({ value: k, done: D });
|
|
5987
5987
|
}, q);
|
|
5988
5988
|
}
|
|
@@ -6083,27 +6083,27 @@ function Se() {
|
|
|
6083
6083
|
var w, A, T, P;
|
|
6084
6084
|
return e(this, void 0, void 0, function() {
|
|
6085
6085
|
var q, D;
|
|
6086
|
-
return t(this, function(
|
|
6087
|
-
switch (
|
|
6086
|
+
return t(this, function(H) {
|
|
6087
|
+
switch (H.label) {
|
|
6088
6088
|
case 0:
|
|
6089
|
-
|
|
6089
|
+
H.trys.push([0, 5, 6, 11]), w = r(O), H.label = 1;
|
|
6090
6090
|
case 1:
|
|
6091
6091
|
return [4, w.next()];
|
|
6092
6092
|
case 2:
|
|
6093
|
-
if (A =
|
|
6093
|
+
if (A = H.sent(), !!A.done) return [3, 4];
|
|
6094
6094
|
if (q = A.value, S.next(q), S.closed)
|
|
6095
6095
|
return [2];
|
|
6096
|
-
|
|
6096
|
+
H.label = 3;
|
|
6097
6097
|
case 3:
|
|
6098
6098
|
return [3, 1];
|
|
6099
6099
|
case 4:
|
|
6100
6100
|
return [3, 11];
|
|
6101
6101
|
case 5:
|
|
6102
|
-
return D =
|
|
6102
|
+
return D = H.sent(), T = { error: D }, [3, 11];
|
|
6103
6103
|
case 6:
|
|
6104
|
-
return
|
|
6104
|
+
return H.trys.push([6, , 9, 10]), A && !A.done && (P = w.return) ? [4, P.call(w)] : [3, 8];
|
|
6105
6105
|
case 7:
|
|
6106
|
-
|
|
6106
|
+
H.sent(), H.label = 8;
|
|
6107
6107
|
case 8:
|
|
6108
6108
|
return [3, 10];
|
|
6109
6109
|
case 9:
|
|
@@ -6660,8 +6660,8 @@ function FC() {
|
|
|
6660
6660
|
var w, A, T = y.slice();
|
|
6661
6661
|
try {
|
|
6662
6662
|
for (var P = e(T), q = P.next(); !q.done; q = P.next()) {
|
|
6663
|
-
var D = q.value,
|
|
6664
|
-
|
|
6663
|
+
var D = q.value, H = D.buffer;
|
|
6664
|
+
H.push(S), v <= H.length && E(D);
|
|
6665
6665
|
}
|
|
6666
6666
|
} catch (k) {
|
|
6667
6667
|
w = { error: k };
|
|
@@ -10199,9 +10199,9 @@ function ey() {
|
|
|
10199
10199
|
Object.defineProperty(e, "endWith", { enumerable: !0, get: function() {
|
|
10200
10200
|
return D.endWith;
|
|
10201
10201
|
} });
|
|
10202
|
-
var
|
|
10202
|
+
var H = /* @__PURE__ */ dj();
|
|
10203
10203
|
Object.defineProperty(e, "every", { enumerable: !0, get: function() {
|
|
10204
|
-
return
|
|
10204
|
+
return H.every;
|
|
10205
10205
|
} });
|
|
10206
10206
|
var k = /* @__PURE__ */ pj();
|
|
10207
10207
|
Object.defineProperty(e, "exhaust", { enumerable: !0, get: function() {
|
|
@@ -10347,9 +10347,9 @@ function ey() {
|
|
|
10347
10347
|
Object.defineProperty(e, "race", { enumerable: !0, get: function() {
|
|
10348
10348
|
return yr.race;
|
|
10349
10349
|
} });
|
|
10350
|
-
var
|
|
10350
|
+
var V = /* @__PURE__ */ Yg();
|
|
10351
10351
|
Object.defineProperty(e, "raceWith", { enumerable: !0, get: function() {
|
|
10352
|
-
return
|
|
10352
|
+
return V.raceWith;
|
|
10353
10353
|
} });
|
|
10354
10354
|
var G = /* @__PURE__ */ fi();
|
|
10355
10355
|
Object.defineProperty(e, "reduce", { enumerable: !0, get: function() {
|
|
@@ -10683,12 +10683,12 @@ function xN() {
|
|
|
10683
10683
|
`);
|
|
10684
10684
|
let D;
|
|
10685
10685
|
for (; (D = l.exec(q)) != null; ) {
|
|
10686
|
-
const
|
|
10686
|
+
const H = D[1];
|
|
10687
10687
|
let k = D[2] || "";
|
|
10688
10688
|
k = k.trim();
|
|
10689
10689
|
const F = k[0];
|
|
10690
10690
|
k = k.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"), F === '"' && (k = k.replace(/\\n/g, `
|
|
10691
|
-
`), k = k.replace(/\\r/g, "\r")), P[
|
|
10691
|
+
`), k = k.replace(/\\r/g, "\r")), P[H] = k;
|
|
10692
10692
|
}
|
|
10693
10693
|
return P;
|
|
10694
10694
|
}
|
|
@@ -10701,15 +10701,15 @@ function xN() {
|
|
|
10701
10701
|
const F = new Error(`MISSING_DATA: Cannot parse ${P} for an unknown reason`);
|
|
10702
10702
|
throw F.code = "MISSING_DATA", F;
|
|
10703
10703
|
}
|
|
10704
|
-
const D = _(T).split(","),
|
|
10704
|
+
const D = _(T).split(","), H = D.length;
|
|
10705
10705
|
let k;
|
|
10706
|
-
for (let F = 0; F <
|
|
10706
|
+
for (let F = 0; F < H; F++)
|
|
10707
10707
|
try {
|
|
10708
10708
|
const Z = D[F].trim(), Q = g(q, Z);
|
|
10709
10709
|
k = A.decrypt(Q.ciphertext, Q.key);
|
|
10710
10710
|
break;
|
|
10711
10711
|
} catch (Z) {
|
|
10712
|
-
if (F + 1 >=
|
|
10712
|
+
if (F + 1 >= H)
|
|
10713
10713
|
throw Z;
|
|
10714
10714
|
}
|
|
10715
10715
|
return A.parse(k);
|
|
@@ -10742,12 +10742,12 @@ function xN() {
|
|
|
10742
10742
|
const Z = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
10743
10743
|
throw Z.code = "INVALID_DOTENV_KEY", Z;
|
|
10744
10744
|
}
|
|
10745
|
-
const
|
|
10746
|
-
if (!
|
|
10745
|
+
const H = q.searchParams.get("environment");
|
|
10746
|
+
if (!H) {
|
|
10747
10747
|
const Z = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
10748
10748
|
throw Z.code = "INVALID_DOTENV_KEY", Z;
|
|
10749
10749
|
}
|
|
10750
|
-
const k = `DOTENV_VAULT_${
|
|
10750
|
+
const k = `DOTENV_VAULT_${H.toUpperCase()}`, F = T.parsed[k];
|
|
10751
10751
|
if (!F) {
|
|
10752
10752
|
const Z = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${k} in your .env.vault file.`);
|
|
10753
10753
|
throw Z.code = "NOT_FOUND_DOTENV_ENVIRONMENT", Z;
|
|
@@ -10773,15 +10773,15 @@ function xN() {
|
|
|
10773
10773
|
const P = c(process.env.DOTENV_CONFIG_DEBUG || T && T.debug), q = c(process.env.DOTENV_CONFIG_QUIET || T && T.quiet);
|
|
10774
10774
|
(P || !q) && v("Loading env from encrypted .env.vault");
|
|
10775
10775
|
const D = A._parseVault(T);
|
|
10776
|
-
let
|
|
10777
|
-
return T && T.processEnv != null && (
|
|
10776
|
+
let H = process.env;
|
|
10777
|
+
return T && T.processEnv != null && (H = T.processEnv), A.populate(H, D, T), { parsed: D };
|
|
10778
10778
|
}
|
|
10779
10779
|
function x(T) {
|
|
10780
10780
|
const P = t.resolve(process.cwd(), ".env");
|
|
10781
10781
|
let q = "utf8", D = process.env;
|
|
10782
10782
|
T && T.processEnv != null && (D = T.processEnv);
|
|
10783
|
-
let
|
|
10784
|
-
T && T.encoding ? q = T.encoding :
|
|
10783
|
+
let H = c(D.DOTENV_CONFIG_DEBUG || T && T.debug), k = c(D.DOTENV_CONFIG_QUIET || T && T.quiet);
|
|
10784
|
+
T && T.encoding ? q = T.encoding : H && m("No encoding is specified. UTF-8 is used by default");
|
|
10785
10785
|
let F = [P];
|
|
10786
10786
|
if (T && T.path)
|
|
10787
10787
|
if (!Array.isArray(T.path))
|
|
@@ -10798,17 +10798,17 @@ function xN() {
|
|
|
10798
10798
|
const C = A.parse(e.readFileSync($, { encoding: q }));
|
|
10799
10799
|
A.populate(Q, C, T);
|
|
10800
10800
|
} catch (C) {
|
|
10801
|
-
|
|
10801
|
+
H && m(`Failed to load ${$} ${C.message}`), Z = C;
|
|
10802
10802
|
}
|
|
10803
10803
|
const U = A.populate(D, Q, T);
|
|
10804
|
-
if (
|
|
10804
|
+
if (H = c(D.DOTENV_CONFIG_DEBUG || H), k = c(D.DOTENV_CONFIG_QUIET || k), H || !k) {
|
|
10805
10805
|
const $ = Object.keys(U).length, C = [];
|
|
10806
10806
|
for (const N of F)
|
|
10807
10807
|
try {
|
|
10808
10808
|
const L = t.relative(process.cwd(), N);
|
|
10809
10809
|
C.push(L);
|
|
10810
10810
|
} catch (L) {
|
|
10811
|
-
|
|
10811
|
+
H && m(`Failed to load ${N} ${L.message}`), Z = L;
|
|
10812
10812
|
}
|
|
10813
10813
|
v(`injecting env (${$}) from ${C.join(",")} ${p(`-- tip: ${o()}`)}`);
|
|
10814
10814
|
}
|
|
@@ -10823,10 +10823,10 @@ function xN() {
|
|
|
10823
10823
|
function S(T, P) {
|
|
10824
10824
|
const q = Buffer.from(P.slice(-64), "hex");
|
|
10825
10825
|
let D = Buffer.from(T, "base64");
|
|
10826
|
-
const
|
|
10826
|
+
const H = D.subarray(0, 12), k = D.subarray(-16);
|
|
10827
10827
|
D = D.subarray(12, -16);
|
|
10828
10828
|
try {
|
|
10829
|
-
const F = n.createDecipheriv("aes-256-gcm", q,
|
|
10829
|
+
const F = n.createDecipheriv("aes-256-gcm", q, H);
|
|
10830
10830
|
return F.setAuthTag(k), `${F.update(D)}${F.final()}`;
|
|
10831
10831
|
} catch (F) {
|
|
10832
10832
|
const Z = F instanceof RangeError, Q = F.message === "Invalid key length", U = F.message === "Unsupported state or unable to authenticate data";
|
|
@@ -10841,13 +10841,13 @@ function xN() {
|
|
|
10841
10841
|
}
|
|
10842
10842
|
}
|
|
10843
10843
|
function w(T, P, q = {}) {
|
|
10844
|
-
const D = !!(q && q.debug),
|
|
10844
|
+
const D = !!(q && q.debug), H = !!(q && q.override), k = {};
|
|
10845
10845
|
if (typeof P != "object") {
|
|
10846
10846
|
const F = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
10847
10847
|
throw F.code = "OBJECT_REQUIRED", F;
|
|
10848
10848
|
}
|
|
10849
10849
|
for (const F of Object.keys(P))
|
|
10850
|
-
Object.prototype.hasOwnProperty.call(T, F) ? (
|
|
10850
|
+
Object.prototype.hasOwnProperty.call(T, F) ? (H === !0 && (T[F] = P[F], k[F] = P[F]), D && m(H === !0 ? `"${F}" is already defined and WAS overwritten` : `"${F}" is already defined and was NOT overwritten`)) : (T[F] = P[F], k[F] = P[F]);
|
|
10851
10851
|
return k;
|
|
10852
10852
|
}
|
|
10853
10853
|
const A = {
|
|
@@ -12772,9 +12772,9 @@ function Sn() {
|
|
|
12772
12772
|
Object.defineProperty(e, "SequenceError", { enumerable: !0, get: function() {
|
|
12773
12773
|
return D.SequenceError;
|
|
12774
12774
|
} });
|
|
12775
|
-
var
|
|
12775
|
+
var H = /* @__PURE__ */ up();
|
|
12776
12776
|
Object.defineProperty(e, "TimeoutError", { enumerable: !0, get: function() {
|
|
12777
|
-
return
|
|
12777
|
+
return H.TimeoutError;
|
|
12778
12778
|
} });
|
|
12779
12779
|
var k = /* @__PURE__ */ wC();
|
|
12780
12780
|
Object.defineProperty(e, "UnsubscriptionError", { enumerable: !0, get: function() {
|
|
@@ -12920,9 +12920,9 @@ function Sn() {
|
|
|
12920
12920
|
Object.defineProperty(e, "bufferTime", { enumerable: !0, get: function() {
|
|
12921
12921
|
return yr.bufferTime;
|
|
12922
12922
|
} });
|
|
12923
|
-
var
|
|
12923
|
+
var V = /* @__PURE__ */ kC();
|
|
12924
12924
|
Object.defineProperty(e, "bufferToggle", { enumerable: !0, get: function() {
|
|
12925
|
-
return
|
|
12925
|
+
return V.bufferToggle;
|
|
12926
12926
|
} });
|
|
12927
12927
|
var G = /* @__PURE__ */ DC();
|
|
12928
12928
|
Object.defineProperty(e, "bufferWhen", { enumerable: !0, get: function() {
|
|
@@ -13669,7 +13669,7 @@ function AN() {
|
|
|
13669
13669
|
{
|
|
13670
13670
|
provide: d.CONFIGURATION_LOADER,
|
|
13671
13671
|
useFactory: (P, ...q) => {
|
|
13672
|
-
q.forEach((D,
|
|
13672
|
+
q.forEach((D, H) => this.mergePartial(P, D, w[H]));
|
|
13673
13673
|
},
|
|
13674
13674
|
inject: [d.CONFIGURATION_TOKEN, ...A]
|
|
13675
13675
|
}
|
|
@@ -20484,10 +20484,10 @@ function Py() {
|
|
|
20484
20484
|
guards: !0,
|
|
20485
20485
|
filters: !0
|
|
20486
20486
|
}, O = "http") {
|
|
20487
|
-
const S = this.getContextModuleKey(m.constructor), { argsLength: w, paramtypes: A, getParamsMetadata: T } = this.getMetadata(m, _, g, y, O), P = this.pipesContextCreator.create(m, v, S, b, E), q = this.guardsContextCreator.create(m, v, S, b, E), D = this.filtersContextCreator.create(m, v, S, b, E),
|
|
20487
|
+
const S = this.getContextModuleKey(m.constructor), { argsLength: w, paramtypes: A, getParamsMetadata: T } = this.getMetadata(m, _, g, y, O), P = this.pipesContextCreator.create(m, v, S, b, E), q = this.guardsContextCreator.create(m, v, S, b, E), D = this.filtersContextCreator.create(m, v, S, b, E), H = x.interceptors ? this.interceptorsContextCreator.create(m, v, S, b, E) : [], k = T(S, b, E), F = k ? this.contextUtils.mergeParamsMetatypes(k, A) : [], Z = x.guards ? this.createGuardsFn(q, m, v, O) : null, Q = this.createPipesFn(P, F), U = (C, ...N) => async () => Q ? (await Q(C, ...N), v.apply(m, C)) : v.apply(m, N), $ = async (...C) => {
|
|
20488
20488
|
const N = this.contextUtils.createNullArray(w);
|
|
20489
20489
|
Z && await Z(C);
|
|
20490
|
-
const L = await this.interceptorsConsumer.intercept(
|
|
20490
|
+
const L = await this.interceptorsConsumer.intercept(H, C, m, v, U(N, ...C), O);
|
|
20491
20491
|
return this.transformToResult(L);
|
|
20492
20492
|
};
|
|
20493
20493
|
return x.filters ? this.externalErrorProxy.createProxy($, D, O) : $;
|
|
@@ -20516,8 +20516,8 @@ function Py() {
|
|
|
20516
20516
|
return this.pipesContextCreator.setModuleContext(_), m.map((x) => {
|
|
20517
20517
|
const { index: O, data: S, pipes: w } = v[x], A = this.pipesContextCreator.createConcreteContext(w, y, b), T = this.contextUtils.mapParamType(x);
|
|
20518
20518
|
if (x.includes(t.CUSTOM_ROUTE_ARGS_METADATA)) {
|
|
20519
|
-
const { factory: D } = v[x],
|
|
20520
|
-
return { index: O, extractValue:
|
|
20519
|
+
const { factory: D } = v[x], H = this.contextUtils.getCustomFactory(D, S, E);
|
|
20520
|
+
return { index: O, extractValue: H, type: T, data: S, pipes: A };
|
|
20521
20521
|
}
|
|
20522
20522
|
const P = Number(T);
|
|
20523
20523
|
return { index: O, extractValue: (...D) => g.exchangeKeyForValue(P, S, D), type: P, data: S, pipes: A };
|
|
@@ -21150,8 +21150,8 @@ function yi() {
|
|
|
21150
21150
|
return S.complete();
|
|
21151
21151
|
try {
|
|
21152
21152
|
const P = this.getNowTimestamp(), q = async (D) => {
|
|
21153
|
-
const
|
|
21154
|
-
this.applyProperties(k,
|
|
21153
|
+
const H = await this.resolveProperties(_, y, A, b, _, E), k = await this.instantiateClass(D, _, T, b, E);
|
|
21154
|
+
this.applyProperties(k, H), _.initTime = this.getNowTimestamp() - P, S.complete();
|
|
21155
21155
|
};
|
|
21156
21156
|
await this.resolveConstructorParams(_, y, A, q, b, _, E);
|
|
21157
21157
|
} catch (P) {
|
|
@@ -21200,8 +21200,8 @@ function yi() {
|
|
|
21200
21200
|
throw Z;
|
|
21201
21201
|
return;
|
|
21202
21202
|
}
|
|
21203
|
-
},
|
|
21204
|
-
q && await b(
|
|
21203
|
+
}, H = await Promise.all(A.map(D));
|
|
21204
|
+
q && await b(H);
|
|
21205
21205
|
}
|
|
21206
21206
|
getClassDependencies(_) {
|
|
21207
21207
|
const g = _.metatype;
|
|
@@ -21285,8 +21285,8 @@ function yi() {
|
|
|
21285
21285
|
if (b.has(q.id))
|
|
21286
21286
|
continue;
|
|
21287
21287
|
this.printLookingForProviderLog(g, q), b.add(q.id);
|
|
21288
|
-
const { providers: D, exports:
|
|
21289
|
-
if (!
|
|
21288
|
+
const { providers: D, exports: H } = q;
|
|
21289
|
+
if (!H.has(g) || !D.has(g)) {
|
|
21290
21290
|
const Z = await this.lookupComponentInImports(q, g, y, b, E, x, O, !0);
|
|
21291
21291
|
if (Z)
|
|
21292
21292
|
return this.addDependencyMetadata(O, y, Z), Z;
|
|
@@ -21315,8 +21315,8 @@ function yi() {
|
|
|
21315
21315
|
return w.signal(), x && x.instance;
|
|
21316
21316
|
const q = await this.resolveSingleParam(_, T.name, P, g, b, E, T.key);
|
|
21317
21317
|
await w.signalAndWait();
|
|
21318
|
-
const D = this.getEffectiveInquirer(q, E, x, b),
|
|
21319
|
-
return
|
|
21318
|
+
const D = this.getEffectiveInquirer(q, E, x, b), H = await this.resolveComponentHost(g, q, b, D);
|
|
21319
|
+
return H ? H.getInstanceByContextId(this.getContextId(b, H), this.getInquirerId(D)).instance : void 0;
|
|
21320
21320
|
} catch (P) {
|
|
21321
21321
|
if (w.signal(), !T.isOptional)
|
|
21322
21322
|
throw P;
|
|
@@ -22802,7 +22802,7 @@ function qy() {
|
|
|
22802
22802
|
F ? T.push({ type: F, index: P++, value: k }) : k === "\\" ? T.push({ type: "escape", index: P++, value: A[P++] }) : k === ":" ? T.push({ type: "param", index: P++, value: D() }) : k === "*" ? T.push({ type: "wildcard", index: P++, value: D() }) : T.push({ type: "char", index: P++, value: k });
|
|
22803
22803
|
}
|
|
22804
22804
|
T.push({ type: "end", index: P, value: "" });
|
|
22805
|
-
function
|
|
22805
|
+
function H(k) {
|
|
22806
22806
|
const F = [];
|
|
22807
22807
|
for (; ; ) {
|
|
22808
22808
|
const Z = T[q++];
|
|
@@ -22828,7 +22828,7 @@ function qy() {
|
|
|
22828
22828
|
if (Z.type === "{") {
|
|
22829
22829
|
F.push({
|
|
22830
22830
|
type: "group",
|
|
22831
|
-
tokens:
|
|
22831
|
+
tokens: H("}")
|
|
22832
22832
|
});
|
|
22833
22833
|
continue;
|
|
22834
22834
|
}
|
|
@@ -22836,15 +22836,15 @@ function qy() {
|
|
|
22836
22836
|
}
|
|
22837
22837
|
return F;
|
|
22838
22838
|
}
|
|
22839
|
-
return new o(
|
|
22839
|
+
return new o(H("end"), O);
|
|
22840
22840
|
}
|
|
22841
22841
|
function p(O, S = {}) {
|
|
22842
22842
|
const { encode: w = encodeURIComponent, delimiter: A = e } = S, T = typeof O == "object" ? O : u(O, S), P = l(T.tokens, A, w);
|
|
22843
22843
|
return function(D = {}) {
|
|
22844
|
-
const [
|
|
22844
|
+
const [H, ...k] = P(D);
|
|
22845
22845
|
if (k.length)
|
|
22846
22846
|
throw new TypeError(`Missing parameters: ${k.join(", ")}`);
|
|
22847
|
-
return
|
|
22847
|
+
return H;
|
|
22848
22848
|
};
|
|
22849
22849
|
}
|
|
22850
22850
|
function l(O, S, w) {
|
|
@@ -22852,8 +22852,8 @@ function qy() {
|
|
|
22852
22852
|
return (T) => {
|
|
22853
22853
|
const P = [""];
|
|
22854
22854
|
for (const q of A) {
|
|
22855
|
-
const [D, ...
|
|
22856
|
-
P[0] += D, P.push(...
|
|
22855
|
+
const [D, ...H] = q(T);
|
|
22856
|
+
P[0] += D, P.push(...H);
|
|
22857
22857
|
}
|
|
22858
22858
|
return P;
|
|
22859
22859
|
};
|
|
@@ -22892,9 +22892,9 @@ function qy() {
|
|
|
22892
22892
|
};
|
|
22893
22893
|
}
|
|
22894
22894
|
function f(O, S = {}) {
|
|
22895
|
-
const { decode: w = decodeURIComponent, delimiter: A = e } = S, { regexp: T, keys: P } = h(O, S), q = P.map((D) => w === !1 ? t : D.type === "param" ? w : (
|
|
22896
|
-
return function(
|
|
22897
|
-
const k = T.exec(
|
|
22895
|
+
const { decode: w = decodeURIComponent, delimiter: A = e } = S, { regexp: T, keys: P } = h(O, S), q = P.map((D) => w === !1 ? t : D.type === "param" ? w : (H) => H.split(A).map(w));
|
|
22896
|
+
return function(H) {
|
|
22897
|
+
const k = T.exec(H);
|
|
22898
22898
|
if (!k)
|
|
22899
22899
|
return !1;
|
|
22900
22900
|
const F = k[0], Z = /* @__PURE__ */ Object.create(null);
|
|
@@ -22908,13 +22908,13 @@ function qy() {
|
|
|
22908
22908
|
};
|
|
22909
22909
|
}
|
|
22910
22910
|
function h(O, S = {}) {
|
|
22911
|
-
const { delimiter: w = e, end: A = !0, sensitive: T = !1, trailing: P = !0 } = S, q = [], D = T ? "" : "i",
|
|
22911
|
+
const { delimiter: w = e, end: A = !0, sensitive: T = !1, trailing: P = !0 } = S, q = [], D = T ? "" : "i", H = [];
|
|
22912
22912
|
for (const Z of m(O, [])) {
|
|
22913
22913
|
const Q = typeof Z == "object" ? Z : u(Z, S);
|
|
22914
22914
|
for (const U of v(Q.tokens, 0, []))
|
|
22915
|
-
|
|
22915
|
+
H.push(_(U, w, q, Q.originalPath));
|
|
22916
22916
|
}
|
|
22917
|
-
let k = `^(?:${
|
|
22917
|
+
let k = `^(?:${H.join("|")})`;
|
|
22918
22918
|
return P && (k += `(?:${s(w)}$)?`), k += A ? "$" : `(?=${s(w)}|$)`, { regexp: new RegExp(k, D), keys: q };
|
|
22919
22919
|
}
|
|
22920
22920
|
function m(O, S) {
|
|
@@ -23709,13 +23709,13 @@ function yY() {
|
|
|
23709
23709
|
const A = g.isDependencyTreeDurable();
|
|
23710
23710
|
await this.registerHandler(y, b, async (T, P, q) => {
|
|
23711
23711
|
try {
|
|
23712
|
-
const D = this.getContextId(T, A),
|
|
23713
|
-
return (await this.createProxy(
|
|
23712
|
+
const D = this.getContextId(T, A), H = await this.injector.loadPerContext(O, E, x, D);
|
|
23713
|
+
return (await this.createProxy(H, D))(T, P, q);
|
|
23714
23714
|
} catch (D) {
|
|
23715
|
-
let
|
|
23716
|
-
|
|
23715
|
+
let H = this.exceptionFiltersCache.get(O.use);
|
|
23716
|
+
H || (H = this.routerExceptionFilter.create(O, O.use, void 0), this.exceptionFiltersCache.set(O.use, H));
|
|
23717
23717
|
const k = new s.ExecutionContextHost([T, P, q]);
|
|
23718
|
-
|
|
23718
|
+
H.next(D, k);
|
|
23719
23719
|
}
|
|
23720
23720
|
});
|
|
23721
23721
|
}
|
|
@@ -23724,7 +23724,10 @@ function yY() {
|
|
|
23724
23724
|
return this.routerProxy.createProxy(E, b);
|
|
23725
23725
|
}
|
|
23726
23726
|
async registerHandler(g, y, b) {
|
|
23727
|
-
const { method: E } = y, x = this.routeInfoPathExtractor.extractPathsFrom(y), O = (0, l.isRequestMethodAll)(E), S = t.RequestMethod[E], w = await g.createMiddlewareFactory(E), A = O ? b : (P, q, D) =>
|
|
23727
|
+
const { method: E } = y, x = this.routeInfoPathExtractor.extractPathsFrom(y), O = (0, l.isRequestMethodAll)(E), S = t.RequestMethod[E], w = await g.createMiddlewareFactory(E), A = O ? b : (P, q, D) => {
|
|
23728
|
+
const H = g.getRequestMethod?.(P);
|
|
23729
|
+
return H === S || H === t.RequestMethod[t.RequestMethod.HEAD] && S === t.RequestMethod[t.RequestMethod.GET] ? b(P, q, D) : D();
|
|
23730
|
+
}, T = [];
|
|
23728
23731
|
x.some((P) => P.match(/^\/?$/)) ? T.push("/") : T.push(...x), T.forEach((P) => w(P, A));
|
|
23729
23732
|
}
|
|
23730
23733
|
getContextId(g, y) {
|
|
@@ -24337,7 +24340,7 @@ function MY() {
|
|
|
24337
24340
|
this.paramsFactory = l, this.pipesContextCreator = d, this.pipesConsumer = f, this.guardsContextCreator = h, this.guardsConsumer = m, this.interceptorsContextCreator = v, this.interceptorsConsumer = _, this.applicationRef = g, this.handlerMetadataStorage = new s.HandlerMetadataStorage(), this.contextUtils = new i.ContextUtils(), this.responseController = new c.RouterResponseController(g);
|
|
24338
24341
|
}
|
|
24339
24342
|
create(l, d, f, h, m, v = o.STATIC_CONTEXT, _) {
|
|
24340
|
-
const g = "http", { argsLength: y, fnHandleResponse: b, paramtypes: E, getParamsMetadata: x, httpStatusCode: O, responseHeaders: S, hasCustomHeaders: w } = this.getMetadata(l, d, f, h, m, g), A = this.contextUtils.mergeParamsMetatypes(x(h, v, _), E), T = this.pipesContextCreator.create(l, d, h, v, _), P = this.guardsContextCreator.create(l, d, h, v, _), q = this.interceptorsContextCreator.create(l, d, h, v, _), D = this.createGuardsFn(P, l, d, g),
|
|
24343
|
+
const g = "http", { argsLength: y, fnHandleResponse: b, paramtypes: E, getParamsMetadata: x, httpStatusCode: O, responseHeaders: S, hasCustomHeaders: w } = this.getMetadata(l, d, f, h, m, g), A = this.contextUtils.mergeParamsMetatypes(x(h, v, _), E), T = this.pipesContextCreator.create(l, d, h, v, _), P = this.guardsContextCreator.create(l, d, h, v, _), q = this.interceptorsContextCreator.create(l, d, h, v, _), D = this.createGuardsFn(P, l, d, g), H = this.createPipesFn(T, A), k = (F, Z, Q, U) => async () => (H && await H(F, Z, Q, U), d.apply(l, F));
|
|
24341
24344
|
return async (F, Z, Q) => {
|
|
24342
24345
|
const U = this.contextUtils.createNullArray(y);
|
|
24343
24346
|
D && await D([F, Z, Q]), this.responseController.setStatus(Z, O), w && this.responseController.setHeaders(Z, S);
|
|
@@ -24349,13 +24352,13 @@ function MY() {
|
|
|
24349
24352
|
const _ = this.handlerMetadataStorage.get(l, f);
|
|
24350
24353
|
if (_)
|
|
24351
24354
|
return _;
|
|
24352
|
-
const g = this.contextUtils.reflectCallbackMetadata(l, f, t.ROUTE_ARGS_METADATA) || {}, y = Object.keys(g), b = this.contextUtils.getArgumentsLength(y, g), E = this.contextUtils.reflectCallbackParamtypes(l, f), x = this.contextUtils.getContextFactory(v, l, d), O = (F, Z = o.STATIC_CONTEXT, Q) => this.exchangeKeysForValues(y, g, F, Z, Q, x), S = O(h), w = this.isResponseHandled(l, f, S), A = this.reflectRedirect(d), T = this.createHandleResponseFn(d, w, A), P = this.reflectHttpStatusCode(d), q = P || this.responseController.getStatusByMethod(m), D = this.reflectResponseHeaders(d),
|
|
24355
|
+
const g = this.contextUtils.reflectCallbackMetadata(l, f, t.ROUTE_ARGS_METADATA) || {}, y = Object.keys(g), b = this.contextUtils.getArgumentsLength(y, g), E = this.contextUtils.reflectCallbackParamtypes(l, f), x = this.contextUtils.getContextFactory(v, l, d), O = (F, Z = o.STATIC_CONTEXT, Q) => this.exchangeKeysForValues(y, g, F, Z, Q, x), S = O(h), w = this.isResponseHandled(l, f, S), A = this.reflectRedirect(d), T = this.createHandleResponseFn(d, w, A), P = this.reflectHttpStatusCode(d), q = P || this.responseController.getStatusByMethod(m), D = this.reflectResponseHeaders(d), H = !(0, n.isEmpty)(D), k = {
|
|
24353
24356
|
argsLength: b,
|
|
24354
24357
|
fnHandleResponse: T,
|
|
24355
24358
|
paramtypes: E,
|
|
24356
24359
|
getParamsMetadata: O,
|
|
24357
24360
|
httpStatusCode: q,
|
|
24358
|
-
hasCustomHeaders:
|
|
24361
|
+
hasCustomHeaders: H,
|
|
24359
24362
|
responseHeaders: D
|
|
24360
24363
|
};
|
|
24361
24364
|
return this.handlerMetadataStorage.set(l, f, k), k;
|
|
@@ -24438,8 +24441,8 @@ function pF() {
|
|
|
24438
24441
|
this.container = x, this.injector = O, this.routerProxy = S, this.exceptionsFilter = w, this.routePathFactory = T, this.graphInspector = P, this.routerMethodFactory = new l.RouterMethodFactory(), this.logger = new n.Logger(y.name, {
|
|
24439
24442
|
timestamp: !0
|
|
24440
24443
|
}), this.exceptionFiltersCache = /* @__PURE__ */ new WeakMap(), this.pathsExplorer = new m.PathsExplorer(E);
|
|
24441
|
-
const q = new _.RouteParamsFactory(), D = new h.PipesContextCreator(x, A),
|
|
24442
|
-
this.executionContextCreator = new g.RouterExecutionContext(q, D,
|
|
24444
|
+
const q = new _.RouteParamsFactory(), D = new h.PipesContextCreator(x, A), H = new h.PipesConsumer(), k = new o.GuardsContextCreator(x, A), F = new o.GuardsConsumer(), Z = new f.InterceptorsContextCreator(x, A), Q = new f.InterceptorsConsumer();
|
|
24445
|
+
this.executionContextCreator = new g.RouterExecutionContext(q, D, H, k, F, Z, Q, x.getHttpAdapterRef());
|
|
24443
24446
|
}
|
|
24444
24447
|
explore(E, x, O, S, w) {
|
|
24445
24448
|
const { instance: A } = E, T = this.pathsExplorer.scanForPaths(A);
|
|
@@ -24458,7 +24461,7 @@ function pF() {
|
|
|
24458
24461
|
});
|
|
24459
24462
|
}
|
|
24460
24463
|
applyCallbackToRouter(E, x, O, S, w, A) {
|
|
24461
|
-
const { path: T, requestMethod: P, targetCallback: q, methodName: D } = x, { instance:
|
|
24464
|
+
const { path: T, requestMethod: P, targetCallback: q, methodName: D } = x, { instance: H } = O, k = this.routerMethodFactory.get(E, P).bind(E), Z = !O.isDependencyTreeStatic() ? this.createRequestScopedHandler(O, P, this.container.getModuleByKey(S), S, D) : this.createCallbackProxy(H, q, D, S, P), Q = (w.methodVersion || w.controllerVersion) && w.versioningOptions;
|
|
24462
24465
|
let U = this.applyHostFilter(A, Z);
|
|
24463
24466
|
T.forEach(($) => {
|
|
24464
24467
|
Q && w.versioningOptions.type !== t.VersioningType.URI && (U = this.applyVersionFilter(E, w, U)), w.methodPath = $, this.routePathFactory.create(w, P).forEach((L) => {
|
|
@@ -24505,12 +24508,12 @@ function pF() {
|
|
|
24505
24508
|
return (T, P, q) => {
|
|
24506
24509
|
T.hosts = {};
|
|
24507
24510
|
const D = O.getRequestHostname(T) || "";
|
|
24508
|
-
for (const
|
|
24509
|
-
const k = D.match(
|
|
24511
|
+
for (const H of w) {
|
|
24512
|
+
const k = D.match(H.regexp);
|
|
24510
24513
|
if (k) {
|
|
24511
|
-
if (
|
|
24512
|
-
|
|
24513
|
-
else if (
|
|
24514
|
+
if (H.keys.length > 0)
|
|
24515
|
+
H.keys.forEach((F, Z) => T.hosts[F.name] = k[Z + 1]);
|
|
24516
|
+
else if (H.regexp && k.groups)
|
|
24514
24517
|
for (const F in k.groups)
|
|
24515
24518
|
T.hosts[F] = k.groups[F];
|
|
24516
24519
|
return x(T, P, q);
|
|
@@ -24531,14 +24534,14 @@ function pF() {
|
|
|
24531
24534
|
}
|
|
24532
24535
|
createRequestScopedHandler(E, x, O, S, w) {
|
|
24533
24536
|
const { instance: A } = E, T = O.controllers, P = E.isDependencyTreeDurable();
|
|
24534
|
-
return async (q, D,
|
|
24537
|
+
return async (q, D, H) => {
|
|
24535
24538
|
try {
|
|
24536
24539
|
const k = this.getContextId(q, P), F = await this.injector.loadPerContext(A, O, T, k);
|
|
24537
|
-
await this.createCallbackProxy(F, F[w], w, S, x, k, E.id)(q, D,
|
|
24540
|
+
await this.createCallbackProxy(F, F[w], w, S, x, k, E.id)(q, D, H);
|
|
24538
24541
|
} catch (k) {
|
|
24539
24542
|
let F = this.exceptionFiltersCache.get(A[w]);
|
|
24540
24543
|
F || (F = this.exceptionsFilter.create(A, A[w], S), this.exceptionFiltersCache.set(A[w], F));
|
|
24541
|
-
const Z = new u.ExecutionContextHost([q, D,
|
|
24544
|
+
const Z = new u.ExecutionContextHost([q, D, H]);
|
|
24542
24545
|
F.next(k, Z);
|
|
24543
24546
|
}
|
|
24544
24547
|
};
|
|
@@ -30310,7 +30313,7 @@ function l6() {
|
|
|
30310
30313
|
this.header = /* @__PURE__ */ Object.create(null), this.pairCount = 0, this.byteCount = 0, this.state = h, this.name = "", this.value = "", this.crlf = 0;
|
|
30311
30314
|
}
|
|
30312
30315
|
push(P, q, D) {
|
|
30313
|
-
let
|
|
30316
|
+
let H = q;
|
|
30314
30317
|
for (; q < D; )
|
|
30315
30318
|
switch (this.state) {
|
|
30316
30319
|
case h: {
|
|
@@ -30321,14 +30324,14 @@ function l6() {
|
|
|
30321
30324
|
++this.byteCount;
|
|
30322
30325
|
const F = P[q];
|
|
30323
30326
|
if (w[F] !== 1) {
|
|
30324
|
-
if (F !== 58 || (this.name += P.latin1Slice(
|
|
30327
|
+
if (F !== 58 || (this.name += P.latin1Slice(H, q), this.name.length === 0))
|
|
30325
30328
|
return -1;
|
|
30326
30329
|
++q, k = !0, this.state = m;
|
|
30327
30330
|
break;
|
|
30328
30331
|
}
|
|
30329
30332
|
}
|
|
30330
30333
|
if (!k) {
|
|
30331
|
-
this.name += P.latin1Slice(
|
|
30334
|
+
this.name += P.latin1Slice(H, q);
|
|
30332
30335
|
break;
|
|
30333
30336
|
}
|
|
30334
30337
|
}
|
|
@@ -30340,7 +30343,7 @@ function l6() {
|
|
|
30340
30343
|
++this.byteCount;
|
|
30341
30344
|
const F = P[q];
|
|
30342
30345
|
if (F !== 32 && F !== 9) {
|
|
30343
|
-
|
|
30346
|
+
H = q, k = !0, this.state = v;
|
|
30344
30347
|
break;
|
|
30345
30348
|
}
|
|
30346
30349
|
}
|
|
@@ -30362,7 +30365,7 @@ function l6() {
|
|
|
30362
30365
|
break;
|
|
30363
30366
|
}
|
|
30364
30367
|
}
|
|
30365
|
-
this.value += P.latin1Slice(
|
|
30368
|
+
this.value += P.latin1Slice(H, q++);
|
|
30366
30369
|
break;
|
|
30367
30370
|
case 1:
|
|
30368
30371
|
if (this.byteCount === f || (++this.byteCount, P[q++] !== 10))
|
|
@@ -30374,7 +30377,7 @@ function l6() {
|
|
|
30374
30377
|
return -1;
|
|
30375
30378
|
++this.byteCount;
|
|
30376
30379
|
const k = P[q];
|
|
30377
|
-
k === 32 || k === 9 ? (
|
|
30380
|
+
k === 32 || k === 9 ? (H = q, this.crlf = 0) : (++this.pairCount < d && (this.name = this.name.toLowerCase(), this.header[this.name] === void 0 ? this.header[this.name] = [this.value] : this.header[this.name].push(this.value)), k === 13 ? (++this.crlf, ++q) : (H = q, this.crlf = 0, this.state = h, this.name = "", this.value = ""));
|
|
30378
30381
|
break;
|
|
30379
30382
|
}
|
|
30380
30383
|
case 3: {
|
|
@@ -30425,7 +30428,7 @@ function l6() {
|
|
|
30425
30428
|
};
|
|
30426
30429
|
if (super(q), !P.conType.params || typeof P.conType.params.boundary != "string")
|
|
30427
30430
|
throw new Error("Multipart: Boundary not found");
|
|
30428
|
-
const D = P.conType.params.boundary,
|
|
30431
|
+
const D = P.conType.params.boundary, H = typeof P.defParamCharset == "string" && P.defParamCharset ? i(P.defParamCharset) : E, k = P.defCharset || "utf8", F = P.preservePath, Z = {
|
|
30429
30432
|
autoDestroy: !0,
|
|
30430
30433
|
emitClose: !0,
|
|
30431
30434
|
highWaterMark: typeof P.fileHwm == "number" ? P.fileHwm : void 0
|
|
@@ -30443,7 +30446,7 @@ function l6() {
|
|
|
30443
30446
|
}
|
|
30444
30447
|
const _e = o(
|
|
30445
30448
|
xe["content-disposition"][0],
|
|
30446
|
-
|
|
30449
|
+
H
|
|
30447
30450
|
);
|
|
30448
30451
|
if (!_e || _e.type !== "form-data") {
|
|
30449
30452
|
z = !0;
|
|
@@ -31841,7 +31844,7 @@ function y6() {
|
|
|
31841
31844
|
}
|
|
31842
31845
|
Z ? Q() : A.onceZero(Q);
|
|
31843
31846
|
}
|
|
31844
|
-
function
|
|
31847
|
+
function H(F, Z) {
|
|
31845
31848
|
D(new a(F, Z));
|
|
31846
31849
|
}
|
|
31847
31850
|
function k(F) {
|
|
@@ -31865,20 +31868,20 @@ function y6() {
|
|
|
31865
31868
|
return f(F);
|
|
31866
31869
|
}
|
|
31867
31870
|
x = new i(g, l), E.on("field", function(F, Z, { nameTruncated: Q, valueTruncated: U }) {
|
|
31868
|
-
if (F == null) return
|
|
31869
|
-
if (Q) return
|
|
31870
|
-
if (U) return
|
|
31871
|
+
if (F == null) return H("MISSING_FIELD_NAME");
|
|
31872
|
+
if (Q) return H("LIMIT_FIELD_KEY");
|
|
31873
|
+
if (U) return H("LIMIT_FIELD_VALUE", F);
|
|
31871
31874
|
if (m && Object.prototype.hasOwnProperty.call(m, "fieldNameSize") && F.length > m.fieldNameSize)
|
|
31872
|
-
return
|
|
31875
|
+
return H("LIMIT_FIELD_KEY");
|
|
31873
31876
|
r(l.body, F, Z);
|
|
31874
31877
|
}), E.on("file", function(F, Z, { filename: Q, encoding: U, mimeType: $ }) {
|
|
31875
31878
|
var C = !1;
|
|
31876
31879
|
if (Z.on("error", function(B) {
|
|
31877
31880
|
C && A.decrement(), D(B);
|
|
31878
|
-
}), F == null) return
|
|
31881
|
+
}), F == null) return H("MISSING_FIELD_NAME");
|
|
31879
31882
|
if (!Q) return Z.resume();
|
|
31880
31883
|
if (m && Object.prototype.hasOwnProperty.call(m, "fieldNameSize") && F.length > m.fieldNameSize)
|
|
31881
|
-
return
|
|
31884
|
+
return H("LIMIT_FIELD_KEY");
|
|
31882
31885
|
var N = {
|
|
31883
31886
|
fieldname: F,
|
|
31884
31887
|
originalname: Q,
|
|
@@ -31898,7 +31901,7 @@ function y6() {
|
|
|
31898
31901
|
enumerable: !1,
|
|
31899
31902
|
value: Z
|
|
31900
31903
|
}), Z.on("limit", function() {
|
|
31901
|
-
j = !0,
|
|
31904
|
+
j = !0, H("LIMIT_FILE_SIZE", F);
|
|
31902
31905
|
}), v._handleFile(l, N, function(z, X) {
|
|
31903
31906
|
if (j)
|
|
31904
31907
|
return x.removePlaceholder(L), T.push({ ...N, ...X }), A.decrement();
|
|
@@ -31911,11 +31914,11 @@ function y6() {
|
|
|
31911
31914
|
}), E.on("error", function(F) {
|
|
31912
31915
|
D(F);
|
|
31913
31916
|
}), E.on("partsLimit", function() {
|
|
31914
|
-
|
|
31917
|
+
H("LIMIT_PART_COUNT");
|
|
31915
31918
|
}), E.on("filesLimit", function() {
|
|
31916
|
-
|
|
31919
|
+
H("LIMIT_FILE_COUNT");
|
|
31917
31920
|
}), E.on("fieldsLimit", function() {
|
|
31918
|
-
|
|
31921
|
+
H("LIMIT_FIELD_COUNT");
|
|
31919
31922
|
}), E.on("close", function() {
|
|
31920
31923
|
S = !0, q();
|
|
31921
31924
|
}), l.pipe(E);
|
|
@@ -32430,13 +32433,13 @@ function EF() {
|
|
|
32430
32433
|
function D(M, j, z, X, te) {
|
|
32431
32434
|
--j.pendingcb, z ? (process.nextTick(te, X), process.nextTick(N, M, j), M._writableState.errorEmitted = !0, b(M, X)) : (te(X), M._writableState.errorEmitted = !0, b(M, X), N(M, j));
|
|
32432
32435
|
}
|
|
32433
|
-
function
|
|
32436
|
+
function H(M) {
|
|
32434
32437
|
M.writing = !1, M.writecb = null, M.length -= M.writelen, M.writelen = 0;
|
|
32435
32438
|
}
|
|
32436
32439
|
function k(M, j) {
|
|
32437
32440
|
var z = M._writableState, X = z.sync, te = z.writecb;
|
|
32438
32441
|
if (typeof te != "function") throw new h();
|
|
32439
|
-
if (
|
|
32442
|
+
if (H(z), j) D(M, z, X, j, te);
|
|
32440
32443
|
else {
|
|
32441
32444
|
var R = U(z) || M.destroyed;
|
|
32442
32445
|
!R && !z.corked && !z.bufferProcessing && z.bufferedRequest && Q(M, z), X ? process.nextTick(F, M, z, R, te) : F(M, z, R, te);
|
|
@@ -33057,7 +33060,7 @@ function xF() {
|
|
|
33057
33060
|
function D(R) {
|
|
33058
33061
|
return R >= q ? R = q : (R--, R |= R >>> 1, R |= R >>> 2, R |= R >>> 4, R |= R >>> 8, R |= R >>> 16, R++), R;
|
|
33059
33062
|
}
|
|
33060
|
-
function
|
|
33063
|
+
function H(R, I) {
|
|
33061
33064
|
return R <= 0 || I.length === 0 && I.ended ? 0 : I.objectMode ? 1 : R !== R ? I.flowing && I.length ? I.buffer.head.data.length : I.length : (R > I.highWaterMark && (I.highWaterMark = D(R)), R <= I.length ? R : I.ended ? I.length : (I.needReadable = !0, 0));
|
|
33062
33065
|
}
|
|
33063
33066
|
w.prototype.read = function(R) {
|
|
@@ -33065,10 +33068,10 @@ function xF() {
|
|
|
33065
33068
|
var I = this._readableState, W = R;
|
|
33066
33069
|
if (R !== 0 && (I.emittedReadable = !1), R === 0 && I.needReadable && ((I.highWaterMark !== 0 ? I.length >= I.highWaterMark : I.length > 0) || I.ended))
|
|
33067
33070
|
return c("read: emitReadable", I.length, I.ended), I.length === 0 && I.ended ? z(this) : F(this), null;
|
|
33068
|
-
if (R =
|
|
33071
|
+
if (R = H(R, I), R === 0 && I.ended)
|
|
33069
33072
|
return I.length === 0 && z(this), null;
|
|
33070
33073
|
var ee = I.needReadable;
|
|
33071
|
-
c("need readable", ee), (I.length === 0 || I.length - R < I.highWaterMark) && (ee = !0, c("length less than watermark", ee)), I.ended || I.reading ? (ee = !1, c("reading or ended", ee)) : ee && (c("do read"), I.reading = !0, I.sync = !0, I.length === 0 && (I.needReadable = !0), this._read(I.highWaterMark), I.sync = !1, I.reading || (R =
|
|
33074
|
+
c("need readable", ee), (I.length === 0 || I.length - R < I.highWaterMark) && (ee = !0, c("length less than watermark", ee)), I.ended || I.reading ? (ee = !1, c("reading or ended", ee)) : ee && (c("do read"), I.reading = !0, I.sync = !0, I.length === 0 && (I.needReadable = !0), this._read(I.highWaterMark), I.sync = !1, I.reading || (R = H(W, I)));
|
|
33072
33075
|
var se;
|
|
33073
33076
|
return R > 0 ? se = j(R, I) : se = null, se === null ? (I.needReadable = I.length <= I.highWaterMark, R = 0) : (I.length -= R, I.awaitDrain = 0), I.length === 0 && (I.ended || (I.needReadable = !0), W !== R && I.ended && z(this)), se !== null && this.emit("data", se), se;
|
|
33074
33077
|
};
|
|
@@ -33610,7 +33613,7 @@ function M6() {
|
|
|
33610
33613
|
te.push(parseInt(X.substring(0, 8), 2)), X = X.substring(8);
|
|
33611
33614
|
return te;
|
|
33612
33615
|
}
|
|
33613
|
-
function
|
|
33616
|
+
function H(U, $, C) {
|
|
33614
33617
|
var N = [], L, B, M, j, z, X, te, R;
|
|
33615
33618
|
for (L = U.length; L; L -= 1)
|
|
33616
33619
|
for (M = U[L - 1], B = 8; B; B -= 1)
|
|
@@ -33618,13 +33621,13 @@ function M6() {
|
|
|
33618
33621
|
return N.reverse(), j = N.join(""), z = (1 << $ - 1) - 1, X = parseInt(j.substring(0, 1), 2) ? -1 : 1, te = parseInt(j.substring(1, 1 + $), 2), R = parseInt(j.substring(1 + $), 2), te === (1 << $) - 1 ? R !== 0 ? NaN : X * (1 / 0) : te > 0 ? X * u(2, te - z) * (1 + R / u(2, C)) : R !== 0 ? X * u(2, -(z - 1)) * (R / u(2, C)) : X < 0 ? -0 : 0;
|
|
33619
33622
|
}
|
|
33620
33623
|
function k(U) {
|
|
33621
|
-
return
|
|
33624
|
+
return H(U, 11, 52);
|
|
33622
33625
|
}
|
|
33623
33626
|
function F(U) {
|
|
33624
33627
|
return D(U, 11, 52);
|
|
33625
33628
|
}
|
|
33626
33629
|
function Z(U) {
|
|
33627
|
-
return
|
|
33630
|
+
return H(U, 8, 23);
|
|
33628
33631
|
}
|
|
33629
33632
|
function Q(U) {
|
|
33630
33633
|
return D(U, 8, 23);
|
|
@@ -34274,12 +34277,12 @@ function SF() {
|
|
|
34274
34277
|
instanceDecorator: w.instrument?.instanceDecorator
|
|
34275
34278
|
}), P = new l.InstanceLoader(x, T, O), q = new m.MetadataScanner(), D = new g.DependenciesScanner(x, q, O, S);
|
|
34276
34279
|
x.setHttpAdapter(A);
|
|
34277
|
-
const
|
|
34280
|
+
const H = this.abortOnError === !1 ? c.rethrow : void 0;
|
|
34278
34281
|
await A?.init?.();
|
|
34279
34282
|
try {
|
|
34280
34283
|
this.logger.log(i.MESSAGES.APPLICATION_START), await s.ExceptionsZone.asyncRun(async () => {
|
|
34281
34284
|
await D.scan(E), await P.createInstancesOfDependencies(), D.applyApplicationProviders();
|
|
34282
|
-
},
|
|
34285
|
+
}, H, this.autoFlushLogs);
|
|
34283
34286
|
} catch (k) {
|
|
34284
34287
|
this.handleInitializationError(k);
|
|
34285
34288
|
}
|