@bsv/sdk 1.3.6 → 1.3.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/sdk",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "type": "module",
5
5
  "description": "BSV Blockchain Software Development Kit",
6
6
  "main": "dist/cjs/mod.js",
@@ -716,5 +716,3 @@ export class Beef {
716
716
  }
717
717
  }
718
718
  }
719
-
720
- export default Beef
@@ -1,7 +1,7 @@
1
1
  // The following imports allow flag a large number type checking errors by the VsCode editor due to missing type information:
2
2
  import BeefTx from "../../../dist/cjs/src/transaction/BeefTx"
3
3
  import BeefParty from "../../../dist/cjs/src/transaction/BeefParty"
4
- import Beef, { BEEF_V1, BEEF_V2 } from "../../../dist/cjs/src/transaction/Beef"
4
+ import { Beef, BEEF_V1, BEEF_V2 } from "../../../dist/cjs/src/transaction/Beef"
5
5
  import Transaction from "../../../dist/cjs/src/transaction/Transaction"
6
6
  import { fromBase58 } from '../../../dist/cjs/src/primitives/utils'
7
7
 
@@ -6,5 +6,5 @@ export type { Broadcaster, BroadcastFailure, BroadcastResponse } from './Broadca
6
6
  export { isBroadcastResponse, isBroadcastFailure } from './Broadcaster.js'
7
7
  export type { default as ChainTracker } from './ChainTracker.js'
8
8
  export { default as BeefTx } from './BeefTx.js'
9
- export { default as Beef } from './Beef.js'
9
+ export * from './Beef.js'
10
10
  export { default as BeefParty } from './BeefParty.js'
@@ -39,7 +39,7 @@ export class ProtoWallet implements ProtoWalletApi {
39
39
  keyDeriver: KeyDeriverApi
40
40
 
41
41
  constructor (rootKeyOrKeyDeriver: PrivateKey | 'anyone' | KeyDeriverApi) {
42
- if (typeof rootKeyOrKeyDeriver['identityKey'] !== 'string') {
42
+ if (!(rootKeyOrKeyDeriver instanceof KeyDeriver)) {
43
43
  rootKeyOrKeyDeriver = new KeyDeriver(rootKeyOrKeyDeriver as PrivateKey | 'anyone')
44
44
  }
45
45
  this.keyDeriver = rootKeyOrKeyDeriver as KeyDeriver