@camstack/addon-provider-bosch 0.1.26 → 0.1.28
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/dist/{account-integration-offline-DAgg2Cgr.js → account-integration-offline-2MI94wOE.js} +16 -2
- package/dist/{account-integration-offline-iGgTPuq_.mjs → account-integration-offline-DKaazSyb.mjs} +16 -2
- package/dist/home-connect/addon.js +1 -1
- package/dist/home-connect/addon.mjs +1 -1
- package/dist/homecom/addon.js +748 -197
- package/dist/homecom/addon.mjs +748 -197
- package/dist/shc/addon.js +120 -19
- package/dist/shc/addon.mjs +120 -19
- package/i18n/en.json +4 -2
- package/i18n/it.json +4 -2
- package/package.json +1 -1
package/dist/{account-integration-offline-DAgg2Cgr.js → account-integration-offline-2MI94wOE.js}
RENAMED
|
@@ -10,15 +10,29 @@ var BARE_CODE = /^[A-Za-z0-9._~-]+$/;
|
|
|
10
10
|
function cleanPaste(input) {
|
|
11
11
|
return input.trim().replace(/^(?:location|request url)\s*:\s*/i, "").replace(/^["'<]+|["'>]+$/g, "").trim();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function paramsFromUrl(input) {
|
|
14
14
|
try {
|
|
15
15
|
const url = new URL(input);
|
|
16
16
|
const merged = new URLSearchParams(url.search);
|
|
17
17
|
for (const [key, value] of new URLSearchParams(url.hash.replace(/^#/, ""))) if (!merged.has(key)) merged.set(key, value);
|
|
18
18
|
return merged;
|
|
19
19
|
} catch {
|
|
20
|
-
return
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function paramsOf(input) {
|
|
24
|
+
const direct = paramsFromUrl(input);
|
|
25
|
+
if (direct) return direct;
|
|
26
|
+
if (input.includes("%")) try {
|
|
27
|
+
const decoded = decodeURIComponent(input);
|
|
28
|
+
if (decoded !== input) {
|
|
29
|
+
const again = paramsFromUrl(decoded);
|
|
30
|
+
if (again) return again;
|
|
31
|
+
}
|
|
32
|
+
} catch (err) {
|
|
33
|
+
if (!(err instanceof URIError)) throw err;
|
|
21
34
|
}
|
|
35
|
+
return new URLSearchParams(input.replace(/^[?#]/, ""));
|
|
22
36
|
}
|
|
23
37
|
/**
|
|
24
38
|
* The authorization code from whatever an operator pasted after a browser sign-in: the full
|
package/dist/{account-integration-offline-iGgTPuq_.mjs → account-integration-offline-DKaazSyb.mjs}
RENAMED
|
@@ -10,15 +10,29 @@ var BARE_CODE = /^[A-Za-z0-9._~-]+$/;
|
|
|
10
10
|
function cleanPaste(input) {
|
|
11
11
|
return input.trim().replace(/^(?:location|request url)\s*:\s*/i, "").replace(/^["'<]+|["'>]+$/g, "").trim();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function paramsFromUrl(input) {
|
|
14
14
|
try {
|
|
15
15
|
const url = new URL(input);
|
|
16
16
|
const merged = new URLSearchParams(url.search);
|
|
17
17
|
for (const [key, value] of new URLSearchParams(url.hash.replace(/^#/, ""))) if (!merged.has(key)) merged.set(key, value);
|
|
18
18
|
return merged;
|
|
19
19
|
} catch {
|
|
20
|
-
return
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function paramsOf(input) {
|
|
24
|
+
const direct = paramsFromUrl(input);
|
|
25
|
+
if (direct) return direct;
|
|
26
|
+
if (input.includes("%")) try {
|
|
27
|
+
const decoded = decodeURIComponent(input);
|
|
28
|
+
if (decoded !== input) {
|
|
29
|
+
const again = paramsFromUrl(decoded);
|
|
30
|
+
if (again) return again;
|
|
31
|
+
}
|
|
32
|
+
} catch (err) {
|
|
33
|
+
if (!(err instanceof URIError)) throw err;
|
|
21
34
|
}
|
|
35
|
+
return new URLSearchParams(input.replace(/^[?#]/, ""));
|
|
22
36
|
}
|
|
23
37
|
/**
|
|
24
38
|
* The authorization code from whatever an operator pasted after a browser sign-in: the full
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_dist = require("../dist-DEZDBpGW.js");
|
|
3
|
-
const require_account_integration_offline = require("../account-integration-offline-
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-2MI94wOE.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
let node_tls = require("node:tls");
|
|
6
6
|
let node_zlib = require("node:zlib");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as isSecretMarker, B as unknown, D as createEvent, E as errMsg, I as object, L as record, M as _enum, N as array, O as customAction, P as literal, R as string, T as DeviceType, V as EventCategory, _ as powerMeterCapability, b as runningStateCapability, c as connectionTestCapability, d as dishwasherCapability, f as enumSensorCapability, g as numericSensorCapability, h as ingestReading, i as RUNNING_STATE_COLD, j as isSecretMarkerLike, k as defineCustomActions, l as consumablesCapability, n as BaseDeviceProvider, o as binaryCapability, p as eventEmitterCapability, r as DishwasherOperationStateSchema, t as BaseDevice, u as deviceAdoptionCapability, v as quantityFromUnit, w as DeviceRole, y as runningFromDishwasherOperation, z as union } from "../dist-Cbcvh8mB.mjs";
|
|
2
|
-
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
2
|
+
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-DKaazSyb.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
import { connect } from "node:tls";
|
|
5
5
|
import { inflateRawSync } from "node:zlib";
|