keycloakify 11.8.4 → 11.8.5

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/363.index.js CHANGED
@@ -352,7 +352,13 @@ function addCommentToSourceCode(params) {
352
352
  return toResult(commentLines.map(line => `# ${line}`).join("\n"));
353
353
  }
354
354
  if (fileRelativePath.endsWith(".ftl")) {
355
- return toResult([`<#--`, ...commentLines.map(line => ` ${line}`), `-->`].join("\n"));
355
+ const comment = [`<#--`, ...commentLines.map(line => ` ${line}`), `-->`].join("\n");
356
+ if (sourceCode.trim().startsWith("<#ftl")) {
357
+ const [first, ...rest] = sourceCode.split(">");
358
+ const last = rest.join(">");
359
+ return [`${first}>`, comment, last].join("\n");
360
+ }
361
+ return toResult(comment);
356
362
  }
357
363
  if (fileRelativePath.endsWith(".html") || fileRelativePath.endsWith(".svg")) {
358
364
  const comment = [
package/bin/97.index.js CHANGED
@@ -917,7 +917,6 @@ function addOrEditTestUser(params) {
917
917
  return firstUserCopy;
918
918
  })()) !== null && _a !== void 0 ? _a : defaultUser_default);
919
919
  newUser.username = defaultUser_default.username;
920
- newUser.email = defaultUser_default.email;
921
920
  delete_existing_password_credential_if_any: {
922
921
  const i = newUser.credentials.findIndex(credential => credential.type === "password");
923
922
  if (i === -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.8.4",
3
+ "version": "11.8.5",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -101,7 +101,6 @@ function addOrEditTestUser(params: {
101
101
  );
102
102
 
103
103
  newUser.username = defaultUser_default.username;
104
- newUser.email = defaultUser_default.email;
105
104
 
106
105
  delete_existing_password_credential_if_any: {
107
106
  const i = newUser.credentials.findIndex(
@@ -100,9 +100,19 @@ function addCommentToSourceCode(params: {
100
100
  }
101
101
 
102
102
  if (fileRelativePath.endsWith(".ftl")) {
103
- return toResult(
104
- [`<#--`, ...commentLines.map(line => ` ${line}`), `-->`].join("\n")
103
+ const comment = [`<#--`, ...commentLines.map(line => ` ${line}`), `-->`].join(
104
+ "\n"
105
105
  );
106
+
107
+ if (sourceCode.trim().startsWith("<#ftl")) {
108
+ const [first, ...rest] = sourceCode.split(">");
109
+
110
+ const last = rest.join(">");
111
+
112
+ return [`${first}>`, comment, last].join("\n");
113
+ }
114
+
115
+ return toResult(comment);
106
116
  }
107
117
 
108
118
  if (fileRelativePath.endsWith(".html") || fileRelativePath.endsWith(".svg")) {