objective-http 1.2.1 → 1.2.2
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"objective-http","version":"1.2.
|
|
1
|
+
{"name":"objective-http","version":"1.2.2","description":"Proxy classes for creating a http server","keywords":["web","web-server","http","http-server","oop"],"author":{"name":"volatilization","email":"volatilization@yandex.ru"},"repository":{"url":"git+https://github.com/volatilization/objective-http.git"},"license":"LGPL-3.0-only","main":"src/js/index.js"}
|
|
@@ -14,9 +14,7 @@ module.exports = class InputResponse {
|
|
|
14
14
|
flush() {
|
|
15
15
|
try {
|
|
16
16
|
return new Promise((resolve, reject) => {
|
|
17
|
-
this.#inputStream.once('error', (e) =>
|
|
18
|
-
reject(new Error(e.message, {cause: 'INVALID_RESPONSE'}))
|
|
19
|
-
);
|
|
17
|
+
this.#inputStream.once('error', (e) => reject(new Error(e.message, {cause: 'INVALID_RESPONSE'})));
|
|
20
18
|
|
|
21
19
|
let chunks = [];
|
|
22
20
|
this.#inputStream.on('data', (chunk) => chunks.push(chunk));
|
|
@@ -30,7 +28,7 @@ module.exports = class InputResponse {
|
|
|
30
28
|
});
|
|
31
29
|
|
|
32
30
|
} catch (e) {
|
|
33
|
-
throw new Error(e.message, {cause: 'INVALID_RESPONSE'})
|
|
31
|
+
throw new Error(e.message, {cause: 'INVALID_RESPONSE'});
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
|