Skip to content

Commit acb7eab

Browse files
committed
chore: add oxfmt to bitcoin package to fix build and formatting issues
1 parent 857ff74 commit acb7eab

4 files changed

Lines changed: 49 additions & 14 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Each snap in this repository has its own README with installation and usage inst
1010

1111
<!-- start package list -->
1212

13+
- [`@metamask/bitcoin-wallet-snap`](packages/bitcoin-wallet-snap)
1314
- [`@metamask/sample-snap`](packages/sample-snap)
1415

1516
<!-- end package list -->

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
"hash-base@npm:^3.0.0": "3.1.0",
9696
"parse-asn1@npm:^5.0.0": "5.1.7",
9797
"parse-asn1@npm:^5.1.7": "5.1.7",
98-
"pbkdf2@npm:^3.0.17": "3.1.2",
99-
"pbkdf2@npm:^3.1.2": "3.1.2",
98+
"pbkdf2@npm:^3.0.17": "3.1.3",
99+
"pbkdf2@npm:^3.1.2": "3.1.3",
100100
"ripemd160@npm:^2.0.0": "2.0.2",
101101
"ripemd160@npm:^2.0.1": "2.0.2",
102102
"ws@7.4.6": "^7.5.10"

packages/bitcoin-wallet-snap/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"build": "mm-snap build && yarn build:locale && yarn build-preinstalled-snap",
3232
"build-preinstalled-snap": "node scripts/build-preinstalled-snap.js",
3333
"build:clean": "yarn clean && yarn build:locale && yarn build",
34-
"build:locale": "node ./scripts/populate-en-locale.js && prettier 'locales/**/*.json' -w",
34+
"build:locale": "node ./scripts/populate-en-locale.js && oxfmt 'locales/**/*.json'",
3535
"build:locale:watch": "npx nodemon --watch packages/snap/messages.json --exec \"node ./scripts/populate-en-locale.js && prettier 'locales/**/*.json' -w\"",
3636
"changelog:update": "../../scripts/update-changelog.sh @metamask/bitcoin-wallet-snap",
3737
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/bitcoin-wallet-snap",
@@ -42,7 +42,7 @@
4242
"lint:deps:fix": "depcheck && yarn dedupe",
4343
"lint:eslint": "eslint . --cache --ext js,jsx,ts,tsx",
4444
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
45-
"lint:misc": "prettier '**/*.json' '**/*.md' --check",
45+
"lint:misc": "oxfmt '**/*.json' '**/*.md' --check",
4646
"lint:types": "tsc --noEmit",
4747
"publish:preview": "yarn npm publish --tag preview",
4848
"prepublishOnly": "mm-snap manifest",
@@ -72,6 +72,7 @@
7272
"jest": "^29.7.0",
7373
"jest-mock-extended": "^4.0.0",
7474
"jest-transform-stub": "2.0.0",
75+
"oxfmt": "^0.45.0",
7576
"superstruct": "^2.0.2",
7677
"ts-jest": "^29.4.1",
7778
"typescript": "~5.8.3",

yarn.lock

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,7 @@ __metadata:
17481748
jest: "npm:^29.7.0"
17491749
jest-mock-extended: "npm:^4.0.0"
17501750
jest-transform-stub: "npm:2.0.0"
1751+
oxfmt: "npm:^0.45.0"
17511752
superstruct: "npm:^2.0.2"
17521753
ts-jest: "npm:^29.4.1"
17531754
typescript: "npm:~5.8.3"
@@ -6313,6 +6314,18 @@ __metadata:
63136314
languageName: node
63146315
linkType: hard
63156316

6317+
"create-hash@npm:~1.1.3":
6318+
version: 1.1.3
6319+
resolution: "create-hash@npm:1.1.3"
6320+
dependencies:
6321+
cipher-base: "npm:^1.0.1"
6322+
inherits: "npm:^2.0.1"
6323+
ripemd160: "npm:^2.0.0"
6324+
sha.js: "npm:^2.4.0"
6325+
checksum: 10/b9f675719321dd3a3c3540bb46afcbdaf7182366ce93da9265318290e928be881e5edeff8c48a5ee9263c342e5e3f705fad5eb48f2e2cddc5fed1eb54077e076
6326+
languageName: node
6327+
linkType: hard
6328+
63166329
"create-hmac@npm:^1.1.4, create-hmac@npm:^1.1.7":
63176330
version: 1.1.7
63186331
resolution: "create-hmac@npm:1.1.7"
@@ -8270,6 +8283,15 @@ __metadata:
82708283
languageName: node
82718284
linkType: hard
82728285

