gemi 0.19.1 → 0.20.0
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/dist/app/index.js +1 -1
- package/dist/bin/gemi.js +19 -9
- package/dist/bin/gemi.js.map +4 -4
- package/dist/{chunk-xsx083wr.js → chunk-kv7wdsa2.js} +1 -1
- package/dist/chunk-n05a7xy4.js +4 -0
- package/dist/{chunk-298z5w9p.js.map → chunk-n05a7xy4.js.map} +3 -3
- package/dist/client/ClientRouter.d.ts.map +1 -1
- package/dist/client/ClientRouterContext.d.ts +1 -0
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/auth/useUser.d.ts +27 -2
- package/dist/client/auth/useUser.d.ts.map +1 -1
- package/dist/client/index.js +357 -231
- package/dist/client/index.js.map +1 -1
- package/dist/client/init.d.ts +1 -1
- package/dist/client/init.d.ts.map +1 -1
- package/dist/client/isPlainObject.d.ts +2 -0
- package/dist/client/isPlainObject.d.ts.map +1 -0
- package/dist/client/useQuery.d.ts +6 -12
- package/dist/client/useQuery.d.ts.map +1 -1
- package/dist/facades/I18n.d.ts.map +1 -1
- package/dist/facades/index.js +12 -12
- package/dist/facades/index.js.map +4 -4
- package/dist/http/HttpRequest.d.ts.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +3 -3
- package/dist/i18n/Dictionary.d.ts.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +3 -3
- package/dist/kernel/index.js +1 -1
- package/dist/server/index.js +12 -8
- package/dist/server/index.js.map +4 -4
- package/dist/services/index.js +1 -1
- package/dist/services/router/ViewRouterServiceContainer.d.ts.map +1 -1
- package/dist/utils/applyParams.d.ts.map +1 -1
- package/dist/utils/type.d.ts +3 -0
- package/dist/utils/type.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-298z5w9p.js +0 -4
- /package/dist/{chunk-xsx083wr.js.map → chunk-kv7wdsa2.js.map} +0 -0
package/dist/app/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{F as $1,G as L3,y as C1}from"../facades/index.js";import"../http/index.js";import"../chunk-cfewfaa5.js";import"../chunk-5yz4jjwj.js";import{oc as A3}from"../chunk-qc23kc53.js";import"../chunk-
|
|
2
|
+
import{F as $1,G as L3,y as C1}from"../facades/index.js";import"../http/index.js";import"../chunk-cfewfaa5.js";import"../chunk-5yz4jjwj.js";import{oc as A3}from"../chunk-qc23kc53.js";import"../chunk-n05a7xy4.js";import"../chunk-qjf58f31.js";import{xc as V$,yc as r1,zc as g}from"../chunk-fmwhbymf.js";var _3=r1((k6,j3)=>{var __dirname="/Users/enes.tuefekci/personal/projects/gemi/node_modules/@prisma/client/runtime",__filename="/Users/enes.tuefekci/personal/projects/gemi/node_modules/@prisma/client/runtime/library.js",P6=Object.create,e1=Object.defineProperty,b6=Object.getOwnPropertyDescriptor,g6=Object.getOwnPropertyNames,h6=Object.getPrototypeOf,f6=Object.prototype.hasOwnProperty,I4=(z,Y)=>()=>(z&&(Y=z(z=0)),Y),W0=(z,Y)=>()=>(Y||z((Y={exports:{}}).exports,Y),Y.exports),l0=(z,Y)=>{for(var Z in Y)e1(z,Z,{get:Y[Z],enumerable:!0})},M4=(z,Y,Z,W)=>{if(Y&&typeof Y=="object"||typeof Y=="function")for(let $ of g6(Y))!f6.call(z,$)&&$!==Z&&e1(z,$,{get:()=>Y[$],enumerable:!(W=b6(Y,$))||W.enumerable});return z},P=(z,Y,Z)=>(Z=z!=null?P6(h6(z)):{},M4(Y||!z||!z.__esModule?e1(Z,"default",{value:z,enumerable:!0}):Z,z)),m6=(z)=>M4(e1({},"__esModule",{value:!0}),z),U4=W0((z,Y)=>{Y.exports=(Z,W=process.argv)=>{let $=Z.startsWith("-")?"":Z.length===1?"-":"--",H=W.indexOf($+Z),Q=W.indexOf("--");return H!==-1&&(Q===-1||H<Q)}}),d6=W0((z,Y)=>{var Z=g("os"),W=g("tty"),$=U4(),{env:H}=process,Q;$("no-color")||$("no-colors")||$("color=false")||$("color=never")?Q=0:($("color")||$("colors")||$("color=true")||$("color=always"))&&(Q=1),"FORCE_COLOR"in H&&(H.FORCE_COLOR==="true"?Q=1:H.FORCE_COLOR==="false"?Q=0:Q=H.FORCE_COLOR.length===0?1:Math.min(parseInt(H.FORCE_COLOR,10),3));function K(G){return G===0?!1:{level:G,hasBasic:!0,has256:G>=2,has16m:G>=3}}function J(G,B){if(Q===0)return 0;if($("color=16m")||$("color=full")||$("color=truecolor"))return 3;if($("color=256"))return 2;if(G&&!B&&Q===void 0)return 0;let T=Q||0;if(H.TERM==="dumb")return T;if(process.platform==="win32"){let F=Z.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in H)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((F)=>(F in H))||H.CI_NAME==="codeship"?1:T;if("TEAMCITY_VERSION"in H)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(H.TEAMCITY_VERSION)?1:0;if(H.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in H){let F=parseInt((H.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(H.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(H.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(H.TERM)||("COLORTERM"in H)?1:T}function X(G){let B=J(G,G&&G.isTTY);return K(B)}Y.exports={supportsColor:X,stdout:K(J(!0,W.isatty(1))),stderr:K(J(!0,W.isatty(2)))}}),p6=W0((z,Y)=>{var Z=d6(),W=U4();function $(Q){if(/^\d{3,4}$/.test(Q)){let J=/(\d{1,2})(\d{2})/.exec(Q)||[];return{major:0,minor:parseInt(J[1],10),patch:parseInt(J[2],10)}}let K=(Q||"").split(".").map((J)=>parseInt(J,10));return{major:K[0],minor:K[1],patch:K[2]}}function H(Q){let{CI:K,FORCE_HYPERLINK:J,NETLIFY:X,TEAMCITY_VERSION:G,TERM_PROGRAM:B,TERM_PROGRAM_VERSION:T,VTE_VERSION:F,TERM:I}=process.env;if(J)return!(J.length>0&&parseInt(J,10)===0);if(W("no-hyperlink")||W("no-hyperlinks")||W("hyperlink=false")||W("hyperlink=never"))return!1;if(W("hyperlink=true")||W("hyperlink=always")||X)return!0;if(!Z.supportsColor(Q)||Q&&!Q.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||K||G)return!1;if(B){let O=$(T||"");switch(B){case"iTerm.app":return O.major===3?O.minor>=1:O.major>3;case"WezTerm":return O.major>=20200620;case"vscode":return O.major>1||O.major===1&&O.minor>=72;case"ghostty":return!0}}if(F){if(F==="0.50.0")return!1;let O=$(F);return O.major>0||O.minor>=50}switch(I){case"alacritty":return!0}return!1}Y.exports={supportsHyperlink:H,stdout:H(process.stdout),stderr:H(process.stderr)}}),c6=W0((z,Y)=>{Y.exports={name:"@prisma/internals",version:"6.6.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.4.7",esbuild:"0.25.1","escape-string-regexp":"5.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-ansi":"6.0.1","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-node":"10.9.2","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a","@prisma/schema-engine-wasm":"6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}}),j4=W0((z,Y)=>{Y.exports={name:"@prisma/engines-version",version:"6.6.0-53.f676762280b54cd07c770017ed3711ddde35f37a",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"f676762280b54cd07c770017ed3711ddde35f37a"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}}),_4=W0((z)=>{Object.defineProperty(z,"__esModule",{value:!0}),z.enginesVersion=void 0,z.enginesVersion=j4().prisma.enginesVersion}),u6=W0((z,Y)=>{Y.exports=(Z)=>{let W=Z.match(/^[ \t]*(?=\S)/gm);return W?W.reduce(($,H)=>Math.min($,H.length),1/0):0}}),D4=W0((z,Y)=>{Y.exports=(Z,W=1,$)=>{if($={indent:" ",includeEmptyLines:!1,...$},typeof Z!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof Z}\``);if(typeof W!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof W}\``);if(typeof $.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof $.indent}\``);if(W===0)return Z;let H=$.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return Z.replace(H,$.indent.repeat(W))}}),l6=W0((z,Y)=>{Y.exports=({onlyFirst:Z=!1}={})=>{let W=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(W,Z?void 0:"g")}}),L4=W0((z,Y)=>{var Z=l6();Y.exports=(W)=>typeof W=="string"?W.replace(Z(),""):W}),a6=W0((z,Y)=>{Y.exports={name:"dotenv",version:"16.4.7",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard",pretest:"npm run lint && npm run dts-check",test:"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://dotenvx.com",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^18.11.3",decache:"^4.6.2",sinon:"^14.0.1",standard:"^17.0.0","standard-version":"^9.5.0",tap:"^19.2.0",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}}),s6=W0((z,Y)=>{var Z=g("fs"),W=g("path"),$=g("os"),H=g("crypto"),Q=a6(),K=Q.version,J=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function X(N){let _={},A=N.toString();A=A.replace(/\r\n?/mg,`
|
|
3
3
|
`);let k;for(;(k=J.exec(A))!=null;){let u=k[1],x=k[2]||"";x=x.trim();let y=x[0];x=x.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),y==='"'&&(x=x.replace(/\\n/g,`
|
|
4
4
|
`),x=x.replace(/\\r/g,"\r")),_[u]=x}return _}function G(N){let _=q(N),A=b.configDotenv({path:_});if(!A.parsed){let y=new Error(`MISSING_DATA: Cannot parse ${_} for an unknown reason`);throw y.code="MISSING_DATA",y}let k=I(N).split(","),u=k.length,x;for(let y=0;y<u;y++)try{let V=k[y].trim(),L=O(A,V);x=b.decrypt(L.ciphertext,L.key);break}catch(V){if(y+1>=u)throw V}return b.parse(x)}function B(N){console.log(`[dotenv@${K}][INFO] ${N}`)}function T(N){console.log(`[dotenv@${K}][WARN] ${N}`)}function F(N){console.log(`[dotenv@${K}][DEBUG] ${N}`)}function I(N){return N&&N.DOTENV_KEY&&N.DOTENV_KEY.length>0?N.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function O(N,_){let A;try{A=new URL(_)}catch(V){if(V.code==="ERR_INVALID_URL"){let L=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw L.code="INVALID_DOTENV_KEY",L}throw V}let k=A.password;if(!k){let V=new Error("INVALID_DOTENV_KEY: Missing key part");throw V.code="INVALID_DOTENV_KEY",V}let u=A.searchParams.get("environment");if(!u){let V=new Error("INVALID_DOTENV_KEY: Missing environment part");throw V.code="INVALID_DOTENV_KEY",V}let x=`DOTENV_VAULT_${u.toUpperCase()}`,y=N.parsed[x];if(!y){let V=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${x} in your .env.vault file.`);throw V.code="NOT_FOUND_DOTENV_ENVIRONMENT",V}return{ciphertext:y,key:k}}function q(N){let _=null;if(N&&N.path&&N.path.length>0)if(Array.isArray(N.path))for(let A of N.path)Z.existsSync(A)&&(_=A.endsWith(".vault")?A:`${A}.vault`);else _=N.path.endsWith(".vault")?N.path:`${N.path}.vault`;else _=W.resolve(process.cwd(),".env.vault");return Z.existsSync(_)?_:null}function S(N){return N[0]==="~"?W.join($.homedir(),N.slice(1)):N}function v(N){B("Loading env from encrypted .env.vault");let _=b._parseVault(N),A=process.env;return N&&N.processEnv!=null&&(A=N.processEnv),b.populate(A,_,N),{parsed:_}}function C(N){let _=W.resolve(process.cwd(),".env"),A="utf8",k=!!(N&&N.debug);N&&N.encoding?A=N.encoding:k&&F("No encoding is specified. UTF-8 is used by default");let u=[_];if(N&&N.path)if(!Array.isArray(N.path))u=[S(N.path)];else{u=[];for(let L of N.path)u.push(S(L))}let x,y={};for(let L of u)try{let a0=b.parse(Z.readFileSync(L,{encoding:A}));b.populate(y,a0,N)}catch(a0){k&&F(`Failed to load ${L} ${a0.message}`),x=a0}let V=process.env;return N&&N.processEnv!=null&&(V=N.processEnv),b.populate(V,y,N),x?{parsed:y,error:x}:{parsed:y}}function c(N){if(I(N).length===0)return b.configDotenv(N);let _=q(N);return _?b._configVault(N):(T(`You set DOTENV_KEY but you are missing a .env.vault file at ${_}. Did you forget to build it?`),b.configDotenv(N))}function Q0(N,_){let A=Buffer.from(_.slice(-64),"hex"),k=Buffer.from(N,"base64"),u=k.subarray(0,12),x=k.subarray(-16);k=k.subarray(12,-16);try{let y=H.createDecipheriv("aes-256-gcm",A,u);return y.setAuthTag(x),`${y.update(k)}${y.final()}`}catch(y){let V=y instanceof RangeError,L=y.message==="Invalid key length",a0=y.message==="Unsupported state or unable to authenticate data";if(V||L){let W1=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw W1.code="INVALID_DOTENV_KEY",W1}else if(a0){let W1=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw W1.code="DECRYPTION_FAILED",W1}else throw y}}function d(N,_,A={}){let k=!!(A&&A.debug),u=!!(A&&A.override);if(typeof _!="object"){let x=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw x.code="OBJECT_REQUIRED",x}for(let x of Object.keys(_))Object.prototype.hasOwnProperty.call(N,x)?(u===!0&&(N[x]=_[x]),k&&F(u===!0?`"${x}" is already defined and WAS overwritten`:`"${x}" is already defined and was NOT overwritten`)):N[x]=_[x]}var b={configDotenv:C,_configVault:v,_parseVault:G,config:c,decrypt:Q0,parse:X,populate:d};Y.exports.configDotenv=b.configDotenv,Y.exports._configVault=b._configVault,Y.exports._parseVault=b._parseVault,Y.exports.config=b.config,Y.exports.decrypt=b.decrypt,Y.exports.parse=b.parse,Y.exports.populate=b.populate,Y.exports=b}),o6=W0((z,Y)=>{Y.exports=(Z={})=>{let W;if(Z.repoUrl)W=Z.repoUrl;else if(Z.user&&Z.repo)W=`https://github.com/${Z.user}/${Z.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let $=new URL(`${W}/issues/new`),H=["body","title","labels","template","milestone","assignee","projects"];for(let Q of H){let K=Z[Q];if(K!==void 0){if(Q==="labels"||Q==="projects"){if(!Array.isArray(K))throw new TypeError(`The \`${Q}\` option should be an array`);K=K.join(",")}$.searchParams.set(Q,K)}}return $.toString()},Y.exports.default=Y.exports}),A4=W0((z,Y)=>{Y.exports=function(){function Z(W,$,H,Q,K){return W<$||H<$?W>H?H+1:W+1:Q===K?$:$+1}return function(W,$){if(W===$)return 0;if(W.length>$.length){var H=W;W=$,$=H}for(var Q=W.length,K=$.length;Q>0&&W.charCodeAt(Q-1)===$.charCodeAt(K-1);)Q--,K--;for(var J=0;J<Q&&W.charCodeAt(J)===$.charCodeAt(J);)J++;if(Q-=J,K-=J,Q===0||K<3)return K;var X=0,G,B,T,F,I,O,q,S,v,C,c,Q0,d=[];for(G=0;G<Q;G++)d.push(G+1),d.push(W.charCodeAt(J+G));for(var b=d.length-1;X<K-3;)for(v=$.charCodeAt(J+(B=X)),C=$.charCodeAt(J+(T=X+1)),c=$.charCodeAt(J+(F=X+2)),Q0=$.charCodeAt(J+(I=X+3)),O=X+=4,G=0;G<b;G+=2)q=d[G],S=d[G+1],B=Z(q,B,T,v,S),T=Z(B,T,F,C,S),F=Z(T,F,I,c,S),O=Z(F,I,O,Q0,S),d[G]=O,I=F,F=T,T=B,B=q;for(;X<K;)for(v=$.charCodeAt(J+(B=X)),O=++X,G=0;G<b;G+=2)q=d[G],d[G]=O=Z(q,B,O,v,d[G+1]),B=q;return O}}()}),i6=I4(()=>{}),n6=I4(()=>{}),x4={};l0(x4,{DMMF:()=>K5,Debug:()=>z0,Decimal:()=>x1,Extensions:()=>k4,MetricsClient:()=>b5,PrismaClientInitializationError:()=>s,PrismaClientKnownRequestError:()=>g0,PrismaClientRustPanicError:()=>P0,PrismaClientUnknownRequestError:()=>K0,PrismaClientValidationError:()=>A0,Public:()=>V4,Sql:()=>m0,createParam:()=>rz,defineDmmfProperty:()=>XY,deserializeJsonResponse:()=>i1,deserializeRawResult:()=>L6,dmmfToRuntimeDataModel:()=>i9,empty:()=>IY,getPrismaClient:()=>$$,getRuntime:()=>o5,join:()=>OY,makeStrictEnum:()=>K$,makeTypedQueryFactory:()=>BY,objectEnumValues:()=>D5,raw:()=>f5,serializeJsonQuery:()=>E5,skip:()=>v5,sqltag:()=>MY,warnEnvConflicts:()=>J$,warnOnce:()=>o4});j3.exports=m6(x4);var k4={};l0(k4,{defineExtension:()=>t6,getExtensionContext:()=>r6});function t6(z){return typeof z=="function"?z:(Y)=>Y.$extends(z)}function r6(z){return z}var V4={};l0(V4,{validator:()=>e6});function e6(...z){return(Y)=>Y}var D2={};l0(D2,{$:()=>w4,bgBlack:()=>X7,bgBlue:()=>F7,bgCyan:()=>N7,bgGreen:()=>B7,bgMagenta:()=>R7,bgRed:()=>G7,bgWhite:()=>O7,bgYellow:()=>T7,black:()=>H7,blue:()=>J1,bold:()=>B0,cyan:()=>p0,dim:()=>_1,gray:()=>i2,green:()=>R1,grey:()=>J7,hidden:()=>W7,inverse:()=>Z7,italic:()=>Y7,magenta:()=>Q7,red:()=>c0,reset:()=>z7,strikethrough:()=>$7,underline:()=>J0,white:()=>K7,yellow:()=>D1});var L2,q4,S4,C4,v4=!0;typeof process<"u"&&({FORCE_COLOR:L2,NODE_DISABLE_COLORS:q4,NO_COLOR:S4,TERM:C4}=process.env||{},v4=process.stdout&&process.stdout.isTTY);var w4={enabled:!q4&&S4==null&&C4!=="dumb"&&(L2!=null&&L2!=="0"||v4)};function m(z,Y){let Z=new RegExp(`\\x1b\\[${Y}m`,"g"),W=`\x1B[${z}m`,$=`\x1B[${Y}m`;return function(H){return!w4.enabled||H==null?H:W+(~(""+H).indexOf($)?H.replace(Z,$+W):H)+$}}var z7=m(0,0),B0=m(1,22),_1=m(2,22),Y7=m(3,23),J0=m(4,24),Z7=m(7,27),W7=m(8,28),$7=m(9,29),H7=m(30,39),c0=m(31,39),R1=m(32,39),D1=m(33,39),J1=m(34,39),Q7=m(35,39),p0=m(36,39),K7=m(37,39),i2=m(90,39),J7=m(90,39),X7=m(40,49),G7=m(41,49),B7=m(42,49),T7=m(43,49),F7=m(44,49),R7=m(45,49),N7=m(46,49),O7=m(47,49),I7=100,k3=["green","yellow","blue","magenta","cyan","red"],X1=[],V3=Date.now(),M7=0,A2=typeof process<"u"?process.env:{};globalThis.DEBUG??=A2.DEBUG??"";globalThis.DEBUG_COLORS??=A2.DEBUG_COLORS?A2.DEBUG_COLORS==="true":!0;var G1={enable(z){typeof z=="string"&&(globalThis.DEBUG=z)},disable(){let z=globalThis.DEBUG;return globalThis.DEBUG="",z},enabled(z){let Y=globalThis.DEBUG.split(",").map(($)=>$.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),Z=Y.some(($)=>$===""||$[0]==="-"?!1:z.match(RegExp($.split("*").join(".*")+"$"))),W=Y.some(($)=>$===""||$[0]!=="-"?!1:z.match(RegExp($.slice(1).split("*").join(".*")+"$")));return Z&&!W},log:(...z)=>{let[Y,Z,...W]=z;(console.warn??console.log)(`${Y} ${Z}`,...W)},formatters:{}};function U7(z){let Y={color:k3[M7++%k3.length],enabled:G1.enabled(z),namespace:z,log:G1.log,extend:()=>{}};return new Proxy((...W)=>{let{enabled:$,namespace:H,color:Q,log:K}=Y;if(W.length!==0&&X1.push([H,...W]),X1.length>I7&&X1.shift(),G1.enabled(H)||$){let J=W.map((G)=>typeof G=="string"?G:j7(G)),X=`+${Date.now()-V3}ms`;V3=Date.now(),globalThis.DEBUG_COLORS?K(D2[Q](B0(H)),...J,D2[Q](X)):K(H,...J,X)}},{get:(W,$)=>Y[$],set:(W,$,H)=>Y[$]=H})}var z0=new Proxy(U7,{get:(z,Y)=>G1[Y],set:(z,Y,Z)=>G1[Y]=Z});function j7(z,Y=2){let Z=new Set;return JSON.stringify(z,(W,$)=>{if(typeof $=="object"&&$!==null){if(Z.has($))return"[Circular *]";Z.add($)}else if(typeof $=="bigint")return $.toString();return $},Y)}function _7(z=7500){let Y=X1.map(([Z,...W])=>`${Z} ${W.map(($)=>typeof $=="string"?$:JSON.stringify($)).join(" ")}`).join(`
|
|
5
5
|
`);return Y.length<z?Y:Y.slice(-z)}function D7(){X1.length=0}var n2=z0,L7=P(g("fs"));function A7(){let z=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(z&&L7.default.existsSync(z))&&process.arch==="ia32")throw new Error('The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set `engineType = "binary"` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)')}var x7=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"],v1="libquery_engine";function k7(z,Y){let Z=Y==="url";return z.includes("windows")?Z?"query_engine.dll.node":`query_engine-${z}.dll.node`:z.includes("darwin")?Z?`${v1}.dylib.node`:`${v1}-${z}.dylib.node`:Z?`${v1}.so.node`:`${v1}-${z}.so.node`}var V7=P(g("child_process")),E4=P(g("fs/promises")),x2=P(g("os")),k0=Symbol.for("@ts-pattern/matcher"),q7=Symbol.for("@ts-pattern/isVariadic"),u1="@ts-pattern/anonymous-select-key",k2=(z)=>!!(z&&typeof z=="object"),h1=(z)=>z&&!!z[k0],I0=(z,Y,Z)=>{if(h1(z)){let W=z[k0](),{matched:$,selections:H}=W.match(Y);return $&&H&&Object.keys(H).forEach((Q)=>Z(Q,H[Q])),$}if(k2(z)){if(!k2(Y))return!1;if(Array.isArray(z)){if(!Array.isArray(Y))return!1;let W=[],$=[],H=[];for(let Q of z.keys()){let K=z[Q];h1(K)&&K[q7]?H.push(K):H.length?$.push(K):W.push(K)}if(H.length){if(H.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(Y.length<W.length+$.length)return!1;let Q=Y.slice(0,W.length),K=$.length===0?[]:Y.slice(-$.length),J=Y.slice(W.length,$.length===0?1/0:-$.length);return W.every((X,G)=>I0(X,Q[G],Z))&&$.every((X,G)=>I0(X,K[G],Z))&&(H.length===0||I0(H[0],J,Z))}return z.length===Y.length&&z.every((Q,K)=>I0(Q,Y[K],Z))}return Reflect.ownKeys(z).every((W)=>{let $=z[W];return((W in Y)||h1(H=$)&&H[k0]().matcherType==="optional")&&I0($,Y[W],Z);var H})}return Object.is(Y,z)},b0=(z)=>{var Y,Z,W;return k2(z)?h1(z)?(Y=(Z=(W=z[k0]()).getSelectionKeys)==null?void 0:Z.call(W))!=null?Y:[]:Array.isArray(z)?N1(z,b0):N1(Object.values(z),b0):[]},N1=(z,Y)=>z.reduce((Z,W)=>Z.concat(Y(W)),[]);function X0(z){return Object.assign(z,{optional:()=>S7(z),and:(Y)=>l(z,Y),or:(Y)=>C7(z,Y),select:(Y)=>Y===void 0?q3(z):q3(Y,z)})}function S7(z){return X0({[k0]:()=>({match:(Y)=>{let Z={},W=($,H)=>{Z[$]=H};return Y===void 0?(b0(z).forEach(($)=>W($,void 0)),{matched:!0,selections:Z}):{matched:I0(z,Y,W),selections:Z}},getSelectionKeys:()=>b0(z),matcherType:"optional"})})}function l(...z){return X0({[k0]:()=>({match:(Y)=>{let Z={},W=($,H)=>{Z[$]=H};return{matched:z.every(($)=>I0($,Y,W)),selections:Z}},getSelectionKeys:()=>N1(z,b0),matcherType:"and"})})}function C7(...z){return X0({[k0]:()=>({match:(Y)=>{let Z={},W=($,H)=>{Z[$]=H};return N1(z,b0).forEach(($)=>W($,void 0)),{matched:z.some(($)=>I0($,Y,W)),selections:Z}},getSelectionKeys:()=>N1(z,b0),matcherType:"or"})})}function w(z){return{[k0]:()=>({match:(Y)=>({matched:!!z(Y)})})}}function q3(...z){let Y=typeof z[0]=="string"?z[0]:void 0,Z=z.length===2?z[1]:typeof z[0]=="string"?void 0:z[0];return X0({[k0]:()=>({match:(W)=>{let $={[Y??u1]:W};return{matched:Z===void 0||I0(Z,W,(H,Q)=>{$[H]=Q}),selections:$}},getSelectionKeys:()=>[Y??u1].concat(Z===void 0?[]:b0(Z))})})}function R0(z){return typeof z=="number"}function S0(z){return typeof z=="string"}function C0(z){return typeof z=="bigint"}var y$=X0(w(function(z){return!0})),v0=(z)=>Object.assign(X0(z),{startsWith:(Y)=>{return v0(l(z,(Z=Y,w((W)=>S0(W)&&W.startsWith(Z)))));var Z},endsWith:(Y)=>{return v0(l(z,(Z=Y,w((W)=>S0(W)&&W.endsWith(Z)))));var Z},minLength:(Y)=>v0(l(z,((Z)=>w((W)=>S0(W)&&W.length>=Z))(Y))),length:(Y)=>v0(l(z,((Z)=>w((W)=>S0(W)&&W.length===Z))(Y))),maxLength:(Y)=>v0(l(z,((Z)=>w((W)=>S0(W)&&W.length<=Z))(Y))),includes:(Y)=>{return v0(l(z,(Z=Y,w((W)=>S0(W)&&W.includes(Z)))));var Z},regex:(Y)=>{return v0(l(z,(Z=Y,w((W)=>S0(W)&&!!W.match(Z)))));var Z}}),P$=v0(w(S0)),N0=(z)=>Object.assign(X0(z),{between:(Y,Z)=>N0(l(z,((W,$)=>w((H)=>R0(H)&&W<=H&&$>=H))(Y,Z))),lt:(Y)=>N0(l(z,((Z)=>w((W)=>R0(W)&&W<Z))(Y))),gt:(Y)=>N0(l(z,((Z)=>w((W)=>R0(W)&&W>Z))(Y))),lte:(Y)=>N0(l(z,((Z)=>w((W)=>R0(W)&&W<=Z))(Y))),gte:(Y)=>N0(l(z,((Z)=>w((W)=>R0(W)&&W>=Z))(Y))),int:()=>N0(l(z,w((Y)=>R0(Y)&&Number.isInteger(Y)))),finite:()=>N0(l(z,w((Y)=>R0(Y)&&Number.isFinite(Y)))),positive:()=>N0(l(z,w((Y)=>R0(Y)&&Y>0))),negative:()=>N0(l(z,w((Y)=>R0(Y)&&Y<0)))}),b$=N0(w(R0)),w0=(z)=>Object.assign(X0(z),{between:(Y,Z)=>w0(l(z,((W,$)=>w((H)=>C0(H)&&W<=H&&$>=H))(Y,Z))),lt:(Y)=>w0(l(z,((Z)=>w((W)=>C0(W)&&W<Z))(Y))),gt:(Y)=>w0(l(z,((Z)=>w((W)=>C0(W)&&W>Z))(Y))),lte:(Y)=>w0(l(z,((Z)=>w((W)=>C0(W)&&W<=Z))(Y))),gte:(Y)=>w0(l(z,((Z)=>w((W)=>C0(W)&&W>=Z))(Y))),positive:()=>w0(l(z,w((Y)=>C0(Y)&&Y>0))),negative:()=>w0(l(z,w((Y)=>C0(Y)&&Y<0)))}),g$=w0(w(C0)),h$=X0(w(function(z){return typeof z=="boolean"})),f$=X0(w(function(z){return typeof z=="symbol"})),m$=X0(w(function(z){return z==null})),d$=X0(w(function(z){return z!=null})),v7=class extends Error{constructor(z){let Y;try{Y=JSON.stringify(z)}catch{Y=z}super(`Pattern matching error: no pattern matches value ${Y}`),this.input=void 0,this.input=z}},V2={matched:!1,value:void 0};function z2(z){return new w7(z,V2)}var w7=class z{constructor(Y,Z){this.input=void 0,this.state=void 0,this.input=Y,this.state=Z}with(...Y){if(this.state.matched)return this;let Z=Y[Y.length-1],W=[Y[0]],$;Y.length===3&&typeof Y[1]=="function"?$=Y[1]:Y.length>2&&W.push(...Y.slice(1,Y.length-1));let H=!1,Q={},K=(X,G)=>{H=!0,Q[X]=G},J=!W.some((X)=>I0(X,this.input,K))||$&&!$(this.input)?V2:{matched:!0,value:Z(H?u1 in Q?Q[u1]:Q:this.input,this.input)};return new z(this.input,J)}when(Y,Z){if(this.state.matched)return this;let W=!!Y(this.input);return new z(this.input,W?{matched:!0,value:Z(this.input,this.input)}:V2)}otherwise(Y){return this.state.matched?this.state.value:Y(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new v7(this.input)}run(){return this.exhaustive()}returnType(){return this}},E7=g("util"),y7={warn:D1("prisma:warn")},P7={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function T2(z,...Y){P7.warn()&&console.warn(`${y7.warn} ${z}`,...Y)}var b7=E7.promisify(V7.default.exec),e=n2("prisma:get-platform"),g7=["1.0.x","1.1.x","3.0.x"];async function h7(){let z=x2.default.platform(),Y=process.arch;if(z==="freebsd"){let Q=await l1("freebsd-version");if(Q&&Q.trim().length>0){let K=/^(\d+)\.?/.exec(Q);if(K)return{platform:"freebsd",targetDistro:`freebsd${K[1]}`,arch:Y}}}if(z!=="linux")return{platform:z,arch:Y};let Z=await m7(),W=await i7(),$=p7({arch:Y,archFromUname:W,familyDistro:Z.familyDistro}),{libssl:H}=await c7($);return{platform:"linux",libssl:H,arch:Y,archFromUname:W,...Z}}function f7(z){let Y=/^ID="?([^"\n]*)"?$/im,Z=/^ID_LIKE="?([^"\n]*)"?$/im,W=Y.exec(z),$=W&&W[1]&&W[1].toLowerCase()||"",H=Z.exec(z),Q=H&&H[1]&&H[1].toLowerCase()||"",K=z2({id:$,idLike:Q}).with({id:"alpine"},({id:J})=>({targetDistro:"musl",familyDistro:J,originalDistro:J})).with({id:"raspbian"},({id:J})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:J})).with({id:"nixos"},({id:J})=>({targetDistro:"nixos",originalDistro:J,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:J})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:J})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:J})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:J})).when(({idLike:J})=>J.includes("debian")||J.includes("ubuntu"),({id:J})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:J})).when(({idLike:J})=>$==="arch"||J.includes("arch"),({id:J})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:J})).when(({idLike:J})=>J.includes("centos")||J.includes("fedora")||J.includes("rhel")||J.includes("suse"),({id:J})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:J})).otherwise(({id:J})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:J}));return e(`Found distro info:
|
package/dist/bin/gemi.js
CHANGED
|
@@ -33732,6 +33732,12 @@ async function createStyles(styles = []) {
|
|
|
33732
33732
|
}
|
|
33733
33733
|
|
|
33734
33734
|
// server/renderErrorPage.ts
|
|
33735
|
+
function cleanupTerminalText(text) {
|
|
33736
|
+
return text.replace(/\x1b\[[0-9;]*m/g, "").replace(/\[[0-9;]*m/g, "").replace(/\n\s*\n/g, `
|
|
33737
|
+
`).split(`
|
|
33738
|
+
`).map((line) => line.trim()).filter((line) => line.length > 0).join(`
|
|
33739
|
+
`).trim();
|
|
33740
|
+
}
|
|
33735
33741
|
function renderErrorPage(err) {
|
|
33736
33742
|
return `
|
|
33737
33743
|
<!DOCTYPE html>
|
|
@@ -33756,16 +33762,17 @@ function renderErrorPage(err) {
|
|
|
33756
33762
|
</head>
|
|
33757
33763
|
<body>
|
|
33758
33764
|
<div id="overlay"></div>
|
|
33759
|
-
|
|
33760
33765
|
<script type="module" src="/refresh.js"></script>
|
|
33761
33766
|
<script type="module" src="/@vite/client"></script>
|
|
33762
33767
|
<script>
|
|
33763
|
-
|
|
33768
|
+
${cleanupTerminalText.toString()}
|
|
33769
|
+
const err = ${JSON.stringify(err, Object.getOwnPropertyNames(err), 2)}
|
|
33770
|
+
|
|
33764
33771
|
window.addEventListener('load', () => {
|
|
33765
33772
|
const container = document.getElementById('overlay')
|
|
33766
33773
|
const ErrorOverlay = customElements.get('vite-error-overlay')
|
|
33767
33774
|
if (ErrorOverlay) {
|
|
33768
|
-
|
|
33775
|
+
const overlay = new ErrorOverlay({ ...err, message: cleanupTerminalText(err.message) });
|
|
33769
33776
|
container.appendChild(overlay)
|
|
33770
33777
|
}
|
|
33771
33778
|
})
|
|
@@ -33804,6 +33811,13 @@ async function startDevServer() {
|
|
|
33804
33811
|
process.env.APP_DIR = appDir;
|
|
33805
33812
|
async function handleDevRequests(req) {
|
|
33806
33813
|
const { pathname, host } = new URL(req.url);
|
|
33814
|
+
if (pathname.startsWith("/render-error.js")) {
|
|
33815
|
+
return new Response("window.render_error = true", {
|
|
33816
|
+
headers: {
|
|
33817
|
+
"Content-Type": "application/javascript"
|
|
33818
|
+
}
|
|
33819
|
+
});
|
|
33820
|
+
}
|
|
33807
33821
|
if (pathname.startsWith("/refresh.js")) {
|
|
33808
33822
|
return new Response(`
|
|
33809
33823
|
import RefreshRuntime from "http://${host}/@react-refresh";
|
|
@@ -33888,17 +33902,13 @@ async function startDevServer() {
|
|
|
33888
33902
|
});
|
|
33889
33903
|
}
|
|
33890
33904
|
} catch (err) {
|
|
33891
|
-
console.error(err);
|
|
33892
33905
|
if (pathname.startsWith("/api")) {
|
|
33893
33906
|
return new Response(JSON.stringify({ error: err.message }), {
|
|
33894
33907
|
status: 500,
|
|
33895
33908
|
headers: { "Content-Type": "application/json" }
|
|
33896
33909
|
});
|
|
33897
33910
|
}
|
|
33898
|
-
return new Response(renderErrorPage({
|
|
33899
|
-
...err,
|
|
33900
|
-
message: ""
|
|
33901
|
-
}), {
|
|
33911
|
+
return new Response(renderErrorPage(err), {
|
|
33902
33912
|
headers: { "Content-Type": "text/html" }
|
|
33903
33913
|
});
|
|
33904
33914
|
}
|
|
@@ -35278,5 +35288,5 @@ program.command("app:route-manifest").action(async () => {
|
|
|
35278
35288
|
});
|
|
35279
35289
|
program.parse();
|
|
35280
35290
|
|
|
35281
|
-
//# debugId=
|
|
35291
|
+
//# debugId=3C1DDD80FDB7590464756E2164756E21
|
|
35282
35292
|
//# sourceMappingURL=gemi.js.map
|