@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.mjs CHANGED
@@ -565,15 +565,6 @@ function rehydrateConnectorError(error) {
565
565
  ...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(withChildConnectionType(event, data, child.connectionType));
766
+ const forward = (data) => handler(data);
776
767
  child.on(event, forward);
777
768
  return { child, handler: forward };
778
769
  });