keycloakify 11.3.23 → 11.3.24

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.
@@ -1,7 +1,7 @@
1
1
  /******/ (() => { // webpackBootstrap
2
2
  /******/ var __webpack_modules__ = ({
3
3
 
4
- /***/ 721:
4
+ /***/ 713:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
6
6
 
7
7
  "use strict";
@@ -19,44 +19,10 @@ var customHandler_delegate = __nccwpck_require__(138);
19
19
  var external_path_ = __nccwpck_require__(17);
20
20
  // EXTERNAL MODULE: ./dist/bin/shared/constants.js
21
21
  var constants = __nccwpck_require__(173);
22
+ // EXTERNAL MODULE: ./dist/bin/tools/readThisNpmPackageVersion.js
23
+ var readThisNpmPackageVersion = __nccwpck_require__(795);
22
24
  // EXTERNAL MODULE: external "fs"
23
25
  var external_fs_ = __nccwpck_require__(147);
24
- ;// CONCATENATED MODULE: ./dist/bin/tools/getThisCodebaseRootDirPath.js
25
-
26
-
27
- function getThisCodebaseRootDirPath_rec(dirPath) {
28
- if (external_fs_.existsSync(external_path_.join(dirPath, "package.json"))) {
29
- return dirPath;
30
- }
31
- return getThisCodebaseRootDirPath_rec(external_path_.join(dirPath, ".."));
32
- }
33
- let result = undefined;
34
- function getThisCodebaseRootDirPath() {
35
- if (result !== undefined) {
36
- return result;
37
- }
38
- return (result = getThisCodebaseRootDirPath_rec(__dirname));
39
- }
40
- //# sourceMappingURL=getThisCodebaseRootDirPath.js.map
41
- // EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
42
- var assert = __nccwpck_require__(41);
43
- ;// CONCATENATED MODULE: ./dist/bin/tools/readThisNpmPackageVersion.js
44
-
45
-
46
-
47
-
48
- let cache = undefined;
49
- function readThisNpmPackageVersion() {
50
- if (cache !== undefined) {
51
- return cache;
52
- }
53
- const version = JSON.parse(external_fs_.readFileSync((0,external_path_.join)(getThisCodebaseRootDirPath(), "package.json"))
54
- .toString("utf8"))["version"];
55
- (0,assert/* assert */.h)(typeof version === "string");
56
- cache = version;
57
- return version;
58
- }
59
- //# sourceMappingURL=readThisNpmPackageVersion.js.map
60
26
  // EXTERNAL MODULE: ./dist/bin/tools/SemVer.js
61
27
  var SemVer = __nccwpck_require__(171);
62
28
  ;// CONCATENATED MODULE: ./dist/bin/tools/fs.rmSync.js
@@ -145,6 +111,8 @@ function transformCodebase(params) {
145
111
  }
146
112
  }
147
113
  //# sourceMappingURL=transformCodebase.js.map
114
+ // EXTERNAL MODULE: ./dist/bin/tools/getThisCodebaseRootDirPath.js
115
+ var getThisCodebaseRootDirPath = __nccwpck_require__(822);
148
116
  ;// CONCATENATED MODULE: ./dist/bin/copy-keycloak-resources-to-public.js
149
117
 
150
118
 
@@ -166,7 +134,7 @@ async function command(params) {
166
134
  const destDirPath = (0,external_path_.join)(buildContext.publicDirPath, constants.WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES);
167
135
  const keycloakifyBuildinfoFilePath = (0,external_path_.join)(destDirPath, "keycloakify.buildinfo");
168
136
  const keycloakifyBuildinfoRaw = JSON.stringify({
169
- keycloakifyVersion: readThisNpmPackageVersion()
137
+ keycloakifyVersion: (0,readThisNpmPackageVersion/* readThisNpmPackageVersion */.K)()
170
138
  }, null, 2);
171
139
  skip_if_already_done: {
172
140
  if (!external_fs_.existsSync(keycloakifyBuildinfoFilePath)) {
@@ -192,7 +160,7 @@ async function command(params) {
192
160
  external_fs_.mkdirSync(destDirPath, { recursive: true });
193
161
  external_fs_.writeFileSync((0,external_path_.join)(destDirPath, ".gitignore"), Buffer.from("*", "utf8"));
194
162
  transformCodebase({
195
- srcDirPath: (0,external_path_.join)(getThisCodebaseRootDirPath(), "res", "public", constants.WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES),
163
+ srcDirPath: (0,external_path_.join)((0,getThisCodebaseRootDirPath/* getThisCodebaseRootDirPath */.e)(), "res", "public", constants.WELL_KNOWN_DIRECTORY_BASE_NAME.KEYCLOAKIFY_DEV_RESOURCES),
196
164
  destDirPath
197
165
  });
198
166
  external_fs_.writeFileSync((0,external_path_.join)(destDirPath, "README.txt"), Buffer.from(
@@ -208,7 +176,7 @@ async function command(params) {
208
176
 
209
177
  /***/ }),
210
178
 
211
- /***/ 2:
179
+ /***/ 224:
212
180
  /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
213
181
 
214
182
  "use strict";
@@ -4226,35 +4194,8 @@ function exclude(target) {
4226
4194
 
4227
4195
  //# sourceMappingURL=exclude.mjs.map
4228
4196
 
4229
- // EXTERNAL MODULE: ./node_modules/tsafe/esm/zz_internal/assertIsRefWrapper.mjs
4230
- var assertIsRefWrapper = __nccwpck_require__(770);
4231
- ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/is.mjs
4232
-
4233
-
4234
- /* eslint-disable @typescript-eslint/no-namespace */
4235
- /* eslint-disable @typescript-eslint/no-explicit-any */
4236
- const errorMessage = [
4237
- `Wrong usage of the ${is.name} function refer to`,
4238
- `https://docs.tsafe.dev/${is.name.toLowerCase()}`,
4239
- ].join(" ");
4240
- function is(_value) {
4241
- const ref = {};
4242
- if (assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref !== undefined) {
4243
- assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref = undefined;
4244
- throw new Error(errorMessage);
4245
- }
4246
- assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref = ref;
4247
- Promise.resolve().then(() => {
4248
- if (assertIsRefWrapper/* assertIsRefWrapper.ref */.j.ref === ref) {
4249
- throw new Error(errorMessage);
4250
- }
4251
- });
4252
- return null;
4253
- }
4254
-
4255
-
4256
- //# sourceMappingURL=is.mjs.map
4257
-
4197
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/is.mjs
4198
+ var is = __nccwpck_require__(453);
4258
4199
  ;// CONCATENATED MODULE: ./node_modules/tsafe/esm/index.mjs
4259
4200
 
4260
4201
 
@@ -4858,7 +4799,7 @@ function getBuildContext(params) {
4858
4799
  const jarFileBasename = (() => {
4859
4800
  use_custom_jar_basename: {
4860
4801
  const { keycloakVersionTargets } = buildOptions;
4861
- (0,assert/* assert */.h)(is(keycloakVersionTargets));
4802
+ (0,assert/* assert */.h)((0,is.is)(keycloakVersionTargets));
4862
4803
  if (keycloakVersionTargets === undefined) {
4863
4804
  break use_custom_jar_basename;
4864
4805
  }
@@ -4919,7 +4860,7 @@ function getBuildContext(params) {
4919
4860
  const jarTargets = [];
4920
4861
  for (const [keycloakVersionRange, jarNameOrBoolean] of objectEntries((() => {
4921
4862
  const { keycloakVersionTargets } = buildOptions;
4922
- (0,assert/* assert */.h)(is(keycloakVersionTargets));
4863
+ (0,assert/* assert */.h)((0,is.is)(keycloakVersionTargets));
4923
4864
  return keycloakVersionTargets;
4924
4865
  })())) {
4925
4866
  if (jarNameOrBoolean === false) {
@@ -5367,6 +5308,36 @@ async function checkDirExists(dirPath) {
5367
5308
 
5368
5309
  /***/ }),
5369
5310
 
5311
+ /***/ 822:
5312
+ /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
5313
+
5314
+ "use strict";
5315
+ /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
5316
+ /* harmony export */ "e": () => (/* binding */ getThisCodebaseRootDirPath)
5317
+ /* harmony export */ });
5318
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(147);
5319
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
5320
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(17);
5321
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
5322
+
5323
+
5324
+ function getThisCodebaseRootDirPath_rec(dirPath) {
5325
+ if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, "package.json"))) {
5326
+ return dirPath;
5327
+ }
5328
+ return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, ".."));
5329
+ }
5330
+ let result = undefined;
5331
+ function getThisCodebaseRootDirPath() {
5332
+ if (result !== undefined) {
5333
+ return result;
5334
+ }
5335
+ return (result = getThisCodebaseRootDirPath_rec(__dirname));
5336
+ }
5337
+ //# sourceMappingURL=getThisCodebaseRootDirPath.js.map
5338
+
5339
+ /***/ }),
5340
+
5370
5341
  /***/ 776:
5371
5342
  /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
5372
5343
 
@@ -5406,50 +5377,63 @@ function getNodeModulesBinDirPath() {
5406
5377
 
5407
5378
  /***/ }),
5408
5379
 
5409
- /***/ 521:
5380
+ /***/ 795:
5410
5381
  /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
5411
5382
 
5412
5383
  "use strict";
5413
- // ESM COMPAT FLAG
5414
- __nccwpck_require__.r(__webpack_exports__);
5384
+ /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
5385
+ /* harmony export */ "K": () => (/* binding */ readThisNpmPackageVersion)
5386
+ /* harmony export */ });
5387
+ /* harmony import */ var _getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(822);
5388
+ /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(41);
5389
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(147);
5390
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nccwpck_require__.n(fs__WEBPACK_IMPORTED_MODULE_2__);
5391
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(17);
5392
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_3__);
5415
5393
 
5416
- // EXPORTS
5417
- __nccwpck_require__.d(__webpack_exports__, {
5418
- "command": () => (/* binding */ command)
5419
- });
5420
5394
 
5421
- // EXTERNAL MODULE: external "fs/promises"
5422
- var promises_ = __nccwpck_require__(292);
5423
- // EXTERNAL MODULE: external "path"
5424
- var external_path_ = __nccwpck_require__(17);
5425
- ;// CONCATENATED MODULE: ./dist/bin/tools/fs.existsAsync.js
5426
5395
 
5427
- async function existsAsync(path) {
5428
- try {
5429
- await promises_.stat(path);
5430
- return true;
5431
- }
5432
- catch (error) {
5433
- if (error.code === "ENOENT")
5434
- return false;
5435
- throw error;
5396
+
5397
+ let cache = undefined;
5398
+ function readThisNpmPackageVersion() {
5399
+ if (cache !== undefined) {
5400
+ return cache;
5436
5401
  }
5402
+ const version = JSON.parse(fs__WEBPACK_IMPORTED_MODULE_2__.readFileSync((0,path__WEBPACK_IMPORTED_MODULE_3__.join)((0,_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getThisCodebaseRootDirPath */ .e)(), "package.json"))
5403
+ .toString("utf8"))["version"];
5404
+ (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_1__/* .assert */ .h)(typeof version === "string");
5405
+ cache = version;
5406
+ return version;
5437
5407
  }
5438
- //# sourceMappingURL=fs.existsAsync.js.map
5439
- // EXTERNAL MODULE: ./dist/bin/shared/customHandler_delegate.js + 1 modules
5440
- var customHandler_delegate = __nccwpck_require__(138);
5441
- ;// CONCATENATED MODULE: external "crypto"
5442
- const external_crypto_namespaceObject = require("crypto");
5443
- // EXTERNAL MODULE: ./dist/bin/tools/nodeModulesBinDirPath.js
5444
- var tools_nodeModulesBinDirPath = __nccwpck_require__(776);
5445
- // EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
5446
- var id = __nccwpck_require__(469);
5447
- // EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
5448
- var assert = __nccwpck_require__(41);
5449
- // EXTERNAL MODULE: ./node_modules/chalk/source/index.js
5450
- var source = __nccwpck_require__(818);
5451
- var source_default = /*#__PURE__*/__nccwpck_require__.n(source);
5452
- ;// CONCATENATED MODULE: ./dist/bin/tools/runPrettier.js
5408
+ //# sourceMappingURL=readThisNpmPackageVersion.js.map
5409
+
5410
+ /***/ }),
5411
+
5412
+ /***/ 433:
5413
+ /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
5414
+
5415
+ "use strict";
5416
+ /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
5417
+ /* harmony export */ "MT": () => (/* binding */ getIsPrettierAvailable),
5418
+ /* harmony export */ "eY": () => (/* binding */ runPrettier)
5419
+ /* harmony export */ });
5420
+ /* unused harmony export getPrettier */
5421
+ /* harmony import */ var _nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(776);
5422
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(17);
5423
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
5424
+ /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(292);
5425
+ /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nccwpck_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_2__);
5426
+ /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_8__ = __nccwpck_require__(469);
5427
+ /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(41);
5428
+ /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4__ = __nccwpck_require__(818);
5429
+ /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__nccwpck_require__.n(chalk__WEBPACK_IMPORTED_MODULE_4__);
5430
+ /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5__ = __nccwpck_require__(113);
5431
+ /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__nccwpck_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
5432
+ /* harmony import */ var tsafe_is__WEBPACK_IMPORTED_MODULE_6__ = __nccwpck_require__(453);
5433
+ /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_9__ = __nccwpck_require__(30);
5434
+ /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__ = __nccwpck_require__(795);
5435
+
5436
+
5453
5437
 
