keycloakify 11.8.55 → 11.8.56
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/712.index.js
CHANGED
@@ -596,6 +596,7 @@ function generateFtlFilesCodeFactory(params) {
|
|
596
596
|
$(element).attr(attrName, href.replace(new RegExp(`^${((_a = buildContext.urlPathname) !== null && _a !== void 0 ? _a : "/").replace(/\//g, "\\/")}`), `\${xKeycloakify.resourcesPath}/${constants/* WELL_KNOWN_DIRECTORY_BASE_NAME.DIST */.Ju.DIST}/`));
|
597
597
|
}));
|
598
598
|
}
|
599
|
+
$("head base").remove();
|
599
600
|
//FTL is no valid html, we can't insert with cheerio, we put placeholder for injecting later.
|
600
601
|
const kcContextDeclarationTemplateFtl = external_fs_.readFileSync((0,external_path_.join)((0,getThisCodebaseRootDirPath/* getThisCodebaseRootDirPath */.e)(), "src", "bin", "keycloakify", "generateFtl", "kcContextDeclarationTemplate.ftl"))
|
601
602
|
.toString("utf8")
|
@@ -608,7 +609,10 @@ function generateFtlFilesCodeFactory(params) {
|
|
608
609
|
.replace("{{KEYCLOAKIFY_SPA_DEV_SERVER_PORT}}", constants/* KEYCLOAKIFY_SPA_DEV_SERVER_PORT */.Sz)
|
609
610
|
.replace("{{userDefinedExclusions}}", (_a = buildContext.kcContextExclusionsFtlCode) !== null && _a !== void 0 ? _a : "");
|
610
611
|
const ftlObjectToJsCodeDeclaringAnObjectPlaceholder = '{ "x": "vIdLqMeOed9sdLdIdOxdK0d" }';
|
611
|
-
$("head").prepend(
|
612
|
+
$("head").prepend([
|
613
|
+
`<script>\n${ftlObjectToJsCodeDeclaringAnObjectPlaceholder}\n</script>`,
|
614
|
+
`<base href="\${xKeycloakify.resourcesPath}/${constants/* WELL_KNOWN_DIRECTORY_BASE_NAME.DIST */.Ju.DIST}/" />`
|
615
|
+
].join("\n"));
|
612
616
|
// Remove part of the document marked as ignored.
|
613
617
|
{
|
614
618
|
const startTags = $('meta[name="keycloakify-ignore-start"]');
|
package/package.json
CHANGED
@@ -101,6 +101,8 @@ export function generateFtlFilesCodeFactory(params: {
|
|
101
101
|
);
|
102
102
|
}
|
103
103
|
|
104
|
+
$("head base").remove();
|
105
|
+
|
104
106
|
//FTL is no valid html, we can't insert with cheerio, we put placeholder for injecting later.
|
105
107
|
const kcContextDeclarationTemplateFtl = fs
|
106
108
|
.readFileSync(
|
@@ -130,7 +132,10 @@ export function generateFtlFilesCodeFactory(params: {
|
|
130
132
|
'{ "x": "vIdLqMeOed9sdLdIdOxdK0d" }';
|
131
133
|
|
132
134
|
$("head").prepend(
|
133
|
-
|
135
|
+
[
|
136
|
+
`<script>\n${ftlObjectToJsCodeDeclaringAnObjectPlaceholder}\n</script>`,
|
137
|
+
`<base href="\${xKeycloakify.resourcesPath}/${WELL_KNOWN_DIRECTORY_BASE_NAME.DIST}/" />`
|
138
|
+
].join("\n")
|
134
139
|
);
|
135
140
|
|
136
141
|
// Remove part of the document marked as ignored.
|