Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ryansolid/solid-start into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Aug 8, 2023
2 parents 96d1edb + 443955f commit 08d5f9c
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion examples/bare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/todomvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-authjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-mdx": "^0.0.6",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@solidjs/router": "^0.8.2",
"prisma": "^4.16.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-solid-styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"solid-styled": "^0.8.2",
"undici": "^5.22.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@trpc/client": "^10.34.0",
"@trpc/server": "^10.34.0",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"solid-start-trpc": "^0.0.16",
"solid-trpc": "0.1.0-sssr.7",
"undici": "^5.22.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@solidjs/meta": "^0.28.5",
"@solidjs/router": "^0.8.2",
"solid-js": "^1.7.9",
"solid-start": "^0.2.30",
"solid-start": "^0.2.31",
"undici": "^5.22.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-solid",
"version": "0.2.30",
"version": "0.2.31",
"description": "Create Solid apps with low configuration",
"author": "Ryan Carniato",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-mdx",
"version": "0.2.30",
"version": "0.2.31",
"description": "",
"main": "./index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/start-aws/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-aws",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.mjs",
"type": "module",
"solid": {
Expand Down
2 changes: 1 addition & 1 deletion packages/start-cloudflare-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-cloudflare-pages",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.js",
"type": "module",
"solid": {
Expand Down
2 changes: 1 addition & 1 deletion packages/start-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-cloudflare-workers",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.js",
"types": "./index.d.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/start-deno/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-deno",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.js",
"type": "module",
"solid": {
Expand Down
2 changes: 1 addition & 1 deletion packages/start-netlify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-netlify",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.js",
"type": "module",
"solid": {
Expand Down
2 changes: 1 addition & 1 deletion packages/start-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-node",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.js",
"type": "module",
"solid": {
Expand Down
2 changes: 1 addition & 1 deletion packages/start-static/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-static",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.js",
"types": "./index.d.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/start-vercel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start-vercel",
"version": "0.2.30",
"version": "0.2.31",
"main": "./index.js",
"types": "./index.d.ts",
"type": "module",
Expand Down
5 changes: 3 additions & 2 deletions packages/start/node/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { once } from "events";
import multipart from "parse-multipart-data";
import { splitCookiesString } from "set-cookie-parser";
import { Readable } from "stream";
import { Request as BaseNodeRequest, File, FormData, Headers } from "undici";
import { File, FormData, Headers, Request as BaseNodeRequest } from "undici";

function nodeToWeb(/** @type {NodeJS.ReadStream} */ nodeStream) {
var destroyed = false;
Expand Down Expand Up @@ -143,9 +143,10 @@ export class NodeRequest extends BaseNodeRequest {
}

export function createRequest(/** @type {import('http').IncomingMessage} */ req) {
let protocol = req.headers["x-forwarded-proto"] || "https";
let origin = req.headers.origin && 'null' !== req.headers.origin
? req.headers.origin
: `http://${req.headers.host}`;
: `${protocol}://${req.headers.host}`;
let url = new URL(req.url, origin);

let init = {
Expand Down
2 changes: 1 addition & 1 deletion packages/start/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-start",
"version": "0.2.30",
"version": "0.2.31",
"description": "Create Solid apps with low configuration",
"license": "MIT",
"author": "Ryan Carniato",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08d5f9c

Please sign in to comment.