keycloakify 11.3.17 → 11.3.19

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/453.index.js CHANGED
@@ -392,7 +392,9 @@ function runFormat(params) {
392
392
  if (scripts === undefined) {
393
393
  return;
394
394
  }
395
- for (const scriptName of ["format", "lint"]) {
395
+ const scriptKeys = Object.keys(scripts);
396
+ const scriptNames = scriptKeys.filter(scriptKey => scriptKey.trim().match(/^(lint|format)/));
397
+ for (const scriptName of scriptNames) {
396
398
  if (!(scriptName in scripts)) {
397
399
  continue;
398
400
  }
package/bin/780.index.js CHANGED
@@ -338,7 +338,9 @@ function runFormat(params) {
338
338
  if (scripts === undefined) {
339
339
  return;
340
340
  }
341
- for (const scriptName of ["format", "lint"]) {
341
+ const scriptKeys = Object.keys(scripts);
342
+ const scriptNames = scriptKeys.filter(scriptKey => scriptKey.trim().match(/^(lint|format)/));
343
+ for (const scriptName of scriptNames) {
342
344
  if (!(scriptName in scripts)) {
343
345
  continue;
344
346
  }
package/bin/786.index.js CHANGED
@@ -163,7 +163,9 @@ function runFormat(params) {
163
163
  if (scripts === undefined) {
164
164
  return;
165
165
  }
166
- for (const scriptName of ["format", "lint"]) {
166
+ const scriptKeys = Object.keys(scripts);
167
+ const scriptNames = scriptKeys.filter(scriptKey => scriptKey.trim().match(/^(lint|format)/));
168
+ for (const scriptName of scriptNames) {
167
169
  if (!(scriptName in scripts)) {
168
170
  continue;
169
171
  }
package/bin/97.index.js CHANGED
@@ -270,7 +270,9 @@ function runFormat(params) {
270
270
  if (scripts === undefined) {
271
271
  return;
272
272
  }
273
- for (const scriptName of ["format", "lint"]) {
273
+ const scriptKeys = Object.keys(scripts);
274
+ const scriptNames = scriptKeys.filter(scriptKey => scriptKey.trim().match(/^(lint|format)/));
275
+ for (const scriptName of scriptNames) {
274
276
  if (!(scriptName in scripts)) {
275
277
  continue;
276
278
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.3.17",
3
+ "version": "11.3.19",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,12 @@ export function runFormat(params: { packageJsonFilePath: string }) {
44
44
  return;
45
45
  }
46
46
 
47
- for (const scriptName of ["format", "lint"]) {
47
+ const scriptKeys = Object.keys(scripts);
48
+ const scriptNames = scriptKeys.filter(scriptKey =>
49
+ scriptKey.trim().match(/^(lint|format)/)
50
+ );
51
+
52
+ for (const scriptName of scriptNames) {
48
53
  if (!(scriptName in scripts)) {
49
54
  continue;
50
55
  }
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import type { Meta, StoryObj } from "@storybook/react";
3
3
  import { createKcPageStory } from "../KcPageStory";
4
4
 
5
- const { KcPageStory } = createKcPageStory({ pageId: "login-oauth2-device-verify-user-code.ftl" });
5
+ const { KcPageStory } = createKcPageStory({ pageId: "login-device-verify-user-code.ftl" });
6
6
 
7
7
  const meta = {
8
- title: "login/login-oauth2-device-verify-user-code.ftl",
8
+ title: "login/login-device-verify-user-code.ftl",
9
9
  component: KcPageStory
10
10
  } satisfies Meta<typeof KcPageStory>;
11
11
 
@@ -1467,7 +1467,9 @@ function runFormat(params) {
1467
1467
  if (scripts === undefined) {
1468
1468
  return;
1469
1469
  }
1470
- for (const scriptName of ["format", "lint"]) {
1470
+ const scriptKeys = Object.keys(scripts);
1471
+ const scriptNames = scriptKeys.filter(scriptKey => scriptKey.trim().match(/^(lint|format)/));
1472
+ for (const scriptName of scriptNames) {
1471
1473
  if (!(scriptName in scripts)) {
1472
1474
  continue;
1473
1475
  }