Skip to content

Commit 1f7bfda

Browse files
committed
fix: add nestjs v9 and axios v1 support
1 parent 94d37aa commit 1f7bfda

File tree

3 files changed

+1314
-1186
lines changed

3 files changed

+1314
-1186
lines changed

package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -76,39 +76,39 @@
7676
"tslib": "^2.4.0"
7777
},
7878
"devDependencies": {
79-
"@byndyusoft/eslint-config": "2.0.0",
80-
"@byndyusoft/tsconfig": "1.1.0",
81-
"@commitlint/cli": "17.0.3",
82-
"@commitlint/config-conventional": "17.0.3",
83-
"@nestjs/common": "8.4.7",
84-
"@types/jest": "28.1.6",
85-
"@types/lodash": "4.14.182",
86-
"@types/node": "14.18.22",
87-
"axios": "0.27.2",
88-
"eslint": "8.20.0",
79+
"@byndyusoft/eslint-config": "2.1.1",
80+
"@byndyusoft/tsconfig": "1.2.0",
81+
"@commitlint/cli": "17.1.2",
82+
"@commitlint/config-conventional": "17.1.0",
83+
"@nestjs/common": "9.1.4",
84+
"@types/jest": "29.1.2",
85+
"@types/lodash": "4.14.186",
86+
"@types/node": "14.18.32",
87+
"axios": "1.1.3",
88+
"eslint": "8.25.0",
8989
"husky": "8.0.1",
90-
"jest": "28.1.3",
91-
"jest-extended": "3.0.1",
90+
"jest": "29.2.0",
91+
"jest-extended": "3.1.0",
9292
"lint-staged": "13.0.3",
93-
"markdownlint-cli": "0.32.1",
93+
"markdownlint-cli": "0.32.2",
9494
"pinst": "3.0.0",
9595
"prettier": "2.7.1",
96-
"prettier-plugin-packagejson": "2.2.18",
97-
"semantic-release": "19.0.3",
96+
"prettier-plugin-packagejson": "2.3.0",
97+
"semantic-release": "19.0.5",
9898
"shx": "0.3.4",
99-
"ts-jest": "28.0.7",
100-
"typescript": "4.7.4"
99+
"ts-jest": "29.0.3",
100+
"typescript": "4.8.4"
101101
},
102102
"peerDependencies": {
103-
"@nestjs/common": "^8.4.7",
104-
"axios": "^0.27.2"
103+
"@nestjs/common": "^8.0.0 || ^9.0.0",
104+
"axios": "^0.27.2 || ^1.0.0"
105105
},
106106
"peerDependenciesMeta": {
107107
"axios": {
108108
"optional": true
109109
}
110110
},
111-
"packageManager": "yarn@4.0.0-rc.14",
111+
"packageManager": "yarn@4.0.0-rc.25",
112112
"engines": {
113113
"node": ">=14"
114114
},

src/__tests__/parseEndpoint.spec.ts

+13-13
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ describe("parseEndpoint", () => {
2525
email: "user1@example.com",
2626
}),
2727
).toMatchInlineSnapshot(`
28-
Object {
29-
"data": Object {
28+
{
29+
"data": {
3030
"email": "user1@example.com",
3131
"name": "user1",
3232
},
3333
"method": "POST",
34-
"params": Object {},
34+
"params": {},
3535
"url": "/users",
3636
}
3737
`);
@@ -44,9 +44,9 @@ describe("parseEndpoint", () => {
4444
userVersion: 5,
4545
}),
4646
).toMatchInlineSnapshot(`
47-
Object {
47+
{
4848
"method": "DELETE",
49-
"params": Object {
49+
"params": {
5050
"userVersion": 5,
5151
},
5252
"url": "/users/1",
@@ -60,9 +60,9 @@ describe("parseEndpoint", () => {
6060
userId: "1",
6161
}),
6262
).toMatchInlineSnapshot(`
63-
Object {
63+
{
6464
"method": "GET",
65-
"params": Object {},
65+
"params": {},
6666
"url": "/users/1",
6767
}
6868
`);
@@ -76,12 +76,12 @@ describe("parseEndpoint", () => {
7676
pageToken: "0",
7777
}),
7878
).toMatchInlineSnapshot(`
79-
Object {
79+
{
8080
"method": "GET",
81-
"params": Object {
81+
"params": {
8282
"pageSize": 10,
8383
"pageToken": "0",
84-
"userIds": Array [
84+
"userIds": [
8585
"1",
8686
"2",
8787
],
@@ -100,13 +100,13 @@ describe("parseEndpoint", () => {
100100
email: "user1@example.com",
101101
}),
102102
).toMatchInlineSnapshot(`
103-
Object {
104-
"data": Object {
103+
{
104+
"data": {
105105
"email": "user1@example.com",
106106
"name": "user1",
107107
},
108108
"method": "PATCH",
109-
"params": Object {
109+
"params": {
110110
"userVersion": 5,
111111
},
112112
"url": "/users/1",

0 commit comments

Comments
 (0)