axios 0.21.2 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "0.21.2",
3
+ "version": "0.23.0",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "index.js",
6
+ "types": "index.d.ts",
6
7
  "scripts": {
7
- "test": "grunt test",
8
+ "test": "grunt test && dtslint",
8
9
  "start": "node ./sandbox/server.js",
9
10
  "build": "NODE_ENV=production grunt build",
10
- "preversion": "npm test",
11
- "version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
11
+ "preversion": "grunt version && npm test",
12
+ "version": "npm run build && git add -A dist && git add CHANGELOG.md bower.json package.json",
12
13
  "postversion": "git push && git push --tags",
13
14
  "examples": "node ./examples/server.js",
14
15
  "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
@@ -32,7 +33,9 @@
32
33
  },
33
34
  "homepage": "https://axios-http.com",
34
35
  "devDependencies": {
36
+ "abortcontroller-polyfill": "^1.5.0",
35
37
  "coveralls": "^3.0.0",
38
+ "dtslint": "^4.1.6",
36
39
  "es6-promise": "^4.2.4",
37
40
  "grunt": "^1.3.0",
38
41
  "grunt-banner": "^0.6.0",
@@ -42,7 +45,6 @@
42
45
  "grunt-eslint": "^23.0.0",
43
46
  "grunt-karma": "^4.0.0",
44
47
  "grunt-mocha-test": "^0.13.3",
45
- "grunt-ts": "^6.0.0-beta.19",
46
48
  "grunt-webpack": "^4.0.2",
47
49
  "istanbul-instrumenter-loader": "^1.0.0",
48
50
  "jasmine-core": "^2.4.1",
@@ -73,7 +75,7 @@
73
75
  "unpkg": "dist/axios.min.js",
74
76
  "typings": "./index.d.ts",
75
77
  "dependencies": {
76
- "follow-redirects": "^1.14.0"
78
+ "follow-redirects": "^1.14.4"
77
79
  },
78
80
  "bundlesize": [
79
81
  {
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "es2015",
4
+ "lib": ["dom", "es2015"],
5
+ "types": [],
6
+ "moduleResolution": "node",
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "baseUrl": ".",
10
+ "paths": {
11
+ "axios": ["."]
12
+ }
13
+ }
14
+ }
package/tslint.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "dtslint/dtslint.json",
3
+ "rules": {
4
+ "no-unnecessary-generics": false
5
+ }
6
+ }