@onekeyfe/hwk-adapter-core 1.2.8-alpha.109 → 1.2.8-alpha.110
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/index.d.mts +1 -6
- package/dist/index.d.ts +1 -6
- package/dist/index.js +1 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1163,12 +1163,7 @@ interface SaveDeviceBindingRequest extends UiRequestOperationAttribution {
|
|
|
1163
1163
|
}>;
|
|
1164
1164
|
extra?: HardwareCallExtra;
|
|
1165
1165
|
}
|
|
1166
|
-
type BindBleDeviceParams = Pick<SaveDeviceBindingRequest, 'identity' | 'extra'
|
|
1167
|
-
/** Ledger: other recorded chains, tried in order only when the previous chain's app is missing. */
|
|
1168
|
-
fallbackIdentities?: Extract<WalletIdentity, {
|
|
1169
|
-
vendor: 'ledger';
|
|
1170
|
-
}>[];
|
|
1171
|
-
};
|
|
1166
|
+
type BindBleDeviceParams = Pick<SaveDeviceBindingRequest, 'identity' | 'extra'>;
|
|
1172
1167
|
interface DeviceBindingStatus {
|
|
1173
1168
|
selectionRequestId: string;
|
|
1174
1169
|
status: 'verifying' | 'saved' | 'failed' | 'cancelled';
|
package/dist/index.d.ts
CHANGED
|
@@ -1163,12 +1163,7 @@ interface SaveDeviceBindingRequest extends UiRequestOperationAttribution {
|
|
|
1163
1163
|
}>;
|
|
1164
1164
|
extra?: HardwareCallExtra;
|
|
1165
1165
|
}
|
|
1166
|
-
type BindBleDeviceParams = Pick<SaveDeviceBindingRequest, 'identity' | 'extra'
|
|
1167
|
-
/** Ledger: other recorded chains, tried in order only when the previous chain's app is missing. */
|
|
1168
|
-
fallbackIdentities?: Extract<WalletIdentity, {
|
|
1169
|
-
vendor: 'ledger';
|
|
1170
|
-
}>[];
|
|
1171
|
-
};
|
|
1166
|
+
type BindBleDeviceParams = Pick<SaveDeviceBindingRequest, 'identity' | 'extra'>;
|
|
1172
1167
|
interface DeviceBindingStatus {
|
|
1173
1168
|
selectionRequestId: string;
|
|
1174
1169
|
status: 'verifying' | 'saved' | 'failed' | 'cancelled';
|
package/dist/index.js
CHANGED
|
@@ -565,15 +565,6 @@ function rehydrateConnectorError(error) {
|
|
|
565
565
|
..._nullishCoalesce(params, () => ( {}))
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
|
-
function withChildConnectionType(event, data, connectionType) {
|
|
569
|
-
if (event !== "device-connect" && event !== "features") return data;
|
|
570
|
-
const { device } = data;
|
|
571
|
-
if (device.connectionType) return data;
|
|
572
|
-
return {
|
|
573
|
-
...data,
|
|
574
|
-
device: { ...device, connectionType }
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
568
|
function isDeviceUnavailableError(error) {
|
|
578
569
|
const typed = error;
|
|
579
570
|
if (typed.code === 10100 /* DeviceNotFound */ || typed.code === 10101 /* DeviceDisconnected */) {
|
|
@@ -772,7 +763,7 @@ function createCombinedConnector(connectors) {
|
|
|
772
763
|
},
|
|
773
764
|
on: (event, handler) => {
|
|
774
765
|
const attached = connectors.map((child) => {
|
|
775
|
-
const forward = (data) => handler(
|
|
766
|
+
const forward = (data) => handler(data);
|
|
776
767
|
child.on(event, forward);
|
|
777
768
|
return { child, handler: forward };
|
|
778
769
|
});
|