Skip to content

Commit 7a23d4d

Browse files
committed
chore(deps): 📦 upgrade all outdated deps
1 parent 03d6db1 commit 7a23d4d

File tree

6 files changed

+649
-661
lines changed

6 files changed

+649
-661
lines changed

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"watch": "tsc -w",
1515
"start": "yarn link && nodemon",
1616
"semantic-release": "semantic-release",
17-
"prepublish": "yarn build",
17+
"prepublish": "yarn test && yarn build",
1818
"clean": "rimraf dist",
1919
"prepare": "husky install"
2020
},
@@ -43,31 +43,31 @@
4343
"devDependencies": {
4444
"@commitlint/cli": "^13.1.0",
4545
"@commitlint/config-conventional": "^13.1.0",
46-
"@nuxt/types": "^2.14.7",
46+
"@nuxt/types": "^2.15.8",
4747
"@types/escape-string-regexp": "^2.0.1",
48-
"@types/jest": "^26.0.14",
48+
"@types/jest": "^27.0.1",
4949
"@types/lodash.merge": "^4.6.6",
50-
"@types/node": "^14.11.10",
50+
"@types/node": "^16.9.3",
5151
"@types/qs": "^6.9.7",
52-
"@typescript-eslint/eslint-plugin": "^4.15.1",
53-
"@typescript-eslint/parser": "^4.4.1",
52+
"@typescript-eslint/eslint-plugin": "^4.31.1",
53+
"@typescript-eslint/parser": "^4.31.1",
5454
"@vue/test-utils": "^1.2.2",
55-
"axios": "^0.21.1",
56-
"axios-mock-adapter": "^1.18.2",
57-
"eslint": "^7.2.0",
58-
"eslint-config-prettier": "^6.13.0",
59-
"eslint-plugin-import": "^2.22.1",
60-
"eslint-plugin-prettier": "^3.1.4",
61-
"eslint-plugin-promise": "^4.3.1",
62-
"husky": "^7.0.1",
63-
"jest": "^27.0.6",
64-
"nodemon": "^2.0.5",
65-
"nuxt": "^2.15.7",
66-
"prettier": "^2.1.2",
55+
"axios": "^0.21.4",
56+
"axios-mock-adapter": "^1.20.0",
57+
"eslint": "^7.32.0",
58+
"eslint-config-prettier": "^7.2.0",
59+
"eslint-plugin-import": "^2.24.2",
60+
"eslint-plugin-prettier": "^4.0.0",
61+
"eslint-plugin-promise": "^5.1.0",
62+
"husky": "^7.0.2",
63+
"jest": "^27.2.0",
64+
"nodemon": "^2.0.12",
65+
"nuxt": "^2.15.8",
66+
"prettier": "^2.4.1",
6767
"rimraf": "^3.0.2",
68-
"semantic-release": "^17.2.1",
69-
"ts-jest": "^27.0.4",
70-
"typescript": "^4.3.5"
68+
"semantic-release": "^18.0.0",
69+
"ts-jest": "^27.0.5",
70+
"typescript": "^4.4.3"
7171
},
7272
"files": [
7373
"dist",
@@ -76,7 +76,7 @@
7676
"dependencies": {
7777
"camelcase-keys": "^6.2.2",
7878
"lodash.merge": "^4.6.2",
79-
"qs": "^6.9.6",
80-
"snakecase-keys": "^4.0.2"
79+
"qs": "^6.10.1",
80+
"snakecase-keys": "^5.0.0"
8181
}
8282
}

src/__tests__/base-proxy.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ describe('BaseProxy', () => {
2727
try {
2828
await proxy.getMany()
2929
} catch (e) {
30-
expect(e.message).toBe('Vue Api Queries, No http library provided.')
30+
const { message } = e as any
31+
expect(message).toBe('Vue Api Queries, No http library provided.')
3132
}
3233
})
3334

@@ -94,7 +95,8 @@ describe('BaseProxy', () => {
9495
try {
9596
await proxy.all()
9697
} catch (e) {
97-
expect(e.message).toBe('Network Error')
98+
const { message } = e as any
99+
expect(message).toBe('Network Error')
98100
}
99101
})
100102

@@ -307,7 +309,8 @@ describe('BaseProxy', () => {
307309
try {
308310
await proxy.post(item)
309311
} catch (e) {
310-
expect(e.message).toBe('Request failed with status code 422')
312+
const { message } = e as any
313+
expect(message).toBe('Request failed with status code 422')
311314
}
312315
expect(validator.has('first_name')).toBeTruthy()
313316
})

src/__tests__/package.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import Vue from 'vue'
22
import VueApiQueries from '../'
3-
import {
4-
sleep,
5-
addElemWithDataAppToBody,
6-
disableTransitions,
7-
} from '../util/createDom'
3+
import { addElemWithDataAppToBody, disableTransitions } from '../util/createDom'
4+
import { sleep } from '../util/promise'
85
import { mount } from '@vue/test-utils'
96

107
describe('Vue Api Queries', () => {

src/util/createDom.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import { createWrapper } from '@vue/test-utils'
22

3-
export function sleep(ms: number) {
4-
return new Promise((resolve) => {
5-
setTimeout(resolve, ms)
6-
})
7-
}
8-
93
export function wrap(vm: any) {
104
return createWrapper(vm, {
115
attachedToDocument: true,

src/util/promise.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export function sleep(ms: number) {
2+
return new Promise((resolve) => {
3+
setTimeout(resolve, ms)
4+
})
5+
}

0 commit comments

Comments
 (0)