Skip to content

Commit 70dd408

Browse files
committed
fix: stick to older match-sorter dependency following strapi
1 parent 67b8d66 commit 70dd408

File tree

3 files changed

+229
-434
lines changed

3 files changed

+229
-434
lines changed

admin/src/utils/axiosInstance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from "axios";
1+
import axios, { AxiosError, AxiosRequestHeaders, InternalAxiosRequestConfig, AxiosResponse } from "axios";
22
// @ts-ignore
33
import { auth } from "@strapi/helper-plugin";
44

@@ -7,12 +7,12 @@ const instance = axios.create({
77
});
88

99
instance.interceptors.request.use(
10-
async (config: AxiosRequestConfig) => {
10+
async (config: InternalAxiosRequestConfig) => {
1111
config.headers = {
1212
Authorization: `Bearer ${auth.getToken()}`,
1313
Accept: "application/json",
1414
"Content-Type": "application/json",
15-
};
15+
} as AxiosRequestHeaders;
1616

1717
return config;
1818
},

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strapi-plugin-comments",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "Strapi - Comments plugin",
55
"strapi": {
66
"name": "comments",
@@ -34,7 +34,8 @@
3434
"@types/react-query": "^1.2.9",
3535
"@types/styled-components": "^5.1.26",
3636
"bad-words": "^3.0.4",
37-
"styled-components": "^5.3.8"
37+
"styled-components": "^5.3.8",
38+
"match-sorter": "^4.0.2"
3839
},
3940
"devDependencies": {
4041
"@strapi/helper-plugin": "^4.7.1",

0 commit comments

Comments
 (0)