5454
5438
 
5455
5439
 
@@ -5457,33 +5441,46 @@ var source_default = /*#__PURE__*/__nccwpck_require__.n(source);
5457
5441
 
5458
5442
 
5459
5443
 
5460
- getIsPrettierAvailable.cache = (0,id.id)(undefined);
5444
+
5445
+ getIsPrettierAvailable.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(undefined);
5461
5446
  async function getIsPrettierAvailable() {
5462
5447
  var _a;
5463
5448
  if (getIsPrettierAvailable.cache !== undefined) {
5464
5449
  return getIsPrettierAvailable.cache;
5465
5450
  }
5466
- const nodeModulesBinDirPath = (0,tools_nodeModulesBinDirPath/* getNodeModulesBinDirPath */.K)();
5467
- const prettierBinPath = (0,external_path_.join)(nodeModulesBinDirPath, "prettier");
5468
- const stats = await promises_.stat(prettierBinPath).catch(() => undefined);
5451
+ const nodeModulesBinDirPath = (0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)();
5452
+ const prettierBinPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(nodeModulesBinDirPath, "prettier");
5453
+ const stats = await fs_promises__WEBPACK_IMPORTED_MODULE_2__.stat(prettierBinPath).catch(() => undefined);
5469
5454
  const isPrettierAvailable = (_a = stats === null || stats === void 0 ? void 0 : stats.isFile()) !== null && _a !== void 0 ? _a : false;
5470
5455
  getIsPrettierAvailable.cache = isPrettierAvailable;
5471
5456
  return isPrettierAvailable;
5472
5457
  }
