Skip to content

Commit c9b79e5

Browse files
authored
JS Dependency Audit (#1084)
* all errors fixed + fully tree-shakeable * add prepublish workflow * change name
1 parent 5a47cb6 commit c9b79e5

File tree

2 files changed

+62
-37
lines changed

2 files changed

+62
-37
lines changed

.github/workflows/js.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: JavaScript Pre-Publish
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths: [ '.github/**', 'js/**' ]
7+
pull_request:
8+
branches: [ main ]
9+
paths: [ '.github/**', 'js/**' ]
10+
release:
11+
types: [ published ]
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: set up Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 18
25+
cache: yarn
26+
cache-dependency-path: 'js/yarn.lock'
27+
28+
- name: '[js] Install yarn dependencies'
29+
working-directory: 'js/'
30+
run: yarn install --frozen-lockfile
31+
- name: '[js] Lint'
32+
working-directory: 'js/'
33+
run: yarn lint
34+
continue-on-error: true # TODO: fix all lint issues and remove this line
35+
- name: '[js] Build'
36+
working-directory: 'js/'
37+
run: yarn build
38+
39+
- name: '[mobile-wallet-adapter-protocol] Pre-Publish'
40+
working-directory: 'js/packages/mobile-wallet-adapter-protocol'
41+
run: yarn prepublishOnly
42+
43+
- name: '[mobile-wallet-adapter-protocol-web3js] Pre-Publish'
44+
working-directory: 'js/packages/mobile-wallet-adapter-protocol-web3js'
45+
run: yarn prepublishOnly
46+
47+
- name: '[wallet-adapter-mobile] Pre-Publish'
48+
working-directory: 'js/packages/wallet-adapter-mobile'
49+
run: yarn prepublishOnly

js/yarn.lock

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,15 +1618,10 @@ acorn@8.1.0:
16181618
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.1.0.tgz#52311fd7037ae119cbb134309e901aa46295b3fe"
16191619
integrity sha512-LWCF/Wn0nfHOmJ9rzQApGnxnvgfROzGilS8936rqN/lfcYkY9MYZzdMqN+2NJ4SlTc+m5HiSa+kNfDtI64dwUA==
16201620

1621-
acorn@^8.7.1:
1622-
version "8.7.1"
1623-
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30"
1624-
integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A==
1625-
1626-
acorn@^8.8.1:
1627-
version "8.13.0"
1628-
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.13.0.tgz#2a30d670818ad16ddd6a35d3842dacec9e5d7ca3"
1629-
integrity sha512-8zSiw54Oxrdym50NlZ9sUusyO1Z1ZchgRLWRaK6c86XJFClyCgFKetdowBg5bKxyp/u+CDBJG4Mpp0m3HLZl9w==
1621+
acorn@^8.7.1, acorn@^8.8.1:
1622+
version "8.14.0"
1623+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.0.tgz#063e2c70cac5fb4f6467f0b11152e04c682795b0"
1624+
integrity sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==
16301625

16311626
add-stream@^1.0.0:
16321627
version "1.0.0"
@@ -1649,19 +1644,10 @@ agent-base@6, agent-base@^6.0.2:
16491644
dependencies:
16501645
debug "4"
16511646

1652-
agentkeepalive@^4.2.1:
1653-
version "4.2.1"
1654-
resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.2.1.tgz#a7975cbb9f83b367f06c90cc51ff28fe7d499717"
1655-
integrity sha512-Zn4cw2NEqd+9fiSVWMscnjyQ1a8Yfoc5oBajLeo5w+YBHgDUcEBY2hS4YpTz6iN5f/2zQiktcuM6tS8x1p9dpA==
1656-
dependencies:
1657-
debug "^4.1.0"
1658-
depd "^1.1.2"
1659-
humanize-ms "^1.2.1"
1660-
1661-
agentkeepalive@^4.5.0:
1662-
version "4.5.0"
1663-
resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.5.0.tgz#2673ad1389b3c418c5a20c5d7364f93ca04be923"
1664-
integrity sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==
1647+
agentkeepalive@^4.2.1, agentkeepalive@^4.5.0:
1648+
version "4.6.0"
1649+
resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.6.0.tgz#35f73e94b3f40bf65f105219c623ad19c136ea6a"
1650+
integrity sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==
16651651
dependencies:
16661652
humanize-ms "^1.2.1"
16671653

@@ -2404,7 +2390,7 @@ dateformat@^3.0.0:
24042390
resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
24052391
integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==
24062392

2407-
debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:
2393+
debug@4, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:
24082394
version "4.3.4"
24092395
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
24102396
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
@@ -2479,11 +2465,6 @@ delegates@^1.0.0:
24792465
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
24802466
integrity sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==
24812467

2482-
depd@^1.1.2:
2483-
version "1.1.2"
2484-
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
2485-
integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==
2486-
24872468
deprecation@^2.0.0, deprecation@^2.3.1:
24882469
version "2.3.1"
24892470
resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919"
@@ -4244,15 +4225,10 @@ minimist-options@4.1.0:
42444225
is-plain-obj "^1.1.0"
42454226
kind-of "^6.0.3"
42464227

4247-
minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6:
4248-
version "1.2.7"
4249-
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
4250-
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
4251-
4252-
minimist@^1.2.3:
4253-
version "1.2.6"
4254-
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
4255-
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
4228+
minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.5, minimist@^1.2.6:
4229+
version "1.2.8"
4230+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
4231+
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
42564232

42574233
minipass-collect@^1.0.2:
42584234
version "1.0.2"

0 commit comments

Comments
 (0)