@wise/dynamic-flow-client-internal 4.27.1 → 4.28.0
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/build/main.js +13 -7
- package/build/main.mjs +13 -7
- package/package.json +3 -3
package/build/main.js
CHANGED
|
@@ -4386,7 +4386,7 @@ var import_dynamic_flow_client2 = require("@wise/dynamic-flow-client");
|
|
|
4386
4386
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4387
4387
|
var appVersion = (
|
|
4388
4388
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4389
|
-
typeof process !== "undefined" ? "4.
|
|
4389
|
+
typeof process !== "undefined" ? "4.28.0" : "0.0.0"
|
|
4390
4390
|
);
|
|
4391
4391
|
|
|
4392
4392
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -4528,16 +4528,22 @@ var useWiseHttpClient = (httpClient) => {
|
|
|
4528
4528
|
async (input, init = {}) => {
|
|
4529
4529
|
const headers = new Headers(init.headers);
|
|
4530
4530
|
headers.set("accept-language", locale);
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4531
|
+
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone || void 0;
|
|
4532
|
+
if (timeZone) {
|
|
4533
|
+
headers.set("time-zone", timeZone);
|
|
4534
|
+
}
|
|
4535
|
+
const requestInit = __spreadProps(__spreadValues({}, init), { credentials: "include", headers });
|
|
4536
|
+
return httpClient(input, requestInit).catch(handleRejection);
|
|
4537
4537
|
},
|
|
4538
4538
|
[httpClient, locale]
|
|
4539
4539
|
);
|
|
4540
4540
|
};
|
|
4541
|
+
var handleRejection = (error) => {
|
|
4542
|
+
if (error instanceof Error && error.message === "SCA_MODAL_CLOSED") {
|
|
4543
|
+
return new Response(JSON.stringify({ validation: {} }), { status: 400 });
|
|
4544
|
+
}
|
|
4545
|
+
throw error;
|
|
4546
|
+
};
|
|
4541
4547
|
var openLinkInNewTab = (url) => {
|
|
4542
4548
|
var _a;
|
|
4543
4549
|
try {
|
package/build/main.mjs
CHANGED
|
@@ -4356,7 +4356,7 @@ import {
|
|
|
4356
4356
|
// src/dynamicFlow/telemetry/app-version.ts
|
|
4357
4357
|
var appVersion = (
|
|
4358
4358
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4359
|
-
typeof process !== "undefined" ? "4.
|
|
4359
|
+
typeof process !== "undefined" ? "4.28.0" : "0.0.0"
|
|
4360
4360
|
);
|
|
4361
4361
|
|
|
4362
4362
|
// src/dynamicFlow/telemetry/getLogEvent.ts
|
|
@@ -4498,16 +4498,22 @@ var useWiseHttpClient = (httpClient) => {
|
|
|
4498
4498
|
async (input, init = {}) => {
|
|
4499
4499
|
const headers = new Headers(init.headers);
|
|
4500
4500
|
headers.set("accept-language", locale);
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4501
|
+
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone || void 0;
|
|
4502
|
+
if (timeZone) {
|
|
4503
|
+
headers.set("time-zone", timeZone);
|
|
4504
|
+
}
|
|
4505
|
+
const requestInit = __spreadProps(__spreadValues({}, init), { credentials: "include", headers });
|
|
4506
|
+
return httpClient(input, requestInit).catch(handleRejection);
|
|
4507
4507
|
},
|
|
4508
4508
|
[httpClient, locale]
|
|
4509
4509
|
);
|
|
4510
4510
|
};
|
|
4511
|
+
var handleRejection = (error) => {
|
|
4512
|
+
if (error instanceof Error && error.message === "SCA_MODAL_CLOSED") {
|
|
4513
|
+
return new Response(JSON.stringify({ validation: {} }), { status: 400 });
|
|
4514
|
+
}
|
|
4515
|
+
throw error;
|
|
4516
|
+
};
|
|
4511
4517
|
var openLinkInNewTab = (url) => {
|
|
4512
4518
|
var _a;
|
|
4513
4519
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client-internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.28.0",
|
|
4
4
|
"description": "Dynamic Flow web client for Wise",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.js",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"tsx": "4.20.5",
|
|
76
76
|
"typescript": "5.9.2",
|
|
77
77
|
"@wise/dynamic-flow-fixtures": "0.0.1",
|
|
78
|
-
"@wise/dynamic-flow-
|
|
79
|
-
"@wise/dynamic-flow-
|
|
78
|
+
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
79
|
+
"@wise/dynamic-flow-types": "3.13.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@transferwise/components": "^46.104.0",
|