@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/dist/cjs/package.json +1 -1
- package/dist/cjs/src/transaction/Beef.js +0 -1
- package/dist/cjs/src/transaction/Beef.js.map +1 -1
- package/dist/cjs/src/transaction/index.js +16 -3
- package/dist/cjs/src/transaction/index.js.map +1 -1
- package/dist/cjs/src/wallet/ProtoWallet.js +1 -1
- package/dist/cjs/src/wallet/ProtoWallet.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/src/transaction/Beef.js +0 -1
- package/dist/esm/src/transaction/Beef.js.map +1 -1
- package/dist/esm/src/transaction/index.js +1 -1
- package/dist/esm/src/transaction/index.js.map +1 -1
- package/dist/esm/src/wallet/ProtoWallet.js +1 -1
- package/dist/esm/src/wallet/ProtoWallet.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/src/transaction/Beef.d.ts +0 -1
- package/dist/types/src/transaction/Beef.d.ts.map +1 -1
- package/dist/types/src/transaction/index.d.ts +1 -1
- package/dist/types/src/transaction/index.d.ts.map +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/umd/bundle.js +1 -1
- package/package.json +1 -1
- package/src/transaction/Beef.ts +0 -2
- package/src/transaction/__tests/Beef.test.ts +1 -1
- package/src/transaction/index.ts +1 -1
- package/src/wallet/ProtoWallet.ts +1 -1
package/package.json
CHANGED
package/src/transaction/Beef.ts
CHANGED
|
@@ -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,
|
|
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
|
|
package/src/transaction/index.ts
CHANGED
|
@@ -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
|
|
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 (
|
|
42
|
+
if (!(rootKeyOrKeyDeriver instanceof KeyDeriver)) {
|
|
43
43
|
rootKeyOrKeyDeriver = new KeyDeriver(rootKeyOrKeyDeriver as PrivateKey | 'anyone')
|
|
44
44
|
}
|
|
45
45
|
this.keyDeriver = rootKeyOrKeyDeriver as KeyDeriver
|