houdini-adapter-auto 1.3.8-next.1 → 1.3.8-next.10
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/index.cjs +2 -2
- package/build/index.js +2 -2
- package/package.json +2 -2
package/build/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
${r.message}`)}}async function i(e){let t=(0,l.pathToFileURL)(process.cwd()).href;return(await import((0,d.resolve)(e,t+"/x.js"))).default}var
|
|
1
|
+
"use strict";var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},y=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u(t))!m.call(e,o)&&o!==n&&a(e,o,{get:()=>t[o],enumerable:!(r=p(t,o))||r.enumerable});return e};var h=e=>y(a({},"__esModule",{value:!0}),e);var E={};f(E,{default:()=>A});module.exports=h(E);var s=require("houdini"),d=require("import-meta-resolve"),c=require("child_process"),l=require("url"),g=[{name:"CloudFlare Pages",test:()=>!!process.env.CF_PAGES||!!process.env.CLOUDFLARE_PAGES,module:"houdini-adapter-cloudflare"},{name:"HoudiniCloud",test:()=>!!process.env.HOUDINI_CLOUD,module:"houdini-cloud-adapter"},{name:"Node",test:()=>!0,module:"houdini-adapter-node"}],w=async e=>{let t;for(let r of g)if(r.test()){t=r;break}if(!t)throw new Error("Could not identify environment");return console.log(`\u{1F3A9} Identified environment: ${t.name}`),(await v(t))(e)};async function v({module:e}){try{return await i(e)}catch(r){let o=r;if(o.code!=="ERR_MODULE_NOT_FOUND"||!o.message.startsWith(`Cannot find package '${e}'`))throw r}let{package_manager:t}=await(0,s.detectTools)(),n={yarn:"add -D",npm:"install -D",pnpm:"add -D"};try{return(0,c.execSync)(`${t} ${n[t]} ${e}`,{stdio:"inherit",env:{...process.env,NODE_ENV:void 0}}),console.log(`Successfully installed ${e}!`),console.warn(`If you plan on staying in this environment, consider adding ${e} to your project so you don't have to install it every time you build your application.`),await i(e)}catch(r){throw new Error(`Could not install package ${e}. Please install it manually or maybe consider replacing houdini-adapter-auto with ${e}.
|
|
2
|
+
${r.message}`)}}async function i(e){let t=(0,l.pathToFileURL)(process.cwd()).href;return(await import((0,d.resolve)(e,t+"/x.js"))).default}var A=w;
|
package/build/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{detectTools as i}from"houdini";import{resolve as s}from"import-meta-resolve";import{execSync as d}from"node:child_process";import{pathToFileURL as c}from"node:url";var l=[{name:"CloudFlare Pages",test:()=>!!process.env.CF_PAGES,module:"houdini-adapter-cloudflare"},{name:"HoudiniCloud",test:()=>!!process.env.HOUDINI_CLOUD,module:"houdini-cloud-adapter"},{name:"Node",test:()=>!0,module:"houdini-adapter-node"}],p=async e=>{let t;for(let r of l)if(r.test()){t=r;break}if(!t)throw new Error("Could not identify environment");return console.log(`\u{1F3A9} Identified environment: ${t.name}`),(await u(t))(e)};async function u({module:e}){try{return await
|
|
2
|
-
${r.message}`)}}async function
|
|
1
|
+
import{detectTools as i}from"houdini";import{resolve as s}from"import-meta-resolve";import{execSync as d}from"node:child_process";import{pathToFileURL as c}from"node:url";var l=[{name:"CloudFlare Pages",test:()=>!!process.env.CF_PAGES||!!process.env.CLOUDFLARE_PAGES,module:"houdini-adapter-cloudflare"},{name:"HoudiniCloud",test:()=>!!process.env.HOUDINI_CLOUD,module:"houdini-cloud-adapter"},{name:"Node",test:()=>!0,module:"houdini-adapter-node"}],p=async e=>{let t;for(let r of l)if(r.test()){t=r;break}if(!t)throw new Error("Could not identify environment");return console.log(`\u{1F3A9} Identified environment: ${t.name}`),(await u(t))(e)};async function u({module:e}){try{return await a(e)}catch(r){let o=r;if(o.code!=="ERR_MODULE_NOT_FOUND"||!o.message.startsWith(`Cannot find package '${e}'`))throw r}let{package_manager:t}=await i(),n={yarn:"add -D",npm:"install -D",pnpm:"add -D"};try{return d(`${t} ${n[t]} ${e}`,{stdio:"inherit",env:{...process.env,NODE_ENV:void 0}}),console.log(`Successfully installed ${e}!`),console.warn(`If you plan on staying in this environment, consider adding ${e} to your project so you don't have to install it every time you build your application.`),await a(e)}catch(r){throw new Error(`Could not install package ${e}. Please install it manually or maybe consider replacing houdini-adapter-auto with ${e}.
|
|
2
|
+
${r.message}`)}}async function a(e){let t=c(process.cwd()).href;return(await import(s(e,t+"/x.js"))).default}var g=p;export{g as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-adapter-auto",
|
|
3
|
-
"version": "1.3.8-next.
|
|
3
|
+
"version": "1.3.8-next.10",
|
|
4
4
|
"description": "An adapter for deploying your Houdini application according to the build environment ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"houdini",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"import-meta-resolve": "^3.0.0",
|
|
26
|
-
"houdini": "^2.0.0-next.
|
|
26
|
+
"houdini": "^2.0.0-next.10"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
29
|
"build"
|