keycloakify 5.4.6 → 5.4.7
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/CHANGELOG.md +7 -0
- package/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +25 -27
- package/bin/link_in_test_app.js +2 -1
- package/bin/link_in_test_app.js.map +1 -1
- package/package.json +1 -1
- package/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl +25 -27
- package/src/bin/link_in_test_app.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -155,33 +155,6 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
155
155
|
|
156
156
|
</#if>
|
157
157
|
|
158
|
-
<#if key == "showUsername" && are_same_path(path, ["auth"])>
|
159
|
-
<#attempt>
|
160
|
-
<#return auth.showUsername()?c>
|
161
|
-
<#recover>
|
162
|
-
<#local out_seq += ["/*Couldn't evaluate auth.showUsername()*/"]>
|
163
|
-
<#continue>
|
164
|
-
</#attempt>
|
165
|
-
</#if>
|
166
|
-
|
167
|
-
<#if key == "showResetCredentials" && are_same_path(path, ["auth"])>
|
168
|
-
<#attempt>
|
169
|
-
<#return auth.showResetCredentials()?c>
|
170
|
-
<#recover>
|
171
|
-
<#local out_seq += ["/*Couldn't evaluate auth.showResetCredentials()*/"]>
|
172
|
-
<#continue>
|
173
|
-
</#attempt>
|
174
|
-
</#if>
|
175
|
-
|
176
|
-
<#if key == "showTryAnotherWayLink" && are_same_path(path, ["auth"])>
|
177
|
-
<#attempt>
|
178
|
-
<#return auth.showTryAnotherWayLink()?c>
|
179
|
-
<#recover>
|
180
|
-
<#local out_seq += ["/*Couldn't evaluate auth.showTryAnotherWayLink()*/"]>
|
181
|
-
<#continue>
|
182
|
-
</#attempt>
|
183
|
-
</#if>
|
184
|
-
|
185
158
|
<#attempt>
|
186
159
|
<#if !object[key]??>
|
187
160
|
<#continue>
|
@@ -229,6 +202,31 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
229
202
|
</#attempt>
|
230
203
|
|
231
204
|
<#if isMethod>
|
205
|
+
|
206
|
+
<#if are_same_path(path, ["auth", "showUsername"])>
|
207
|
+
<#attempt>
|
208
|
+
<#return auth.showUsername()?c>
|
209
|
+
<#recover>
|
210
|
+
<#return "ABORT: Couldn't evaluate auth.showUsername()">
|
211
|
+
</#attempt>
|
212
|
+
</#if>
|
213
|
+
|
214
|
+
<#if are_same_path(path, ["auth", "showResetCredentials"])>
|
215
|
+
<#attempt>
|
216
|
+
<#return auth.showResetCredentials()?c>
|
217
|
+
<#recover>
|
218
|
+
<#return "ABORT: Couldn't evaluate auth.showResetCredentials()">
|
219
|
+
</#attempt>
|
220
|
+
</#if>
|
221
|
+
|
222
|
+
<#if are_same_path(path, ["auth", "showTryAnotherWayLink"])>
|
223
|
+
<#attempt>
|
224
|
+
<#return auth.showTryAnotherWayLink()?c>
|
225
|
+
<#recover>
|
226
|
+
<#return "ABORT: Couldn't evaluate auth.showTryAnotherWayLink()">
|
227
|
+
</#attempt>
|
228
|
+
</#if>
|
229
|
+
|
232
230
|
<#return "ABORT: It's a method">
|
233
231
|
</#if>
|
234
232
|
|
package/bin/link_in_test_app.js
CHANGED
@@ -54,6 +54,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
54
54
|
}
|
55
55
|
return to.concat(ar || Array.prototype.slice.call(from));
|
56
56
|
};
|
57
|
+
var _a;
|
57
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
58
59
|
var child_process_1 = require("child_process");
|
59
60
|
var path_1 = require("path");
|
@@ -85,7 +86,7 @@ var execYarnLink = function (params) {
|
|
85
86
|
"env": __assign(__assign({}, process.env), { "HOME": yarnHomeDirPath }),
|
86
87
|
});
|
87
88
|
};
|
88
|
-
var testAppNames = ["keycloakify-demo-app"];
|
89
|
+
var testAppNames = [(_a = process.argv[2]) !== null && _a !== void 0 ? _a : "keycloakify-demo-app"];
|
89
90
|
var getTestAppPath = function (testAppName) { return (0, path_1.join)(keycloakifyDirPath, "..", testAppName); };
|
90
91
|
testAppNames.forEach(function (testAppName) { return (0, child_process_1.execSync)("yarn install", { "cwd": getTestAppPath(testAppName) }); });
|
91
92
|
console.log("=== Linking common dependencies ===");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link_in_test_app.js","sourceRoot":"","sources":["../src/bin/link_in_test_app.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"link_in_test_app.js","sourceRoot":"","sources":["../src/bin/link_in_test_app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,6BAAkE;AAClE,qCAAyB;AAEzB,IAAM,kBAAkB,GAAG,IAAA,WAAQ,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE3D,EAAE,CAAC,aAAa,CACZ,IAAA,WAAQ,EAAC,kBAAkB,EAAE,MAAM,EAAE,cAAc,CAAC,EACpD,MAAM,CAAC,IAAI,CACP,IAAI,CAAC,SAAS,CACV,CAAC;IACG,IAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAA,WAAQ,EAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAErH,6BACO,iBAAiB,KACpB,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,EACxD,OAAO,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,IAC5D;AACN,CAAC,CAAC,EAAE,EACJ,IAAI,EACJ,CAAC,CACJ,EACD,MAAM,CACT,CACJ,CAAC;AAEF,IAAM,oBAAoB,GAAG,CAAC;IAC1B,IAAM,o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,WAAW,CAAC;YAClC,kBAAkB,EAAE,mBAAmB;SAC1C,CAAC;IAHF,CAGE,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AAErD,YAAY,CAAC,EAAE,KAAK,EAAE,IAAA,WAAQ,EAAC,kBAAkB,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;AAE9D,YAAY,CAAC,OAAO,CAAC,UAAA,WAAW;IAC5B,OAAA,YAAY,CAAC;QACT,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC;QAClC,kBAAkB,EAAE,aAAa;KACpC,CAAC;AAHF,CAGE,CACL,CAAC"}
|
package/package.json
CHANGED
package/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl
CHANGED
@@ -155,33 +155,6 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
155
155
|
|
156
156
|
</#if>
|
157
157
|
|
158
|
-
<#if key == "showUsername" && are_same_path(path, ["auth"])>
|
159
|
-
<#attempt>
|
160
|
-
<#return auth.showUsername()?c>
|
161
|
-
<#recover>
|
162
|
-
<#local out_seq += ["/*Couldn't evaluate auth.showUsername()*/"]>
|
163
|
-
<#continue>
|
164
|
-
</#attempt>
|
165
|
-
</#if>
|
166
|
-
|
167
|
-
<#if key == "showResetCredentials" && are_same_path(path, ["auth"])>
|
168
|
-
<#attempt>
|
169
|
-
<#return auth.showResetCredentials()?c>
|
170
|
-
<#recover>
|
171
|
-
<#local out_seq += ["/*Couldn't evaluate auth.showResetCredentials()*/"]>
|
172
|
-
<#continue>
|
173
|
-
</#attempt>
|
174
|
-
</#if>
|
175
|
-
|
176
|
-
<#if key == "showTryAnotherWayLink" && are_same_path(path, ["auth"])>
|
177
|
-
<#attempt>
|
178
|
-
<#return auth.showTryAnotherWayLink()?c>
|
179
|
-
<#recover>
|
180
|
-
<#local out_seq += ["/*Couldn't evaluate auth.showTryAnotherWayLink()*/"]>
|
181
|
-
<#continue>
|
182
|
-
</#attempt>
|
183
|
-
</#if>
|
184
|
-
|
185
158
|
<#attempt>
|
186
159
|
<#if !object[key]??>
|
187
160
|
<#continue>
|
@@ -229,6 +202,31 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
229
202
|
</#attempt>
|
230
203
|
|
231
204
|
<#if isMethod>
|
205
|
+
|
206
|
+
<#if are_same_path(path, ["auth", "showUsername"])>
|
207
|
+
<#attempt>
|
208
|
+
<#return auth.showUsername()?c>
|
209
|
+
<#recover>
|
210
|
+
<#return "ABORT: Couldn't evaluate auth.showUsername()">
|
211
|
+
</#attempt>
|
212
|
+
</#if>
|
213
|
+
|
214
|
+
<#if are_same_path(path, ["auth", "showResetCredentials"])>
|
215
|
+
<#attempt>
|
216
|
+
<#return auth.showResetCredentials()?c>
|
217
|
+
<#recover>
|
218
|
+
<#return "ABORT: Couldn't evaluate auth.showResetCredentials()">
|
219
|
+
</#attempt>
|
220
|
+
</#if>
|
221
|
+
|
222
|
+
<#if are_same_path(path, ["auth", "showTryAnotherWayLink"])>
|
223
|
+
<#attempt>
|
224
|
+
<#return auth.showTryAnotherWayLink()?c>
|
225
|
+
<#recover>
|
226
|
+
<#return "ABORT: Couldn't evaluate auth.showTryAnotherWayLink()">
|
227
|
+
</#attempt>
|
228
|
+
</#if>
|
229
|
+
|
232
230
|
<#return "ABORT: It's a method">
|
233
231
|
</#if>
|
234
232
|
|
@@ -60,7 +60,7 @@ const execYarnLink = (params: { targetModuleName?: string; cwd: string }) => {
|
|
60
60
|
});
|
61
61
|
};
|
62
62
|
|
63
|
-
const testAppNames = ["keycloakify-demo-app"] as const;
|
63
|
+
const testAppNames = [process.argv[2] ?? "keycloakify-demo-app"] as const;
|
64
64
|
|
65
65
|
const getTestAppPath = (testAppName: typeof testAppNames[number]) => pathJoin(keycloakifyDirPath, "..", testAppName);
|
66
66
|
|