@bsv/wallet-toolbox 1.4.4 → 1.4.6
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/mobile/out/src/CWIStyleWalletManager.js +1 -1
- package/mobile/out/src/CWIStyleWalletManager.js.map +1 -1
- package/mobile/package-lock.json +2 -2
- package/mobile/package.json +1 -1
- package/out/src/CWIStyleWalletManager.js +1 -1
- package/out/src/CWIStyleWalletManager.js.map +1 -1
- package/out/src/__tests/CWIStyleWalletManager.test.js +2 -2
- package/out/src/__tests/CWIStyleWalletManager.test.js.map +1 -1
- package/out/src/storage/__test/adminStats.man.test.js +1 -0
- package/out/src/storage/__test/adminStats.man.test.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/CWIStyleWalletManager.ts +1 -1
- package/src/__tests/CWIStyleWalletManager.test.ts +2 -2
- package/src/storage/__test/adminStats.man.test.ts +1 -0
package/package.json
CHANGED
|
@@ -1870,7 +1870,7 @@ export class CWIStyleWalletManager implements WalletInterface {
|
|
|
1870
1870
|
while (!this.authenticated || !this.underlying) {
|
|
1871
1871
|
await new Promise(resolve => setTimeout(resolve, 100))
|
|
1872
1872
|
}
|
|
1873
|
-
return {
|
|
1873
|
+
return await this.underlying.waitForAuthentication({}, originator)
|
|
1874
1874
|
}
|
|
1875
1875
|
|
|
1876
1876
|
async getHeight(_: {}, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<GetHeightResult> {
|
|
@@ -502,8 +502,8 @@ describe('CWIStyleWalletManager Tests', () => {
|
|
|
502
502
|
|
|
503
503
|
test('waitForAuthentication() eventually resolves', async () => {
|
|
504
504
|
// Already authenticated from beforeEach. So it should immediately return.
|
|
505
|
-
|
|
506
|
-
expect(
|
|
505
|
+
await manager.waitForAuthentication({}, 'normal.com')
|
|
506
|
+
expect(mockUnderlyingWallet.waitForAuthentication).toHaveBeenCalledTimes(1)
|
|
507
507
|
})
|
|
508
508
|
})
|
|
509
509
|
describe('Additional Tests for Password Retriever Callback, Privileged Key Expiry, and UMP Token Serialization', () => {
|
|
@@ -36,6 +36,7 @@ describe('storage adminStats tests', () => {
|
|
|
36
36
|
})
|
|
37
37
|
|
|
38
38
|
test('0 adminStats StorageKnex', async () => {
|
|
39
|
+
storage.setServices(setup.services)
|
|
39
40
|
const r = await storage.adminStats(env.identityKey)
|
|
40
41
|
console.log(Format.toLogStringAdminStats(r))
|
|
41
42
|
expect(r.requestedBy).toBe(env.identityKey)
|