@e-mc/request 0.9.4 → 0.9.5
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/README.md +4 -4
- package/index.js +4 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.5/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { IModule, ModuleConstructor } from "./index";
|
|
@@ -201,9 +201,9 @@ instance.get("http://hostname/path/config.yml", options).then(data => {
|
|
|
201
201
|
|
|
202
202
|
## References
|
|
203
203
|
|
|
204
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
205
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
206
|
-
- https://www.unpkg.com/@e-mc/types@0.9.
|
|
204
|
+
- https://www.unpkg.com/@e-mc/types@0.9.5/lib/http.d.ts
|
|
205
|
+
- https://www.unpkg.com/@e-mc/types@0.9.5/lib/request.d.ts
|
|
206
|
+
- https://www.unpkg.com/@e-mc/types@0.9.5/lib/settings.d.ts
|
|
207
207
|
|
|
208
208
|
* https://www.npmjs.com/package/@types/node
|
|
209
209
|
|
package/index.js
CHANGED
|
@@ -768,6 +768,7 @@ class Request extends module_1 {
|
|
|
768
768
|
const output = [];
|
|
769
769
|
let count = 0;
|
|
770
770
|
this[kConnectHttp].forEach((protocol, index) => {
|
|
771
|
+
var _o;
|
|
771
772
|
const title = 'HTTP' + (index + 1);
|
|
772
773
|
for (const origin in protocol) {
|
|
773
774
|
const value = protocol[origin];
|
|
@@ -777,7 +778,7 @@ class Request extends module_1 {
|
|
|
777
778
|
if (item[1] === title && Array.isArray(item[2]) && item[2][0].startsWith(origin)) {
|
|
778
779
|
item[1] = '';
|
|
779
780
|
item[2][0] = item[2][0].substring(origin.length);
|
|
780
|
-
item[4].titleBgColor = undefined;
|
|
781
|
+
(_o = item[4]).titleBgColor && (_o.titleBgColor = undefined);
|
|
781
782
|
item[4].titleJustify = 'right';
|
|
782
783
|
args.push(item);
|
|
783
784
|
log.splice(i--, 1);
|
|
@@ -803,13 +804,13 @@ class Request extends module_1 {
|
|
|
803
804
|
message[1] = title;
|
|
804
805
|
message[2] = [origin + message[2][0], message[2][1]];
|
|
805
806
|
message[4] = Object.assign(message[4], options);
|
|
806
|
-
|
|
807
|
+
this.formatMessage(...message);
|
|
807
808
|
}
|
|
808
809
|
else {
|
|
809
810
|
this.formatMessage(1024, title, [origin, 'downloads: ' + downloads.toString().padStart(width)], '', options);
|
|
810
811
|
messages.forEach(args => {
|
|
811
812
|
args[4].titleIndent = true;
|
|
812
|
-
|
|
813
|
+
this.formatMessage(...args);
|
|
813
814
|
});
|
|
814
815
|
}
|
|
815
816
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/request",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"description": "Request constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"license": "BSD 3-Clause",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/module": "0.9.
|
|
24
|
-
"@e-mc/types": "0.9.
|
|
23
|
+
"@e-mc/module": "0.9.5",
|
|
24
|
+
"@e-mc/types": "0.9.5",
|
|
25
25
|
"combined-stream": "^1.0.8",
|
|
26
26
|
"js-yaml": "^4.1.0",
|
|
27
27
|
"picomatch": "^4.0.2",
|