superagent 7.0.2 → 7.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/superagent.js +47 -51
- package/dist/superagent.min.js +1 -1
- package/lib/client.js +12 -11
- package/lib/node/index.js +24 -7
- package/lib/node/response.js +18 -7
- package/lib/request-base.js +13 -28
- package/lib/response-base.js +2 -20
- package/lib/utils.js +38 -1
- package/package.json +6 -7
- package/.browserslistrc +0 -5
- package/.dist.babelrc +0 -11
- package/.dist.eslintrc +0 -50
- package/.editorconfig +0 -9
- package/.gitattributes +0 -1
- package/.github/FUNDING.yml +0 -4
- package/.lib.babelrc +0 -11
- package/.lib.eslintrc +0 -27
- package/.remarkignore +0 -3
- package/.zuul.yml +0 -16
- package/CONTRIBUTING.md +0 -7
- package/Makefile +0 -62
- package/SECURITY.md +0 -6
- package/docs/head.html +0 -11
- package/docs/images/bg.png +0 -0
- package/docs/index.md +0 -766
- package/docs/style.css +0 -87
- package/docs/tail.html +0 -36
- package/docs/test.html +0 -4610
- package/index.html +0 -600
- package/lib/is-object.js +0 -17
package/.zuul.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
ui: mocha-bdd
|
|
2
|
-
server: ./test/support/server.js
|
|
3
|
-
tunnel_host: http://focusaurus.com
|
|
4
|
-
browsers:
|
|
5
|
-
- name: chrome
|
|
6
|
-
version: latest
|
|
7
|
-
- name: firefox
|
|
8
|
-
version: latest
|
|
9
|
-
- name: safari
|
|
10
|
-
version: latest
|
|
11
|
-
- name: ie
|
|
12
|
-
version: 9..latest
|
|
13
|
-
browserify:
|
|
14
|
-
- transform:
|
|
15
|
-
name: babelify
|
|
16
|
-
configFile: './.dist.babelrc'
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
When submitting a PR, your chance of acceptance increases if you do the following:
|
|
2
|
-
|
|
3
|
-
* Code style is consistent with existing in the file.
|
|
4
|
-
* Tests are passing (client and server).
|
|
5
|
-
* You add a test for the failing issue you are fixing.
|
|
6
|
-
* Code changes are focused on the area of discussion.
|
|
7
|
-
* Do not rebuild the distribution files or increment version numbers.
|
package/Makefile
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
NODETESTS ?= test/*.js test/node/*.js
|
|
3
|
-
BROWSERTESTS ?= test/*.js test/client/*.js
|
|
4
|
-
REPORTER = spec
|
|
5
|
-
|
|
6
|
-
test:
|
|
7
|
-
@if [ "x$(BROWSER)" = "x" ]; then make test-node; else make test-browser; fi
|
|
8
|
-
|
|
9
|
-
test-node:
|
|
10
|
-
@NODE_ENV=test ./node_modules/.bin/mocha \
|
|
11
|
-
--require should \
|
|
12
|
-
--trace-warnings \
|
|
13
|
-
--throw-deprecation \
|
|
14
|
-
--reporter $(REPORTER) \
|
|
15
|
-
--timeout 5000 \
|
|
16
|
-
--exit \
|
|
17
|
-
$(NODETESTS)
|
|
18
|
-
|
|
19
|
-
test-node-http2:
|
|
20
|
-
@NODE_ENV=test HTTP2_TEST=1 node ./node_modules/.bin/mocha \
|
|
21
|
-
--require should \
|
|
22
|
-
--trace-warnings \
|
|
23
|
-
--throw-deprecation \
|
|
24
|
-
--reporter $(REPORTER) \
|
|
25
|
-
--timeout 5000 \
|
|
26
|
-
--exit \
|
|
27
|
-
$(NODETESTS)
|
|
28
|
-
|
|
29
|
-
test-cov: lib-cov
|
|
30
|
-
SUPERAGENT_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
|
|
31
|
-
|
|
32
|
-
test-browser:
|
|
33
|
-
SAUCE_APPIUM_VERSION=1.7 ./node_modules/.bin/zuul -- $(BROWSERTESTS)
|
|
34
|
-
|
|
35
|
-
test-browser-local:
|
|
36
|
-
./node_modules/.bin/zuul --no-coverage --local 4000 -- $(BROWSERTESTS)
|
|
37
|
-
|
|
38
|
-
lib-cov:
|
|
39
|
-
jscoverage lib lib-cov
|
|
40
|
-
|
|
41
|
-
test-server:
|
|
42
|
-
@node test/server
|
|
43
|
-
|
|
44
|
-
docs: index.html test-docs docs/index.md
|
|
45
|
-
|
|
46
|
-
index.html: docs/index.md docs/head.html docs/tail.html
|
|
47
|
-
marked < $< \
|
|
48
|
-
| cat docs/head.html - docs/tail.html \
|
|
49
|
-
> $@
|
|
50
|
-
|
|
51
|
-
docclean:
|
|
52
|
-
rm -f index.html docs/test.html
|
|
53
|
-
|
|
54
|
-
test-docs: docs/head.html docs/tail.html
|
|
55
|
-
make test REPORTER=doc \
|
|
56
|
-
| cat docs/head.html - docs/tail.html \
|
|
57
|
-
> docs/test.html
|
|
58
|
-
|
|
59
|
-
clean:
|
|
60
|
-
rm -fr components
|
|
61
|
-
|
|
62
|
-
.PHONY: test-cov test docs test-docs clean test-browser-local
|
package/SECURITY.md
DELETED
package/docs/head.html
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf8">
|
|
5
|
-
<title>SuperAgent — elegant API for AJAX in Node and browsers</title>
|
|
6
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocbot/3.0.0/tocbot.css">
|
|
7
|
-
<link rel="stylesheet" href="docs/style.css">
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<ul id="menu"></ul>
|
|
11
|
-
<div id="content">
|
package/docs/images/bg.png
DELETED
|
Binary file
|