Skip to content

Commit c946e4b

Browse files
authored
Merge pull request #145 from aave/fix/security-warnings
fix: upgrades dependencies
2 parents ecccc48 + 5115e29 commit c946e4b

File tree

16 files changed

+599
-1046
lines changed

16 files changed

+599
-1046
lines changed

.changeset/nice-cloths-write.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@aave/client": patch
3+
"@aave/react": patch
4+
---
5+
6+
**fix:** polynomial regular expression used on uncontrolled data

.changeset/plain-goats-occur.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches: [main]
66

7+
permissions:
8+
contents: read
9+
710
concurrency:
811
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
912
cancel-in-progress: true

.github/workflows/on-demand.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types: [on-demand-test]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
concurrency:
912
group: ${{ github.workflow }}-tests-on-demand
1013
cancel-in-progress: true

.github/workflows/pull-request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
branches: [main]
66

7+
permissions:
8+
contents: read
9+
710
concurrency:
811
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
912
cancel-in-progress: true

.github/workflows/verify.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
required: false
88
default: false
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
lint:
1215
name: Lint

examples/wip/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "vite"
99
},
1010
"dependencies": {
11-
"@aave/react": "workspace:*",
11+
"@aave/react": "latest",
1212
"react": "^19.1.0",
1313
"react-dom": "^19.1.0"
1414
},

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
"lint": "biome check",
1919
"lint:fix": "biome check --write",
2020
"new:package": "NODE_OPTIONS='--import tsx' plop --plopfile=plopfile.ts",
21-
"prepare": "pnpm run build",
2221
"publish:results": "tsx scripts/publishResults.ts",
23-
"release": "pnpm changeset publish",
22+
"release": "pnpm run build && pnpm changeset publish",
2423
"spec": "vitest --project spec",
2524
"spec:borrow": "vitest --project spec packages/spec/markets/borrow.spec.ts",
2625
"spec:chains": "vitest --project spec packages/spec/misc/chains.spec.ts",
@@ -48,16 +47,15 @@
4847
"license": "MIT",
4948
"devDependencies": {
5049
"@biomejs/biome": "^2.0.6",
51-
"@changesets/cli": "^2.29.5",
5250
"@types/node": "^24.0.7",
5351
"@vitest/ui": "^3.2.4",
5452
"jest-extended": "^6.0.0",
55-
"plop": "^4.0.1",
56-
"rimraf": "^6.0.1",
53+
"plop": "^4.0.4",
54+
"rimraf": "^6.1.2",
5755
"tsx": "^4.20.3",
5856
"turbo": "^2.5.4",
5957
"typescript": "^5.9.2",
60-
"vite": "^7.0.0",
58+
"vite": "^7.3.0",
6159
"vitest": "^3.2.4"
6260
},
6361
"pnpm": {
@@ -66,5 +64,8 @@
6664
"react-dom": "^19.1.0"
6765
}
6866
},
69-
"packageManager": "[email protected]"
67+
"packageManager": "[email protected]",
68+
"dependencies": {
69+
"@changesets/cli": "^2.29.8"
70+
}
7071
}

packages/client/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,23 +71,22 @@
7171
"build": "tsup"
7272
},
7373
"dependencies": {
74-
"@aave/graphql": "workspace:*",
7574
"@aave/core": "workspace:*",
75+
"@aave/graphql": "workspace:*",
7676
"@aave/types": "workspace:*",
77+
"@privy-io/server-auth": "^1.32.5",
7778
"@urql/core": "^5.2.0",
7879
"graphql": "^16.11.0"
7980
},
8081
"devDependencies": {
8182
"@bgd-labs/aave-address-book": "^4.25.3",
82-
"@privy-io/server-auth": "^1.28.8",
8383
"ethers": "^6.14.4",
8484
"thirdweb": "^5.105.25",
85-
"tsup": "^8.5.0",
85+
"tsup": "^8.5.1",
8686
"typescript": "^5.9.2",
8787
"viem": "^2.31.6"
8888
},
8989
"peerDependencies": {
90-
"@privy-io/server-auth": "^1.28.8",
9190
"ethers": "^6.14.4",
9291
"thirdweb": "^5.105.25",
9392
"viem": "^2.31.6"

packages/client/src/viem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function transactionError(
134134
request: TransactionRequest,
135135
): TransactionError {
136136
const baseUrl = chain?.blockExplorers?.default?.url;
137-
const link = baseUrl && `${baseUrl.replace(/\/+$/, '')}/tx/${txHash}`;
137+
const link = baseUrl && new URL(`/tx/${txHash}`, baseUrl).toString();
138138

139139
return TransactionError.new({ txHash, request, link });
140140
}

0 commit comments

Comments
 (0)