8286+
"hash-base@npm:^2.0.0":
8287+
version: 2.0.2
8288+
resolution: "hash-base@npm:2.0.2"
8289+
dependencies:
8290+
inherits: "npm:^2.0.1"
8291+
checksum: 10/e39f3f2bb91679ed350bd2eb81035acb1e1e6e9bb86d9f1197fcfdc3cf39a2c56bf82a1870f000fae651477883b4c107fd6ac0c640a18ab06298b87c39939396
8292+
languageName: node
8293+
linkType: hard
8294+
82738295
"hash-base@npm:~3.0, hash-base@npm:~3.0.4":
82748296
version: 3.0.5
82758297
resolution: "hash-base@npm:3.0.5"
@@ -10781,16 +10803,17 @@ __metadata:
1078110803
languageName: node
1078210804
linkType: hard
1078310805

10784-
"pbkdf2@npm:3.1.2":
10785-
version: 3.1.2
10786-
resolution: "pbkdf2@npm:3.1.2"
10806+
"pbkdf2@npm:3.1.3":
10807+
version: 3.1.3
10808+
resolution: "pbkdf2@npm:3.1.3"
1078710809
dependencies:
10788-
create-hash: "npm:^1.1.2"
10789-
create-hmac: "npm:^1.1.4"
10790-
ripemd160: "npm:^2.0.1"
10791-
safe-buffer: "npm:^5.0.1"
10792-
sha.js: "npm:^2.4.8"
10793-
checksum: 10/40bdf30df1c9bb1ae41ec50c11e480cf0d36484b7c7933bf55e4451d1d0e3f09589df70935c56e7fccc5702779a0d7b842d012be8c08a187b44eb24d55bb9460
10810+
create-hash: "npm:~1.1.3"
10811+
create-hmac: "npm:^1.1.7"
10812+
ripemd160: "npm:=2.0.1"
10813+
safe-buffer: "npm:^5.2.1"
10814+
sha.js: "npm:^2.4.11"
10815+
to-buffer: "npm:^1.2.0"
10816+
checksum: 10/980cf2977aa84ec3166fde195a28464ab494131c0a5778fc8f20b8894410747e502159c19ef2b41842c728bc52ba49ffee6847e3ee61ac0d482689f85d8a1b30
1079410817
languageName: node
1079510818
linkType: hard
1079610819

@@ -11401,6 +11424,16 @@ __metadata:
1140111424
languageName: node
1140211425
linkType: hard
1140311426

11427+
"ripemd160@npm:=2.0.1":
11428+
version: 2.0.1
11429+
resolution: "ripemd160@npm:2.0.1"
11430+
dependencies:
11431+
hash-base: "npm:^2.0.0"
11432+
inherits: "npm:^2.0.1"
11433+
checksum: 10/f1a20b72b3ef897a981544c72a1fe15c2bd580f6f40e3062f7839af8e81232f746aa860964686e4b81e90929ad086f14823a9864e4e4bed3367e597fe14a0968
11434+
languageName: node
11435+
linkType: hard
11436+
1140411437
"rlp@npm:^2.2.4":
1140511438
version: 2.2.7
1140611439
resolution: "rlp@npm:2.2.7"
@@ -11695,7 +11728,7 @@ __metadata:
1169511728
languageName: node
1169611729
linkType: hard
1169711730

11698-
"sha.js@npm:^2.4.0, sha.js@npm:^2.4.8":
11731+
"sha.js@npm:^2.4.0, sha.js@npm:^2.4.11, sha.js@npm:^2.4.8":
1169911732
version: 2.4.12
1170011733
resolution: "sha.js@npm:2.4.12"
1170111734
dependencies:

0 commit comments

Comments
 (0)