@solidjs/start 1.1.4 → 1.1.6

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.
@@ -44,6 +44,9 @@ class SerovalChunkReader {
44
44
  // deserialize the data
45
45
  const head = new TextDecoder().decode(this.buffer.subarray(1, 11));
46
46
  const bytes = Number.parseInt(head, 16); // ;0x00000000;
47
+ if (Number.isNaN(bytes)) {
48
+ throw new Error(`Malformed server function stream header: ${head}`);
49
+ }
47
50
  // Check if the buffer has enough bytes to be parsed
48
51
  while (bytes > this.buffer.length - 12) {
49
52
  // If it's not enough, and the reader is done
@@ -39,6 +39,7 @@ export function createBaseHandler(fn, createPageEvent, options = {}, routerLoad)
39
39
  if (event.request.method !== "GET") {
40
40
  throw new Error(`API handler for ${event.request.method} "${event.request.url}" did not return a response.`);
41
41
  }
42
+ return;
42
43
  }
43
44
  // render
44
45
  const context = await createPageEvent(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "type": "module",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
@@ -56,10 +56,10 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "solid-js": "^1.9.5",
59
- "vinxi": "^0.5.3"
59
+ "vinxi": "^0.5.7"
60
60
  },
61
61
  "dependencies": {
62
- "@tanstack/server-functions-plugin": "^1.119.2",
62
+ "@tanstack/server-functions-plugin": "1.121.21",
63
63
  "@vinxi/plugin-directives": "^0.5.0",
64
64
  "@vinxi/server-components": "^0.5.0",
65
65
  "defu": "^6.1.2",
@@ -75,7 +75,7 @@
75
75
  "vite-plugin-solid": "^2.11.1"
76
76
  },
77
77
  "peerDependencies": {
78
- "vinxi": "^0.5.3"
78
+ "vinxi": "^0.5.7"
79
79
  },
80
80
  "scripts": {
81
81
  "typecheck": "tsc --noEmit",