keycloakify 11.6.2 → 11.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/bin/{735.index.js → 288.index.js} +226 -360
  2. package/bin/313.index.js +377 -0
  3. package/bin/{174.index.js → 33.index.js} +37 -2
  4. package/bin/{840.index.js → 355.index.js} +348 -97
  5. package/bin/363.index.js +153 -144
  6. package/bin/453.index.js +5 -41
  7. package/bin/{503.index.js → 678.index.js} +577 -53
  8. package/bin/{921.index.js → 780.index.js} +54 -45
  9. package/bin/880.index.js +206 -21
  10. package/bin/9.index.js +850 -0
  11. package/bin/{525.index.js → 911.index.js} +1302 -2
  12. package/bin/930.index.js +3 -4
  13. package/bin/{153.index.js → 947.index.js} +22 -797
  14. package/bin/main.js +6 -6
  15. package/bin/shared/initializeSpa/index.d.ts +1 -0
  16. package/bin/shared/initializeSpa/initializeSpa.d.ts +9 -0
  17. package/bin/tools/getInstalledModuleDirPath.d.ts +0 -1
  18. package/bin/tools/isRootPath.d.ts +1 -0
  19. package/bin/tools/listInstalledModules.d.ts +0 -1
  20. package/package.json +22 -44
  21. package/src/bin/eject-page.ts +7 -81
  22. package/src/bin/initialize-account-theme/initialize-account-theme.ts +15 -14
  23. package/src/bin/initialize-admin-theme.ts +17 -124
  24. package/src/bin/initialize-email-theme.ts +10 -34
  25. package/src/bin/keycloakify/generateResources/generateResources.ts +49 -21
  26. package/src/bin/own.ts +1 -2
  27. package/src/bin/shared/{addSyncExtensionsToPostinstallScript.ts → initializeSpa/addSyncExtensionsToPostinstallScript.ts} +2 -2
  28. package/src/bin/shared/initializeSpa/index.ts +1 -0
  29. package/src/bin/shared/initializeSpa/initializeSpa.ts +149 -0
  30. package/src/bin/sync-extensions/extensionModuleMeta.ts +0 -1
  31. package/src/bin/tools/getInstalledModuleDirPath.ts +24 -22
  32. package/src/bin/tools/isRootPath.ts +22 -0
  33. package/src/bin/tools/listInstalledModules.ts +2 -4
  34. package/src/bin/tsconfig.json +1 -1
  35. package/bin/375.index.js +0 -4089
  36. package/bin/490.index.js +0 -1108
  37. package/bin/568.index.js +0 -1867
  38. package/bin/743.index.js +0 -69
  39. package/bin/initialize-account-theme/copyBoilerplate.d.ts +0 -4
  40. package/bin/initialize-account-theme/initializeAccountTheme_multiPage.d.ts +0 -3
  41. package/bin/initialize-account-theme/initializeAccountTheme_singlePage.d.ts +0 -11
  42. package/bin/shared/getLatestsSemVersionedTag.d.ts +0 -15
  43. package/bin/shared/promptKeycloakVersion.d.ts +0 -10
  44. package/bin/tools/OptionalIfCanBeUndefined.d.ts +0 -14
  45. package/bin/tools/crc32.d.ts +0 -9
  46. package/bin/tools/deflate.d.ts +0 -24
  47. package/bin/tools/octokit-addons/getLatestsSemVersionedTag.d.ts +0 -15
  48. package/bin/tools/octokit-addons/listTags.d.ts +0 -13
  49. package/bin/tools/tee.d.ts +0 -3
  50. package/bin/tools/trimIndent.d.ts +0 -5
  51. package/src/bin/initialize-account-theme/copyBoilerplate.ts +0 -32
  52. package/src/bin/initialize-account-theme/initializeAccountTheme_multiPage.ts +0 -21
  53. package/src/bin/initialize-account-theme/initializeAccountTheme_singlePage.ts +0 -142
  54. package/src/bin/initialize-account-theme/src/single-page/KcContext.ts +0 -7
  55. package/src/bin/initialize-account-theme/src/single-page/KcPage.tsx +0 -11
  56. package/src/bin/shared/getLatestsSemVersionedTag.ts +0 -201
  57. package/src/bin/shared/promptKeycloakVersion.ts +0 -72
  58. package/src/bin/tools/OptionalIfCanBeUndefined.ts +0 -12
  59. package/src/bin/tools/crc32.ts +0 -73
  60. package/src/bin/tools/deflate.ts +0 -61
  61. package/src/bin/tools/octokit-addons/getLatestsSemVersionedTag.ts +0 -47
  62. package/src/bin/tools/octokit-addons/listTags.ts +0 -60
  63. package/src/bin/tools/tee.ts +0 -39
  64. package/src/bin/tools/trimIndent.ts +0 -49
  65. /package/bin/shared/{addSyncExtensionsToPostinstallScript.d.ts → initializeSpa/addSyncExtensionsToPostinstallScript.d.ts} +0 -0
  66. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/KcContext.ts +0 -0
  67. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/KcPage.tsx +0 -0
  68. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/KcPageStory.tsx +0 -0
  69. /package/src/bin/initialize-account-theme/{src/multi-page → multi-page-boilerplate}/i18n.ts +0 -0
