Skip to content

Commit ac23118

Browse files
authored
fix(kitsu): update dependency axios to v0.28.1 to address CVE-2023-45857 (#964)
build(kitsu)(deps): update dependency axios to v0.28.1
1 parent ad1aad1 commit ac23118

4 files changed

Lines changed: 18 additions & 16 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@babel/core": "~7.24.0",
3939
"@babel/preset-env": "~7.24.0",
4040
"@rollup/plugin-babel": "~6.0.0",
41-
"axios": "~0.27.0",
41+
"axios": "~0.28.1",
4242
"axios-mock-adapter": "~1.22.0",
4343
"babel-jest": "~29.7.0",
4444
"browserslist": "~4.23.0",

packages/kitsu/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@
4949
"build": "yarn rollup"
5050
},
5151
"dependencies": {
52-
"axios": "^0.27.0",
52+
"axios": "^0.28.1",
5353
"kitsu-core": "^10.1.4",
5454
"pluralize": "^8.0.0"
5555
},
5656
"size-limit": [
5757
{
5858
"path": "./dist/index.js",
59-
"limit": "13 kb",
59+
"limit": "14 kb",
6060
"brotli": true
6161
},
6262
{
6363
"path": "./dist/index.mjs",
64-
"limit": "13 kb",
64+
"limit": "14 kb",
6565
"brotli": true
6666
}
6767
],

packages/kitsu/src/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default class Kitsu {
7777
baseURL: options.baseURL || 'https://kitsu.io/api/edge',
7878
timeout: options.timeout || 30000
7979
},
80+
paramsSerializer: { serialize: /* istanbul ignore next */ p => this.query(p) },
8081
...options.axiosOptions
8182
})
8283

@@ -235,7 +236,6 @@ export default class Kitsu {
235236
const { data, headers: responseHeaders } = await this.axios.get(url, {
236237
headers,
237238
params,
238-
paramsSerializer: /* istanbul ignore next */ p => this.query(p),
239239
...config.axiosOptions
240240
})
241241

@@ -298,7 +298,6 @@ export default class Kitsu {
298298
{
299299
headers,
300300
params,
301-
paramsSerializer: /* istanbul ignore next */ p => this.query(p),
302301
...config.axiosOptions
303302
}
304303
)
@@ -359,7 +358,6 @@ export default class Kitsu {
359358
{
360359
headers,
361360
params,
362-
paramsSerializer: /* istanbul ignore next */ p => this.query(p),
363361
...config.axiosOptions
364362
}
365363
)
@@ -414,7 +412,6 @@ export default class Kitsu {
414412
}),
415413
headers,
416414
params,
417-
paramsSerializer: /* istanbul ignore next */ p => this.query(p),
418415
...config.axiosOptions
419416
})
420417

@@ -524,7 +521,6 @@ export default class Kitsu {
524521
}),
525522
headers: { ...this.headers, ...headers },
526523
params,
527-
paramsSerializer: /* istanbul ignore next */ p => this.query(p),
528524
...axiosOptions
529525
})
530526

yarn.lock

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,13 +3067,14 @@ axios-mock-adapter@~1.22.0:
30673067
fast-deep-equal "^3.1.3"
30683068
is-buffer "^2.0.5"
30693069

3070-
axios@^0.27.0, axios@~0.27.0:
3071-
version "0.27.2"
3072-
resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972"
3073-
integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==
3070+
axios@^0.28.1, axios@~0.28.1:
3071+
version "0.28.1"
3072+
resolved "https://registry.npmjs.org/axios/-/axios-0.28.1.tgz#2a7bcd34a3837b71ee1a5ca3762214b86b703e70"
3073+
integrity sha512-iUcGA5a7p0mVb4Gm/sy+FSECNkPFT4y7wt6OM/CDpO/OnNCvSs3PoMG8ibrC9jRoGYU0gUK5pXVC4NPXq6lHRQ==
30743074
dependencies:
3075-
follow-redirects "^1.14.9"
3075+
follow-redirects "^1.15.0"
30763076
form-data "^4.0.0"
3077+
proxy-from-env "^1.1.0"
30773078

30783079
babel-jest@^29.7.0, babel-jest@~29.7.0:
30793080
version "29.7.0"
@@ -5018,9 +5019,9 @@ flush-write-stream@^1.0.0:
50185019
inherits "^2.0.3"
50195020
readable-stream "^2.3.6"
50205021

5021-
follow-redirects@^1.14.9:
5022+
follow-redirects@^1.15.0:
50225023
version "1.15.6"
5023-
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
5024+
resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
50245025
integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
50255026

50265027
for-each@^0.3.3:
@@ -8733,6 +8734,11 @@ protoduck@^5.0.1:
87338734
dependencies:
87348735
genfun "^5.0.0"
87358736

8737+
proxy-from-env@^1.1.0:
8738+
version "1.1.0"
8739+
resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
8740+
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
8741+
87368742
psl@^1.1.28, psl@^1.1.33:
87378743
version "1.9.0"
87388744
resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7"

0 commit comments

Comments
 (0)