5473
- getPrettier.cache = (0,id.id)(undefined);
5458
+ getPrettier.cache = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(undefined);
5474
5459
  async function getPrettier() {
5475
- (0,assert/* assert */.h)(getIsPrettierAvailable());
5460
+ (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(getIsPrettierAvailable());
5476
5461
  if (getPrettier.cache !== undefined) {
5477
5462
  return getPrettier.cache;
5478
5463
  }
5479
- const prettier = await Promise.resolve(/* import() */).then(__nccwpck_require__.t.bind(__nccwpck_require__, 421, 23));
5464
+ let prettier = (0,tsafe_id__WEBPACK_IMPORTED_MODULE_8__.id)(undefined);
5465
+ import_prettier: {
5466
+ // NOTE: When module is linked we want to make sure we import the correct version
5467
+ // of prettier, that is the one of the project, not the one of this repo.
5468
+ // So we do a sketchy eval to bypass ncc.
5469
+ // We make sure to only do that when linking, otherwise we import properly.
5470
+ if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_7__/* .readThisNpmPackageVersion */ .K)() === "0.0.0") {
5471
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_9__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)(), "..", "prettier"))}")`);
5472
+ (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_is__WEBPACK_IMPORTED_MODULE_6__.is)(prettier));
5473
+ break import_prettier;
5474
+ }
5475
+ prettier = await Promise.resolve(/* import() */).then(__nccwpck_require__.t.bind(__nccwpck_require__, 421, 23));
5476
+ }
5480
5477
  const configHash = await (async () => {
5481
- const configFilePath = await prettier.resolveConfigFile((0,external_path_.join)((0,tools_nodeModulesBinDirPath/* getNodeModulesBinDirPath */.K)(), ".."));
5478
+ const configFilePath = await prettier.resolveConfigFile((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)(), ".."));
5482
5479
  if (configFilePath === null) {
5483
5480
  return "";
5484
5481
  }
5485
- const data = await promises_.readFile(configFilePath);
5486
- return external_crypto_namespaceObject.createHash("sha256").update(data).digest("hex");
5482
+ const data = await fs_promises__WEBPACK_IMPORTED_MODULE_2__.readFile(configFilePath);
5483
+ return crypto__WEBPACK_IMPORTED_MODULE_5__.createHash("sha256").update(data).digest("hex");
5487
5484
  })();