@@ -0,0 +1,377 @@
1
+ "use strict";
2
+ exports.id = 313;
3
+ exports.ids = [313];
4
+ exports.modules = {
5
+
6
+ /***/ 16932:
7
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
+
9
+ __webpack_require__.r(__webpack_exports__);
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "command": () => (/* binding */ command)
12
+ /* harmony export */ });
13
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71017);
14
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
15
+ /* harmony import */ var _tools_transformCodebase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60332);
16
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57147);
17
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_2__);
18
+ /* harmony import */ var _tools_downloadAndExtractArchive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38367);
19
+ /* harmony import */ var _shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72138);
20
+ /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29041);
21
+ /* harmony import */ var _start_keycloak_getSupportedDockerImageTags__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28434);
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+ async function command(params) {
30
+ const { buildContext } = params;
31
+ const { hasBeenHandled } = (0,_shared_customHandler_delegate__WEBPACK_IMPORTED_MODULE_4__/* .maybeDelegateCommandToCustomHandler */ .q)({
32
+ commandName: "initialize-email-theme",
33
+ buildContext
34
+ });
35
+ if (hasBeenHandled) {
36
+ return;
37
+ }
38
+ const emailThemeSrcDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(buildContext.themeSrcDirPath, "email");
39
+ if (fs__WEBPACK_IMPORTED_MODULE_2__.existsSync(emailThemeSrcDirPath) &&
40
+ fs__WEBPACK_IMPORTED_MODULE_2__.readdirSync(emailThemeSrcDirPath).length > 0) {
41
+ console.warn(`There is already a non empty ${(0,path__WEBPACK_IMPORTED_MODULE_0__.relative)(process.cwd(), emailThemeSrcDirPath)} directory in your project. Aborting.`);
42
+ process.exit(-1);
43
+ }
44
+ console.log("Initialize with the base email theme from which version of Keycloak?");
45
+ const { extractedDirPath } = await (0,_tools_downloadAndExtractArchive__WEBPACK_IMPORTED_MODULE_3__/* .downloadAndExtractArchive */ .I)({
46
+ url: await (async () => {
47
+ const { latestMajorTags } = await (0,_start_keycloak_getSupportedDockerImageTags__WEBPACK_IMPORTED_MODULE_6__/* .getSupportedDockerImageTags */ .z)({
48
+ buildContext
49
+ });
50
+ const keycloakVersion = latestMajorTags[0];
51
+ (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_5__/* .assert */ .h)(keycloakVersion !== undefined);
52
+ return `https://repo1.maven.org/maven2/org/keycloak/keycloak-themes/${keycloakVersion}/keycloak-themes-${keycloakVersion}.jar`;
53
+ })(),
54
+ cacheDirPath: buildContext.cacheDirPath,
55
+ fetchOptions: buildContext.fetchOptions,
56
+ uniqueIdOfOnArchiveFile: "extractOnlyEmailTheme",
57
+ onArchiveFile: async ({ fileRelativePath, writeFile }) => {
58
+ const fileRelativePath_target = (0,path__WEBPACK_IMPORTED_MODULE_0__.relative)((0,path__WEBPACK_IMPORTED_MODULE_0__.join)("theme", "base", "email"), fileRelativePath);
59
+ if (fileRelativePath_target.startsWith("..")) {
60
+ return;
61
+ }
62
+ await writeFile({ fileRelativePath: fileRelativePath_target });
63
+ }
64
+ });
65
+ (0,_tools_transformCodebase__WEBPACK_IMPORTED_MODULE_1__/* .transformCodebase */ .N)({
66
+ srcDirPath: extractedDirPath,
67
+ destDirPath: emailThemeSrcDirPath
68
+ });
69
+ {
70
+ const themePropertyFilePath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)(emailThemeSrcDirPath, "theme.properties");
71
+ fs__WEBPACK_IMPORTED_MODULE_2__.writeFileSync(themePropertyFilePath, Buffer.from([
72
+ `parent=base`,
73
+ fs__WEBPACK_IMPORTED_MODULE_2__.readFileSync(themePropertyFilePath).toString("utf8")
74
+ ].join("\n"), "utf8"));
75
+ }
76
+ console.log(`The \`${(0,path__WEBPACK_IMPORTED_MODULE_0__.join)(".", (0,path__WEBPACK_IMPORTED_MODULE_0__.relative)(process.cwd(), emailThemeSrcDirPath))}\` directory have been created.`);
77
+ console.log("You can delete any file you don't modify.");
78
+ }
79
+ //# sourceMappingURL=initialize-email-theme.js.map
80
+
81
+ /***/ }),
82
+
83
+ /***/ 72138:
84
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
85
+
86
+
87
+ // EXPORTS
88
+ __webpack_require__.d(__webpack_exports__, {
89
+ "q": () => (/* binding */ maybeDelegateCommandToCustomHandler)
90
+ });
91
+
92
+ // EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
93
+ var esm_assert = __webpack_require__(29041);
94
+ // EXTERNAL MODULE: ./dist/bin/shared/constants.js
95
+ var constants = __webpack_require__(173);
96
+ ;// CONCATENATED MODULE: ./dist/bin/shared/customHandler.js
97
+
98
+
99
+ const BIN_NAME = "_keycloakify-custom-handler";
100
+ const NOT_IMPLEMENTED_EXIT_CODE = 78;
101
+ function readParams(params) {
102
+ const { apiVersion } = params;
103
+ assert(apiVersion === "v1");
104
+ const commandName = (() => {
105
+ const envValue = process.env[CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME];
106
+ assert(envValue !== undefined);
107
+ return envValue;
108
+ })();
109
+ const buildContext = (() => {
110
+ const envValue = process.env[CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT];
111
+ assert(envValue !== undefined);
112
+ return JSON.parse(envValue);
113
+ })();
114
+ return { commandName, buildContext };
115
+ }
116
+ //# sourceMappingURL=customHandler.js.map
117
+ // EXTERNAL MODULE: external "child_process"
118
+ var external_child_process_ = __webpack_require__(32081);
119
+ // EXTERNAL MODULE: ./dist/bin/tools/nodeModulesBinDirPath.js
120
+ var tools_nodeModulesBinDirPath = __webpack_require__(73776);
121
+ // EXTERNAL MODULE: external "fs"
122
+ var external_fs_ = __webpack_require__(57147);
123
+ ;// CONCATENATED MODULE: ./dist/bin/shared/customHandler_delegate.js
124
+
125
+
126
+
127
+
128
+
129
+
130
+ (0,esm_assert/* assert */.h)();
131
+ function maybeDelegateCommandToCustomHandler(params) {
132
+ const { commandName, buildContext } = params;
133
+ const nodeModulesBinDirPath = (0,tools_nodeModulesBinDirPath/* getNodeModulesBinDirPath */.K)();
134
+ if (!external_fs_.readdirSync(nodeModulesBinDirPath).includes(BIN_NAME)) {
135
+ return { hasBeenHandled: false };
136
+ }
137
+ try {
138
+ external_child_process_.execSync(`npx ${BIN_NAME}`, {
139
+ stdio: "inherit",
140
+ env: Object.assign(Object.assign({}, process.env), { [constants/* CUSTOM_HANDLER_ENV_NAMES.COMMAND_NAME */._S.COMMAND_NAME]: commandName, [constants/* CUSTOM_HANDLER_ENV_NAMES.BUILD_CONTEXT */._S.BUILD_CONTEXT]: JSON.stringify(buildContext) })
141
+ });
142
+ }
143
+ catch (error) {
144
+ const status = error.status;
145
+ if (status === NOT_IMPLEMENTED_EXIT_CODE) {
146
+ return { hasBeenHandled: false };
147
+ }
148
+ process.exit(status);
149
+ }
150
+ return { hasBeenHandled: true };
151
+ }
152
+ //# sourceMappingURL=customHandler_delegate.js.map
153
+
154
+ /***/ }),
155
+
156
+ /***/ 89693:
157
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
158
+
159
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
160
+ /* harmony export */ "a": () => (/* binding */ rmSync)
161
+ /* harmony export */ });
162
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
163
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
164
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
165
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
166
+ /* harmony import */ var _SemVer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12171);
167
+
168
+
169
+
170
+ /**
171
+ * Polyfill of fs.rmSync(dirPath, { "recursive": true })
172
+ * For older version of Node
173
+ */
174
+ function rmSync(dirPath, options) {
175
+ if (_SemVer__WEBPACK_IMPORTED_MODULE_2__/* .SemVer.compare */ .h.compare(_SemVer__WEBPACK_IMPORTED_MODULE_2__/* .SemVer.parse */ .h.parse(process.version), _SemVer__WEBPACK_IMPORTED_MODULE_2__/* .SemVer.parse */ .h.parse("14.14.0")) > 0) {
176
+ fs__WEBPACK_IMPORTED_MODULE_0__.rmSync(dirPath, options);
177
+ return;
178
+ }
179
+ const { force = true } = options;
180
+ if (force && !fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(dirPath)) {
181
+ return;
182
+ }
183
+ const removeDir_rec = (dirPath) => fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync(dirPath).forEach(basename => {
184
+ const fileOrDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.join)(dirPath, basename);
185
+ if (fs__WEBPACK_IMPORTED_MODULE_0__.lstatSync(fileOrDirPath).isDirectory()) {
186
+ removeDir_rec(fileOrDirPath);
187
+ return;
188
+ }
189
+ else {
190
+ fs__WEBPACK_IMPORTED_MODULE_0__.unlinkSync(fileOrDirPath);
191
+ }
192
+ });
193
+ removeDir_rec(dirPath);
194
+ }
195
+ //# sourceMappingURL=fs.rmSync.js.map
196
+
197
+ /***/ }),
198
+
199
+ /***/ 60332:
200
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
201
+
202
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
203
+ /* harmony export */ "N": () => (/* binding */ transformCodebase)
204
+ /* harmony export */ });
205
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(57147);
206
+ /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
207
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71017);
208
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
209
+ /* harmony import */ var _crawl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73036);
210
+ /* harmony import */ var _tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(89693);
211
+
212
+
213
+
214
+
215
+ /**
216
+ * Apply a transformation function to every file of directory
217
+ * If source and destination are the same this function can be used to apply the transformation in place
218
+ * like filtering out some files or modifying them.
219
+ * */
220
+ function transformCodebase(params) {
221
+ const { srcDirPath, transformSourceCode } = params;
222
+ const isTargetSameAsSource = path__WEBPACK_IMPORTED_MODULE_1__.relative(srcDirPath, params.destDirPath) === "";
223
+ const destDirPath = isTargetSameAsSource
224
+ ? path__WEBPACK_IMPORTED_MODULE_1__.join(srcDirPath, "..", "tmp_xOsPdkPsTdzPs34sOkHs")
225
+ : params.destDirPath;
226
+ fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(destDirPath, {
227
+ recursive: true
228
+ });
229
+ for (const fileRelativePath of (0,_crawl__WEBPACK_IMPORTED_MODULE_2__/* .crawl */ .J)({
230
+ dirPath: srcDirPath,
231
+ returnedPathsType: "relative to dirPath"
232
+ })) {
233
+ const filePath = path__WEBPACK_IMPORTED_MODULE_1__.join(srcDirPath, fileRelativePath);
234
+ const destFilePath = path__WEBPACK_IMPORTED_MODULE_1__.join(destDirPath, fileRelativePath);
235
+ // NOTE: Optimization, if we don't need to transform the file, just copy
236
+ // it using the lower level implementation.
237
+ if (transformSourceCode === undefined) {
238
+ fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(path__WEBPACK_IMPORTED_MODULE_1__.dirname(destFilePath), {
239
+ recursive: true
240
+ });
241
+ fs__WEBPACK_IMPORTED_MODULE_0__.copyFileSync(filePath, destFilePath);
242
+ continue;
243
+ }
244
+ const transformSourceCodeResult = transformSourceCode({
245
+ sourceCode: fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(filePath),
246
+ filePath,
247
+ fileRelativePath
248
+ });
249
+ if (transformSourceCodeResult === undefined) {
250
+ continue;
251
+ }
252
+ fs__WEBPACK_IMPORTED_MODULE_0__.mkdirSync(path__WEBPACK_IMPORTED_MODULE_1__.dirname(destFilePath), {
253
+ recursive: true
254
+ });
255
+ const { newFileName, modifiedSourceCode } = transformSourceCodeResult;
256
+ fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync(path__WEBPACK_IMPORTED_MODULE_1__.join(path__WEBPACK_IMPORTED_MODULE_1__.dirname(destFilePath), newFileName !== null && newFileName !== void 0 ? newFileName : path__WEBPACK_IMPORTED_MODULE_1__.basename(destFilePath)), modifiedSourceCode);
257
+ }
258
+ if (isTargetSameAsSource) {
259
+ (0,_tools_fs_rmSync__WEBPACK_IMPORTED_MODULE_3__/* .rmSync */ .a)(srcDirPath, { recursive: true });
260
+ fs__WEBPACK_IMPORTED_MODULE_0__.renameSync(destDirPath, srcDirPath);
261
+ }
262
+ }
263
+ //# sourceMappingURL=transformCodebase.js.map
264
+
265
+ /***/ }),
266
+
267
+ /***/ 50689:
268
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
269
+
270
+
271
+ var __extends = (this && this.__extends) || (function () {
272
+ var extendStatics = function (d, b) {
273
+ extendStatics = Object.setPrototypeOf ||
274
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
275
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
276
+ return extendStatics(d, b);
277
+ };
278
+ return function (d, b) {
279
+ if (typeof b !== "function" && b !== null)
280
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
281
+ extendStatics(d, b);
282
+ function __() { this.constructor = d; }
283
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
284
+ };
285
+ })();
286
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
287
+ exports.VoidDeferred = exports.Deferred = void 0;
288
+ var overwriteReadonlyProp_1 = __webpack_require__(47803);
289
+ var Deferred = /** @class */ (function () {
290
+ function Deferred() {
291
+ var _this_1 = this;
292
+ this.isPending = true;
293
+ var resolve;
294
+ var reject;
295
+ this.pr = new Promise(function (resolve_, reject_) {
296
+ resolve = function (value) {
297
+ (0, overwriteReadonlyProp_1.overwriteReadonlyProp)(_this_1, "isPending", false);
298
+ resolve_(value);
299
+ };
300
+ reject = function (error) {
301
+ (0, overwriteReadonlyProp_1.overwriteReadonlyProp)(_this_1, "isPending", false);
302
+ reject_(error);
303
+ };
304
+ });
305
+ this.resolve = resolve;
306
+ this.reject = reject;
307
+ }
308
+ return Deferred;
309
+ }());
310
+ exports.Deferred = Deferred;
311
+ var VoidDeferred = /** @class */ (function (_super) {
312
+ __extends(VoidDeferred, _super);
313
+ function VoidDeferred() {
314
+ return _super !== null && _super.apply(this, arguments) || this;
315
+ }
316
+ return VoidDeferred;
317
+ }(Deferred));
318
+ exports.VoidDeferred = VoidDeferred;
319
+ //# sourceMappingURL=Deferred.js.map
320
+
321
+ /***/ }),
322
+
323
+ /***/ 47803:
324
+ /***/ (function(__unused_webpack_module, exports) {
325
+
326
+
327
+ var __assign = (this && this.__assign) || function () {
328
+ __assign = Object.assign || function(t) {
329
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
330
+ s = arguments[i];
331
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
332
+ t[p] = s[p];
333
+ }
334
+ return t;
335
+ };
336
+ return __assign.apply(this, arguments);
337
+ };
338
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
339
+ exports.overwriteReadonlyProp = void 0;
340
+ /**
341
+ * Assign a value to a property even if the object is freezed or if the property is not writable
342
+ * Throw if the assignation fail ( for example if the property is non configurable write: false )
343
+ * */
344
+ var overwriteReadonlyProp = function (obj, propertyName, value) {
345
+ try {
346
+ obj[propertyName] = value;
347
+ }
348
+ catch (_a) { }
349
+ if (obj[propertyName] === value) {
350
+ return value;
351
+ }
352
+ var errorDefineProperty = undefined;
353
+ var propertyDescriptor = Object.getOwnPropertyDescriptor(obj, propertyName) || {
354
+ "enumerable": true,
355
+ "configurable": true,
356
+ };
357
+ if (!!propertyDescriptor.get) {
358
+ throw new Error("Probably a wrong ides to overwrite ".concat(String(propertyName), " getter"));
359
+ }
360
+ try {
361
+ Object.defineProperty(obj, propertyName, __assign(__assign({}, propertyDescriptor), { value: value }));
362
+ }
363
+ catch (error) {
364
+ errorDefineProperty = error;
365
+ }
366
+ if (obj[propertyName] !== value) {
367
+ throw errorDefineProperty || new Error("Can't assign");
368
+ }
369
+ return value;
370
+ };
371
+ exports.overwriteReadonlyProp = overwriteReadonlyProp;
372
+ //# sourceMappingURL=overwriteReadonlyProp.js.map
373
+
374
+ /***/ })
375
+
376
+ };
377
+ ;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- exports.id = 174;
3
- exports.ids = [174];
2
+ exports.id = 33;
3
+ exports.ids = [33];
4
4
  exports.modules = {
5
5
 
6
6
  /***/ 50689:
@@ -774,6 +774,41 @@ function typeGuard(value, isMatched) {
774
774
  }
775
775
  //# sourceMappingURL=typeGuard.js.map
776
776
 
777
+ /***/ }),
778
+
779
+ /***/ 23483:
780
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
781
+
782
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
783
+ /* harmony export */ "Y": () => (/* binding */ objectKeys)
784
+ /* harmony export */ });
785
+ /** https://docs.tsafe.dev/objectKeys */
786
+ function objectKeys(o) {
787
+ return Object.keys(o);
788
+ }
789
+
790
+
791
+ //# sourceMappingURL=objectKeys.mjs.map
792
+
793
+
794
+ /***/ }),
795
+
796
+ /***/ 76030:
797
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
798
+
799
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
800
+ /* harmony export */ "r": () => (/* binding */ symToStr)
801
+ /* harmony export */ });
802
+ /** @see <https://docs.tsafe.dev/main/symtostr> */
803
+ function symToStr(wrap) {
804
+ // @ts-expect-error: We know better
805
+ return Object.keys(wrap)[0];
806
+ }
807
+
808
+
809
+ //# sourceMappingURL=symToStr.mjs.map
810
+
811
+
777
812
  /***/ })
778
813
 
779
814
  };