keycloakify 11.8.7 → 11.8.9
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/355.index.js +11 -3
- package/bin/656.index.js +11 -3
- package/bin/932.index.js +11 -3
- package/bin/97.index.js +18 -0
- package/package.json +1 -1
- package/src/bin/initialize-email-theme.ts +15 -8
- package/src/bin/shared/initializeSpa.ts +15 -8
- package/src/bin/start-keycloak/start-keycloak.ts +34 -0
package/bin/355.index.js
CHANGED
@@ -233,9 +233,17 @@ async function initializeSpa(params) {
|
|
233
233
|
return match[1];
|
234
234
|
})();
|
235
235
|
const moduleName = `@keycloakify/keycloak-${themeType}-ui`;
|
236
|
-
const version =
|
237
|
-
.
|
238
|
-
|
236
|
+
const version = (() => {
|
237
|
+
const cmdOutput = child_process__WEBPACK_IMPORTED_MODULE_6__.execSync(`npm show ${moduleName} versions --json`)
|
238
|
+
.toString("utf8")
|
239
|
+
.trim();
|
240
|
+
const versions = JSON.parse(cmdOutput);
|
241
|
+
// NOTE: Bug in some older npm versions
|
242
|
+
if (typeof versions === "string") {
|
243
|
+
return [versions];
|
244
|
+
}
|
245
|
+
return versions;
|
246
|
+
})()
|
239
247
|
.reverse()
|
240
248
|
.filter(version => !version.includes("-"))
|
241
249
|
.find(version => uiSharedMajor === undefined ? true : version.startsWith(`${uiSharedMajor}.`));
|
package/bin/656.index.js
CHANGED
@@ -78,9 +78,17 @@ async function initializeSpa(params) {
|
|
78
78
|
return match[1];
|
79
79
|
})();
|
80
80
|
const moduleName = `@keycloakify/keycloak-${themeType}-ui`;
|
81
|
-
const version =
|
82
|
-
.
|
83
|
-
|
81
|
+
const version = (() => {
|
82
|
+
const cmdOutput = child_process__WEBPACK_IMPORTED_MODULE_6__.execSync(`npm show ${moduleName} versions --json`)
|
83
|
+
.toString("utf8")
|
84
|
+
.trim();
|
85
|
+
const versions = JSON.parse(cmdOutput);
|
86
|
+
// NOTE: Bug in some older npm versions
|
87
|
+
if (typeof versions === "string") {
|
88
|
+
return [versions];
|
89
|
+
}
|
90
|
+
return versions;
|
91
|
+
})()
|
84
92
|
.reverse()
|
85
93
|
.filter(version => !version.includes("-"))
|
86
94
|
.find(version => uiSharedMajor === undefined ? true : version.startsWith(`${uiSharedMajor}.`));
|
package/bin/932.index.js
CHANGED
@@ -92,9 +92,17 @@ async function command(params) {
|
|
92
92
|
buildContext
|
93
93
|
});
|
94
94
|
const moduleName = `@keycloakify/email-native`;
|
95
|
-
const [version] =
|
96
|
-
.
|
97
|
-
|
95
|
+
const [version] = (() => {
|
96
|
+
const cmdOutput = child_process__WEBPACK_IMPORTED_MODULE_9__.execSync(`npm show ${moduleName} versions --json`)
|
97
|
+
.toString("utf8")
|
98
|
+
.trim();
|
99
|
+
const versions = JSON.parse(cmdOutput);
|
100
|
+
// NOTE: Bug in some older npm versions
|
101
|
+
if (typeof versions === "string") {
|
102
|
+
return [versions];
|
103
|
+
}
|
104
|
+
return versions;
|
105
|
+
})()
|
98
106
|
.reverse()
|
99
107
|
.filter(version => !version.includes("-"));
|
100
108
|
(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_5__/* .assert */ .h)(version !== undefined);
|
package/bin/97.index.js
CHANGED
@@ -2014,6 +2014,24 @@ async function command(params) {
|
|
2014
2014
|
}
|
2015
2015
|
return;
|
2016
2016
|
}
|
2017
|
+
ignore_patternfly: {
|
2018
|
+
if (!(0,isInside/* isInside */.V)({
|
2019
|
+
dirPath: (0,external_path_.join)(buildContext.themeSrcDirPath, "shared", "@patternfly"),
|
2020
|
+
filePath
|
2021
|
+
})) {
|
2022
|
+
break ignore_patternfly;
|
2023
|
+
}
|
2024
|
+
return;
|
2025
|
+
}
|
2026
|
+
ignore_keycloak_ui_shared: {
|
2027
|
+
if (!(0,isInside/* isInside */.V)({
|
2028
|
+
dirPath: (0,external_path_.join)(buildContext.themeSrcDirPath, "shared", "keycloak-ui-shared"),
|
2029
|
+
filePath
|
2030
|
+
})) {
|
2031
|
+
break ignore_keycloak_ui_shared;
|
2032
|
+
}
|
2033
|
+
return;
|
2034
|
+
}
|
2017
2035
|
}
|
2018
2036
|
console.log(`Detected changes in ${filePath}`);
|
2019
2037
|
await waitForDebounce();
|
package/package.json
CHANGED
@@ -103,14 +103,21 @@ export async function command(params: { buildContext: BuildContext }) {
|
|
103
103
|
|
104
104
|
const moduleName = `@keycloakify/email-native`;
|
105
105
|
|
106
|
-
const [version] = (
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
) as string[]
|
113
|
-
|
106
|
+
const [version] = ((): string[] => {
|
107
|
+
const cmdOutput = child_process
|
108
|
+
.execSync(`npm show ${moduleName} versions --json`)
|
109
|
+
.toString("utf8")
|
110
|
+
.trim();
|
111
|
+
|
112
|
+
const versions = JSON.parse(cmdOutput) as string | string[];
|
113
|
+
|
114
|
+
// NOTE: Bug in some older npm versions
|
115
|
+
if (typeof versions === "string") {
|
116
|
+
return [versions];
|
117
|
+
}
|
118
|
+
|
119
|
+
return versions;
|
120
|
+
})()
|
114
121
|
.reverse()
|
115
122
|
.filter(version => !version.includes("-"));
|
116
123
|
|
@@ -105,14 +105,21 @@ export async function initializeSpa(params: {
|
|
105
105
|
|
106
106
|
const moduleName = `@keycloakify/keycloak-${themeType}-ui`;
|
107
107
|
|
108
|
-
const version = (
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
) as string[]
|
115
|
-
|
108
|
+
const version = ((): string[] => {
|
109
|
+
const cmdOutput = child_process
|
110
|
+
.execSync(`npm show ${moduleName} versions --json`)
|
111
|
+
.toString("utf8")
|
112
|
+
.trim();
|
113
|
+
|
114
|
+
const versions = JSON.parse(cmdOutput) as string | string[];
|
115
|
+
|
116
|
+
// NOTE: Bug in some older npm versions
|
117
|
+
if (typeof versions === "string") {
|
118
|
+
return [versions];
|
119
|
+
}
|
120
|
+
|
121
|
+
return versions;
|
122
|
+
})()
|
116
123
|
.reverse()
|
117
124
|
.filter(version => !version.includes("-"))
|
118
125
|
.find(version =>
|
@@ -781,6 +781,40 @@ export async function command(params: {
|
|
781
781
|
|
782
782
|
return;
|
783
783
|
}
|
784
|
+
|
785
|
+
ignore_patternfly: {
|
786
|
+
if (
|
787
|
+
!isInside({
|
788
|
+
dirPath: pathJoin(
|
789
|
+
buildContext.themeSrcDirPath,
|
790
|
+
"shared",
|
791
|
+
"@patternfly"
|
792
|
+
),
|
793
|
+
filePath
|
794
|
+
})
|
795
|
+
) {
|
796
|
+
break ignore_patternfly;
|
797
|
+
}
|
798
|
+
|
799
|
+
return;
|
800
|
+
}
|
801
|
+
|
802
|
+
ignore_keycloak_ui_shared: {
|
803
|
+
if (
|
804
|
+
!isInside({
|
805
|
+
dirPath: pathJoin(
|
806
|
+
buildContext.themeSrcDirPath,
|
807
|
+
"shared",
|
808
|
+
"keycloak-ui-shared"
|
809
|
+
),
|
810
|
+
filePath
|
811
|
+
})
|
812
|
+
) {
|
813
|
+
break ignore_keycloak_ui_shared;
|
814
|
+
}
|
815
|
+
|
816
|
+
return;
|
817
|
+
}
|
784
818
|
}
|
785
819
|
|
786
820
|
console.log(`Detected changes in ${filePath}`);
|