5488
5485
  const prettierAndConfig = {
5489
5486
  prettier,
@@ -5507,12 +5504,51 @@ async function runPrettier(params) {
5507
5504
  formattedSourceCode = await prettier.format(sourceCode, Object.assign(Object.assign({}, config), { filePath, parser: inferredParser !== null && inferredParser !== void 0 ? inferredParser : undefined }));
5508
5505
  }
5509
5506
  catch (error) {
5510
- console.log(source_default().red(`You probably need to upgrade the version of prettier in your project`));
5507
+ console.log(chalk__WEBPACK_IMPORTED_MODULE_4___default().red(`You probably need to upgrade the version of prettier in your project`));
5511
5508
  throw error;
5512
5509
  }
5513
5510
  return formattedSourceCode;
5514
5511
  }
5515
5512
  //# sourceMappingURL=runPrettier.js.map
5513
+
5514
+ /***/ }),
5515
+
5516
+ /***/ 810:
5517
+ /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
5518
+
5519
+ "use strict";
5520
+ // ESM COMPAT FLAG
5521
+ __nccwpck_require__.r(__webpack_exports__);
5522
+
5523
+ // EXPORTS
5524
+ __nccwpck_require__.d(__webpack_exports__, {
5525
+ "command": () => (/* binding */ command)
5526
+ });
5527
+
5528
+ // EXTERNAL MODULE: external "fs/promises"
5529
+ var promises_ = __nccwpck_require__(292);
5530
+ // EXTERNAL MODULE: external "path"
5531
+ var external_path_ = __nccwpck_require__(17);
5532
+ ;// CONCATENATED MODULE: ./dist/bin/tools/fs.existsAsync.js
5533
+
5534
+ async function existsAsync(path) {
5535
+ try {
5536
+ await promises_.stat(path);
5537
+ return true;
5538
+ }
5539
+ catch (error) {
5540
+ if (error.code === "ENOENT")
5541
+ return false;
5542
+ throw error;
5543
+ }
5544
+ }
5545
+ //# sourceMappingURL=fs.existsAsync.js.map
5546
+ // EXTERNAL MODULE: ./dist/bin/shared/customHandler_delegate.js + 1 modules
5547
+ var customHandler_delegate = __nccwpck_require__(138);
5548
+ // EXTERNAL MODULE: external "crypto"
5549
+ var external_crypto_ = __nccwpck_require__(113);
5550
+ // EXTERNAL MODULE: ./dist/bin/tools/runPrettier.js
5551
+ var runPrettier = __nccwpck_require__(433);
5516
5552
  ;// CONCATENATED MODULE: ./dist/bin/update-kc-gen.js
