superagent 5.2.2 → 6.1.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/.dist.eslintrc +4 -2
- package/.github/FUNDING.yml +4 -0
- package/.lib.eslintrc +4 -1
- package/README.md +7 -3
- package/dist/superagent.js +924 -64
- package/dist/superagent.min.js +1 -1
- package/docs/index.md +32 -1
- package/docs/tail.html +1 -1
- package/docs/test.html +3085 -3547
- package/index.html +554 -1
- package/lib/agent-base.js +9 -5
- package/lib/client.js +6 -4
- package/lib/is-object.js +1 -1
- package/lib/node/agent.js +3 -3
- package/lib/node/http2wrapper.js +3 -2
- package/lib/node/index.js +24 -8
- package/lib/node/parsers/image.js +1 -1
- package/lib/node/parsers/json.js +1 -1
- package/lib/node/parsers/text.js +1 -1
- package/lib/node/parsers/urlencoded.js +1 -1
- package/lib/node/response.js +1 -1
- package/lib/node/unzip.js +1 -1
- package/lib/request-base.js +63 -34
- package/lib/response-base.js +1 -1
- package/lib/utils.js +51 -17
- package/package.json +37 -31
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superagent",
|
|
3
3
|
"description": "elegant & feature rich browser / node HTTP with a fluent API",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.1.0",
|
|
5
5
|
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
6
6
|
"browser": {
|
|
7
7
|
"./src/node/index.js": "./src/client.js",
|
|
@@ -28,48 +28,48 @@
|
|
|
28
28
|
"debug": "^4.1.1",
|
|
29
29
|
"fast-safe-stringify": "^2.0.7",
|
|
30
30
|
"form-data": "^3.0.0",
|
|
31
|
-
"formidable": "^1.2.
|
|
31
|
+
"formidable": "^1.2.2",
|
|
32
32
|
"methods": "^1.1.2",
|
|
33
|
-
"mime": "^2.4.
|
|
34
|
-
"qs": "^6.9.
|
|
35
|
-
"readable-stream": "^3.
|
|
36
|
-
"semver": "^
|
|
33
|
+
"mime": "^2.4.6",
|
|
34
|
+
"qs": "^6.9.4",
|
|
35
|
+
"readable-stream": "^3.6.0",
|
|
36
|
+
"semver": "^7.3.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/cli": "^7.
|
|
40
|
-
"@babel/core": "^7.
|
|
41
|
-
"@babel/
|
|
42
|
-
"@
|
|
43
|
-
"@commitlint/
|
|
39
|
+
"@babel/cli": "^7.10.5",
|
|
40
|
+
"@babel/core": "^7.11.1",
|
|
41
|
+
"@babel/plugin-transform-runtime": "^7.11.0",
|
|
42
|
+
"@babel/preset-env": "^7.11.0",
|
|
43
|
+
"@commitlint/cli": "^9.1.1",
|
|
44
|
+
"@commitlint/config-conventional": "^9.1.1",
|
|
44
45
|
"Base64": "^1.1.0",
|
|
45
46
|
"babelify": "^10.0.0",
|
|
46
47
|
"basic-auth-connect": "^1.0.0",
|
|
47
48
|
"body-parser": "^1.19.0",
|
|
48
|
-
"browserify": "^16.5.
|
|
49
|
-
"codecov": "^3.
|
|
50
|
-
"cookie-parser": "^1.4.
|
|
51
|
-
"cross-env": "^
|
|
52
|
-
"eslint": "^6.
|
|
49
|
+
"browserify": "^16.5.2",
|
|
50
|
+
"codecov": "^3.7.2",
|
|
51
|
+
"cookie-parser": "^1.4.5",
|
|
52
|
+
"cross-env": "^7.0.2",
|
|
53
|
+
"eslint": "^7.6.0",
|
|
53
54
|
"eslint-config-xo-lass": "^1.0.3",
|
|
54
|
-
"eslint-plugin-compat": "^3.
|
|
55
|
-
"eslint-plugin-node": "^
|
|
55
|
+
"eslint-plugin-compat": "^3.8.0",
|
|
56
|
+
"eslint-plugin-node": "^11.1.0",
|
|
56
57
|
"express": "^4.17.1",
|
|
57
|
-
"express-session": "^1.17.
|
|
58
|
-
"fixpack": "^
|
|
59
|
-
"husky": "^
|
|
60
|
-
"lint-staged": "^
|
|
61
|
-
"marked": "^
|
|
58
|
+
"express-session": "^1.17.1",
|
|
59
|
+
"fixpack": "^3.0.6",
|
|
60
|
+
"husky": "^4.2.5",
|
|
61
|
+
"lint-staged": "^10.2.11",
|
|
62
|
+
"marked": "^1.1.1",
|
|
62
63
|
"mocha": "3.5.3",
|
|
63
64
|
"multer": "^1.4.2",
|
|
64
|
-
"nyc": "^
|
|
65
|
-
"remark-cli": "^
|
|
66
|
-
"remark-preset-github": "^0.0
|
|
67
|
-
"rimraf": "^3.0.
|
|
65
|
+
"nyc": "^15.1.0",
|
|
66
|
+
"remark-cli": "^8.0.1",
|
|
67
|
+
"remark-preset-github": "^3.0.0",
|
|
68
|
+
"rimraf": "^3.0.2",
|
|
68
69
|
"should": "^13.2.3",
|
|
69
70
|
"should-http": "^0.1.1",
|
|
70
|
-
"tinyify": "^
|
|
71
|
-
"
|
|
72
|
-
"xo": "0.25.3",
|
|
71
|
+
"tinyify": "^3.0.0",
|
|
72
|
+
"xo": "0.32.1",
|
|
73
73
|
"zuul": "^3.12.0"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
@@ -211,10 +211,16 @@
|
|
|
211
211
|
"promise/prefer-await-to-then": "off",
|
|
212
212
|
"promise/valid-params": "off",
|
|
213
213
|
"unicorn/filename-case": "off",
|
|
214
|
-
"valid-jsdoc": "off"
|
|
214
|
+
"valid-jsdoc": "off",
|
|
215
|
+
"node/no-unsupported-features/node-builtins": "off",
|
|
216
|
+
"node/no-path-concat": "off"
|
|
215
217
|
}
|
|
216
218
|
}
|
|
217
219
|
],
|
|
220
|
+
"rules": {
|
|
221
|
+
"unicorn/prevent-abbreviations": "off",
|
|
222
|
+
"node/no-unsupported-features/es-syntax": "off"
|
|
223
|
+
},
|
|
218
224
|
"globals": [
|
|
219
225
|
"ActiveXObject"
|
|
220
226
|
]
|