gemi 0.41.0 → 0.41.2
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 +2 -2
- package/dist/app/index.js.map +1 -1
- package/dist/broadcasting/index.js +1 -1
- package/dist/bun/plugin.js +1 -1
- package/dist/bun/preload.js +2 -2
- package/dist/bun/preload.js.map +1 -1
- package/dist/{chunk-55jrzaj0.js → chunk-1g3qpb60.js} +2 -2
- package/dist/{chunk-55jrzaj0.js.map → chunk-1g3qpb60.js.map} +1 -1
- package/dist/{chunk-m1vjp86n.js → chunk-1nm4bfjq.js} +2 -2
- package/dist/{chunk-m1vjp86n.js.map → chunk-1nm4bfjq.js.map} +1 -1
- package/dist/chunk-21r4g9h0.js +4 -0
- package/dist/{chunk-cy0yet3t.js.map → chunk-21r4g9h0.js.map} +1 -1
- package/dist/{chunk-46g7xzc3.js → chunk-3hgk4fxz.js} +3 -3
- package/dist/{chunk-46g7xzc3.js.map → chunk-3hgk4fxz.js.map} +1 -1
- package/dist/{chunk-1skcvfwy.js → chunk-3hjfype8.js} +2 -2
- package/dist/{chunk-1skcvfwy.js.map → chunk-3hjfype8.js.map} +1 -1
- package/dist/{chunk-5a4hvpbv.js → chunk-4cqg9kg4.js} +2 -2
- package/dist/{chunk-5a4hvpbv.js.map → chunk-4cqg9kg4.js.map} +1 -1
- package/dist/{chunk-gky8x4rv.js → chunk-4e4ax9bs.js} +2 -2
- package/dist/{chunk-gky8x4rv.js.map → chunk-4e4ax9bs.js.map} +1 -1
- package/dist/{chunk-6nm2pt02.js → chunk-4f45pw0v.js} +2 -2
- package/dist/{chunk-6nm2pt02.js.map → chunk-4f45pw0v.js.map} +1 -1
- package/dist/{chunk-jhp3h3kc.js → chunk-6b1abejc.js} +4 -4
- package/dist/{chunk-jhp3h3kc.js.map → chunk-6b1abejc.js.map} +2 -2
- package/dist/{chunk-8egdqsbr.js → chunk-85hzphk5.js} +2 -2
- package/dist/{chunk-8egdqsbr.js.map → chunk-85hzphk5.js.map} +1 -1
- package/dist/{chunk-e43m0sz9.js → chunk-88fb6hzq.js} +18 -18
- package/dist/{chunk-e43m0sz9.js.map → chunk-88fb6hzq.js.map} +2 -2
- package/dist/{chunk-w262fkzb.js → chunk-8rm601h3.js} +2 -2
- package/dist/{chunk-w262fkzb.js.map → chunk-8rm601h3.js.map} +1 -1
- package/dist/{chunk-w102mcq7.js → chunk-9nfdjzen.js} +4 -4
- package/dist/{chunk-w102mcq7.js.map → chunk-9nfdjzen.js.map} +1 -1
- package/dist/{chunk-qksh8x1f.js → chunk-a8wmfnw6.js} +2 -2
- package/dist/{chunk-qksh8x1f.js.map → chunk-a8wmfnw6.js.map} +2 -2
- package/dist/{chunk-cy0yet3t.js → chunk-agvzqxv7.js} +2 -2
- package/dist/{chunk-j6eh0etj.js.map → chunk-agvzqxv7.js.map} +1 -1
- package/dist/{chunk-m5nxws92.js → chunk-awscq13h.js} +3 -3
- package/dist/{chunk-m5nxws92.js.map → chunk-awscq13h.js.map} +1 -1
- package/dist/chunk-b4xfh9pg.js +7 -0
- package/dist/{chunk-jnbtsgrp.js.map → chunk-b4xfh9pg.js.map} +2 -2
- package/dist/{chunk-59dfj0a9.js → chunk-c1bjq2ss.js} +2 -2
- package/dist/{chunk-59dfj0a9.js.map → chunk-c1bjq2ss.js.map} +1 -1
- package/dist/{chunk-xfeqd7as.js → chunk-c1hsc4aa.js} +2 -2
- package/dist/{chunk-xfeqd7as.js.map → chunk-c1hsc4aa.js.map} +1 -1
- package/dist/{chunk-xdsym1c8.js → chunk-c74f9zbq.js} +2 -2
- package/dist/{chunk-xdsym1c8.js.map → chunk-c74f9zbq.js.map} +1 -1
- package/dist/{chunk-9x52jhc8.js → chunk-c9wa4rtm.js} +2 -2
- package/dist/{chunk-9x52jhc8.js.map → chunk-c9wa4rtm.js.map} +1 -1
- package/dist/chunk-emt6gz1d.js +5 -0
- package/dist/{chunk-k4kdssr3.js.map → chunk-emt6gz1d.js.map} +1 -1
- package/dist/{chunk-e40j5tgj.js → chunk-h465ja8n.js} +3 -3
- package/dist/{chunk-e40j5tgj.js.map → chunk-h465ja8n.js.map} +1 -1
- package/dist/chunk-j7290k00.js +5 -0
- package/dist/chunk-j7290k00.js.map +11 -0
- package/dist/{chunk-wss9zewk.js → chunk-jt0z45dn.js} +4 -4
- package/dist/{chunk-wss9zewk.js.map → chunk-jt0z45dn.js.map} +1 -1
- package/dist/{chunk-kk353x3p.js → chunk-kd4whs4z.js} +1 -1
- package/dist/{chunk-e7wdb957.js → chunk-kw1g4bjh.js} +3 -3
- package/dist/{chunk-e7wdb957.js.map → chunk-kw1g4bjh.js.map} +1 -1
- package/dist/{chunk-wypjxj9v.js → chunk-p6ezs2w7.js} +3 -3
- package/dist/{chunk-wypjxj9v.js.map → chunk-p6ezs2w7.js.map} +1 -1
- package/dist/{chunk-j6eh0etj.js → chunk-p9qt93zk.js} +2 -2
- package/dist/{chunk-1wv2m67p.js.map → chunk-p9qt93zk.js.map} +1 -1
- package/dist/chunk-ppt296ye.js +6 -0
- package/dist/{chunk-zjxbe8tx.js.map → chunk-ppt296ye.js.map} +2 -2
- package/dist/{chunk-th24m9jj.js → chunk-q3wpyr9y.js} +2 -2
- package/dist/{chunk-th24m9jj.js.map → chunk-q3wpyr9y.js.map} +1 -1
- package/dist/{chunk-ffj2g6wn.js → chunk-q91708he.js} +3 -3
- package/dist/{chunk-ffj2g6wn.js.map → chunk-q91708he.js.map} +1 -1
- package/dist/chunk-qfewe82j.js +5 -0
- package/dist/chunk-qfewe82j.js.map +12 -0
- package/dist/{chunk-k5ddt5jb.js → chunk-r9p9g2x9.js} +2 -2
- package/dist/{chunk-k5ddt5jb.js.map → chunk-r9p9g2x9.js.map} +1 -1
- package/dist/{chunk-8spbzsaa.js → chunk-rkf1stc0.js} +2 -2
- package/dist/{chunk-8spbzsaa.js.map → chunk-rkf1stc0.js.map} +1 -1
- package/dist/{chunk-ar3kj71m.js → chunk-rm5y1v00.js} +2 -2
- package/dist/{chunk-ar3kj71m.js.map → chunk-rm5y1v00.js.map} +1 -1
- package/dist/{chunk-37qn44wf.js → chunk-s3zn2vas.js} +3 -3
- package/dist/{chunk-37qn44wf.js.map → chunk-s3zn2vas.js.map} +1 -1
- package/dist/{chunk-9gj1htjp.js → chunk-sgv88qqn.js} +5 -5
- package/dist/{chunk-9gj1htjp.js.map → chunk-sgv88qqn.js.map} +1 -1
- package/dist/{chunk-yhphtr31.js → chunk-vfvetfjg.js} +3 -3
- package/dist/{chunk-yhphtr31.js.map → chunk-vfvetfjg.js.map} +1 -1
- package/dist/{chunk-8z5r7z7w.js → chunk-vv72kw74.js} +2 -2
- package/dist/{chunk-8z5r7z7w.js.map → chunk-vv72kw74.js.map} +1 -1
- package/dist/chunk-w96mexnd.js +6 -0
- package/dist/chunk-w96mexnd.js.map +11 -0
- package/dist/{chunk-xxdb06dz.js → chunk-wfbgtbae.js} +3 -3
- package/dist/{chunk-xxdb06dz.js.map → chunk-wfbgtbae.js.map} +1 -1
- package/dist/{chunk-7219pj06.js → chunk-xdk56snm.js} +3 -3
- package/dist/{chunk-7219pj06.js.map → chunk-xdk56snm.js.map} +1 -1
- package/dist/{chunk-z3tgcb5r.js → chunk-xnhktttd.js} +2 -2
- package/dist/{chunk-z3tgcb5r.js.map → chunk-xnhktttd.js.map} +1 -1
- package/dist/{chunk-5jar30t5.js → chunk-y7qsts67.js} +2 -2
- package/dist/{chunk-5jar30t5.js.map → chunk-y7qsts67.js.map} +1 -1
- package/dist/{chunk-ww5pp0rp.js → chunk-yk9aw128.js} +3 -3
- package/dist/{chunk-ww5pp0rp.js.map → chunk-yk9aw128.js.map} +1 -1
- package/dist/chunk-zpqmtc3q.js +55 -0
- package/dist/chunk-zpqmtc3q.js.map +11 -0
- package/dist/client/index.js +4 -23957
- package/dist/client/index.js.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/email/index.js +2 -2
- package/dist/email/index.js.map +1 -1
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/server/httpProd.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +2 -2
- package/dist/services/index.js +2 -2
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-1wv2m67p.js +0 -4
- package/dist/chunk-j7harkz1.js +0 -6
- package/dist/chunk-j7harkz1.js.map +0 -14
- package/dist/chunk-jnbtsgrp.js +0 -7
- package/dist/chunk-k4kdssr3.js +0 -5
- package/dist/chunk-zjxbe8tx.js +0 -5
- /package/dist/{chunk-kk353x3p.js.map → chunk-kd4whs4z.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{ye as
|
|
2
|
+
import{Eb as re}from"./chunk-xdk56snm.js";import{Rb as _,Tb as a}from"./chunk-agvzqxv7.js";var I=_((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.getHomeDir=void 0;var W=a("os"),V=a("path"),x={},G=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:o=`C:${V.sep}`}=process.env;if(e)return e;if(t)return t;if(r)return`${o}${r}`;let i=G();if(!x[i])x[i]=(0,W.homedir)();return x[i]};b.getHomeDir=U});var P=_((j)=>{Object.defineProperty(j,"__esModule",{value:!0});j.getSSOTokenFilepath=void 0;var X=a("crypto"),B=a("path"),J=I(),z=(e)=>{let r=(0,X.createHash)("sha1").update(e).digest("hex");return(0,B.join)((0,J.getHomeDir)(),".aws","sso","cache",`${r}.json`)};j.getSSOTokenFilepath=z});var R=_((C)=>{Object.defineProperty(C,"__esModule",{value:!0});C.getSSOTokenFromFile=C.tokenIntercept=void 0;var Q=a("fs/promises"),Y=P();C.tokenIntercept={};var Z=async(e)=>{if(C.tokenIntercept[e])return C.tokenIntercept[e];let t=(0,Y.getSSOTokenFilepath)(e),r=await(0,Q.readFile)(t,"utf8");return JSON.parse(r)};C.getSSOTokenFromFile=Z});var k=_((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.readFile=L.fileIntercept=L.filePromises=void 0;var ee=a("fs/promises");L.filePromises={};L.fileIntercept={};var te=(e,t)=>{if(L.fileIntercept[e]!==void 0)return L.fileIntercept[e];if(!L.filePromises[e]||t?.ignoreCache)L.filePromises[e]=(0,ee.readFile)(e,"utf8");return L.filePromises[e]};L.readFile=te});var ye=_((c)=>{var l=I(),O=P(),y=R(),g=a("path"),S=re(),f=k(),q="AWS_PROFILE",$="default",oe=(e)=>e.profile||process.env[q]||$,p=".",ie=(e)=>Object.entries(e).filter(([t])=>{let r=t.indexOf(p);if(r===-1)return!1;return Object.values(S.IniSectionType).includes(t.substring(0,r))}).reduce((t,[r,o])=>{let i=r.indexOf(p),n=r.substring(0,i)===S.IniSectionType.PROFILE?r.substring(i+1):r;return t[n]=o,t},{...e.default&&{default:e.default}}),ne="AWS_CONFIG_FILE",M=()=>process.env[ne]||g.join(l.getHomeDir(),".aws","config"),se="AWS_SHARED_CREDENTIALS_FILE",ce=()=>process.env[se]||g.join(l.getHomeDir(),".aws","credentials"),ae=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,le=["__proto__","profile __proto__"],T=(e)=>{let t={},r,o;for(let i of e.split(/\r?\n/)){let n=i.split(/(^|\s)[;#]/)[0].trim();if(n[0]==="["&&n[n.length-1]==="]"){r=void 0,o=void 0;let s=n.substring(1,n.length-1),u=ae.exec(s);if(u){let[,d,,m]=u;if(Object.values(S.IniSectionType).includes(d))r=[d,m].join(p)}else r=s;if(le.includes(s))throw Error(`Found invalid profile name "${s}"`)}else if(r){let s=n.indexOf("=");if(![0,-1].includes(s)){let[u,d]=[n.substring(0,s).trim(),n.substring(s+1).trim()];if(d==="")o=u;else{if(o&&i.trimStart()===i)o=void 0;t[r]=t[r]||{};let m=o?[o,u].join(p):u;t[r][m]=d}}}}return t},A=()=>({}),K=async(e={})=>{let{filepath:t=ce(),configFilepath:r=M()}=e,o=l.getHomeDir(),i="~/",n=t;if(t.startsWith("~/"))n=g.join(o,t.slice(2));let h=r;if(r.startsWith("~/"))h=g.join(o,r.slice(2));let s=await Promise.all([f.readFile(h,{ignoreCache:e.ignoreCache}).then(T).then(ie).catch(A),f.readFile(n,{ignoreCache:e.ignoreCache}).then(T).catch(A)]);return{configFile:s[0],credentialsFile:s[1]}},pe=(e)=>Object.entries(e).filter(([t])=>t.startsWith(S.IniSectionType.SSO_SESSION+p)).reduce((t,[r,o])=>({...t,[r.substring(r.indexOf(p)+1)]:o}),{}),ue=()=>({}),fe=async(e={})=>f.readFile(e.configFilepath??M()).then(T).then(pe).catch(ue),de=(...e)=>{let t={};for(let r of e)for(let[o,i]of Object.entries(r))if(t[o]!==void 0)Object.assign(t[o],i);else t[o]=i;return t},_e=async(e)=>{let t=await K(e);return de(t.configFile,t.credentialsFile)},Fe={getFileRecord(){return f.fileIntercept},interceptFile(e,t){f.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return y.tokenIntercept},interceptToken(e,t){y.tokenIntercept[e]=t}};c.getSSOTokenFromFile=y.getSSOTokenFromFile;c.readFile=f.readFile;c.CONFIG_PREFIX_SEPARATOR=p;c.DEFAULT_PROFILE=$;c.ENV_PROFILE=q;c.externalDataInterceptor=Fe;c.getProfileName=oe;c.loadSharedConfigFiles=K;c.loadSsoSessionData=fe;c.parseKnownFiles=_e;Object.prototype.hasOwnProperty.call(l,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:l.__proto__});Object.keys(l).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=l[e]});Object.prototype.hasOwnProperty.call(O,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:O.__proto__});Object.keys(O).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=O[e]})});
|
|
3
|
+
export{ye as Db};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=E67FCA62704980EE64756E2164756E21
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"'use strict';\n\nvar getHomeDir = require('./getHomeDir');\nvar getSSOTokenFilepath = require('./getSSOTokenFilepath');\nvar getSSOTokenFromFile = require('./getSSOTokenFromFile');\nvar path = require('path');\nvar types = require('@smithy/types');\nvar readFile = require('./readFile');\n\nconst ENV_PROFILE = \"AWS_PROFILE\";\nconst DEFAULT_PROFILE = \"default\";\nconst getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;\n\nconst CONFIG_PREFIX_SEPARATOR = \".\";\n\nconst getConfigData = (data) => Object.entries(data)\n .filter(([key]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n if (indexOfSeparator === -1) {\n return false;\n }\n return Object.values(types.IniSectionType).includes(key.substring(0, indexOfSeparator));\n})\n .reduce((acc, [key, value]) => {\n const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);\n const updatedKey = key.substring(0, indexOfSeparator) === types.IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;\n acc[updatedKey] = value;\n return acc;\n}, {\n ...(data.default && { default: data.default }),\n});\n\nconst ENV_CONFIG_PATH = \"AWS_CONFIG_FILE\";\nconst getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path.join(getHomeDir.getHomeDir(), \".aws\", \"config\");\n\nconst ENV_CREDENTIALS_PATH = \"AWS_SHARED_CREDENTIALS_FILE\";\nconst getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path.join(getHomeDir.getHomeDir(), \".aws\", \"credentials\");\n\nconst prefixKeyRegex = /^([\\w-]+)\\s([\"'])?([\\w-@\\+\\.%:/]+)\\2$/;\nconst profileNameBlockList = [\"__proto__\", \"profile __proto__\"];\nconst parseIni = (iniData) => {\n const map = {};\n let currentSection;\n let currentSubSection;\n for (const iniLine of iniData.split(/\\r?\\n/)) {\n const trimmedLine = iniLine.split(/(^|\\s)[;#]/)[0].trim();\n const isSection = trimmedLine[0] === \"[\" && trimmedLine[trimmedLine.length - 1] === \"]\";\n if (isSection) {\n currentSection = undefined;\n currentSubSection = undefined;\n const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);\n const matches = prefixKeyRegex.exec(sectionName);\n if (matches) {\n const [, prefix, , name] = matches;\n if (Object.values(types.IniSectionType).includes(prefix)) {\n currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);\n }\n }\n else {\n currentSection = sectionName;\n }\n if (profileNameBlockList.includes(sectionName)) {\n throw new Error(`Found invalid profile name \"${sectionName}\"`);\n }\n }\n else if (currentSection) {\n const indexOfEqualsSign = trimmedLine.indexOf(\"=\");\n if (![0, -1].includes(indexOfEqualsSign)) {\n const [name, value] = [\n trimmedLine.substring(0, indexOfEqualsSign).trim(),\n trimmedLine.substring(indexOfEqualsSign + 1).trim(),\n ];\n if (value === \"\") {\n currentSubSection = name;\n }\n else {\n if (currentSubSection && iniLine.trimStart() === iniLine) {\n currentSubSection = undefined;\n }\n map[currentSection] = map[currentSection] || {};\n const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;\n map[currentSection][key] = value;\n }\n }\n }\n }\n return map;\n};\n\nconst swallowError$1 = () => ({});\nconst loadSharedConfigFiles = async (init = {}) => {\n const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;\n const homeDir = getHomeDir.getHomeDir();\n const relativeHomeDirPrefix = \"~/\";\n let resolvedFilepath = filepath;\n if (filepath.startsWith(relativeHomeDirPrefix)) {\n resolvedFilepath = path.join(homeDir, filepath.slice(2));\n }\n let resolvedConfigFilepath = configFilepath;\n if (configFilepath.startsWith(relativeHomeDirPrefix)) {\n resolvedConfigFilepath = path.join(homeDir, configFilepath.slice(2));\n }\n const parsedFiles = await Promise.all([\n readFile.readFile(resolvedConfigFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .then(getConfigData)\n .catch(swallowError$1),\n readFile.readFile(resolvedFilepath, {\n ignoreCache: init.ignoreCache,\n })\n .then(parseIni)\n .catch(swallowError$1),\n ]);\n return {\n configFile: parsedFiles[0],\n credentialsFile: parsedFiles[1],\n };\n};\n\nconst getSsoSessionData = (data) => Object.entries(data)\n .filter(([key]) => key.startsWith(types.IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR))\n .reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});\n\nconst swallowError = () => ({});\nconst loadSsoSessionData = async (init = {}) => readFile.readFile(init.configFilepath ?? getConfigFilepath())\n .then(parseIni)\n .then(getSsoSessionData)\n .catch(swallowError);\n\nconst mergeConfigFiles = (...files) => {\n const merged = {};\n for (const file of files) {\n for (const [key, values] of Object.entries(file)) {\n if (merged[key] !== undefined) {\n Object.assign(merged[key], values);\n }\n else {\n merged[key] = values;\n }\n }\n }\n return merged;\n};\n\nconst parseKnownFiles = async (init) => {\n const parsedFiles = await loadSharedConfigFiles(init);\n return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);\n};\n\nconst externalDataInterceptor = {\n getFileRecord() {\n return readFile.fileIntercept;\n },\n interceptFile(path, contents) {\n readFile.fileIntercept[path] = Promise.resolve(contents);\n },\n getTokenRecord() {\n return getSSOTokenFromFile.tokenIntercept;\n },\n interceptToken(id, contents) {\n getSSOTokenFromFile.tokenIntercept[id] = contents;\n },\n};\n\nexports.getSSOTokenFromFile = getSSOTokenFromFile.getSSOTokenFromFile;\nexports.readFile = readFile.readFile;\nexports.CONFIG_PREFIX_SEPARATOR = CONFIG_PREFIX_SEPARATOR;\nexports.DEFAULT_PROFILE = DEFAULT_PROFILE;\nexports.ENV_PROFILE = ENV_PROFILE;\nexports.externalDataInterceptor = externalDataInterceptor;\nexports.getProfileName = getProfileName;\nexports.loadSharedConfigFiles = loadSharedConfigFiles;\nexports.loadSsoSessionData = loadSsoSessionData;\nexports.parseKnownFiles = parseKnownFiles;\nObject.prototype.hasOwnProperty.call(getHomeDir, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: getHomeDir['__proto__']\n });\n\nObject.keys(getHomeDir).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getHomeDir[k];\n});\nObject.prototype.hasOwnProperty.call(getSSOTokenFilepath, '__proto__') &&\n !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&\n Object.defineProperty(exports, '__proto__', {\n enumerable: true,\n value: getSSOTokenFilepath['__proto__']\n });\n\nObject.keys(getSSOTokenFilepath).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getSSOTokenFilepath[k];\n});\n"
|
|
10
10
|
],
|
|
11
11
|
"mappings": ";+GACA,CAAO,eAAe,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EACpD,aAAkB,OAC1B,IAAM,UACA,YACA,EAAe,CAAC,EAChB,EAAqB,IAAM,CAC7B,GAAI,SAAW,QAAQ,QACnB,MAAO,GAAG,QAAQ,QAAQ,IAE9B,MAAO,WAEL,EAAa,IAAM,CACrB,IAAQ,OAAM,cAAa,WAAU,YAAY,KAAK,EAAO,OAAU,QAAQ,IAC/E,GAAI,EACA,OAAO,EACX,GAAI,EACA,OAAO,EACX,GAAI,EACA,MAAO,GAAG,IAAY,IAC1B,IAAM,EAAkB,EAAmB,EAC3C,GAAI,CAAC,EAAa,GACd,EAAa,IAAoB,EAAG,EAAK,SAAS,EACtD,OAAO,EAAa,IAEhB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EAAQ,GAAK,EAAW,GACrG,EACD,OAAO,UAAU,eAAe,KAAK,EAAqB,WAAW,GACjE,CAAC,OAAO,UAAU,eAAe,KAAK,EAAS,WAAW,GAC1D,OAAO,eAAe,EAAS,YAAa,CACxC,WAAY,GACZ,MAAO,EAAoB,SAC/B,CAAC,EAEL,OAAO,KAAK,CAAmB,EAAE,QAAQ,QAAS,CAAC,EAAG,CAClD,GAAI,IAAM,WAAa,CAAC,OAAO,UAAU,eAAe,KAAK,EAAS,CAAC,EAAG,EAAQ,GAAK,EAAoB,GAC9G",
|
|
12
|
-
"debugId": "
|
|
12
|
+
"debugId": "E67FCA62704980EE64756E2164756E21",
|
|
13
13
|
"names": []
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{l as
|
|
2
|
+
import{Pb as n}from"./chunk-c1hsc4aa.js";class l extends n{service;static _name="I18nServiceContainer";translations={};isEnabled=!1;constructor(r){super();this.service=r;let e={};for(let[o,c]of Object.entries(this.service.prefetch))for(let t of this.service.supportedLocales){if(!e[t])e[t]={};e[t][o]={};for(let s of c){e[t][o][s.name]={};for(let[i,a]of Object.entries(s.dictionary))this.isEnabled=!0,e[t][o][s.name][i]=a[t]}}this.translations=e}detectLocale(r){let e=this.service.defaultLocale??this.service.supportedLocales[0]??"en-US",o=this.service.detectLocale(r);if(this.service.supportedLocales.includes(o))return o;let t=r.cookies.get("i18n-locale")??(r.headers.get("accept-language")||e),[s]=t.split(",");if(this.service.supportedLocales.includes(s))return s;if(s.length===2){for(let i of this.service.supportedLocales)if(i.startsWith(s))return i}return e}getPageTranslations(r,e){if(this.translations[r][e])return this.translations[r][e];return{}}}
|
|
3
|
+
export{l as ja};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=AD9BB603D43FF43364756E2164756E21
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"import type { HttpRequest } from \"../http/HttpRequest\";\nimport { ServiceContainer } from \"../services/ServiceContainer\";\nimport type { I18nServiceProvider } from \"./I18nServiceProvider\";\n\nexport class I18nServiceContainer extends ServiceContainer {\n static _name = \"I18nServiceContainer\";\n translations = {};\n isEnabled = false;\n constructor(public service: I18nServiceProvider) {\n super();\n\n const translations = {};\n\n for (const [route, dicArray] of Object.entries(this.service.prefetch)) {\n for (const locale of this.service.supportedLocales) {\n if (!translations[locale]) {\n translations[locale] = {};\n }\n translations[locale][route] = {};\n for (const dic of dicArray) {\n translations[locale][route][dic.name] = {};\n for (const [key, value] of Object.entries(dic.dictionary)) {\n this.isEnabled = true;\n translations[locale][route][dic.name][key] = value[locale];\n }\n }\n }\n }\n this.translations = translations;\n }\n\n detectLocale(req: HttpRequest<any, any>) {\n const fallbackLocale =\n this.service.defaultLocale ?? this.service.supportedLocales[0] ?? \"en-US\";\n const detectedLocale = this.service.detectLocale(req);\n if (this.service.supportedLocales.includes(detectedLocale)) {\n return detectedLocale;\n }\n\n const previousLocale = req.cookies.get(\"i18n-locale\");\n const locale =\n previousLocale ?? (req.headers.get(\"accept-language\") || fallbackLocale);\n\n const [_locale] = locale.split(\",\");\n\n if (this.service.supportedLocales.includes(_locale)) {\n return _locale;\n }\n\n if (_locale.length === 2) {\n for (const supportedLocale of this.service.supportedLocales) {\n if (supportedLocale.startsWith(_locale)) {\n return supportedLocale;\n }\n }\n }\n\n return fallbackLocale;\n }\n\n getPageTranslations(locale: string, scope: string) {\n if (this.translations[locale][scope]) {\n return this.translations[locale][scope];\n }\n return {};\n }\n}\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";yCAIO,MAAM,UAA6B,CAAiB,CAItC,cAHZ,OAAQ,uBACf,aAAe,CAAC,EAChB,UAAY,GACZ,WAAW,CAAQ,EAA8B,CAC/C,MAAM,EADW,eAGjB,IAAM,EAAe,CAAC,EAEtB,QAAY,EAAO,KAAa,OAAO,QAAQ,KAAK,QAAQ,QAAQ,EAClE,QAAW,KAAU,KAAK,QAAQ,iBAAkB,CAClD,GAAI,CAAC,EAAa,GAChB,EAAa,GAAU,CAAC,EAE1B,EAAa,GAAQ,GAAS,CAAC,EAC/B,QAAW,KAAO,EAAU,CAC1B,EAAa,GAAQ,GAAO,EAAI,MAAQ,CAAC,EACzC,QAAY,EAAK,KAAU,OAAO,QAAQ,EAAI,UAAU,EACtD,KAAK,UAAY,GACjB,EAAa,GAAQ,GAAO,EAAI,MAAM,GAAO,EAAM,IAK3D,KAAK,aAAe,EAGtB,YAAY,CAAC,EAA4B,CACvC,IAAM,EACJ,KAAK,QAAQ,eAAiB,KAAK,QAAQ,iBAAiB,IAAM,QAC9D,EAAiB,KAAK,QAAQ,aAAa,CAAG,EACpD,GAAI,KAAK,QAAQ,iBAAiB,SAAS,CAAc,EACvD,OAAO,EAIT,IAAM,EADiB,EAAI,QAAQ,IAAI,aAAa,IAE/B,EAAI,QAAQ,IAAI,iBAAiB,GAAK,IAEpD,GAAW,EAAO,MAAM,GAAG,EAElC,GAAI,KAAK,QAAQ,iBAAiB,SAAS,CAAO,EAChD,OAAO,EAGT,GAAI,EAAQ,SAAW,GACrB,QAAW,KAAmB,KAAK,QAAQ,iBACzC,GAAI,EAAgB,WAAW,CAAO,EACpC,OAAO,EAKb,OAAO,EAGT,mBAAmB,CAAC,EAAgB,EAAe,CACjD,GAAI,KAAK,aAAa,GAAQ,GAC5B,OAAO,KAAK,aAAa,GAAQ,GAEnC,MAAO,CAAC,EAEZ",
|
|
8
|
-
"debugId": "
|
|
8
|
+
"debugId": "AD9BB603D43FF43364756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Rb as s}from"./chunk-agvzqxv7.js";var i=s((t,e)=>{e.exports={name:"@aws-sdk/nested-clients",version:"3.996.14",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.24","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.8","@aws-sdk/middleware-user-agent":"^3.972.25","@aws-sdk/region-config-resolver":"^3.972.9","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.11","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.12","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.27","@smithy/middleware-retry":"^4.4.44","@smithy/middleware-serde":"^4.2.15","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.0","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.7","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.43","@smithy/util-defaults-mode-node":"^4.2.47","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.12","@smithy/util-utf8":"^4.2.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}}});
|
|
3
3
|
export{i as a};
|
|
4
4
|
|
|
5
|
-
//# debugId=
|
|
5
|
+
//# debugId=2287FDC716D3E51664756E2164756E21
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{watch as K,existsSync as L,readFileSync as M}from"fs";import{join as O}from"path";function P(G){let A={};for(let C of G.split(`
|
|
3
|
+
`)){let z=C.trim();if(!z||z.startsWith("#"))continue;let B=z.startsWith("export ")?z.slice(7).trim():z,I=B.indexOf("=");if(I===-1)continue;let J=B.slice(0,I).trim();if(!J)continue;let H=B.slice(I+1).trim();if(H.length>=2&&(H.startsWith('"')&&H.endsWith('"')||H.startsWith("'")&&H.endsWith("'")))H=H.slice(1,-1);A[J]=H}return A}function Q(G){let A=Bun.env.NODE_ENV,C=[".env"];if(A)C.push(`.env.${A}`);if(A!=="test"){if(C.push(".env.local"),A)C.push(`.env.${A}.local`)}return C.map((z)=>O(G,z))}function R(G){let A={};for(let z of Q(G))if(L(z))Object.assign(A,P(M(z,"utf8")));let C=[];for(let[z,B]of Object.entries(A))if(process.env[z]!==B)process.env[z]=B,C.push(z);return C}function V(G=process.cwd()){if(globalThis.__gemiEnvWatcher)return;let A;globalThis.__gemiEnvWatcher=K(G,(C,z)=>{if(!z||!String(z).startsWith(".env"))return;clearTimeout(A),A=setTimeout(()=>{try{let B=R(G);if(B.length)console.log(`[gemi] .env reloaded: ${B.join(", ")}`)}catch(B){console.error("[gemi] failed to reload .env:",B)}},50)})}
|
|
4
|
+
export{Q as m,V as n};
|
|
5
|
+
|
|
6
|
+
//# debugId=24B953568E1D542964756E2164756E21
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import { watch, existsSync, readFileSync, type FSWatcher } from \"node:fs\";\nimport { join } from \"node:path\";\n\ndeclare global {\n // A single directory watcher, kept on globalThis so `bun --hot` reloads (which\n // re-run `Server.start`) don't stack duplicate watchers.\n var __gemiEnvWatcher: FSWatcher | undefined;\n}\n\n// Minimal `.env` parser: `KEY=VALUE` lines, `#` comments, an optional leading\n// `export`, and surrounding single/double quotes stripped. Multi-line values and\n// `${VAR}` interpolation are intentionally not handled (uncommon subset).\nfunction parseEnv(content: string): Record<string, string> {\n const out: Record<string, string> = {};\n for (const raw of content.split(\"\\n\")) {\n const line = raw.trim();\n if (!line || line.startsWith(\"#\")) continue;\n const body = line.startsWith(\"export \") ? line.slice(7).trim() : line;\n const eq = body.indexOf(\"=\");\n if (eq === -1) continue;\n const key = body.slice(0, eq).trim();\n if (!key) continue;\n let value = body.slice(eq + 1).trim();\n if (\n value.length >= 2 &&\n ((value.startsWith('\"') && value.endsWith('\"')) ||\n (value.startsWith(\"'\") && value.endsWith(\"'\")))\n ) {\n value = value.slice(1, -1);\n }\n out[key] = value;\n }\n return out;\n}\n\n// The `.env` files Bun loads, in increasing precedence (later overrides earlier).\n// `.env.local` is skipped for `NODE_ENV=test`, matching Bun/dotenv conventions.\nexport function envFiles(rootDir: string): string[] {\n const nodeEnv = process.env.NODE_ENV;\n const names = [\".env\"];\n if (nodeEnv) names.push(`.env.${nodeEnv}`);\n if (nodeEnv !== \"test\") {\n names.push(\".env.local\");\n if (nodeEnv) names.push(`.env.${nodeEnv}.local`);\n }\n return names.map((name) => join(rootDir, name));\n}\n\n// Re-read the env files and apply them to `process.env`. Only adds/updates keys\n// (a value edit is the common case); a key removed from the file keeps its last\n// value until the next full restart, so we never clobber the real OS environment.\nfunction applyEnv(rootDir: string): string[] {\n const merged: Record<string, string> = {};\n for (const file of envFiles(rootDir)) {\n if (existsSync(file)) {\n Object.assign(merged, parseEnv(readFileSync(file, \"utf8\")));\n }\n }\n const changed: string[] = [];\n for (const [key, value] of Object.entries(merged)) {\n if (process.env[key] !== value) {\n process.env[key] = value;\n changed.push(key);\n }\n }\n return changed;\n}\n\n// Watch the project's `.env` files and re-apply them to `process.env` on change,\n// so edits take effect without restarting the dev server. Bun loads `.env` only\n// at startup and does not reload it (even under `--hot`), so this fills that gap.\n// Dev only — called from `Server.start()`'s dev branch, not in production.\n// Idempotent: keeps a single watcher across `bun --hot` reloads.\n//\n// Note: this updates `process.env`, so config read at request time picks up the\n// new value immediately; values a service reads once at boot (e.g. a client\n// constructed from an env var) are cached and won't change until that code\n// re-runs (a hot reload in dev, a restart in prod).\nexport function watchEnv(rootDir: string = process.cwd()) {\n if (globalThis.__gemiEnvWatcher) return;\n\n let timer: ReturnType<typeof setTimeout> | undefined;\n globalThis.__gemiEnvWatcher = watch(rootDir, (_event, filename) => {\n // Non-recursive: only direct children of `rootDir`. Filter to `.env*`.\n if (!filename || !String(filename).startsWith(\".env\")) return;\n clearTimeout(timer);\n timer = setTimeout(() => {\n try {\n const changed = applyEnv(rootDir);\n if (changed.length) {\n console.log(`[gemi] .env reloaded: ${changed.join(\", \")}`);\n }\n } catch (error) {\n console.error(\"[gemi] failed to reload .env:\", error);\n }\n }, 50);\n });\n}\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": ";
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": ";AAAA,gBAAS,gBAAO,kBAAY,WAC5B,eAAS,aAWT,SAAS,CAAQ,CAAC,EAAyC,CACzD,IAAM,EAA8B,CAAC,EACrC,QAAW,KAAO,EAAQ,MAAM;AAAA,CAAI,EAAG,CACrC,IAAM,EAAO,EAAI,KAAK,EACtB,GAAI,CAAC,GAAQ,EAAK,W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GAAI,CAAC,GAAY,CAAC,OAAO,CAAQ,EAAE,WAAW,MAAM,EAAG,OACvD,aAAa,CAAK,EAClB,EAAQ,WAAW,IAAM,CACvB,GAAI,CACF,IAAM,EAAU,EAAS,CAAO,EAChC,GAAI,EAAQ,OACV,QAAQ,IAAI,yBAAyB,EAAQ,KAAK,IAAI,GAAG,EAE3D,MAAO,EAAO,CACd,QAAQ,MAAM,gCAAiC,CAAK,IAErD,EAAE,EACN",
|
|
8
|
+
"debugId": "24B953568E1D542964756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{K as U,L as X,s as L}from"./chunk-88fb6hzq.js";import{Ib as Y}from"./chunk-6b1abejc.js";import{Qb as S,Rb as $}from"./chunk-agvzqxv7.js";var K=$((u,I)=>{var{defineProperty:W,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q}=Object,B=Object.prototype.hasOwnProperty,E=(z,F)=>{for(var G in F)W(z,G,{get:F[G],enumerable:!0})},N=(z,F,G,T)=>{if(F&&typeof F==="object"||typeof F==="function"){for(let H of Q(F))if(!B.call(z,H)&&H!==G)W(z,H,{get:()=>F[H],enumerable:!(T=J(F,H))||T.enumerable})}return z},O=(z)=>N(W({},"__esModule",{value:!0}),z),A={};E(A,{Prisma:()=>D,PrismaClient:()=>k,default:()=>v});I.exports=O(A);var R={enginesVersion:"c2990dca591cba766e3b7ef5d9e8a84796e47ab7"},V="6.19.2",h=V,k=class{constructor(){throw Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.')}};function q(z){if(typeof z==="function")return z;return(F)=>F.$extends(z)}function y(z){return z}var D={defineExtension:q,getExtensionContext:y,prismaVersion:{client:h,engine:R.enginesVersion}},v={Prisma:D}});var b=$((d,M)=>{M.exports={...K()}});class Z{kernel;onException;constructor(z){this.kernel=new z.kernel,this.kernel.boot.call(this.kernel),this.onException=z.onException??((F)=>{console.error("Unhandled exception in App:",F)})}useViewRouter(){let z=this.kernel.services[U._name];if(!z)throw Error("ViewRouterServiceContainer is not registered \u2014 was the kernel booted?");return z}getComponentTree(){return this.useViewRouter().componentTree}getFlatComponentTree(){return this.useViewRouter().flatComponentTree}getRouteManifest(){return this.useViewRouter().routeManifest}async fetch(z){let F=new URL(z.url);return this.kernel.run.call(this.kernel,async()=>{if(F.pathname.startsWith("/api"))return await X.use().handleApiRequest(z);return await U.use().handleViewRequest(z)})}websocket={message:(z,F)=>{this.kernel.run.bind(this.kernel)(()=>{L.use().run(z.data.headers,()=>{L.use().handleMessage(z,F)})})},open:(z)=>{},close:(z)=>{console.log("closed ws"),z.terminate()}};onPublish(z){this.kernel.run.bind(this.kernel)(()=>{L.use().onPublish(z)})}dispatchJob(z,F){return this.kernel.run.bind(this.kernel)(()=>{return Y.use().dispatchJob(z,F)})}destroy(){this.kernel.destroy()}clone(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)}}var j=S(b(),1),P=j.Prisma.defineExtension({name:"Gemi Policies",query:{async $allOperations({args:z,operation:F,query:G,model:T}){return await G(z)}}});export{Z as o,P as p};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=24D5422C4790C94564756E2164756E21
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"import { Prisma } from \"@prisma/client\";\nimport { KernelContext } from \"../kernel/KernelContext\";\nimport { InsufficientPermissionsError } from \"../http/errors\";\n\nexport const prismaExtension = Prisma.defineExtension({\n name: \"Gemi Policies\",\n\n query: {\n async $allOperations({ args, operation, query, model }) {\n // const provider = KernelContext.getStore().policiesServiceProvider;\n\n // const policies = provider.policiesList[`${model}Policies`];\n\n // if (!policies) {\n // return await query(args);\n // }\n\n // const isPassed = await policies.all.call(policies, operation, args);\n // if (!isPassed) {\n // throw new InsufficientPermissionsError();\n // }\n\n return await query(args);\n },\n },\n});\n"
|
|
9
9
|
],
|
|
10
10
|
"mappings": ";4KACA,FAAuB,S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