superagent 7.0.0 → 7.1.1
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 +8 -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 +16 -9
- 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/docs/style.css
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
body {
|
|
2
|
-
padding: 40px 80px;
|
|
3
|
-
font: 14px/1.5 "Helvetica Neue", Helvetica, sans-serif;
|
|
4
|
-
background: #181818 url(images/bg.png);
|
|
5
|
-
text-align: center;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
#content {
|
|
9
|
-
margin: 0 auto;
|
|
10
|
-
padding: 10px 40px;
|
|
11
|
-
text-align: left;
|
|
12
|
-
background: white;
|
|
13
|
-
width: 50%;
|
|
14
|
-
-webkit-border-radius: 2px;
|
|
15
|
-
-moz-border-radius: 2px;
|
|
16
|
-
border-radius: 2px;
|
|
17
|
-
-webkit-box-shadow: 0 2px 5px 0 black;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
#menu {
|
|
21
|
-
font-size: 13px;
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 0;
|
|
24
|
-
text-align: left;
|
|
25
|
-
position: fixed;
|
|
26
|
-
top: 15px;
|
|
27
|
-
left: 15px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
#menu ul {
|
|
31
|
-
margin: 0;
|
|
32
|
-
padding: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
#menu li {
|
|
36
|
-
list-style: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
#menu a {
|
|
40
|
-
color: rgba(255,255,255,.5);
|
|
41
|
-
text-decoration: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
#menu a:hover {
|
|
45
|
-
color: white;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
#menu .active a {
|
|
49
|
-
color: white;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
pre {
|
|
53
|
-
padding: 10px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
code {
|
|
57
|
-
font-family: monaco, monospace, sans-serif;
|
|
58
|
-
font-size: 0.85em;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
p code {
|
|
62
|
-
border: 1px solid #ECEA75;
|
|
63
|
-
padding: 1px 3px;
|
|
64
|
-
-webkit-border-radius: 2px;
|
|
65
|
-
-moz-border-radius: 2px;
|
|
66
|
-
border-radius: 2px;
|
|
67
|
-
background: #FDFCD1;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
pre {
|
|
71
|
-
padding: 20px 25px;
|
|
72
|
-
border: 1px solid #ddd;
|
|
73
|
-
-webkit-box-shadow: inset 0 0 5px #eee;
|
|
74
|
-
-moz-box-shadow: inset 0 0 5px #eee;
|
|
75
|
-
box-shadow: inset 0 0 5px #eee;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
code .comment { color: #ddd }
|
|
79
|
-
code .init { color: #2F6FAD }
|
|
80
|
-
code .string { color: #5890AD }
|
|
81
|
-
code .keyword { color: #8A6343 }
|
|
82
|
-
code .number { color: #2F6FAD }
|
|
83
|
-
|
|
84
|
-
/* override tocbot style to avoid vertical white line in table of content */
|
|
85
|
-
.toc-link::before {
|
|
86
|
-
content: initial;
|
|
87
|
-
}
|
package/docs/tail.html
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
</div>
|
|
2
|
-
<a href="http://github.com/visionmedia/superagent"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub"></a>
|
|
3
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
|
|
4
|
-
<script>
|
|
5
|
-
$('code').each(function(){
|
|
6
|
-
$(this).html(highlight($(this).text()));
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
function highlight(js) {
|
|
10
|
-
return js
|
|
11
|
-
.replace(/</g, '<')
|
|
12
|
-
.replace(/>/g, '>')
|
|
13
|
-
.replace(/('.*?')/gm, '<span class="string">$1</span>')
|
|
14
|
-
.replace(/(\d+\.\d+)/gm, '<span class="number">$1</span>')
|
|
15
|
-
.replace(/(\d+)/gm, '<span class="number">$1</span>')
|
|
16
|
-
.replace(/\bnew *(\w+)/gm, '<span class="keyword">new</span> <span class="init">$1</span>')
|
|
17
|
-
.replace(/\b(function|new|throw|return|var|if|else)\b/gm, '<span class="keyword">$1</span>')
|
|
18
|
-
}
|
|
19
|
-
</script>
|
|
20
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/3.0.0/tocbot.js"></script>
|
|
21
|
-
<script>
|
|
22
|
-
// Only use tocbot for main docs, not test docs
|
|
23
|
-
if (document.querySelector('#superagent')) {
|
|
24
|
-
tocbot.init({
|
|
25
|
-
// Where to render the table of contents.
|
|
26
|
-
tocSelector: '#menu',
|
|
27
|
-
// Where to grab the headings to build the table of contents.
|
|
28
|
-
contentSelector: '#content',
|
|
29
|
-
// Which headings to grab inside of the contentSelector element.
|
|
30
|
-
headingSelector: 'h2',
|
|
31
|
-
smoothScroll: false
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
</script>
|
|
35
|
-
</body>
|
|
36
|
-
</html>
|