palbase 0.23.1 → 0.23.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/ai/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{4N6DBTHE.js → 2243L7FH.js} +2 -2
- package/dist/chunks/{35PCXXWS.js → 32K2WSMI.js} +2 -2
- package/dist/chunks/{E2UEUE4B.js → 3B2LXO7V.js} +2 -2
- package/dist/chunks/{OUNCAINB.js → 465GAZ3I.js} +1 -1
- package/dist/chunks/{QY4VHBSI.js → 4UCTKDVC.js} +1 -1
- package/dist/chunks/{OLYFCCY7.js → 5BNDQNJE.js} +1 -1
- package/dist/chunks/{BB57HGRH.js → 6FQTH7CU.js} +2 -2
- package/dist/chunks/{D6PLSRTA.js → CHQC4TAI.js} +1 -1
- package/dist/chunks/{GO3DJFL2.js → DBHBPJXF.js} +2 -2
- package/dist/chunks/{A3LKL4L6.js → E6O2BDH6.js} +2 -2
- package/dist/chunks/{YTTNY3PC.js → FN6YSHEH.js} +2 -2
- package/dist/chunks/{XE5MJSS4.js → GJLB5E6X.js} +2 -2
- package/dist/chunks/{KQSO62BH.js → LEL23GGZ.js} +2 -2
- package/dist/chunks/{JZJXMPER.js → LI5A2ZUO.js} +2 -2
- package/dist/chunks/{675S5LPE.js → LPIIPAL7.js} +1 -1
- package/dist/chunks/{TZC63UZ7.js → P7I67ZXV.js} +2 -2
- package/dist/chunks/{R5NMH5PL.js → RIU2G5NL.js} +2 -2
- package/dist/chunks/{4RAFUD5J.js → RKVNNZKK.js} +1 -1
- package/dist/chunks/{U5FQV4H6.js → RLYVZSYC.js} +2 -2
- package/dist/chunks/{G3XVTFYH.js → THGKKTVR.js} +2 -2
- package/dist/chunks/{IHEOFZ2Z.js → UGWQ7AK7.js} +2 -2
- package/dist/chunks/{BAGSKVPB.js → XZF67QTC.js} +2 -2
- package/dist/chunks/{5QTY55XZ.js → Z6GSSELT.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
package/dist/web/vite.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! palbase 0.23.
|
|
2
|
-
import"../chunks/
|
|
1
|
+
/*! palbase 0.23.2 — Palbase SDK License (see LICENSE) */
|
|
2
|
+
import"../chunks/5BNDQNJE.js";import{execFile as $}from"node:child_process";import{existsSync as y,mkdtempSync as k,readFileSync as S,rmSync as x,writeFileSync as P}from"node:fs";import{createRequire as O}from"node:module";import{tmpdir as W}from"node:os";import{dirname as g,join as o,relative as u,resolve as v,sep as d}from"node:path";var E=/\.(?:ts|js|mts|mjs)$/;function F(n){if(!/^[a-z][a-z0-9-]*$/.test(n.app))throw new TypeError(`palbase({ app }): ${JSON.stringify(n.app)} is an app's slug (palbase apps:list)`);let c=process.cwd(),p="",i="",f=()=>v(c,n.dir??"palbase"),m=()=>{let e=n.environments[p];if(!e)throw new Error(`palbase: the mode "${p}" is not built against any environment \u2014 say which in vite.config: palbase({ environments: { ${JSON.stringify(p)}: '<environment slug>' } })`);return e};return{name:"palbase",enforce:"pre",config(e,s){p=s.mode,i=s.command??"";let r=e.build?.rollupOptions?.onwarn;return{build:{rollupOptions:{onwarn(t,a){let l=String(t.exporter??t.id??"");if(t.code==="MISSING_EXPORT"&&l.includes(`${d}environments${d}`))throw new Error(`palbase: ${t.message} \u2014 ${m()}'s backend has no such route (palbase apps:sync brings what it has)`);r?r(t,a):a(t)}}}}},configResolved(e){c=e.root,p=e.mode,i=e.command??i},async buildStart(){i!=="build"||n.typecheck===!1||await j(c,m(),n.tsconfig)},resolveId(e,s){if(!s)return null;let r=f();if(e==="palbase"||e.startsWith("palbase/")){let w=u(r,s);return w.startsWith("..")||w===""?null:this.resolve(e,o(c,"index.html"),{skipSelf:!0})}if(!(e.startsWith(".")||e.startsWith("/")))return null;let t=v(g(s),e);if(E.test(t)||(t+=".ts"),g(t)!==r&&g(t)!==o(r,"palbe"))return null;let a=u(r,t),l=`${n.app}.ts`;if(a!==l&&!a.startsWith(`palbe${d}`))return null;let h=m(),b=o(r,"environments",h,a===l?l:o("palbe",a.slice(`palbe${d}`.length)));if(!y(b))throw new Error(`palbase: ${u(c,b)} is not there \u2014 palbase apps:sync writes it (is ${n.app} set in ${h}, and has ${h} that machine?)`);return b}}}async function j(n,c,p){let i=p?v(n,p):["tsconfig.app.json","tsconfig.json"].map(e=>o(n,e)).find(y);if(!i)return;if(!y(i))throw new Error(`palbase({ tsconfig }): ${u(n,i)} is not there`);let f;try{let e=O(o(n,"package.json")).resolve("typescript/package.json"),s=JSON.parse(S(e,"utf8")).bin?.tsc;if(!s)throw new Error("no tsc");f=o(g(e),s)}catch{throw new Error("palbase: the build type-checks the app against its environment with the app's TypeScript, and the app has none (npm i -D typescript) \u2014 or say palbase({ typecheck: false })")}let m=k(o(W(),"palbase-typecheck-"));try{let e=o(m,"tsconfig.json");P(e,JSON.stringify({extends:i,compilerOptions:{noEmit:!0,composite:!1,incremental:!1,moduleSuffixes:[`.${c}`,""]}}));let s=await new Promise(r=>$(process.execPath,[f,"-p",e,"--pretty","false"],{cwd:n,maxBuffer:16<<20},(t,a,l)=>r({code:t?typeof t.code=="number"?t.code:1:0,text:`${a}${l}`.trim()})));if(s.code!==0)throw new Error(`palbase: the app does not type-check against ${c}, the environment this build is made for \u2014 a route its backend does not have, or a call that does not fit it:
|
|
3
3
|
${s.text}`)}finally{x(m,{recursive:!0,force:!0})}}export{F as palbase};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "palbase",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "Palbase for JavaScript: the web client (palbase/web), the server SDK (palbase/server), an organization's management SDK (palbase/cloud), the backend framework (palbase/backend), AI (palbase/ai) and the CLI (npx palbase).",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://palbase.studio",
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"dependencies": {
|
|
150
150
|
"@types/node": "26.6.4",
|
|
151
151
|
"bun-types": "1.4.2",
|
|
152
|
-
"palgres": "0.23.
|
|
152
|
+
"palgres": "0.23.2",
|
|
153
153
|
"reflect-metadata": "^0.2.2",
|
|
154
154
|
"typescript": "~6.0.3",
|
|
155
155
|
"zod": "^4.6.5"
|