@onekeyfe/hd-core 1.2.0-alpha.32 → 1.2.0-alpha.33

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.
@@ -101,7 +101,7 @@ describe('openWalletSession', () => {
101
101
  expect(promptPassphrase).toHaveBeenCalledWith(
102
102
  {
103
103
  existsAttachPinUser: false,
104
- deviceOnly: true,
104
+ deviceOnly: false,
105
105
  source: 'wallet-session-coordinator',
106
106
  reason: 'open-wallet',
107
107
  },
@@ -660,7 +660,7 @@ describe('openWalletSession', () => {
660
660
  expect(promptPassphrase).toHaveBeenCalledWith(
661
661
  {
662
662
  existsAttachPinUser: false,
663
- deviceOnly: true,
663
+ deviceOnly: false,
664
664
  source: 'wallet-session-coordinator',
665
665
  reason: 'open-wallet',
666
666
  },
@@ -695,7 +695,7 @@ describe('openWalletSession', () => {
695
695
  expect(promptPassphrase).toHaveBeenCalledWith(
696
696
  {
697
697
  existsAttachPinUser: true,
698
- deviceOnly: true,
698
+ deviceOnly: false,
699
699
  source: 'wallet-session-coordinator',
700
700
  reason: 'open-wallet',
701
701
  },
@@ -1421,7 +1421,7 @@ describe('Protocol V2 feature adapter', () => {
1421
1421
  expect(promptPassphrase).toHaveBeenCalledWith(
1422
1422
  {
1423
1423
  existsAttachPinUser: false,
1424
- deviceOnly: true,
1424
+ deviceOnly: false,
1425
1425
  source: 'wallet-session-coordinator',
1426
1426
  reason: 'open-wallet',
1427
1427
  },
package/dist/index.js CHANGED
@@ -40114,7 +40114,7 @@ const selectDeviceSession = (device) => __awaiter(void 0, void 0, void 0, functi
40114
40114
  source: 'wallet-session-coordinator',
40115
40115
  reason: 'open-wallet',
40116
40116
  };
40117
- const response = yield device.commands.promptPassphrase(Object.assign({ existsAttachPinUser, deviceOnly: true }, metadata), { cancelDeviceOnReject: false });
40117
+ const response = yield device.commands.promptPassphrase(Object.assign({ existsAttachPinUser, deviceOnly: false }, metadata), { cancelDeviceOnReject: false });
40118
40118
  const hasHostPassphrase = typeof response.passphrase === 'string' && response.passphrase.length > 0;
40119
40119
  const selections = [
40120
40120
  hasHostPassphrase,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-core",
3
- "version": "1.2.0-alpha.32",
3
+ "version": "1.2.0-alpha.33",
4
4
  "description": "Core processes and APIs for communicating with OneKey hardware devices.",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -25,8 +25,8 @@
25
25
  "url": "https://github.com/OneKeyHQ/hardware-js-sdk/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@onekeyfe/hd-shared": "1.2.0-alpha.32",
29
- "@onekeyfe/hd-transport": "1.2.0-alpha.32",
28
+ "@onekeyfe/hd-shared": "1.2.0-alpha.33",
29
+ "@onekeyfe/hd-transport": "1.2.0-alpha.33",
30
30
  "axios": "1.15.2",
31
31
  "bignumber.js": "^9.0.2",
32
32
  "bytebuffer": "^5.0.1",
@@ -44,5 +44,5 @@
44
44
  "@types/w3c-web-usb": "^1.0.10",
45
45
  "@types/web-bluetooth": "^0.0.21"
46
46
  },
47
- "gitHead": "468888b93df8b147a512f63a8cbdc40ca1c5c1cf"
47
+ "gitHead": "965e837c93fc67225ccfac28d22c3403ff96ad25"
48
48
  }
@@ -63,7 +63,7 @@ const selectDeviceSession = async (device: Device) => {
63
63
  const response = await device.commands.promptPassphrase(
64
64
  {
65
65
  existsAttachPinUser,
66
- deviceOnly: true,
66
+ deviceOnly: false,
67
67
  ...metadata,
68
68
  },
69
69
  { cancelDeviceOnReject: false }