Skip to content

Commit

Permalink
fix: add nestjs v9 and axios v1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
KillWolfVlad committed Oct 16, 2022
1 parent 94d37aa commit 2be45a4
Show file tree
Hide file tree
Showing 3 changed files with 1,314 additions and 1,186 deletions.
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,39 +76,39 @@
"tslib": "^2.4.0"
},
"devDependencies": {
"@byndyusoft/eslint-config": "2.0.0",
"@byndyusoft/tsconfig": "1.1.0",
"@commitlint/cli": "17.0.3",
"@commitlint/config-conventional": "17.0.3",
"@nestjs/common": "8.4.7",
"@types/jest": "28.1.6",
"@types/lodash": "4.14.182",
"@types/node": "14.18.22",
"axios": "0.27.2",
"eslint": "8.20.0",
"@byndyusoft/eslint-config": "2.1.1",
"@byndyusoft/tsconfig": "1.2.0",
"@commitlint/cli": "17.1.2",
"@commitlint/config-conventional": "17.1.0",
"@nestjs/common": "9.1.4",
"@types/jest": "29.1.2",
"@types/lodash": "4.14.186",
"@types/node": "14.18.32",
"axios": "1.1.3",
"eslint": "8.25.0",
"husky": "8.0.1",
"jest": "28.1.3",
"jest-extended": "3.0.1",
"jest": "29.2.0",
"jest-extended": "3.1.0",
"lint-staged": "13.0.3",
"markdownlint-cli": "0.32.1",
"markdownlint-cli": "0.32.2",
"pinst": "3.0.0",
"prettier": "2.7.1",
"prettier-plugin-packagejson": "2.2.18",
"semantic-release": "19.0.3",
"prettier-plugin-packagejson": "2.3.0",
"semantic-release": "19.0.5",
"shx": "0.3.4",
"ts-jest": "28.0.7",
"typescript": "4.7.4"
"ts-jest": "29.0.3",
"typescript": "4.8.4"
},
"peerDependencies": {
"@nestjs/common": "^8.4.7",
"axios": "^0.27.2"
"@nestjs/common": "^8.0.0 || ^9.0.0",
"axios": "^0.27.2 || ^1.0.0"
},
"peerDependenciesMeta": {
"axios": {
"optional": true
}
},
"packageManager": "yarn@4.0.0-rc.14",
"packageManager": "yarn@4.0.0-rc.25",
"engines": {
"node": ">=14"
},
Expand Down
26 changes: 13 additions & 13 deletions src/__tests__/parseEndpoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ describe("parseEndpoint", () => {
email: "user1@example.com",
}),
).toMatchInlineSnapshot(`
Object {
"data": Object {
{
"data": {
"email": "user1@example.com",
"name": "user1",
},
"method": "POST",
"params": Object {},
"params": {},
"url": "/users",
}
`);
Expand All @@ -44,9 +44,9 @@ describe("parseEndpoint", () => {
userVersion: 5,
}),
).toMatchInlineSnapshot(`
Object {
{
"method": "DELETE",
"params": Object {
"params": {
"userVersion": 5,
},
"url": "/users/1",
Expand All @@ -60,9 +60,9 @@ describe("parseEndpoint", () => {
userId: "1",
}),
).toMatchInlineSnapshot(`
Object {
{
"method": "GET",
"params": Object {},
"params": {},
"url": "/users/1",
}
`);
Expand All @@ -76,12 +76,12 @@ describe("parseEndpoint", () => {
pageToken: "0",
}),
).toMatchInlineSnapshot(`
Object {
{
"method": "GET",
"params": Object {
"params": {
"pageSize": 10,
"pageToken": "0",
"userIds": Array [
"userIds": [
"1",
"2",
],
Expand All @@ -100,13 +100,13 @@ describe("parseEndpoint", () => {
email: "user1@example.com",
}),
).toMatchInlineSnapshot(`
Object {
"data": Object {
{
"data": {
"email": "user1@example.com",
"name": "user1",
},
"method": "PATCH",
"params": Object {
"params": {
"userVersion": 5,
},
"url": "/users/1",
Expand Down
Loading

0 comments on commit 2be45a4

Please sign in to comment.