keycloakify 10.0.0-rc.120 → 10.0.0-rc.121

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/538.index.js DELETED
@@ -1,108 +0,0 @@
1
- "use strict";
2
- exports.id = 538;
3
- exports.ids = [538];
4
- exports.modules = {
5
-
6
- /***/ 43765:
7
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8
-
9
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10
- /* harmony export */ "o": () => (/* binding */ existsAsync)
11
- /* harmony export */ });
12
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(73292);
13
- /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_0__);
14
-
15
- async function existsAsync(path) {
16
- try {
17
- await fs_promises__WEBPACK_IMPORTED_MODULE_0__.stat(path);
18
- return true;
19
- }
20
- catch (error) {
21
- if (error.code === "ENOENT")
22
- return false;
23
- throw error;
24
- }
25
- }
26
- //# sourceMappingURL=fs.existsAsync.js.map
27
-
28
- /***/ }),
29
-
30
- /***/ 1538:
31
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
32
-
33
- // ESM COMPAT FLAG
34
- __webpack_require__.r(__webpack_exports__);
35
-
36
- // EXPORTS
37
- __webpack_require__.d(__webpack_exports__, {
38
- "command": () => (/* binding */ command)
39
- });
40
-
41
- // EXTERNAL MODULE: ./dist/bin/shared/buildContext.js + 1 modules
42
- var shared_buildContext = __webpack_require__(56031);
43
- // EXTERNAL MODULE: ./node_modules/tsafe/assert.js
44
- var assert = __webpack_require__(88078);
45
- // EXTERNAL MODULE: external "fs/promises"
46
- var promises_ = __webpack_require__(73292);
47
- // EXTERNAL MODULE: external "path"
48
- var external_path_ = __webpack_require__(71017);
49
- // EXTERNAL MODULE: ./dist/bin/tools/fs.existsAsync.js
50
- var fs_existsAsync = __webpack_require__(43765);
51
- ;// CONCATENATED MODULE: ./dist/bin/shared/generateKcGenTs.js
52
-
53
-
54
-
55
-
56
- (0,assert.assert)();
57
- async function generateKcGenTs(params) {
58
- const { buildContext } = params;
59
- const filePath = (0,external_path_.join)(buildContext.themeSrcDirPath, "kc.gen.ts");
60
- const currentContent = (await (0,fs_existsAsync/* existsAsync */.o)(filePath))
61
- ? await promises_.readFile(filePath)
62
- : undefined;
63
- const newContent = Buffer.from([
64
- `/* prettier-ignore-start */`,
65
- ``,
66
- `/* eslint-disable */`,
67
- ``,
68
- `// @ts-nocheck`,
69
- ``,
70
- `// noinspection JSUnusedGlobalSymbols`,
71
- ``,
72
- `// This file is auto-generated by Keycloakify`,
73
- ``,
74
- `export type ThemeName = ${buildContext.themeNames.map(themeName => `"${themeName}"`).join(" | ")};`,
75
- ``,
76
- `export const themeNames: ThemeName[] = [${buildContext.themeNames.map(themeName => `"${themeName}"`).join(", ")}];`,
77
- ``,
78
- `export type KcEnvName = ${buildContext.environmentVariables.length === 0 ? "never" : buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(" | ")};`,
79
- ``,
80
- `export const kcEnvNames: KcEnvName[] = [${buildContext.environmentVariables.map(({ name }) => `"${name}"`).join(", ")}];`,
81
- ``,
82
- `export const kcEnvDefaults: Record<KcEnvName, string> = ${JSON.stringify(Object.fromEntries(buildContext.environmentVariables.map(({ name, default: defaultValue }) => [name, defaultValue])), null, 2)};`,
83
- ``,
84
- `/* prettier-ignore-end */`,
85
- ``
86
- ].join("\n"), "utf8");
87
- if (currentContent !== undefined && currentContent.equals(newContent)) {
88
- return;
89
- }
90
- await promises_.writeFile(filePath, newContent);
91
- }
92
- //# sourceMappingURL=generateKcGenTs.js.map
93
- ;// CONCATENATED MODULE: ./dist/bin/update-kc-gen.js
94
-
95
-
96
- async function command(params) {
97
- const { cliCommandOptions } = params;
98
- const buildContext = (0,shared_buildContext/* getBuildContext */.s)({
99
- cliCommandOptions
100
- });
101
- await generateKcGenTs({ buildContext });
102
- }
103
- //# sourceMappingURL=update-kc-gen.js.map
104
-
105
- /***/ })
106
-
107
- };
108
- ;