@valbuild/server 0.60.6 → 0.60.7

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.
@@ -1840,7 +1840,9 @@ function bufferToReadableStream(buffer) {
1840
1840
  offset += chunkSize;
1841
1841
  if (chunk.length > 0) {
1842
1842
  controller.enqueue(new Uint8Array(chunk));
1843
- setTimeout(push, 0); // Enqueue the next chunk asynchronously
1843
+ // TODO: evaluate if we need to enqueue the next chunk asynchronously - this should help performance (perhaps?), but we suspect it leads to issues as well
1844
+ // setTimeout(push, 0); // Enqueue the next chunk asynchronously
1845
+ push();
1844
1846
  } else if (!isClosed) {
1845
1847
  isClosed = true;
1846
1848
  controller.close();
@@ -2111,7 +2113,6 @@ class LocalValServer extends ValServer {
2111
2113
  };
2112
2114
  }
2113
2115
  async getFiles(filePath, query) {
2114
- console.log("getfiles", query);
2115
2116
  if (query.sha256) {
2116
2117
  const fileExists = this.host.fileExists(this.getFilePath(filePath, query.sha256));
2117
2118
  if (fileExists) {
@@ -1840,7 +1840,9 @@ function bufferToReadableStream(buffer) {
1840
1840
  offset += chunkSize;
1841
1841
  if (chunk.length > 0) {
1842
1842
  controller.enqueue(new Uint8Array(chunk));
1843
- setTimeout(push, 0); // Enqueue the next chunk asynchronously
1843
+ // TODO: evaluate if we need to enqueue the next chunk asynchronously - this should help performance (perhaps?), but we suspect it leads to issues as well
1844
+ // setTimeout(push, 0); // Enqueue the next chunk asynchronously
1845
+ push();
1844
1846
  } else if (!isClosed) {
1845
1847
  isClosed = true;
1846
1848
  controller.close();
@@ -2111,7 +2113,6 @@ class LocalValServer extends ValServer {
2111
2113
  };
2112
2114
  }
2113
2115
  async getFiles(filePath, query) {
2114
- console.log("getfiles", query);
2115
2116
  if (query.sha256) {
2116
2117
  const fileExists = this.host.fileExists(this.getFilePath(filePath, query.sha256));
2117
2118
  if (fileExists) {
@@ -1809,7 +1809,9 @@ function bufferToReadableStream(buffer) {
1809
1809
  offset += chunkSize;
1810
1810
  if (chunk.length > 0) {
1811
1811
  controller.enqueue(new Uint8Array(chunk));
1812
- setTimeout(push, 0); // Enqueue the next chunk asynchronously
1812
+ // TODO: evaluate if we need to enqueue the next chunk asynchronously - this should help performance (perhaps?), but we suspect it leads to issues as well
1813
+ // setTimeout(push, 0); // Enqueue the next chunk asynchronously
1814
+ push();
1813
1815
  } else if (!isClosed) {
1814
1816
  isClosed = true;
1815
1817
  controller.close();
@@ -2080,7 +2082,6 @@ class LocalValServer extends ValServer {
2080
2082
  };
2081
2083
  }
2082
2084
  async getFiles(filePath, query) {
2083
- console.log("getfiles", query);
2084
2085
  if (query.sha256) {
2085
2086
  const fileExists = this.host.fileExists(this.getFilePath(filePath, query.sha256));
2086
2087
  if (fileExists) {
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "./package.json": "./package.json"
13
13
  },
14
14
  "types": "dist/valbuild-server.cjs.d.ts",
15
- "version": "0.60.6",
15
+ "version": "0.60.7",
16
16
  "scripts": {
17
17
  "typecheck": "tsc --noEmit",
18
18
  "test": "jest",
@@ -24,9 +24,9 @@
24
24
  "concurrently": "^7.6.0"
25
25
  },
26
26
  "dependencies": {
27
- "@valbuild/core": "~0.60.6",
28
- "@valbuild/shared": "~0.60.6",
29
- "@valbuild/ui": "~0.60.6",
27
+ "@valbuild/core": "~0.60.7",
28
+ "@valbuild/shared": "~0.60.7",
29
+ "@valbuild/ui": "~0.60.7",
30
30
  "express": "^4.18.2",
31
31
  "image-size": "^1.0.2",
32
32
  "minimatch": "^3.0.4",