Skip to content

Commit 42c2a7c

Browse files
authored
chore: pin secure axios version (#3304)
* chore: pin correct axios version * format tweak
1 parent 40e1695 commit 42c2a7c

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

.yarnrc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
nodeLinker: node-modules
22
enableScripts: false
3-
npmMinimalAgeGate: 7d
3+
npmMinimalAgeGate: 7d
4+
# Allow axios 1.14.0 through the age gate until it’s older than 7d - this is the secure version.
5+
npmPreapprovedPackages: ["axios@1.14.0", "@codecademy/*"]

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"@types/react": "18.3.27",
117117
"@types/react-dom": "18.3.1",
118118
"@typescript-eslint/utils": "^5.15.0",
119+
"axios": "1.14.0",
119120
"error-ex": "1.3.4",
120121
"react": "18.3.1",
121122
"react-dom": "18.3.1"

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9191,14 +9191,14 @@ __metadata:
91919191
languageName: node
91929192
linkType: hard
91939193

9194-
"axios@npm:^1.12.0, axios@npm:^1.13.5, axios@npm:^1.6.0, axios@npm:^1.6.1":
9195-
version: 1.13.6
9196-
resolution: "axios@npm:1.13.6"
9194+
"axios@npm:1.14.0":
9195+
version: 1.14.0
9196+
resolution: "axios@npm:1.14.0"
91979197
dependencies:
91989198
follow-redirects: "npm:^1.15.11"
91999199
form-data: "npm:^4.0.5"
9200-
proxy-from-env: "npm:^1.1.0"
9201-
checksum: 10c0/51fb5af055c3b85662fa97df17d986ae2c37d13bf86d50b6bb36b6b3a2dec6966a1d3a14ab3774b71707b155ae3597ed9b7babdf1a1a863d1a31840cb8e7ec71
9200+
proxy-from-env: "npm:^2.1.0"
9201+
checksum: 10c0/2541f4aa215a7d1842429dad006fc682d82bc0e74bd14500823f7d8cce3bbae0e0a8c328c8538946718f366ab8ce5a4c12e9ad40e5a0f3482ff8bff0cd115d45
92029202
languageName: node
92039203
linkType: hard
92049204

@@ -19085,10 +19085,10 @@ __metadata:
1908519085
languageName: node
1908619086
linkType: hard
1908719087

19088-
"proxy-from-env@npm:^1.1.0":
19089-
version: 1.1.0
19090-
resolution: "proxy-from-env@npm:1.1.0"
19091-
checksum: 10c0/fe7dd8b1bdbbbea18d1459107729c3e4a2243ca870d26d34c2c1bcd3e4425b7bcc5112362df2d93cc7fb9746f6142b5e272fd1cc5c86ddf8580175186f6ad42b
19088+
"proxy-from-env@npm:^2.1.0":
19089+
version: 2.1.0
19090+
resolution: "proxy-from-env@npm:2.1.0"
19091+
checksum: 10c0/ed01729fd4d094eab619cd7e17ce3698b3413b31eb102c4904f9875e677cd207392795d5b4adee9cec359dfd31c44d5ad7595a3a3ad51c40250e141512281c58
1909219092
languageName: node
1909319093
linkType: hard
1909419094

0 commit comments

Comments
 (0)