keycloakify 10.0.0-rc.143 → 10.0.0-rc.145

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/README.md CHANGED
@@ -132,6 +132,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
132
132
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/law108000"><img src="https://avatars.githubusercontent.com/u/8112024?v=4?s=100" width="100px;" alt="Rlok"/><br /><sub><b>Rlok</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=law108000" title="Code">💻</a></td>
133
133
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/Moulyy"><img src="https://avatars.githubusercontent.com/u/115405804?v=4?s=100" width="100px;" alt="Moulyy"/><br /><sub><b>Moulyy</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=Moulyy" title="Code">💻</a></td>
134
134
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/madmadson"><img src="https://avatars.githubusercontent.com/u/798831?v=4?s=100" width="100px;" alt="Tobias Matt"/><br /><sub><b>Tobias Matt</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=madmadson" title="Code">💻</a></td>
135
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/oliviergoulet5"><img src="https://avatars.githubusercontent.com/u/17685861?v=4?s=100" width="100px;" alt="Olivier Goulet"/><br /><sub><b>Olivier Goulet</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=oliviergoulet5" title="Code">💻</a></td>
135
136
  </tr>
136
137
  </tbody>
137
138
  </table>
package/bin/526.index.js CHANGED
@@ -743,7 +743,11 @@ async function command(params) {
743
743
  `--name${SPACE_PLACEHOLDER}${constants/* CONTAINER_NAME */.sv}`,
744
744
  `-e${SPACE_PLACEHOLDER}KEYCLOAK_ADMIN=admin`,
745
745
  `-e${SPACE_PLACEHOLDER}KEYCLOAK_ADMIN_PASSWORD=admin`,
746
- buildContext.startKeycloakOptions.dockerExtraArgs.join(SPACE_PLACEHOLDER),
746
+ ...(buildContext.startKeycloakOptions.dockerExtraArgs.length === 0
747
+ ? []
748
+ : [
749
+ buildContext.startKeycloakOptions.dockerExtraArgs.join(SPACE_PLACEHOLDER)
750
+ ]),
747
751
  ...(realmJsonFilePath === undefined
748
752
  ? []
749
753
  : [
@@ -776,7 +780,11 @@ async function command(params) {
776
780
  ? ["--features=declarative-user-profile"]
777
781
  : []),
778
782
  ...(realmJsonFilePath === undefined ? [] : ["--import-realm"]),
779
- buildContext.startKeycloakOptions.keycloakExtraArgs.join(SPACE_PLACEHOLDER)
783
+ ...(buildContext.startKeycloakOptions.keycloakExtraArgs.length === 0
784
+ ? []
785
+ : [
786
+ buildContext.startKeycloakOptions.keycloakExtraArgs.join(SPACE_PLACEHOLDER)
787
+ ])
780
788
  ];
781
789
  console.log(source_default().blue([
782
790
  `$ docker run \\`,
@@ -130,7 +130,7 @@ export default function WebauthnRegister(props) {
130
130
 
131
131
  function getPubKeyCredParams(signatureAlgorithmsList) {
132
132
  let pubKeyCredParams = [];
133
- if (signatureAlgorithmsList === []) {
133
+ if (signatureAlgorithmsList.length === 0) {
134
134
  pubKeyCredParams.push({type: "public-key", alg: -7});
135
135
  return pubKeyCredParams;
136
136
  }
@@ -161,7 +161,7 @@ export default function WebauthnRegister(props) {
161
161
  }
162
162
 
163
163
  function getTransportsAsString(transportsList) {
164
- if (transportsList === '' || transportsList.constructor !== Array) return "";
164
+ if (transportsList === '' || Array.isArray(transportsList)) return "";
165
165
 
166
166
  let transportsString = "";
167
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "10.0.0-rc.143",
3
+ "version": "10.0.0-rc.145",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -345,7 +345,13 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
345
345
  `--name${SPACE_PLACEHOLDER}${CONTAINER_NAME}`,
346
346
  `-e${SPACE_PLACEHOLDER}KEYCLOAK_ADMIN=admin`,
347
347
  `-e${SPACE_PLACEHOLDER}KEYCLOAK_ADMIN_PASSWORD=admin`,
348
- buildContext.startKeycloakOptions.dockerExtraArgs.join(SPACE_PLACEHOLDER),
348
+ ...(buildContext.startKeycloakOptions.dockerExtraArgs.length === 0
349
+ ? []
350
+ : [
351
+ buildContext.startKeycloakOptions.dockerExtraArgs.join(
352
+ SPACE_PLACEHOLDER
353
+ )
354
+ ]),
349
355
  ...(realmJsonFilePath === undefined
350
356
  ? []
351
357
  : [
@@ -399,7 +405,13 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
399
405
  ? ["--features=declarative-user-profile"]
400
406
  : []),
401
407
  ...(realmJsonFilePath === undefined ? [] : ["--import-realm"]),
402
- buildContext.startKeycloakOptions.keycloakExtraArgs.join(SPACE_PLACEHOLDER)
408
+ ...(buildContext.startKeycloakOptions.keycloakExtraArgs.length === 0
409
+ ? []
410
+ : [
411
+ buildContext.startKeycloakOptions.keycloakExtraArgs.join(
412
+ SPACE_PLACEHOLDER
413
+ )
414
+ ])
403
415
  ];
404
416
 
405
417
  console.log(
@@ -153,7 +153,7 @@ export default function WebauthnRegister(props: PageProps<Extract<KcContext, { p
153
153
 
154
154
  function getPubKeyCredParams(signatureAlgorithmsList) {
155
155
  let pubKeyCredParams = [];
156
- if (signatureAlgorithmsList === []) {
156
+ if (signatureAlgorithmsList.length === 0) {
157
157
  pubKeyCredParams.push({type: "public-key", alg: -7});
158
158
  return pubKeyCredParams;
159
159
  }
@@ -184,7 +184,7 @@ export default function WebauthnRegister(props: PageProps<Extract<KcContext, { p
184
184
  }
185
185
 
186
186
  function getTransportsAsString(transportsList) {
187
- if (transportsList === '' || transportsList.constructor !== Array) return "";
187
+ if (transportsList === '' || Array.isArray(transportsList)) return "";
188
188
 
189
189
  let transportsString = "";
190
190