@wooksjs/http-proxy 0.2.14 → 0.2.16
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/index.cjs +7 -1
- package/dist/index.mjs +7 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -188,7 +188,13 @@ class ProstoLogger {
|
|
|
188
188
|
parent: this,
|
|
189
189
|
}, topic);
|
|
190
190
|
}
|
|
191
|
+
getOptions() {
|
|
192
|
+
return { ...(this.options || {}) };
|
|
193
|
+
}
|
|
191
194
|
getMessages() {
|
|
195
|
+
var _a;
|
|
196
|
+
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.parent)
|
|
197
|
+
return this.options.parent.getMessages();
|
|
192
198
|
return this.messages;
|
|
193
199
|
}
|
|
194
200
|
clear() {
|
|
@@ -293,7 +299,7 @@ class EventLogger extends ProstoLogger {
|
|
|
293
299
|
if (!_opts.transports) {
|
|
294
300
|
_opts.transports = [
|
|
295
301
|
createConsoleTransort({
|
|
296
|
-
format:
|
|
302
|
+
format: coloredConsole,
|
|
297
303
|
}),
|
|
298
304
|
];
|
|
299
305
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -186,7 +186,13 @@ class ProstoLogger {
|
|
|
186
186
|
parent: this,
|
|
187
187
|
}, topic);
|
|
188
188
|
}
|
|
189
|
+
getOptions() {
|
|
190
|
+
return { ...(this.options || {}) };
|
|
191
|
+
}
|
|
189
192
|
getMessages() {
|
|
193
|
+
var _a;
|
|
194
|
+
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.parent)
|
|
195
|
+
return this.options.parent.getMessages();
|
|
190
196
|
return this.messages;
|
|
191
197
|
}
|
|
192
198
|
clear() {
|
|
@@ -291,7 +297,7 @@ class EventLogger extends ProstoLogger {
|
|
|
291
297
|
if (!_opts.transports) {
|
|
292
298
|
_opts.transports = [
|
|
293
299
|
createConsoleTransort({
|
|
294
|
-
format:
|
|
300
|
+
format: coloredConsole,
|
|
295
301
|
}),
|
|
296
302
|
];
|
|
297
303
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wooksjs/http-proxy",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "Proxy Wooks composable",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"url": "https://github.com/wooksjs/wooksjs/issues"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@wooksjs/event-http": "0.2.
|
|
34
|
+
"@wooksjs/event-http": "0.2.16"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"node-fetch-native": "^1.0.1"
|