vike 0.4.227-commit-d082773 → 0.4.227-commit-45216bc

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.
@@ -522,7 +522,6 @@ async function createStreamWrapper({ streamOriginal, onError, onData, onEnd, onF
522
522
  if (isStreamReadableWeb(streamOriginal)) {
523
523
  debug('onRenderHtml() hook returned Web Readable');
524
524
  const readableOriginal = streamOriginal;
525
- let controllerProxyIsClosed = false;
526
525
  let isClosed = false;
527
526
  let isCancel = false;
528
527
  const closeStream = async () => {
@@ -531,7 +530,6 @@ async function createStreamWrapper({ streamOriginal, onError, onData, onEnd, onF
531
530
  isClosed = true;
532
531
  await onEnd(isCancel);
533
532
  controllerProxy.close();
534
- controllerProxyIsClosed = true;
535
533
  };
536
534
  let controllerProxy;
537
535
  assertReadableStreamConstructor();
@@ -559,8 +557,8 @@ async function createStreamWrapper({ streamOriginal, onError, onData, onEnd, onF
559
557
  });
560
558
  const writeChunk = (chunk) => {
561
559
  if (
562
- // If readableOriginal doesn't implement readableOriginal.cancel() then it may still emit data after we close the stream. We therefore need to check whether we closed `controllerProxy`.
563
- !controllerProxyIsClosed) {
560
+ // If readableOriginal doesn't implement readableOriginal.cancel() then it may still emit data after we close the stream. We therefore need to check whether the steam is closed.
561
+ !isClosed) {
564
562
  controllerProxy.enqueue(encodeForWebStream(chunk));
565
563
  debugWithChunk('data written (Web Readable)', chunk);
566
564
  }
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = void 0;
4
4
  // Automatically updated by @brillout/release-me
5
- exports.PROJECT_VERSION = '0.4.227-commit-d082773';
5
+ exports.PROJECT_VERSION = '0.4.227-commit-45216bc';
@@ -517,7 +517,6 @@ async function createStreamWrapper({ streamOriginal, onError, onData, onEnd, onF
517
517
  if (isStreamReadableWeb(streamOriginal)) {
518
518
  debug('onRenderHtml() hook returned Web Readable');
519
519
  const readableOriginal = streamOriginal;
520
- let controllerProxyIsClosed = false;
521
520
  let isClosed = false;
522
521
  let isCancel = false;
523
522
  const closeStream = async () => {
@@ -526,7 +525,6 @@ async function createStreamWrapper({ streamOriginal, onError, onData, onEnd, onF
526
525
  isClosed = true;
527
526
  await onEnd(isCancel);
528
527
  controllerProxy.close();
529
- controllerProxyIsClosed = true;
530
528
  };
531
529
  let controllerProxy;
532
530
  assertReadableStreamConstructor();
@@ -554,8 +552,8 @@ async function createStreamWrapper({ streamOriginal, onError, onData, onEnd, onF
554
552
  });
555
553
  const writeChunk = (chunk) => {
556
554
  if (
557
- // If readableOriginal doesn't implement readableOriginal.cancel() then it may still emit data after we close the stream. We therefore need to check whether we closed `controllerProxy`.
558
- !controllerProxyIsClosed) {
555
+ // If readableOriginal doesn't implement readableOriginal.cancel() then it may still emit data after we close the stream. We therefore need to check whether the steam is closed.
556
+ !isClosed) {
559
557
  controllerProxy.enqueue(encodeForWebStream(chunk));
560
558
  debugWithChunk('data written (Web Readable)', chunk);
561
559
  }
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.227-commit-d082773";
1
+ export declare const PROJECT_VERSION: "0.4.227-commit-45216bc";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.227-commit-d082773';
2
+ export const PROJECT_VERSION = '0.4.227-commit-45216bc';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.227-commit-d082773",
3
+ "version": "0.4.227-commit-45216bc",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {