Skip to content

Commit e5a7730

Browse files
committed
Refactor: Remove all require statements, remove ECPair, remove tiny-secp256k1 dep
1 parent f209b0e commit e5a7730

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1446
-1160
lines changed

package-lock.json

Lines changed: 105 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "5.2.0",
44
"description": "Client-side Bitcoin JavaScript library",
55
"main": "./src/index.js",
6-
"types": "./types/index.d.ts",
6+
"types": "./src/index.d.ts",
77
"engines": {
88
"node": ">=8.0.0"
99
},
@@ -18,7 +18,7 @@
1818
"audit": "NPM_AUDIT_IGNORE_DEV=1 NPM_AUDIT_IGNORE_LEVEL=low npm-audit-whitelister .npm-audit-whitelister.json",
1919
"build": "npm run clean && tsc -p ./tsconfig.json && npm run formatjs",
2020
"build:tests": "npm run clean:jstests && tsc -p ./test/tsconfig.json",
21-
"clean": "rimraf src types",
21+
"clean": "rimraf src",
2222
"clean:jstests": "rimraf 'test/**/!(ts-node-register)*.js'",
2323
"coverage-report": "npm run build && npm run nobuild:coverage-report",
2424
"coverage-html": "npm run build && npm run nobuild:coverage-html",
@@ -46,37 +46,36 @@
4646
"url": "https://github.com/bitcoinjs/bitcoinjs-lib.git"
4747
},
4848
"files": [
49-
"src",
50-
"types"
49+
"src"
5150
],
5251
"dependencies": {
5352
"bech32": "^2.0.0",
5453
"bip174": "^2.0.1",
5554
"bip32": "^2.0.4",
56-
"bip66": "^1.1.0",
57-
"bitcoin-ops": "^1.4.0",
58-
"bs58check": "^2.0.0",
55+
"bs58check": "^2.1.2",
5956
"create-hash": "^1.1.0",
6057
"create-hmac": "^1.1.3",
61-
"merkle-lib": "^2.0.10",
62-
"pushdata-bitcoin": "^1.0.1",
6358
"randombytes": "^2.0.1",
64-
"tiny-secp256k1": "^1.1.6",
6559
"typeforce": "^1.11.3",
66-
"varuint-bitcoin": "^1.0.4",
60+
"varuint-bitcoin": "^1.1.2",
6761
"wif": "^2.0.1"
6862
},
6963
"devDependencies": {
7064
"@types/bs58": "^4.0.0",
65+
"@types/bs58check": "^2.1.0",
66+
"@types/create-hash": "^1.2.2",
7167
"@types/mocha": "^5.2.7",
72-
"@types/node": "12.7.5",
68+
"@types/node": "^16.11.1",
7369
"@types/proxyquire": "^1.3.28",
70+
"@types/randombytes": "^2.0.0",
71+
"@types/wif": "^2.0.2",
7472
"bip39": "^3.0.2",
7573
"bip65": "^1.0.1",
7674
"bip68": "^1.0.3",
7775
"bn.js": "^4.11.8",
7876
"bs58": "^4.0.0",
7977
"dhttp": "^3.0.0",
78+
"ecpair": "^1.0.0",
8079
"hoodwink": "^2.0.0",
8180
"minimaldata": "^1.0.2",
8281
"mocha": "^7.1.1",
@@ -87,8 +86,8 @@
8786
"regtest-client": "0.2.0",
8887
"rimraf": "^2.6.3",
8988
"ts-node": "^8.3.0",
90-
"tslint": "^5.20.1",
91-
"typescript": "3.2.2"
89+
"tslint": "^6.1.3",
90+
"typescript": "^4.4.4"
9291
},
9392
"license": "MIT"
9493
}

types/address.d.ts renamed to src/address.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference types="node" />
12
import { Network } from './networks';
23
export interface Base58CheckResult {
34
hash: Buffer;

0 commit comments

Comments
 (0)