@easel-sh/cli 0.1.0-alpha.13 → 0.1.0-alpha.14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-wrapper.d.ts","sourceRoot":"","sources":["../src/handler-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"handler-wrapper.d.ts","sourceRoot":"","sources":["../src/handler-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CA+RlE"}
|
package/dist/handler-wrapper.js
CHANGED
|
@@ -55,7 +55,16 @@ async function writeFetchResponseToStream(responseStream, response) {
|
|
|
55
55
|
|
|
56
56
|
if (response.body != null && typeof response.body.getReader === "function") {
|
|
57
57
|
const nodeReadable = Readable.fromWeb(response.body);
|
|
58
|
-
|
|
58
|
+
var streamStartMs = Date.now();
|
|
59
|
+
console.log("[handler] stream body pipeline starting at " + streamStartMs + " ms");
|
|
60
|
+
try {
|
|
61
|
+
await pipeline(nodeReadable, responseStream);
|
|
62
|
+
var streamEndMs = Date.now();
|
|
63
|
+
console.log("[handler] stream body pipeline finished at " + streamEndMs + " ms (duration " + (streamEndMs - streamStartMs) + " ms)");
|
|
64
|
+
} catch (pipeErr) {
|
|
65
|
+
console.error("[handler] stream body pipeline error at " + Date.now() + " ms:", pipeErr instanceof Error ? pipeErr.message : String(pipeErr));
|
|
66
|
+
throw pipeErr;
|
|
67
|
+
}
|
|
59
68
|
} else {
|
|
60
69
|
const body = await response.text();
|
|
61
70
|
responseStream.write(body);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-wrapper.js","sourceRoot":"","sources":["../src/handler-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,WAAmB;IACxD,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3E,OAAO;;;;;;;;;;;iCAWwB,WAAW
|
|
1
|
+
{"version":3,"file":"handler-wrapper.js","sourceRoot":"","sources":["../src/handler-wrapper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,WAAmB;IACxD,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3E,OAAO;;;;;;;;;;;iCAWwB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiR3C,CAAC;AACF,CAAC"}
|