keycloakify 11.8.2 → 11.8.3
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
@@ -849,6 +849,7 @@ var isInside = __webpack_require__(90665);
|
|
849
849
|
(0,assert/* assert */.h)();
|
850
850
|
async function generateResources(params) {
|
851
851
|
var _a;
|
852
|
+
const start = Date.now();
|
852
853
|
const { resourcesDirPath, buildContext } = params;
|
853
854
|
const [themeName] = buildContext.themeNames;
|
854
855
|
if (external_fs_default().existsSync(resourcesDirPath)) {
|
@@ -1289,7 +1290,7 @@ async function generateResources(params) {
|
|
1289
1290
|
}
|
1290
1291
|
}
|
1291
1292
|
const emailThemeDirPath = getThemeTypeDirPath({
|
1292
|
-
themeName,
|
1293
|
+
themeName: themeVariantName,
|
1293
1294
|
themeType
|
1294
1295
|
});
|
1295
1296
|
(0,transformCodebase/* transformCodebase */.N)({
|
@@ -1302,13 +1303,14 @@ async function generateResources(params) {
|
|
1302
1303
|
return {
|
1303
1304
|
modifiedSourceCode: Buffer.from(sourceCode
|
1304
1305
|
.toString("utf8")
|
1305
|
-
.replace(/xKeycloakify\.themeName/g, `"${
|
1306
|
+
.replace(/xKeycloakify\.themeName/g, `"${themeVariantName}"`), "utf8")
|
1306
1307
|
};
|
1307
1308
|
}
|
1308
1309
|
});
|
1309
1310
|
}
|
1310
1311
|
}
|
1311
1312
|
}
|
1313
|
+
console.log(`Generated resources in ${Date.now() - start}ms`);
|
1312
1314
|
}
|
1313
1315
|
//# sourceMappingURL=generateResources.js.map
|
1314
1316
|
;// CONCATENATED MODULE: ./dist/bin/keycloakify/generateResources/index.js
|
package/package.json
CHANGED
@@ -57,6 +57,8 @@ export async function generateResources(params: {
|
|
57
57
|
buildContext: BuildContextLike;
|
58
58
|
resourcesDirPath: string;
|
59
59
|
}): Promise<void> {
|
60
|
+
const start = Date.now();
|
61
|
+
|
60
62
|
const { resourcesDirPath, buildContext } = params;
|
61
63
|
|
62
64
|
const [themeName] = buildContext.themeNames;
|
@@ -742,7 +744,7 @@ export async function generateResources(params: {
|
|
742
744
|
}
|
743
745
|
|
744
746
|
const emailThemeDirPath = getThemeTypeDirPath({
|
745
|
-
themeName,
|
747
|
+
themeName: themeVariantName,
|
746
748
|
themeType
|
747
749
|
});
|
748
750
|
|
@@ -760,7 +762,7 @@ export async function generateResources(params: {
|
|
760
762
|
.toString("utf8")
|
761
763
|
.replace(
|
762
764
|
/xKeycloakify\.themeName/g,
|
763
|
-
`"${
|
765
|
+
`"${themeVariantName}"`
|
764
766
|
),
|
765
767
|
"utf8"
|
766
768
|
)
|
@@ -770,4 +772,6 @@ export async function generateResources(params: {
|
|
770
772
|
}
|
771
773
|
}
|
772
774
|
}
|
775
|
+
|
776
|
+
console.log(`Generated resources in ${Date.now() - start}ms`);
|
773
777
|
}
|