superagent 7.1.1 → 7.1.4
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/superagent.js +25 -24
- package/dist/superagent.min.js +1 -1
- package/lib/agent-base.js +1 -1
- package/lib/client.js +16 -9
- package/lib/node/agent.js +1 -1
- package/lib/node/http2wrapper.js +1 -1
- package/lib/node/index.js +23 -7
- package/lib/node/parsers/image.js +1 -1
- package/lib/node/parsers/index.js +1 -1
- package/lib/node/parsers/json.js +3 -3
- 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 +10 -10
- package/lib/response-base.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +28 -133
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": "7.1.
|
|
4
|
+
"version": "7.1.4",
|
|
5
5
|
"author": "TJ Holowaychuk <tj@vision-media.ca>",
|
|
6
6
|
"browser": {
|
|
7
7
|
"./src/node/index.js": "./src/client.js",
|
|
@@ -12,11 +12,6 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/visionmedia/superagent/issues"
|
|
14
14
|
},
|
|
15
|
-
"commitlint": {
|
|
16
|
-
"extends": [
|
|
17
|
-
"@commitlint/config-conventional"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
15
|
"contributors": [
|
|
21
16
|
"Kornel Lesiński <kornel@geekhood.net>",
|
|
22
17
|
"Peter Lyons <pete@peterlyons.com>",
|
|
@@ -26,52 +21,42 @@
|
|
|
26
21
|
"dependencies": {
|
|
27
22
|
"component-emitter": "^1.3.0",
|
|
28
23
|
"cookiejar": "^2.1.3",
|
|
29
|
-
"debug": "^4.3.
|
|
24
|
+
"debug": "^4.3.4",
|
|
30
25
|
"fast-safe-stringify": "^2.1.1",
|
|
31
26
|
"form-data": "^4.0.0",
|
|
32
27
|
"formidable": "^2.0.1",
|
|
33
28
|
"methods": "^1.1.2",
|
|
34
29
|
"mime": "^2.5.0",
|
|
35
|
-
"qs": "^6.10.
|
|
30
|
+
"qs": "^6.10.3",
|
|
36
31
|
"readable-stream": "^3.6.0",
|
|
37
|
-
"semver": "^7.3.
|
|
32
|
+
"semver": "^7.3.7"
|
|
38
33
|
},
|
|
39
34
|
"devDependencies": {
|
|
40
|
-
"@babel/cli": "^7.
|
|
41
|
-
"@babel/core": "^7.
|
|
42
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
43
|
-
"@babel/preset-env": "^7.
|
|
44
|
-
"@
|
|
45
|
-
"@commitlint/config-conventional": "^15.0.0",
|
|
35
|
+
"@babel/cli": "^7.17.10",
|
|
36
|
+
"@babel/core": "^7.18.2",
|
|
37
|
+
"@babel/plugin-transform-runtime": "^7.18.2",
|
|
38
|
+
"@babel/preset-env": "^7.18.2",
|
|
39
|
+
"@babel/runtime": "^7.18.3",
|
|
46
40
|
"Base64": "^1.1.0",
|
|
47
41
|
"babelify": "^10.0.0",
|
|
48
42
|
"basic-auth-connect": "^1.0.0",
|
|
49
|
-
"body-parser": "^1.
|
|
43
|
+
"body-parser": "^1.20.0",
|
|
50
44
|
"browserify": "^17.0.0",
|
|
51
45
|
"codecov": "^3.8.3",
|
|
52
46
|
"cookie-parser": "^1.4.6",
|
|
53
47
|
"cross-env": "^7.0.3",
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"eslint-plugin-compat": "^4.0.0",
|
|
57
|
-
"eslint-plugin-node": "^11.1.0",
|
|
58
|
-
"express": "^4.17.1",
|
|
59
|
-
"express-session": "^1.17.2",
|
|
48
|
+
"express": "^4.18.1",
|
|
49
|
+
"express-session": "^1.17.3",
|
|
60
50
|
"fixpack": "^4.0.0",
|
|
61
51
|
"get-port": "4.2.0",
|
|
62
|
-
"husky": "^7.0.4",
|
|
63
|
-
"lint-staged": "^12.1.2",
|
|
64
52
|
"marked": "^2.0.0",
|
|
65
53
|
"mocha": "6.2.2",
|
|
66
|
-
"multer": "^1.4.
|
|
54
|
+
"multer": "^1.4.4",
|
|
67
55
|
"nyc": "^15.1.0",
|
|
68
|
-
"remark-cli": "^10.0.1",
|
|
69
|
-
"remark-preset-github": "^4.0.1",
|
|
70
56
|
"rimraf": "^3.0.2",
|
|
71
57
|
"should": "^13.2.3",
|
|
72
58
|
"should-http": "^0.1.1",
|
|
73
59
|
"tinyify": "^3.0.0",
|
|
74
|
-
"xo": "^0.47.0",
|
|
75
60
|
"zuul": "^3.12.0"
|
|
76
61
|
},
|
|
77
62
|
"engines": {
|
|
@@ -116,127 +101,37 @@
|
|
|
116
101
|
"xmlhttprequest"
|
|
117
102
|
],
|
|
118
103
|
"license": "MIT",
|
|
119
|
-
"lint-staged": {
|
|
120
|
-
"linters": {
|
|
121
|
-
"*.js": [
|
|
122
|
-
"xo --fix",
|
|
123
|
-
"git add"
|
|
124
|
-
],
|
|
125
|
-
"*.md": [
|
|
126
|
-
"remark . -qfo",
|
|
127
|
-
"git add"
|
|
128
|
-
],
|
|
129
|
-
"package.json": [
|
|
130
|
-
"fixpack",
|
|
131
|
-
"git add"
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
104
|
"main": "lib/node/index.js",
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
105
|
+
"optionalDependencies": {
|
|
106
|
+
"@commitlint/cli": "^17.0.1",
|
|
107
|
+
"@commitlint/config-conventional": "^17.0.0",
|
|
108
|
+
"eslint": "^8.16.0",
|
|
109
|
+
"eslint-config-xo-lass": "^1.0.6",
|
|
110
|
+
"eslint-plugin-compat": "^4.0.2",
|
|
111
|
+
"eslint-plugin-node": "^11.1.0",
|
|
112
|
+
"husky": "^8.0.1",
|
|
113
|
+
"lint-staged": "^12.5.0",
|
|
114
|
+
"remark-cli": "^10.0.1",
|
|
115
|
+
"remark-preset-github": "^4.0.1",
|
|
116
|
+
"xo": "^0.49.0"
|
|
145
117
|
},
|
|
146
118
|
"repository": {
|
|
147
119
|
"type": "git",
|
|
148
120
|
"url": "git://github.com/visionmedia/superagent.git"
|
|
149
121
|
},
|
|
150
122
|
"scripts": {
|
|
151
|
-
"prepare": "husky install",
|
|
152
123
|
"browserify": "browserify src/node/index.js -o dist/superagent.js -s superagent -g [ babelify --configFile ./.dist.babelrc ]",
|
|
153
124
|
"build": "npm run build:clean && npm run build:lib && npm run build:dist",
|
|
154
125
|
"build:clean": "rimraf lib dist",
|
|
155
126
|
"build:dist": "npm run browserify && npm run minify",
|
|
156
127
|
"build:lib": "babel --config-file ./.lib.babelrc src --out-dir lib",
|
|
128
|
+
"build:test": "babel --config-file ./.test.babelrc test --out-dir lib/node/test",
|
|
157
129
|
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
|
|
158
|
-
"lint": "
|
|
130
|
+
"lint": "eslint -c .eslintrc src test && remark . -qfo && eslint -c .lib.eslintrc lib/**/*.js && eslint -c .dist.eslintrc dist/**/*.js",
|
|
159
131
|
"minify": "cross-env NODE_ENV=production browserify src/node/index.js -o dist/superagent.min.js -s superagent -g [ babelify --configFile ./.dist.babelrc ] -p tinyify",
|
|
160
132
|
"nyc": "cross-env NODE_ENV=test nyc ava",
|
|
161
133
|
"test": "npm run build && npm run lint && make test",
|
|
162
134
|
"test-http2": "npm run build && npm run lint && make test-node-http2"
|
|
163
135
|
},
|
|
164
|
-
"unpkg": "dist/superagent.min.js"
|
|
165
|
-
"xo": {
|
|
166
|
-
"prettier": true,
|
|
167
|
-
"space": true,
|
|
168
|
-
"extends": [
|
|
169
|
-
"xo-lass"
|
|
170
|
-
],
|
|
171
|
-
"envs": [
|
|
172
|
-
"node",
|
|
173
|
-
"browser"
|
|
174
|
-
],
|
|
175
|
-
"overrides": [
|
|
176
|
-
{
|
|
177
|
-
"files": "test/**/*.js",
|
|
178
|
-
"envs": [
|
|
179
|
-
"mocha"
|
|
180
|
-
],
|
|
181
|
-
"rules": {
|
|
182
|
-
"block-scoped-var": "warn",
|
|
183
|
-
"complexity": "warn",
|
|
184
|
-
"default-case": "warn",
|
|
185
|
-
"eqeqeq": "warn",
|
|
186
|
-
"func-name-matching": "warn",
|
|
187
|
-
"func-names": "warn",
|
|
188
|
-
"guard-for-in": "warn",
|
|
189
|
-
"handle-callback-err": "warn",
|
|
190
|
-
"import/no-extraneous-dependencies": "warn",
|
|
191
|
-
"import/no-unassigned-import": "warn",
|
|
192
|
-
"import/order": "warn",
|
|
193
|
-
"max-nested-callbacks": "warn",
|
|
194
|
-
"new-cap": "warn",
|
|
195
|
-
"no-eq-null": "warn",
|
|
196
|
-
"no-extend-native": "warn",
|
|
197
|
-
"no-implicit-coercion": "warn",
|
|
198
|
-
"no-multi-assign": "warn",
|
|
199
|
-
"no-negated-condition": "warn",
|
|
200
|
-
"no-prototype-builtins": "warn",
|
|
201
|
-
"no-redeclare": "warn",
|
|
202
|
-
"no-undef": "warn",
|
|
203
|
-
"no-unused-expressions": "warn",
|
|
204
|
-
"no-unused-vars": "warn",
|
|
205
|
-
"no-use-extend-native/no-use-extend-native": "warn",
|
|
206
|
-
"no-useless-escape": "warn",
|
|
207
|
-
"no-var": "warn",
|
|
208
|
-
"no-void": "warn",
|
|
209
|
-
"node/no-deprecated-api": "warn",
|
|
210
|
-
"prefer-rest-params": "warn",
|
|
211
|
-
"prefer-spread": "warn",
|
|
212
|
-
"unicorn/filename-case": "warn",
|
|
213
|
-
"valid-jsdoc": "warn",
|
|
214
|
-
"node/no-path-concat": "warn",
|
|
215
|
-
"unicorn/no-empty-file": "warn"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
"rules": {
|
|
220
|
-
"unicorn/prevent-abbreviations": [
|
|
221
|
-
"warn",
|
|
222
|
-
{
|
|
223
|
-
"replacements": {
|
|
224
|
-
"res": false,
|
|
225
|
-
"args": false
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
],
|
|
229
|
-
"no-bitwise": "warn",
|
|
230
|
-
"node/prefer-global/buffer": "warn",
|
|
231
|
-
"node/prefer-global/process": "warn",
|
|
232
|
-
"unicorn/no-new-array": "warn",
|
|
233
|
-
"unicorn/no-this-assignment": "warn",
|
|
234
|
-
"unicorn/prefer-spread": "warn",
|
|
235
|
-
"unicorn/catch-error-name": "warn",
|
|
236
|
-
"unicorn/prefer-code-point": "warn"
|
|
237
|
-
},
|
|
238
|
-
"globals": [
|
|
239
|
-
"ActiveXObject"
|
|
240
|
-
]
|
|
241
|
-
}
|
|
136
|
+
"unpkg": "dist/superagent.min.js"
|
|
242
137
|
}
|