Skip to content

Commit 49e91e4

Browse files
authored
⬆️ Update dependencies and AVA imports (#81)
1 parent 4912d4c commit 49e91e4

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,35 +39,35 @@
3939
"dist"
4040
],
4141
"dependencies": {
42-
"@types/lru-cache": "^4.1.1",
43-
"lru-cache": "^5.1.1",
44-
"tslib": "^1.9.0",
45-
"util": "^0.11.1"
42+
"@types/lru-cache": "^5.1.0",
43+
"lru-cache": "^6.0.0",
44+
"tslib": "^2.1.0",
45+
"util": "^0.12.3"
4646
},
4747
"peerDependencies": {
4848
"axios": "*"
4949
},
5050
"devDependencies": {
51-
"@types/node": "^10.0.3",
52-
"@types/sinon": "^4.3.1",
53-
"ava": "^0.25.0",
54-
"axios": "^0.18.0",
55-
"codecov": "^3.1.0",
56-
"husky": "^0.14.1",
57-
"np": "^6.1.0",
58-
"nyc": "^13.1.0",
59-
"rollup": "^1.12.4",
51+
"@types/node": "^14.14.22",
52+
"@types/sinon": "^9.0.10",
53+
"ava": "^3.15.0",
54+
"axios": "^0.21.1",
55+
"codecov": "^3.8.1",
56+
"husky": "^4.3.8",
57+
"np": "^7.2.0",
58+
"nyc": "^15.1.0",
59+
"rollup": "^2.37.1",
6060
"rollup-plugin-commonjs": "^10.0.0",
6161
"rollup-plugin-node-builtins": "^2.1.2",
6262
"rollup-plugin-node-resolve": "^5.0.0",
63-
"rollup-plugin-terser": "^6.1.0",
64-
"rollup-plugin-uglify": "^6.0.2",
65-
"sinon": "^5.0.3",
66-
"tslint": "^5.8.0",
67-
"tslint-eslint-rules": "^4.1.1",
68-
"typescript": "^2.8.1"
63+
"rollup-plugin-terser": "^7.0.2",
64+
"rollup-plugin-uglify": "^6.0.4",
65+
"sinon": "^9.2.3",
66+
"tslint": "^5.20.1",
67+
"tslint-eslint-rules": "^5.4.0",
68+
"typescript": "^4.1.3"
6969
},
7070
"ava": {
71-
"files": "lib/**/__tests__/**/*.js"
71+
"files": ["lib/**/__tests__/**/*.js"]
7272
}
7373
}

src/__tests__/test-cacheAdapterEnhancer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @since 2017-10-16
55
*/
66

7-
import { test } from 'ava';
7+
import test from 'ava';
88
import axios, { AxiosPromise } from 'axios';
99
import LRUCache from 'lru-cache';
1010
import { spy } from 'sinon';

src/__tests__/test-throttleAdapterEnhancer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @since 2017-10-16
55
*/
66

7-
import { test } from 'ava';
7+
import test from 'ava';
88
import axios from 'axios';
99
import LRUCache from 'lru-cache';
1010
import { spy } from 'sinon';

src/utils/__tests__/test-buildSortedURL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @since 2017-10-17
55
*/
66

7-
import { test } from 'ava';
7+
import test from 'ava';
88
import buildSortedURL from '../buildSortedURL';
99

1010
test('build a simple url without params', t => {

src/utils/__tests__/test-isCacheLike.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @since 2018/3/19 下午11:22
55
*/
66

7-
import { test } from 'ava';
7+
import test from 'ava';
88
import isCacheLike from '../isCacheLike';
99

1010
test('a object with specified method will be regard as cache', t => {

0 commit comments

Comments
 (0)