5517
5553
 
5518
5554
 
@@ -5598,7 +5634,7 @@ async function command(params) {
5598
5634
  ]
5599
5635
  .filter(item => typeof item === "string")
5600
5636
  .join("\n");
5601
- const hash = external_crypto_namespaceObject.createHash("sha256").update(newContent).digest("hex");
5637
+ const hash = external_crypto_.createHash("sha256").update(newContent).digest("hex");
5602
5638
  skip_if_no_changes: {
5603
5639
  if (!(await existsAsync(filePath))) {
5604
5640
  break skip_if_no_changes;
@@ -5616,10 +5652,10 @@ async function command(params) {
5616
5652
  newContent
5617
5653
  ].join("\n");
5618
5654
  format: {
5619
- if (!(await getIsPrettierAvailable())) {
5655
+ if (!(await (0,runPrettier/* getIsPrettierAvailable */.MT)())) {
5620
5656
  break format;
5621
5657
  }
5622
- newContent = await runPrettier({
5658
+ newContent = await (0,runPrettier/* runPrettier */.eY)({
5623
5659
  filePath,
5624
5660
  sourceCode: newContent
5625
5661
  });
@@ -5676,11 +5712,11 @@ const path_1 = __nccwpck_require__(17);
5676
5712
  const constants_1 = __nccwpck_require__(173);
5677
5713
  const id_1 = __nccwpck_require__(47);
5678
5714
  const fs_rm_1 = __nccwpck_require__(699);
5679
- const copy_keycloak_resources_to_public_1 = __nccwpck_require__(721);
5715
+ const copy_keycloak_resources_to_public_1 = __nccwpck_require__(713);
5680
5716
  const assert_1 = __nccwpck_require__(78);
5681
- const buildContext_1 = __nccwpck_require__(2);
5717
+ const buildContext_1 = __nccwpck_require__(224);
5682
5718
  const magic_string_1 = __importDefault(__nccwpck_require__(734));
5683
- const update_kc_gen_1 = __nccwpck_require__(521);
5719
+ const update_kc_gen_1 = __nccwpck_require__(810);
5684
5720
  const String_prototype_replaceAll_1 = __nccwpck_require__(62);
5685
5721
  function keycloakify(params) {
5686
5722
  const { postBuild, ...buildOptions } = params;
@@ -9354,7 +9390,7 @@ module.exports = MagicString;
9354
9390
  "use strict";
9355
9391
 
9356
9392
  const os = __nccwpck_require__(37);
9357
- const tty = __nccwpck_require__(224);
9393
+ const tty = __nccwpck_require__(325);
9358
9394
  const hasFlag = __nccwpck_require__(621);
9359
9395
 
9360
9396
  const {env} = process;
@@ -9674,6 +9710,14 @@ module.exports = require("child_process");
9674
9710
 
9675
9711
  /***/ }),
9676
9712
 
9713
+ /***/ 113:
9714
+ /***/ ((module) => {
9715
+
9716
+ "use strict";
9717
+ module.exports = require("crypto");
9718
+
9719
+ /***/ }),
9720
+
9677
9721
  /***/ 147:
9678
9722
  /***/ ((module) => {
9679
9723
 
@@ -9714,7 +9758,7 @@ module.exports = require("prettier");
9714
9758
 
9715
9759
  /***/ }),
9716
9760
 
9717
- /***/ 224:
9761
+ /***/ 325:
9718
9762
  /***/ ((module) => {
9719
9763
 
9720
9764
  "use strict";
@@ -9835,6 +9879,62 @@ const id = (x) => x;
9835
9879
  //# sourceMappingURL=id.mjs.map
9836
9880
 
9837
9881
 
9882
+ /***/ }),
9883
+
9884
+ /***/ 453:
9885
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
9886
+
9887
+ "use strict";
9888
+ /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
9889
+ /* harmony export */ "is": () => (/* binding */ is)
9890
+ /* harmony export */ });
9891
+ /* harmony import */ var _zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(770);
9892
+
9893
+
9894
+ /* eslint-disable @typescript-eslint/no-namespace */
9895
+ /* eslint-disable @typescript-eslint/no-explicit-any */
9896
+ const errorMessage = [
9897
+ `Wrong usage of the ${is.name} function refer to`,
9898
+ `https://docs.tsafe.dev/${is.name.toLowerCase()}`,
9899
+ ].join(" ");
9900
+ function is(_value) {
9901
+ const ref = {};
9902
+ if (_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref !== undefined) {
9903
+ _zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref = undefined;
9904
+ throw new Error(errorMessage);
9905
+ }
9906
+ _zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref = ref;
9907
+ Promise.resolve().then(() => {
9908
+ if (_zz_internal_assertIsRefWrapper_mjs__WEBPACK_IMPORTED_MODULE_0__/* .assertIsRefWrapper.ref */ .j.ref === ref) {
9909
+ throw new Error(errorMessage);
9910
+ }
9911
+ });
9912
+ return null;
9913
+ }
9914
+
9915
+
9916
+ //# sourceMappingURL=is.mjs.map
9917
+
9918
+
9919
+ /***/ }),
9920
+
9921
+ /***/ 30:
9922
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
9923
+
9924
+ "use strict";
9925
+ /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
9926
+ /* harmony export */ "r": () => (/* binding */ symToStr)
9927
+ /* harmony export */ });
9928
+ /** @see <https://docs.tsafe.dev/main/symtostr> */
9929
+ function symToStr(wrap) {
9930
+ // @ts-expect-error: We know better
9931
+ return Object.keys(wrap)[0];
9932
+ }
9933
+
9934
+
9935
+ //# sourceMappingURL=symToStr.mjs.map
9936
+
9937
+
9838
9938
  /***/ }),
9839
9939
 
9840
9940
  /***/ 770: