keycloakify 11.2.3 → 11.2.5
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/bin/193.index.js +3 -3
- package/bin/20.index.js +11 -13
- package/bin/{941.index.js → 238.index.js} +64 -199
- package/bin/31.index.js +48 -48
- package/bin/33.index.js +212 -1
- package/bin/453.index.js +71 -57
- package/bin/526.index.js +13 -13
- package/bin/573.index.js +66 -67
- package/bin/599.index.js +19 -20
- package/bin/743.index.js +2 -3
- package/bin/780.index.js +27 -28
- package/bin/{860.index.js → 783.index.js} +18 -20
- package/bin/786.index.js +21 -22
- package/bin/903.index.js +19 -1
- package/bin/97.index.js +46 -32
- package/bin/main.js +220 -222
- package/package.json +4 -4
- package/src/vite-plugin/vite-plugin.ts +1 -1
- package/vite-plugin/index.js +336 -313
package/vite-plugin/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
2
2
|
/******/ var __webpack_modules__ = ({
|
3
3
|
|
4
|
-
/***/
|
4
|
+
/***/ 6:
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
|
6
6
|
|
7
7
|
"use strict";
|
@@ -41,25 +41,94 @@ function getAbsoluteAndInOsFormatPath(params) {
|
|
41
41
|
var lib = __nccwpck_require__(300);
|
42
42
|
// EXTERNAL MODULE: external "fs"
|
43
43
|
var external_fs_ = __nccwpck_require__(147);
|
44
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/assert.
|
45
|
-
var assert = __nccwpck_require__(
|
44
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
|
45
|
+
var assert = __nccwpck_require__(41);
|
46
46
|
;// CONCATENATED MODULE: external "child_process"
|
47
47
|
const external_child_process_namespaceObject = require("child_process");
|
48
48
|
// EXTERNAL MODULE: ./dist/bin/shared/constants.js
|
49
49
|
var constants = __nccwpck_require__(173);
|
50
|
-
|
51
|
-
|
50
|
+
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/exclude.mjs
|
51
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
52
|
+
/** Return a function to use as Array.prototype.filter argument
|
53
|
+
* to exclude one or many primitive value element from the array.
|
54
|
+
* Ex: ([ "a", "b", "c" ] as const).filter(exclude("a")) return ("b" | "c")[]
|
55
|
+
* Ex: ([ "a", "b", "c", "d"] as const).filter(exclude(["a", "b"]) gives ("c" | "d")[]
|
56
|
+
*/
|
57
|
+
function exclude(target) {
|
58
|
+
var test = target instanceof Object
|
59
|
+
? function (element) { return target.indexOf(element) < 0; }
|
60
|
+
: function (element) { return element !== target; };
|
61
|
+
return function (elemnt) {
|
62
|
+
return test(elemnt);
|
63
|
+
};
|
64
|
+
}
|
65
|
+
//# sourceMappingURL=exclude.mjs.map
|
66
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/is.mjs
|
67
|
+
var is = __nccwpck_require__(453);
|
68
|
+
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/isAmong.mjs
|
69
|
+
var __values = (undefined && undefined.__values) || function(o) {
|
70
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
71
|
+
if (m) return m.call(o);
|
72
|
+
if (o && typeof o.length === "number") return {
|
73
|
+
next: function () {
|
74
|
+
if (o && i >= o.length) o = void 0;
|
75
|
+
return { value: o && o[i++], done: !o };
|
76
|
+
}
|
77
|
+
};
|
78
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
79
|
+
};
|
80
|
+
/** https://docs.tsafe.dev/isamong */
|
81
|
+
function isAmong(names, value) {
|
82
|
+
var e_1, _a;
|
83
|
+
try {
|
84
|
+
for (var names_1 = __values(names), names_1_1 = names_1.next(); !names_1_1.done; names_1_1 = names_1.next()) {
|
85
|
+
var name_1 = names_1_1.value;
|
86
|
+
if (name_1 === value) {
|
87
|
+
return true;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
92
|
+
finally {
|
93
|
+
try {
|
94
|
+
if (names_1_1 && !names_1_1.done && (_a = names_1.return)) _a.call(names_1);
|
95
|
+
}
|
96
|
+
finally { if (e_1) throw e_1.error; }
|
97
|
+
}
|
98
|
+
return false;
|
99
|
+
}
|
100
|
+
//# sourceMappingURL=isAmong.mjs.map
|
101
|
+
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/index.mjs
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
//# sourceMappingURL=index.mjs.map
|
52
118
|
// EXTERNAL MODULE: ./dist/bin/tools/crawl.js
|
53
119
|
var crawl = __nccwpck_require__(36);
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
120
|
+
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/objectEntries.mjs
|
121
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
122
|
+
/** https://docs.tsafe.dev/objectentries */
|
123
|
+
function objectEntries(o) {
|
124
|
+
return Object.entries(o);
|
125
|
+
}
|
126
|
+
//# sourceMappingURL=objectEntries.mjs.map
|
127
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
|
128
|
+
var id = __nccwpck_require__(469);
|
58
129
|
// EXTERNAL MODULE: ./node_modules/chalk/source/index.js
|
59
130
|
var source = __nccwpck_require__(818);
|
60
131
|
var source_default = /*#__PURE__*/__nccwpck_require__.n(source);
|
61
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/exclude.js
|
62
|
-
var exclude = __nccwpck_require__(370);
|
63
132
|
;// CONCATENATED MODULE: ./dist/bin/tools/fetchProxyOptions.js
|
64
133
|
|
65
134
|
|
@@ -86,7 +155,7 @@ function getProxyFetchOptions(params) {
|
|
86
155
|
}
|
87
156
|
return [key.trim(), value.trim()];
|
88
157
|
})
|
89
|
-
.filter(
|
158
|
+
.filter(exclude(undefined))
|
90
159
|
.filter(([key]) => key !== "")
|
91
160
|
.map(([key, value]) => {
|
92
161
|
if (value.startsWith('"') && value.endsWith('"')) {
|
@@ -97,7 +166,7 @@ function getProxyFetchOptions(params) {
|
|
97
166
|
}
|
98
167
|
return undefined;
|
99
168
|
})
|
100
|
-
.filter(
|
169
|
+
.filter(exclude(undefined))
|
101
170
|
.reduce((cfg, [key, value]) => key in cfg
|
102
171
|
? Object.assign(Object.assign({}, cfg), { [key]: [...ensureArray(cfg[key]), value] }) : Object.assign(Object.assign({}, cfg), { [key]: value }), {});
|
103
172
|
})();
|
@@ -159,7 +228,7 @@ function ensureSingleOrNone(arg0) {
|
|
159
228
|
|
160
229
|
|
161
230
|
|
162
|
-
(0,assert
|
231
|
+
(0,assert/* assert */.h)();
|
163
232
|
function getBuildContext(params) {
|
164
233
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
165
234
|
const { cliCommandOptions } = params;
|
@@ -184,7 +253,7 @@ function getBuildContext(params) {
|
|
184
253
|
}
|
185
254
|
return undefined;
|
186
255
|
})
|
187
|
-
.filter(
|
256
|
+
.filter(exclude(undefined))[0];
|
188
257
|
if (themeSrcDirPath !== undefined) {
|
189
258
|
return { themeSrcDirPath };
|
190
259
|
}
|
@@ -212,7 +281,7 @@ function getBuildContext(params) {
|
|
212
281
|
env: Object.assign(Object.assign({}, process.env), { [constants.VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES.RESOLVE_VITE_CONFIG]: "true" })
|
213
282
|
})
|
214
283
|
.toString("utf8");
|
215
|
-
(0,assert
|
284
|
+
(0,assert/* assert */.h)(output.includes(constants.VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES.RESOLVE_VITE_CONFIG), "Seems like the Keycloakify's Vite plugin is not installed.");
|
216
285
|
const resolvedViteConfigStr = output
|
217
286
|
.split(constants.VITE_PLUGIN_SUB_SCRIPTS_ENV_NAMES.RESOLVE_VITE_CONFIG)
|
218
287
|
.reverse()[0];
|
@@ -222,7 +291,7 @@ function getBuildContext(params) {
|
|
222
291
|
const packageJsonFilePath = (function getPackageJSonDirPath(upCount) {
|
223
292
|
var _a, _b;
|
224
293
|
const dirPath = (0,external_path_.resolve)((0,external_path_.join)(...[projectDirPath, ...Array(upCount).fill("..")]));
|
225
|
-
(0,assert
|
294
|
+
(0,assert/* assert */.h)(dirPath !== external_path_.sep, "Root package.json not found");
|
226
295
|
success: {
|
227
296
|
const packageJsonFilePath = (0,external_path_.join)(dirPath, "package.json");
|
228
297
|
if (!external_fs_.existsSync(packageJsonFilePath)) {
|
@@ -254,7 +323,7 @@ function getBuildContext(params) {
|
|
254
323
|
})
|
255
324
|
.optional()
|
256
325
|
});
|
257
|
-
(0,assert
|
326
|
+
(0,assert/* assert */.h)();
|
258
327
|
return (0,id.id)(zTargetType);
|
259
328
|
})();
|
260
329
|
const zSinglePageApp = (() => {
|
@@ -269,12 +338,12 @@ function getBuildContext(params) {
|
|
269
338
|
})
|
270
339
|
.optional()
|
271
340
|
});
|
272
|
-
(0,assert
|
341
|
+
(0,assert/* assert */.h)();
|
273
342
|
return (0,id.id)(zTargetType);
|
274
343
|
})();
|
275
344
|
const zAccountThemeImplAndKeycloakVersionTargets = (() => {
|
276
345
|
const zTargetType = lib.z.union([zMultiPageApp, zSinglePageApp]);
|
277
|
-
(0,assert
|
346
|
+
(0,assert/* assert */.h)();
|
278
347
|
return (0,id.id)(zTargetType);
|
279
348
|
})();
|
280
349
|
const zStartKeycloakOptions = (() => {
|
@@ -286,7 +355,7 @@ function getBuildContext(params) {
|
|
286
355
|
keycloakExtraArgs: lib.z.array(lib.z.string()).optional(),
|
287
356
|
port: lib.z.number().optional()
|
288
357
|
});
|
289
|
-
(0,assert
|
358
|
+
(0,assert/* assert */.h)();
|
290
359
|
return (0,id.id)(zTargetType);
|
291
360
|
})();
|
292
361
|
const zBuildOptions = (() => {
|
@@ -305,7 +374,7 @@ function getBuildContext(params) {
|
|
305
374
|
kcContextExclusionsFtl: lib.z.string().optional(),
|
306
375
|
startKeycloakOptions: zStartKeycloakOptions.optional()
|
307
376
|
}), zAccountThemeImplAndKeycloakVersionTargets);
|
308
|
-
(0,assert
|
377
|
+
(0,assert/* assert */.h)();
|
309
378
|
return (0,id.id)(zTargetType);
|
310
379
|
})();
|
311
380
|
const zBuildOptions_packageJson = (() => {
|
@@ -314,7 +383,7 @@ function getBuildContext(params) {
|
|
314
383
|
staticDirPathInProjectBuildDirPath: lib.z.string().optional(),
|
315
384
|
publicDirPath: lib.z.string().optional()
|
316
385
|
}));
|
317
|
-
(0,assert
|
386
|
+
(0,assert/* assert */.h)();
|
318
387
|
return (0,id.id)(zTargetType);
|
319
388
|
})();
|
320
389
|
const zParsedPackageJson = (() => {
|
@@ -324,7 +393,7 @@ function getBuildContext(params) {
|
|
324
393
|
homepage: lib.z.string().optional(),
|
325
394
|
keycloakify: zBuildOptions_packageJson.optional()
|
326
395
|
});
|
327
|
-
(0,assert
|
396
|
+
(0,assert/* assert */.h)();
|
328
397
|
return (0,id.id)(zTargetType);
|
329
398
|
})();
|
330
399
|
const configurationPackageJsonFilePath = (() => {
|
@@ -343,13 +412,13 @@ function getBuildContext(params) {
|
|
343
412
|
const buildOptions = (() => {
|
344
413
|
switch (bundler) {
|
345
414
|
case "vite":
|
346
|
-
(0,assert
|
415
|
+
(0,assert/* assert */.h)(resolvedViteConfig !== undefined);
|
347
416
|
return resolvedViteConfig.buildOptions;
|
348
417
|
case "webpack":
|
349
|
-
(0,assert
|
418
|
+
(0,assert/* assert */.h)(parsedPackageJson.keycloakify !== undefined);
|
350
419
|
return parsedPackageJson.keycloakify;
|
351
420
|
}
|
352
|
-
(0,assert
|
421
|
+
(0,assert/* assert */.h)(false);
|
353
422
|
})();
|
354
423
|
const implementedThemeTypes = {
|
355
424
|
login: {
|
@@ -393,7 +462,7 @@ function getBuildContext(params) {
|
|
393
462
|
return [buildOptions.themeName];
|
394
463
|
}
|
395
464
|
const [mainThemeName, ...themeVariantNames] = buildOptions.themeName;
|
396
|
-
(0,assert
|
465
|
+
(0,assert/* assert */.h)(mainThemeName !== undefined);
|
397
466
|
return [mainThemeName, ...themeVariantNames];
|
398
467
|
})();
|
399
468
|
for (const themeName of themeNames) {
|
@@ -412,7 +481,7 @@ function getBuildContext(params) {
|
|
412
481
|
if (bundler !== "webpack") {
|
413
482
|
break webpack;
|
414
483
|
}
|
415
|
-
(0,assert
|
484
|
+
(0,assert/* assert */.h)(parsedPackageJson.keycloakify !== undefined);
|
416
485
|
if (parsedPackageJson.keycloakify.projectBuildDirPath !== undefined) {
|
417
486
|
return getAbsoluteAndInOsFormatPath({
|
418
487
|
pathIsh: parsedPackageJson.keycloakify.projectBuildDirPath,
|
@@ -421,8 +490,8 @@ function getBuildContext(params) {
|
|
421
490
|
}
|
422
491
|
return (0,external_path_.join)(projectDirPath, "build");
|
423
492
|
}
|
424
|
-
(0,assert
|
425
|
-
(0,assert
|
493
|
+
(0,assert/* assert */.h)(bundler === "vite");
|
494
|
+
(0,assert/* assert */.h)(resolvedViteConfig !== undefined);
|
426
495
|
return (0,external_path_.join)(projectDirPath, resolvedViteConfig.buildDir);
|
427
496
|
})();
|
428
497
|
return {
|
@@ -464,7 +533,7 @@ function getBuildContext(params) {
|
|
464
533
|
if (bundler !== "webpack") {
|
465
534
|
break webpack;
|
466
535
|
}
|
467
|
-
(0,assert
|
536
|
+
(0,assert/* assert */.h)(parsedPackageJson.keycloakify !== undefined);
|
468
537
|
if (parsedPackageJson.keycloakify.publicDirPath !== undefined) {
|
469
538
|
return getAbsoluteAndInOsFormatPath({
|
470
539
|
pathIsh: parsedPackageJson.keycloakify.publicDirPath,
|
@@ -473,8 +542,8 @@ function getBuildContext(params) {
|
|
473
542
|
}
|
474
543
|
return (0,external_path_.join)(projectDirPath, "public");
|
475
544
|
}
|
476
|
-
(0,assert
|
477
|
-
(0,assert
|
545
|
+
(0,assert/* assert */.h)(bundler === "vite");
|
546
|
+
(0,assert/* assert */.h)(resolvedViteConfig !== undefined);
|
478
547
|
return (0,external_path_.join)(projectDirPath, resolvedViteConfig.publicDir);
|
479
548
|
})(),
|
480
549
|
cacheDirPath: (0,external_path_.join)((() => {
|
@@ -502,8 +571,8 @@ function getBuildContext(params) {
|
|
502
571
|
const out = url.pathname.replace(/([^/])$/, "$1/");
|
503
572
|
return out === "/" ? undefined : out;
|
504
573
|
}
|
505
|
-
(0,assert
|
506
|
-
(0,assert
|
574
|
+
(0,assert/* assert */.h)(bundler === "vite");
|
575
|
+
(0,assert/* assert */.h)(resolvedViteConfig !== undefined);
|
507
576
|
return resolvedViteConfig.urlPathname;
|
508
577
|
})(),
|
509
578
|
assetsDirPath: (() => {
|
@@ -511,7 +580,7 @@ function getBuildContext(params) {
|
|
511
580
|
if (bundler !== "webpack") {
|
512
581
|
break webpack;
|
513
582
|
}
|
514
|
-
(0,assert
|
583
|
+
(0,assert/* assert */.h)(parsedPackageJson.keycloakify !== undefined);
|
515
584
|
if (parsedPackageJson.keycloakify.staticDirPathInProjectBuildDirPath !==
|
516
585
|
undefined) {
|
517
586
|
getAbsoluteAndInOsFormatPath({
|
@@ -522,8 +591,8 @@ function getBuildContext(params) {
|
|
522
591
|
}
|
523
592
|
return (0,external_path_.join)(projectBuildDirPath, "static");
|
524
593
|
}
|
525
|
-
(0,assert
|
526
|
-
(0,assert
|
594
|
+
(0,assert/* assert */.h)(bundler === "vite");
|
595
|
+
(0,assert/* assert */.h)(resolvedViteConfig !== undefined);
|
527
596
|
return (0,external_path_.join)(projectBuildDirPath, resolvedViteConfig.assetsDir);
|
528
597
|
})(),
|
529
598
|
kcContextExclusionsFtlCode: (() => {
|
@@ -545,7 +614,7 @@ function getBuildContext(params) {
|
|
545
614
|
fetchOptions: getProxyFetchOptions({
|
546
615
|
npmConfigGetCwd: (function callee(upCount) {
|
547
616
|
const dirPath = (0,external_path_.resolve)((0,external_path_.join)(...[projectDirPath, ...Array(upCount).fill("..")]));
|
548
|
-
(0,assert
|
617
|
+
(0,assert/* assert */.h)(dirPath !== external_path_.sep, "Couldn't find a place to run 'npm config get'");
|
549
618
|
try {
|
550
619
|
external_child_process_namespaceObject.execSync("npm config get", {
|
551
620
|
cwd: dirPath,
|
@@ -570,7 +639,7 @@ function getBuildContext(params) {
|
|
570
639
|
return undefined;
|
571
640
|
}
|
572
641
|
const major = parseInt(envValue);
|
573
|
-
(0,assert
|
642
|
+
(0,assert/* assert */.h)(!isNaN(major));
|
574
643
|
return major;
|
575
644
|
})();
|
576
645
|
if (buildForKeycloakMajorVersionNumber === undefined) {
|
@@ -583,7 +652,7 @@ function getBuildContext(params) {
|
|
583
652
|
if (buildForKeycloakMajorVersionNumber <= 21) {
|
584
653
|
return "21-and-below";
|
585
654
|
}
|
586
|
-
(0,assert
|
655
|
+
(0,assert/* assert */.h)(buildForKeycloakMajorVersionNumber !== 22);
|
587
656
|
if (buildForKeycloakMajorVersionNumber === 23) {
|
588
657
|
return "23";
|
589
658
|
}
|
@@ -592,7 +661,7 @@ function getBuildContext(params) {
|
|
592
661
|
}
|
593
662
|
return "25-and-above";
|
594
663
|
})();
|
595
|
-
(0,assert
|
664
|
+
(0,assert/* assert */.h)();
|
596
665
|
return keycloakVersionRange;
|
597
666
|
}
|
598
667
|
else {
|
@@ -602,7 +671,7 @@ function getBuildContext(params) {
|
|
602
671
|
}
|
603
672
|
return "22-and-above";
|
604
673
|
})();
|
605
|
-
(0,assert
|
674
|
+
(0,assert/* assert */.h)();
|
606
675
|
return keycloakVersionRange;
|
607
676
|
}
|
608
677
|
})();
|
@@ -612,7 +681,7 @@ function getBuildContext(params) {
|
|
612
681
|
if (keycloakVersionTargets === undefined) {
|
613
682
|
break use_custom_jar_basename;
|
614
683
|
}
|
615
|
-
const entry =
|
684
|
+
const entry = objectEntries(keycloakVersionTargets).find(([keycloakVersionRange_entry]) => keycloakVersionRange_entry === keycloakVersionRange);
|
616
685
|
if (entry === undefined) {
|
617
686
|
break use_custom_jar_basename;
|
618
687
|
}
|
@@ -641,7 +710,7 @@ function getBuildContext(params) {
|
|
641
710
|
"24",
|
642
711
|
"25-and-above"
|
643
712
|
]) {
|
644
|
-
(0,assert
|
713
|
+
(0,assert/* assert */.h)(true);
|
645
714
|
jarTargets.push({
|
646
715
|
keycloakVersionRange,
|
647
716
|
jarFileBasename: getDefaultJarFileBasename(keycloakVersionRange)
|
@@ -653,7 +722,7 @@ function getBuildContext(params) {
|
|
653
722
|
"21-and-below",
|
654
723
|
"22-and-above"
|
655
724
|
]) {
|
656
|
-
(0,assert
|
725
|
+
(0,assert/* assert */.h)(true);
|
657
726
|
jarTargets.push({
|
658
727
|
keycloakVersionRange,
|
659
728
|
jarFileBasename: getDefaultJarFileBasename(keycloakVersionRange)
|
@@ -666,7 +735,7 @@ function getBuildContext(params) {
|
|
666
735
|
return jarTargets_default;
|
667
736
|
}
|
668
737
|
const jarTargets = [];
|
669
|
-
for (const [keycloakVersionRange, jarNameOrBoolean] of
|
738
|
+
for (const [keycloakVersionRange, jarNameOrBoolean] of objectEntries(buildOptions.keycloakVersionTargets)) {
|
670
739
|
if (jarNameOrBoolean === false) {
|
671
740
|
continue;
|
672
741
|
}
|
@@ -708,7 +777,7 @@ function getBuildContext(params) {
|
|
708
777
|
return undefined;
|
709
778
|
}
|
710
779
|
const [reference, tag, ...rest] = buildOptions.startKeycloakOptions.dockerImage.split(":");
|
711
|
-
(0,assert
|
780
|
+
(0,assert/* assert */.h)(reference !== undefined && tag !== undefined && rest.length === 0, `Invalid docker image: ${buildOptions.startKeycloakOptions.dockerImage}`);
|
712
781
|
return { reference, tag };
|
713
782
|
})(),
|
714
783
|
dockerExtraArgs: (_g = (_f = buildOptions.startKeycloakOptions) === null || _f === void 0 ? void 0 : _f.dockerExtraArgs) !== null && _g !== void 0 ? _g : [],
|
@@ -853,8 +922,8 @@ function getThisCodebaseRootDirPath() {
|
|
853
922
|
return (result = getThisCodebaseRootDirPath_rec(__dirname));
|
854
923
|
}
|
855
924
|
//# sourceMappingURL=getThisCodebaseRootDirPath.js.map
|
856
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/assert.
|
857
|
-
var assert = __nccwpck_require__(
|
925
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
|
926
|
+
var assert = __nccwpck_require__(41);
|
858
927
|
;// CONCATENATED MODULE: ./dist/bin/tools/readThisNpmPackageVersion.js
|
859
928
|
|
860
929
|
|
@@ -863,7 +932,7 @@ var assert = __nccwpck_require__(78);
|
|
863
932
|
function readThisNpmPackageVersion() {
|
864
933
|
const version = JSON.parse(external_fs_.readFileSync((0,external_path_.join)(getThisCodebaseRootDirPath(), "package.json"))
|
865
934
|
.toString("utf8"))["version"];
|
866
|
-
(0,assert
|
935
|
+
(0,assert/* assert */.h)(typeof version === "string");
|
867
936
|
return version;
|
868
937
|
}
|
869
938
|
//# sourceMappingURL=readThisNpmPackageVersion.js.map
|
@@ -964,7 +1033,7 @@ function transformCodebase(params) {
|
|
964
1033
|
|
965
1034
|
|
966
1035
|
|
967
|
-
(0,assert
|
1036
|
+
(0,assert/* assert */.h)();
|
968
1037
|
function copyKeycloakResourcesToPublic(params) {
|
969
1038
|
const { buildContext } = params;
|
970
1039
|
const destDirPath = (0,external_path_.join)(buildContext.publicDirPath, constants.WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES);
|
@@ -1024,10 +1093,10 @@ __nccwpck_require__.d(__webpack_exports__, {
|
|
1024
1093
|
"generateKcGenTs": () => (/* binding */ generateKcGenTs)
|
1025
1094
|
});
|
1026
1095
|
|
1027
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/assert.
|
1028
|
-
var assert = __nccwpck_require__(
|
1029
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/id.
|
1030
|
-
var id = __nccwpck_require__(
|
1096
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
|
1097
|
+
var assert = __nccwpck_require__(41);
|
1098
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
|
1099
|
+
var id = __nccwpck_require__(469);
|
1031
1100
|
// EXTERNAL MODULE: external "fs/promises"
|
1032
1101
|
var promises_ = __nccwpck_require__(292);
|
1033
1102
|
// EXTERNAL MODULE: external "path"
|
@@ -1055,7 +1124,7 @@ var lib = __nccwpck_require__(300);
|
|
1055
1124
|
|
1056
1125
|
|
1057
1126
|
|
1058
|
-
(0,assert
|
1127
|
+
(0,assert/* assert */.h)();
|
1059
1128
|
async function generateKcGenTs(params) {
|
1060
1129
|
const { buildContext } = params;
|
1061
1130
|
const isReactProject = await (async () => {
|
@@ -1065,7 +1134,7 @@ async function generateKcGenTs(params) {
|
|
1065
1134
|
dependencies: lib.z.record(lib.z.string()).optional(),
|
1066
1135
|
devDependencies: lib.z.record(lib.z.string()).optional()
|
1067
1136
|
});
|
1068
|
-
(0,assert
|
1137
|
+
(0,assert/* assert */.h)();
|
1069
1138
|
return (0,id.id)(zTargetType);
|
1070
1139
|
})();
|
1071
1140
|
return zParsedPackageJson.parse(JSON.parse((await promises_.readFile(buildContext.packageJsonFilePath)).toString("utf8")));
|
@@ -1384,7 +1453,7 @@ const id_1 = __nccwpck_require__(47);
|
|
1384
1453
|
const fs_rm_1 = __nccwpck_require__(699);
|
1385
1454
|
const copyKeycloakResourcesToPublic_1 = __nccwpck_require__(601);
|
1386
1455
|
const assert_1 = __nccwpck_require__(78);
|
1387
|
-
const buildContext_1 = __nccwpck_require__(
|
1456
|
+
const buildContext_1 = __nccwpck_require__(6);
|
1388
1457
|
const magic_string_1 = __importDefault(__nccwpck_require__(734));
|
1389
1458
|
const generateKcGenTs_1 = __nccwpck_require__(582);
|
1390
1459
|
function keycloakify(params) {
|
@@ -1480,7 +1549,7 @@ function keycloakify(params) {
|
|
1480
1549
|
transformedCode.replaceAll(/import\.meta\.env(?:(?:\.BASE_URL)|(?:\["BASE_URL"\]))/g, [
|
1481
1550
|
`(`,
|
1482
1551
|
`(window.kcContext === undefined || import.meta.env.MODE === "development")?`,
|
1483
|
-
`
|
1552
|
+
`import.meta.env.BASE_URL:`,
|
1484
1553
|
`(window.kcContext["x-keycloakify"].resourcesPath + "/${constants_1.WELL_KNOWN_DIRECTORY_BASE_NAME.DIST}/")`,
|
1485
1554
|
`)`
|
1486
1555
|
].join(""));
|
@@ -5195,23 +5264,6 @@ module.exports = {
|
|
5195
5264
|
};
|
5196
5265
|
|
5197
5266
|
|
5198
|
-
/***/ }),
|
5199
|
-
|
5200
|
-
/***/ 379:
|
5201
|
-
/***/ ((__unused_webpack_module, exports) => {
|
5202
|
-
|
5203
|
-
"use strict";
|
5204
|
-
|
5205
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5206
|
-
exports.Reflect = void 0;
|
5207
|
-
/** Always return null but pretends it returns an object of type T */
|
5208
|
-
function Reflect() {
|
5209
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5210
|
-
return null;
|
5211
|
-
}
|
5212
|
-
exports.Reflect = Reflect;
|
5213
|
-
//# sourceMappingURL=Reflect.js.map
|
5214
|
-
|
5215
5267
|
/***/ }),
|
5216
5268
|
|
5217
5269
|
/***/ 78:
|
@@ -5304,73 +5356,6 @@ exports.assert = assert;
|
|
5304
5356
|
|
5305
5357
|
/***/ }),
|
5306
5358
|
|
5307
|
-
/***/ 502:
|
5308
|
-
/***/ ((__unused_webpack_module, exports) => {
|
5309
|
-
|
5310
|
-
"use strict";
|
5311
|
-
|
5312
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5313
|
-
exports.capitalize = void 0;
|
5314
|
-
/** @see <https://docs.tsafe.dev/capitalize> */
|
5315
|
-
function capitalize(str) {
|
5316
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5317
|
-
return (str.charAt(0).toUpperCase() + str.slice(1));
|
5318
|
-
}
|
5319
|
-
exports.capitalize = capitalize;
|
5320
|
-
//# sourceMappingURL=capitalize.js.map
|
5321
|
-
|
5322
|
-
/***/ }),
|
5323
|
-
|
5324
|
-
/***/ 370:
|
5325
|
-
/***/ ((__unused_webpack_module, exports) => {
|
5326
|
-
|
5327
|
-
"use strict";
|
5328
|
-
|
5329
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5330
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5331
|
-
exports.exclude = void 0;
|
5332
|
-
/** Return a function to use as Array.prototype.filter argument
|
5333
|
-
* to exclude one or many primitive value element from the array.
|
5334
|
-
* Ex: ([ "a", "b", "c" ] as const).filter(exclude("a")) return ("b" | "c")[]
|
5335
|
-
* Ex: ([ "a", "b", "c", "d"] as const).filter(exclude(["a", "b"]) gives ("c" | "d")[]
|
5336
|
-
*/
|
5337
|
-
function exclude(target) {
|
5338
|
-
var test = target instanceof Object
|
5339
|
-
? function (element) { return target.indexOf(element) < 0; }
|
5340
|
-
: function (element) { return element !== target; };
|
5341
|
-
return function (str) {
|
5342
|
-
return test(str);
|
5343
|
-
};
|
5344
|
-
}
|
5345
|
-
exports.exclude = exclude;
|
5346
|
-
//# sourceMappingURL=exclude.js.map
|
5347
|
-
|
5348
|
-
/***/ }),
|
5349
|
-
|
5350
|
-
/***/ 800:
|
5351
|
-
/***/ ((__unused_webpack_module, exports) => {
|
5352
|
-
|
5353
|
-
"use strict";
|
5354
|
-
|
5355
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5356
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5357
|
-
exports.flip = void 0;
|
5358
|
-
/**
|
5359
|
-
* Flip the value of a boolean without having to reference it twice
|
5360
|
-
* after running flip(x.y, "z") x.y.z !== x.y.z,
|
5361
|
-
* https://docs.tsafe.dev/flip
|
5362
|
-
*/
|
5363
|
-
function flip(object, prop) {
|
5364
|
-
if (object[prop] === undefined) {
|
5365
|
-
return;
|
5366
|
-
}
|
5367
|
-
return (object[prop] = !object[prop]);
|
5368
|
-
}
|
5369
|
-
exports.flip = flip;
|
5370
|
-
//# sourceMappingURL=flip.js.map
|
5371
|
-
|
5372
|
-
/***/ }),
|
5373
|
-
|
5374
5359
|
/***/ 47:
|
5375
5360
|
/***/ ((__unused_webpack_module, exports) => {
|
5376
5361
|
|
@@ -5385,44 +5370,6 @@ exports.id = id;
|
|
5385
5370
|
|
5386
5371
|
/***/ }),
|
5387
5372
|
|
5388
|
-
/***/ 666:
|
5389
|
-
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
5390
|
-
|
5391
|
-
"use strict";
|
5392
|
-
|
5393
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
5394
|
-
if (k2 === undefined) k2 = k;
|
5395
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5396
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
5397
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
5398
|
-
}
|
5399
|
-
Object.defineProperty(o, k2, desc);
|
5400
|
-
}) : (function(o, m, k, k2) {
|
5401
|
-
if (k2 === undefined) k2 = k;
|
5402
|
-
o[k2] = m[k];
|
5403
|
-
}));
|
5404
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
5405
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
5406
|
-
};
|
5407
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5408
|
-
__exportStar(__nccwpck_require__(78), exports);
|
5409
|
-
__exportStar(__nccwpck_require__(370), exports);
|
5410
|
-
__exportStar(__nccwpck_require__(800), exports);
|
5411
|
-
__exportStar(__nccwpck_require__(47), exports);
|
5412
|
-
__exportStar(__nccwpck_require__(268), exports);
|
5413
|
-
__exportStar(__nccwpck_require__(762), exports);
|
5414
|
-
__exportStar(__nccwpck_require__(393), exports);
|
5415
|
-
__exportStar(__nccwpck_require__(655), exports);
|
5416
|
-
__exportStar(__nccwpck_require__(612), exports);
|
5417
|
-
__exportStar(__nccwpck_require__(634), exports);
|
5418
|
-
__exportStar(__nccwpck_require__(49), exports);
|
5419
|
-
__exportStar(__nccwpck_require__(379), exports);
|
5420
|
-
__exportStar(__nccwpck_require__(502), exports);
|
5421
|
-
__exportStar(__nccwpck_require__(479), exports);
|
5422
|
-
//# sourceMappingURL=index.js.map
|
5423
|
-
|
5424
|
-
/***/ }),
|
5425
|
-
|
5426
5373
|
/***/ 655:
|
5427
5374
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
5428
5375
|
|
@@ -5456,22 +5403,6 @@ exports.is = is;
|
|
5456
5403
|
|
5457
5404
|
/***/ }),
|
5458
5405
|
|
5459
|
-
/***/ 268:
|
5460
|
-
/***/ ((__unused_webpack_module, exports) => {
|
5461
|
-
|
5462
|
-
"use strict";
|
5463
|
-
|
5464
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5465
|
-
exports.isPromiseLike = void 0;
|
5466
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5467
|
-
function isPromiseLike(o) {
|
5468
|
-
return typeof o === "object" && o !== null && "then" in o && typeof o.then === "function";
|
5469
|
-
}
|
5470
|
-
exports.isPromiseLike = isPromiseLike;
|
5471
|
-
//# sourceMappingURL=isPromiseLike.js.map
|
5472
|
-
|
5473
|
-
/***/ }),
|
5474
|
-
|
5475
5406
|
/***/ 803:
|
5476
5407
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
5477
5408
|
|
@@ -5531,176 +5462,268 @@ exports.overwriteReadonlyProp = overwriteReadonlyProp;
|
|
5531
5462
|
|
5532
5463
|
/***/ }),
|
5533
5464
|
|
5534
|
-
/***/
|
5535
|
-
/***/ ((__unused_webpack_module, exports) => {
|
5465
|
+
/***/ 562:
|
5466
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
5536
5467
|
|
5537
5468
|
"use strict";
|
5538
5469
|
|
5539
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5540
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
5541
5470
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5542
|
-
exports.
|
5543
|
-
|
5544
|
-
|
5545
|
-
|
5546
|
-
|
5547
|
-
|
5548
|
-
* noUndefined({ "foo": undefined, "bar": 3 }) returns
|
5549
|
-
* a new object { "bar": 3 }
|
5550
|
-
*/
|
5551
|
-
function noUndefined(obj) {
|
5552
|
-
var out = {};
|
5553
|
-
for (var key in obj) {
|
5554
|
-
if (obj[key] === undefined) {
|
5555
|
-
continue;
|
5556
|
-
}
|
5557
|
-
out[key] = obj[key];
|
5558
|
-
}
|
5559
|
-
return out;
|
5560
|
-
}
|
5561
|
-
exports.noUndefined = noUndefined;
|
5562
|
-
//# sourceMappingURL=noUndefined.js.map
|
5471
|
+
exports.assertIsRefWrapper = void 0;
|
5472
|
+
var id_1 = __nccwpck_require__(47);
|
5473
|
+
exports.assertIsRefWrapper = {
|
5474
|
+
"ref": (0, id_1.id)(undefined),
|
5475
|
+
};
|
5476
|
+
//# sourceMappingURL=assertIsRefWrapper.js.map
|
5563
5477
|
|
5564
5478
|
/***/ }),
|
5565
5479
|
|
5566
|
-
/***/
|
5567
|
-
/***/ ((
|
5480
|
+
/***/ 147:
|
5481
|
+
/***/ ((module) => {
|
5568
5482
|
|
5569
5483
|
"use strict";
|
5570
|
-
|
5571
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5572
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5573
|
-
exports.objectEntries = void 0;
|
5574
|
-
/** https://docs.tsafe.dev/objectentries */
|
5575
|
-
function objectEntries(o) {
|
5576
|
-
return Object.entries(o);
|
5577
|
-
}
|
5578
|
-
exports.objectEntries = objectEntries;
|
5579
|
-
//# sourceMappingURL=objectEntries.js.map
|
5484
|
+
module.exports = require("fs");
|
5580
5485
|
|
5581
5486
|
/***/ }),
|
5582
5487
|
|
5583
|
-
/***/
|
5584
|
-
/***/ ((
|
5488
|
+
/***/ 292:
|
5489
|
+
/***/ ((module) => {
|
5585
5490
|
|
5586
5491
|
"use strict";
|
5587
|
-
|
5588
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5589
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5590
|
-
exports.objectFromEntries = void 0;
|
5591
|
-
/** https://docs.tsafe.dev/objectFromEntries */
|
5592
|
-
function objectFromEntries(entries) {
|
5593
|
-
return Object.fromEntries(entries);
|
5594
|
-
}
|
5595
|
-
exports.objectFromEntries = objectFromEntries;
|
5596
|
-
//# sourceMappingURL=objectFromEntries.js.map
|
5492
|
+
module.exports = require("fs/promises");
|
5597
5493
|
|
5598
5494
|
/***/ }),
|
5599
5495
|
|
5600
|
-
/***/
|
5601
|
-
/***/ ((
|
5496
|
+
/***/ 37:
|
5497
|
+
/***/ ((module) => {
|
5602
5498
|
|
5603
5499
|
"use strict";
|
5604
|
-
|
5605
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5606
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5607
|
-
exports.objectKeys = void 0;
|
5608
|
-
/** https://docs.tsafe.dev/objectKeys */
|
5609
|
-
function objectKeys(o) {
|
5610
|
-
return Object.keys(o);
|
5611
|
-
}
|
5612
|
-
exports.objectKeys = objectKeys;
|
5613
|
-
//# sourceMappingURL=objectKeys.js.map
|
5500
|
+
module.exports = require("os");
|
5614
5501
|
|
5615
5502
|
/***/ }),
|
5616
5503
|
|
5617
|
-
/***/
|
5618
|
-
/***/ ((
|
5504
|
+
/***/ 17:
|
5505
|
+
/***/ ((module) => {
|
5619
5506
|
|
5620
5507
|
"use strict";
|
5621
|
-
|
5622
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
5623
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5624
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5625
|
-
exports.typeGuard = void 0;
|
5626
|
-
/** https://docs.tsafe.dev/typeguard */
|
5627
|
-
function typeGuard(_value, isMatched) {
|
5628
|
-
return isMatched;
|
5629
|
-
}
|
5630
|
-
exports.typeGuard = typeGuard;
|
5631
|
-
//# sourceMappingURL=typeGuard.js.map
|
5508
|
+
module.exports = require("path");
|
5632
5509
|
|
5633
5510
|
/***/ }),
|
5634
5511
|
|
5635
|
-
/***/
|
5636
|
-
/***/ ((
|
5512
|
+
/***/ 224:
|
5513
|
+
/***/ ((module) => {
|
5637
5514
|
|
5638
5515
|
"use strict";
|
5639
|
-
|
5640
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
5641
|
-
exports.uncapitalize = void 0;
|
5642
|
-
/** @see <https://docs.tsafe.dev/capitalize#uncapitalize> */
|
5643
|
-
function uncapitalize(str) {
|
5644
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5645
|
-
return (str.charAt(0).toLowerCase() + str.slice(1));
|
5646
|
-
}
|
5647
|
-
exports.uncapitalize = uncapitalize;
|
5648
|
-
//# sourceMappingURL=uncapitalize.js.map
|
5516
|
+
module.exports = require("tty");
|
5649
5517
|
|
5650
5518
|
/***/ }),
|
5651
5519
|
|
5652
|
-
/***/
|
5653
|
-
/***/ ((
|
5520
|
+
/***/ 41:
|
5521
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
5654
5522
|
|
5655
5523
|
"use strict";
|
5656
5524
|
|
5657
|
-
|
5658
|
-
|
5659
|
-
|
5660
|
-
|
5661
|
-
"ref": (0, id_1.id)(undefined),
|
5662
|
-
};
|
5663
|
-
//# sourceMappingURL=assertIsRefWrapper.js.map
|
5525
|
+
// EXPORTS
|
5526
|
+
__nccwpck_require__.d(__webpack_exports__, {
|
5527
|
+
"h": () => (/* binding */ assert)
|
5528
|
+
});
|
5664
5529
|
|
5665
|
-
|
5530
|
+
// UNUSED EXPORTS: AssertionError
|
5666
5531
|
|
5667
|
-
|
5668
|
-
|
5532
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/is.mjs
|
5533
|
+
var is = __nccwpck_require__(453);
|
5534
|
+
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/lab/overwriteReadonlyProp.mjs
|
5535
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
5536
|
+
__assign = Object.assign || function(t) {
|
5537
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5538
|
+
s = arguments[i];
|
5539
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
5540
|
+
t[p] = s[p];
|
5541
|
+
}
|
5542
|
+
return t;
|
5543
|
+
};
|
5544
|
+
return __assign.apply(this, arguments);
|
5545
|
+
};
|
5546
|
+
/* eslint-disable no-empty */
|
5547
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5669
5548
|
|
5670
|
-
"use strict";
|
5671
|
-
module.exports = require("fs");
|
5672
5549
|
|
5673
|
-
|
5550
|
+
/**
|
5551
|
+
* Assign a value to a property even if the object is freezed or if the property is not writable
|
5552
|
+
* Throw if the assignation fail ( for example if the property is non configurable write: false )
|
5553
|
+
* */
|
5554
|
+
var overwriteReadonlyProp = function (obj, propertyName, value) {
|
5555
|
+
try {
|
5556
|
+
obj[propertyName] = value;
|
5557
|
+
}
|
5558
|
+
catch (_a) { }
|
5559
|
+
if (obj[propertyName] === value) {
|
5560
|
+
return value;
|
5561
|
+
}
|
5562
|
+
var errorDefineProperty = undefined;
|
5563
|
+
var propertyDescriptor = Object.getOwnPropertyDescriptor(obj, propertyName) || {
|
5564
|
+
"enumerable": true,
|
5565
|
+
"configurable": true,
|
5566
|
+
};
|
5567
|
+
if (!!propertyDescriptor.get) {
|
5568
|
+
throw new Error("Probably a wrong ides to overwrite ".concat(String(propertyName), " getter"));
|
5569
|
+
}
|
5570
|
+
try {
|
5571
|
+
Object.defineProperty(obj, propertyName, __assign(__assign({}, propertyDescriptor), { value: value }));
|
5572
|
+
}
|
5573
|
+
catch (error) {
|
5574
|
+
assert((0,is.is)(error));
|
5575
|
+
errorDefineProperty = error;
|
5576
|
+
}
|
5577
|
+
if (obj[propertyName] !== value) {
|
5578
|
+
throw errorDefineProperty || new Error("Can't assign");
|
5579
|
+
}
|
5580
|
+
return value;
|
5581
|
+
};
|
5582
|
+
//# sourceMappingURL=overwriteReadonlyProp.mjs.map
|
5583
|
+
// EXTERNAL MODULE: ./node_modules/tsafe/esm/zz_internal/assertIsRefWrapper.mjs
|
5584
|
+
var assertIsRefWrapper = __nccwpck_require__(770);
|
5585
|
+
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/assert.mjs
|
5586
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
5587
|
+
var extendStatics = function (d, b) {
|
5588
|
+
extendStatics = Object.setPrototypeOf ||
|
5589
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5590
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
5591
|
+
return extendStatics(d, b);
|
5592
|
+
};
|
5593
|
+
return function (d, b) {
|
5594
|
+
if (typeof b !== "function" && b !== null)
|
5595
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
5596
|
+
extendStatics(d, b);
|
5597
|
+
function __() { this.constructor = d; }
|
5598
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
5599
|
+
};
|
5600
|
+
})();
|
5601
|
+
var __read = (undefined && undefined.__read) || function (o, n) {
|
5602
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
5603
|
+
if (!m) return o;
|
5604
|
+
var i = m.call(o), r, ar = [], e;
|
5605
|
+
try {
|
5606
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
5607
|
+
}
|
5608
|
+
catch (error) { e = { error: error }; }
|
5609
|
+
finally {
|
5610
|
+
try {
|
5611
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
5612
|
+
}
|
5613
|
+
finally { if (e) throw e.error; }
|
5614
|
+
}
|
5615
|
+
return ar;
|
5616
|
+
};
|
5617
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
5674
5618
|
|
5675
|
-
/***/ 292:
|
5676
|
-
/***/ ((module) => {
|
5677
5619
|
|
5678
|
-
|
5679
|
-
|
5620
|
+
/** @see <https://docs.tsafe.dev/assert#error-thrown> */
|
5621
|
+
var AssertionError = /** @class */ (function (_super) {
|
5622
|
+
__extends(AssertionError, _super);
|
5623
|
+
function AssertionError(msg) {
|
5624
|
+
var _newTarget = this.constructor;
|
5625
|
+
var _this = _super.call(this, "Wrong assertion encountered" + (!msg ? "" : ": \"".concat(msg, "\""))) || this;
|
5626
|
+
Object.setPrototypeOf(_this, _newTarget.prototype);
|
5627
|
+
if (!_this.stack) {
|
5628
|
+
return _this;
|
5629
|
+
}
|
5630
|
+
try {
|
5631
|
+
overwriteReadonlyProp(_this, "stack", _this.stack
|
5632
|
+
.split("\n")
|
5633
|
+
.filter(function () {
|
5634
|
+
var _a = [];
|
5635
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
5636
|
+
_a[_i] = arguments[_i];
|
5637
|
+
}
|
5638
|
+
var _b = __read(_a, 2), i = _b[1];
|
5639
|
+
return i !== 1 && i !== 2;
|
5640
|
+
})
|
5641
|
+
.join("\n"));
|
5642
|
+
// eslint-disable-next-line no-empty
|
5643
|
+
}
|
5644
|
+
catch (_a) { }
|
5645
|
+
return _this;
|
5646
|
+
}
|
5647
|
+
return AssertionError;
|
5648
|
+
}(Error));
|
5649
|
+
|
5650
|
+
/** https://docs.tsafe.dev/assert */
|
5651
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5652
|
+
function assert(condition, msg) {
|
5653
|
+
if (arguments.length === 0) {
|
5654
|
+
condition = true;
|
5655
|
+
}
|
5656
|
+
if (assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref !== undefined) {
|
5657
|
+
assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref = undefined;
|
5658
|
+
return;
|
5659
|
+
}
|
5660
|
+
if (!condition) {
|
5661
|
+
throw new AssertionError(msg);
|
5662
|
+
}
|
5663
|
+
}
|
5664
|
+
//# sourceMappingURL=assert.mjs.map
|
5680
5665
|
|
5681
5666
|
/***/ }),
|
5682
5667
|
|
5683
|
-
/***/
|
5684
|
-
/***/ ((
|
5668
|
+
/***/ 469:
|
5669
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
5685
5670
|
|
5686
5671
|
"use strict";
|
5687
|
-
|
5672
|
+
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
5673
|
+
/* harmony export */ "id": () => (/* binding */ id)
|
5674
|
+
/* harmony export */ });
|
5675
|
+
/** https://docs.tsafe.dev/id */
|
5676
|
+
var id = function (x) { return x; };
|
5677
|
+
//# sourceMappingURL=id.mjs.map
|
5688
5678
|
|
5689
5679
|
/***/ }),
|
5690
5680
|
|
5691
|
-
/***/
|
5692
|
-
/***/ ((
|
5681
|
+
/***/ 453:
|
5682
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
5693
5683
|
|
5694
5684
|
"use strict";
|
5695
|
-
|
5685
|
+
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
5686
|
+
/* harmony export */ "is": () => (/* binding */ is)
|
5687
|
+
/* harmony export */ });
|
5688
|
+
/* harmony import */ var _zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(770);
|
5689
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
5690
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
5691
|
+
|
5692
|
+
var errorMessage = [
|
5693
|
+
"Wrong usage of the ".concat(is.name, " function refer to"),
|
5694
|
+
"https://docs.tsafe.dev/".concat(is.name.toLowerCase()),
|
5695
|
+
].join(" ");
|
5696
|
+
function is(_value) {
|
5697
|
+
var ref = {};
|
5698
|
+
if (_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref !== undefined) {
|
5699
|
+
_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref = undefined;
|
5700
|
+
throw new Error(errorMessage);
|
5701
|
+
}
|
5702
|
+
_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref = ref;
|
5703
|
+
Promise.resolve().then(function () {
|
5704
|
+
if (_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref === ref) {
|
5705
|
+
throw new Error(errorMessage);
|
5706
|
+
}
|
5707
|
+
});
|
5708
|
+
return null;
|
5709
|
+
}
|
5710
|
+
//# sourceMappingURL=is.mjs.map
|
5696
5711
|
|
5697
5712
|
/***/ }),
|
5698
5713
|
|
5699
|
-
/***/
|
5700
|
-
/***/ ((
|
5714
|
+
/***/ 770:
|
5715
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
|
5701
5716
|
|
5702
5717
|
"use strict";
|
5703
|
-
|
5718
|
+
/* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
|
5719
|
+
/* harmony export */ "j": () => (/* binding */ assertIsRefWrapper)
|
5720
|
+
/* harmony export */ });
|
5721
|
+
/* harmony import */ var _id_mjs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(469);
|
5722
|
+
|
5723
|
+
var assertIsRefWrapper = {
|
5724
|
+
"ref": (0,_id_mjs__WEBPACK_IMPORTED_MODULE_0__.id)(undefined),
|
5725
|
+
};
|
5726
|
+
//# sourceMappingURL=assertIsRefWrapper.mjs.map
|
5704
5727
|
|
5705
5728
|
/***/ }),
|
5706
5729
|
|