@volter/world-core 3.0.86 → 3.0.87
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/inject.cjs +7 -0
- package/inject.cjs +7 -0
- package/package.json +1 -1
package/dist/inject.cjs
CHANGED
|
@@ -923,9 +923,14 @@ function fakeClientRequest(origin, method, fullPath, headers, callback) {
|
|
|
923
923
|
if (closed) return;
|
|
924
924
|
closed = true;
|
|
925
925
|
request.destroyed = true;
|
|
926
|
+
request.writable = false;
|
|
926
927
|
request.emit('close');
|
|
927
928
|
};
|
|
928
929
|
request.destroyed = false;
|
|
930
|
+
// Legacy Stream.pipe (including form-data's CombinedStream) checks the
|
|
931
|
+
// destination's writable flag before forwarding each chunk.
|
|
932
|
+
request.writable = true;
|
|
933
|
+
request.writableEnded = false;
|
|
929
934
|
request.writableFinished = false;
|
|
930
935
|
let ended = false;
|
|
931
936
|
request.end = (chunk, enc, cb) => {
|
|
@@ -934,6 +939,8 @@ function fakeClientRequest(origin, method, fullPath, headers, callback) {
|
|
|
934
939
|
if (ended) return request;
|
|
935
940
|
ended = true;
|
|
936
941
|
if (chunk) request.write(chunk, enc);
|
|
942
|
+
request.writable = false;
|
|
943
|
+
request.writableEnded = true;
|
|
937
944
|
process.nextTick(() => { request.writableFinished = true; request.emit('finish'); });
|
|
938
945
|
forward(origin, method, fullPath, headers, Buffer.concat(bodyChunks))
|
|
939
946
|
.then(({ statusCode, headers: resHeaders, body }) => {
|
package/inject.cjs
CHANGED
|
@@ -923,9 +923,14 @@ function fakeClientRequest(origin, method, fullPath, headers, callback) {
|
|
|
923
923
|
if (closed) return;
|
|
924
924
|
closed = true;
|
|
925
925
|
request.destroyed = true;
|
|
926
|
+
request.writable = false;
|
|
926
927
|
request.emit('close');
|
|
927
928
|
};
|
|
928
929
|
request.destroyed = false;
|
|
930
|
+
// Legacy Stream.pipe (including form-data's CombinedStream) checks the
|
|
931
|
+
// destination's writable flag before forwarding each chunk.
|
|
932
|
+
request.writable = true;
|
|
933
|
+
request.writableEnded = false;
|
|
929
934
|
request.writableFinished = false;
|
|
930
935
|
let ended = false;
|
|
931
936
|
request.end = (chunk, enc, cb) => {
|
|
@@ -934,6 +939,8 @@ function fakeClientRequest(origin, method, fullPath, headers, callback) {
|
|
|
934
939
|
if (ended) return request;
|
|
935
940
|
ended = true;
|
|
936
941
|
if (chunk) request.write(chunk, enc);
|
|
942
|
+
request.writable = false;
|
|
943
|
+
request.writableEnded = true;
|
|
937
944
|
process.nextTick(() => { request.writableFinished = true; request.emit('finish'); });
|
|
938
945
|
forward(origin, method, fullPath, headers, Buffer.concat(bodyChunks))
|
|
939
946
|
.then(({ statusCode, headers: resHeaders, body }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.87",
|
|
4
4
|
"description": "The kernel of Volter World: one log per twin, branches as pointers, checkpoints, the fold that keeps a twin current, the head that performs a write against the vendor, references, and the git plane. A twin package builds on it; the runtime serves it.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|