houdini-adapter-node 2.0.0-next.28 → 2.0.0-next.30
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.
- package/build/app.d.cts +1 -1
- package/build/app.d.ts +1 -1
- package/build/app.js +1 -1
- package/build/index.js +1 -1
- package/package.json +5 -4
package/build/app.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { }
|
package/build/app.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export {
|
|
2
|
+
export { }
|
package/build/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createServerAdapter as d}from"houdini/adapter";import*as r from"
|
|
1
|
+
import{createServerAdapter as d}from"houdini/adapter";import*as r from"fs";import{createServer as f}from"http";import a,{dirname as g}from"path";import{fileURLToPath as h}from"url";var u=h(import.meta.url),i=g(u),v=d({production:!0,assetPrefix:"/assets"}),x=f((s,e)=>{if(s.url?.startsWith("/assets"))return j(s,e);v(s,e)}),c=process.env.PORT??3e3;x.listen(c,()=>{console.log(`Server is listening on port ${c} \u{1F680}`)});function j(s,e){let o=a.join(i,s.url==="/"?"index.html":s.url??"/"),m=a.extname(o),t="text/html";switch(m){case".js":t="application/javascript";break;case".css":t="text/css";break;case".json":t="application/json";break;case".png":t="image/png";break;case".jpg":t="image/jpg";break;case".ico":t="image/x-icon";break;default:t="text/html"}r.readFile(o,(n,p)=>{n?n.code==="ENOENT"?r.readFile(a.join(i,"404.html"),(S,l)=>{e.writeHead(404,{"Content-Type":"text/html"}),e.end(l,"utf8")}):(e.writeHead(500),e.end(`Server Error: ${n.code}`)):(e.writeHead(200,{"Content-Type":t}),e.end(p,"utf8"))})}
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fs as t,path as i}from"houdini";import{fileURLToPath as o}from"
|
|
1
|
+
import{fs as t,path as i}from"houdini";import{fileURLToPath as o}from"url";var p=async({outDir:a,adapterPath:r,config:n})=>{let e=await t.readFile(o(new URL("./app.js",import.meta.url).href));e=e.replaceAll("houdini/adapter",`${r}.js`),await t.writeFile(i.join(a,"index.js"),e)},f=p;export{f as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-adapter-node",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.30",
|
|
4
4
|
"description": "The adapter for deploying your Houdini application as a standalone node server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"houdini",
|
|
@@ -19,11 +19,12 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"tsup": "^
|
|
22
|
+
"tsup": "^8.5.1",
|
|
23
|
+
"houdini": "^2.0.0-next.34",
|
|
23
24
|
"scripts": "^2.0.0-next.2"
|
|
24
25
|
},
|
|
25
|
-
"
|
|
26
|
-
"houdini": "^2.0.0-next.
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"houdini": "^2.0.0-next.34"
|
|
27
28
|
},
|
|
28
29
|
"files": [
|
|
29
30
|
"build"
|