@orchestrator-ui/orchestrator-ui-components 1.30.1 → 1.30.2

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.30.1 build
2
+ > @orchestrator-ui/orchestrator-ui-components@1.30.2 build
3
3
  > tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,6 +9,6 @@
9
9
  ESM Build start
10
10
  DTS Build start
11
11
  ESM dist/index.js 1.87 MB
12
- ESM ⚡️ Build success in 712ms
13
- DTS ⚡️ Build success in 14761ms
12
+ ESM ⚡️ Build success in 680ms
13
+ DTS ⚡️ Build success in 14518ms
14
14
  DTS dist/index.d.ts 174.58 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.30.1 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@1.30.2 lint
3
3
  > eslint "src/**/*.ts*"
4
4
 
5
5
 
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.30.1 test
2
+ > @orchestrator-ui/orchestrator-ui-components@1.30.2 test
3
3
  > jest
4
4
 
5
5
  PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts
@@ -8,23 +8,23 @@ PASS Wfo-UI Tests src/utils/date.spec.ts
8
8
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
9
9
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
10
10
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
11
- PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
12
- PASS Wfo-UI Tests src/utils/string.spec.ts
13
11
  PASS Wfo-UI Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
12
+ PASS Wfo-UI Tests src/utils/string.spec.ts
13
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
14
14
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
15
15
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
16
16
  PASS Wfo-UI Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
17
- PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
18
- PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
19
17
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
18
+ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
19
+ PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
20
20
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
21
21
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
22
22
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
23
23
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
24
- PASS Wfo-UI Tests src/utils/filterData.spec.ts
25
24
  PASS Wfo-UI Tests src/utils/sortObjectKeys.spec.ts
26
- PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
25
+ PASS Wfo-UI Tests src/utils/filterData.spec.ts
27
26
  PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
27
+ PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
28
28
  PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
29
29
  PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
30
30
  PASS Wfo-UI Tests src/utils/uuid.spec.ts
@@ -36,5 +36,5 @@ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorW
36
36
  Test Suites: 30 passed, 30 total
37
37
  Tests: 169 passed, 169 total
38
38
  Snapshots: 0 total
39
- Time: 3.969 s
39
+ Time: 3.938 s
40
40
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 1.30.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fe3e991: Fixes websocket connection without authorization
8
+
3
9
  ## 1.30.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -33951,8 +33951,14 @@ var getToastMessage = (type, text, title) => {
33951
33951
  // src/rtk/endpoints/streamMessages.ts
33952
33952
  var getWebSocket = (url) => __async(void 0, null, function* () {
33953
33953
  const session = yield getSession2();
33954
- const token = (session == null ? void 0 : session.accessToken) ? ["base64.bearer.token", session == null ? void 0 : session.accessToken] : "";
33955
- return new WebSocket(url, token);
33954
+ if (session == null ? void 0 : session.accessToken) {
33955
+ return new WebSocket(url, [
33956
+ "base64.bearer.token",
33957
+ session == null ? void 0 : session.accessToken
33958
+ ]);
33959
+ } else {
33960
+ return new WebSocket(url);
33961
+ }
33956
33962
  });
33957
33963
  var PING_INTERVAL_MS = 45e3;
33958
33964
  var DEBOUNCE_CLOSE_INTERVAL_MS = 6e4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "1.30.1",
3
+ "version": "1.30.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Library of UI Components used to display the workflow orchestrator frontend",
6
6
  "author": {
@@ -13,11 +13,15 @@ import { orchestratorApi } from '../api';
13
13
  const getWebSocket = async (url: string) => {
14
14
  const session = (await getSession()) as WfoSession;
15
15
 
16
- const token = session?.accessToken
17
- ? ['base64.bearer.token', session?.accessToken]
18
- : '';
19
- // Implemented authentication taking this into account: https://stackoverflow.com/questions/4361173/http-headers-in-websockets-client-api/77060459#77060459
20
- return new WebSocket(url, token);
16
+ if (session?.accessToken) {
17
+ // Implemented authentication taking this into account: https://stackoverflow.com/questions/4361173/http-headers-in-websockets-client-api/77060459#77060459
18
+ return new WebSocket(url, [
19
+ 'base64.bearer.token',
20
+ session?.accessToken,
21
+ ]);
22
+ } else {
23
+ return new WebSocket(url);
24
+ }
21
25
  };
22
26
 
23
27
  const PING_INTERVAL_MS = 45000; // Recommended values are between 30 and 60 seconds