create-sailor 1.7.2 → 1.8.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.
Files changed (57) hide show
  1. package/README.md +9 -0
  2. package/dist/aws-kms-EYG3LGYA.js +1 -0
  3. package/dist/chunk-224RJRPV.js +5 -0
  4. package/dist/chunk-2YUF6TO6.js +2 -0
  5. package/dist/chunk-3T4EOSMQ.js +1 -0
  6. package/dist/chunk-4AGDXYPL.js +1 -0
  7. package/dist/chunk-76FD5Z7D.js +23 -0
  8. package/dist/chunk-7OZT53MS.js +1 -0
  9. package/dist/chunk-AAIUIEEA.js +1 -0
  10. package/dist/chunk-C6CKWQY5.js +20 -0
  11. package/dist/chunk-CHWVD37K.js +1 -0
  12. package/dist/chunk-EBTFPGDR.js +9 -0
  13. package/dist/chunk-EIQ2HSZP.js +1 -0
  14. package/dist/chunk-FSRPMVAS.js +1 -0
  15. package/dist/chunk-IY2KKEUD.js +1 -0
  16. package/dist/chunk-M3QJPQWS.js +1 -0
  17. package/dist/chunk-OWZF7P72.js +1 -0
  18. package/dist/chunk-QSLKOXQ6.js +1 -0
  19. package/dist/chunk-S4HCBMFP.js +1 -0
  20. package/dist/chunk-TX7AAHER.js +1 -0
  21. package/dist/chunk-UU4YUKYZ.js +40 -0
  22. package/dist/chunk-WI7DO2VU.js +1 -0
  23. package/dist/chunk-XB6R2VIU.js +1 -0
  24. package/dist/chunk-XPRSUMI6.js +1 -0
  25. package/dist/chunk-ZCWB3HFB.js +1 -0
  26. package/dist/credits-7FJY7HK2.js +2613 -0
  27. package/dist/dist-LOLT3W3R.js +1 -0
  28. package/dist/dist-V6L2DNL2.js +5 -0
  29. package/dist/dist-es-3AHFNYTD.js +5 -0
  30. package/dist/dist-es-6KZILXYZ.js +1 -0
  31. package/dist/dist-es-H627TNCU.js +1 -0
  32. package/dist/dist-es-I6TTSEP7.js +2 -0
  33. package/dist/dist-es-JATELSE4.js +1 -0
  34. package/dist/dist-es-NRANDF25.js +2 -0
  35. package/dist/dist-es-YSAFQMS4.js +1 -0
  36. package/dist/event-streams-IPTOYMEP.js +1 -0
  37. package/dist/index.js +358 -419
  38. package/dist/loadSso-FR7LG5FX.js +1 -0
  39. package/dist/local-BUKM6VCO.js +1 -0
  40. package/dist/query_compiler_fast_bg.postgresql-FOSFFKA5.js +2 -0
  41. package/dist/query_compiler_fast_bg.postgresql.wasm-base64-JU7X67WB.js +1 -0
  42. package/dist/signin-N4XQB5ZB.js +1 -0
  43. package/dist/sso-oidc-FXPYRI5I.js +1 -0
  44. package/dist/sts-SIEJPPW3.js +6 -0
  45. package/package.json +21 -20
  46. package/templates/backends/gateway/package.json +6 -4
  47. package/templates/backends/gateway/src/index.ts +0 -4
  48. package/templates/backends/gateway/src/node.ts +5 -0
  49. package/templates/backends/gateway/src/worker.ts +11 -0
  50. package/templates/deploy/Dockerfile.web +1 -1
  51. package/templates/deploy/wrangler.gateway.toml +11 -0
  52. package/templates/docs/docusaurus/package.json +2 -1
  53. package/templates/docs/fumadocs/package.json +2 -1
  54. package/templates/docs/mintlify/package.json +2 -1
  55. package/templates/docs/nextra/package.json +2 -1
  56. package/templates/docs/vitepress/package.json +2 -1
  57. package/templates/orm/drizzle/package.json +2 -1
@@ -0,0 +1 @@
1
+ var A="AWS_PROFILE",N="default",q=e=>e.profile||process.env[A]||N;import{join as L}from"path";import{homedir as v}from"os";import{sep as w}from"path";var h={},H=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",f=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:o,HOMEDRIVE:r=`C:${w}`}=process.env;if(e)return e;if(t)return t;if(o)return`${r}${o}`;let i=H();return h[i]||(h[i]=v()),h[i]};var b="AWS_CONFIG_FILE",F=()=>process.env[b]||L(f(),".aws","config");var c;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(c||(c={}));import{join as C}from"path";var E=e=>Object.entries(e).filter(([t])=>{let o=t.indexOf(".");return o===-1?!1:Object.values(c).includes(t.substring(0,o))}).reduce((t,[o,r])=>{let i=o.indexOf("."),n=o.substring(0,i)===c.PROFILE?o.substring(i+1):o;return t[n]=r,t},{...e.default&&{default:e.default}});import{join as j}from"path";var k="AWS_SHARED_CREDENTIALS_FILE",I=()=>process.env[k]||j(f(),".aws","credentials");var y=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,$=["__proto__","profile __proto__"],g=e=>{let t={},o,r;for(let i of e.split(/\r?\n/)){let n=i.split(/(^|\s)[;#]/)[0].trim();if(n[0]==="["&&n[n.length-1]==="]"){o=void 0,r=void 0;let s=n.substring(1,n.length-1),p=y.exec(s);if(p){let[,m,,x]=p;Object.values(c).includes(m)&&(o=[m,x].join("."))}else o=s;if($.includes(s))throw new Error(`Found invalid profile name "${s}"`)}else if(o){let s=n.indexOf("=");if(![0,-1].includes(s)){let[p,m]=[n.substring(0,s).trim(),n.substring(s+1).trim()];if(m==="")r=p;else{r&&i.trimStart()===i&&(r=void 0),t[o]=t[o]||{};let x=r?[r,p].join("."):p;t[o][x]=m}}}}return t};import{readFile as G}from"fs/promises";var O={},u={},a=(e,t)=>u[e]!==void 0?u[e]:((!O[e]||t?.ignoreCache)&&(O[e]=G(e,"utf8")),O[e]);var _=()=>({}),R=async(e={})=>{let{filepath:t=I(),configFilepath:o=F()}=e,r=f(),i="~/",n=t;t.startsWith(i)&&(n=C(r,t.slice(2)));let S=o;o.startsWith(i)&&(S=C(r,o.slice(2)));let s=await Promise.all([a(S,{ignoreCache:e.ignoreCache}).then(g).then(E).catch(_),a(n,{ignoreCache:e.ignoreCache}).then(g).catch(_)]);return{configFile:s[0],credentialsFile:s[1]}};var D=e=>Object.entries(e).filter(([t])=>t.startsWith(c.SSO_SESSION+".")).reduce((t,[o,r])=>({...t,[o.substring(o.indexOf(".")+1)]:r}),{});var W=()=>({}),Re=async(e={})=>a(e.configFilepath??F()).then(g).then(D).catch(W);var P=(...e)=>{let t={};for(let o of e)for(let[r,i]of Object.entries(o))t[r]!==void 0?Object.assign(t[r],i):t[r]=i;return t};var Ne=async e=>{let t=await R(e);return P(t.configFile,t.credentialsFile)};import{readFile as X}from"fs/promises";import{createHash as K}from"crypto";import{join as V}from"path";var T=e=>{let o=K("sha1").update(e).digest("hex");return V(f(),".aws","sso","cache",`${o}.json`)};var d={},M=async e=>{if(d[e])return d[e];let t=T(e),o=await X(t,"utf8");return JSON.parse(o)};var U={getFileRecord(){return u},interceptFile(e,t){u[e]=Promise.resolve(t)},getTokenRecord(){return d},interceptToken(e,t){d[e]=t}};export{A as a,q as b,T as c,M as d,a as e,R as f,Re as g,Ne as h,U as i};
@@ -0,0 +1 @@
1
+ var f=r=>typeof ArrayBuffer=="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";import{Buffer as t}from"buffer";var o=(r,e=0,n=r.byteLength-e)=>{if(!f(r))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return t.from(r,e,n)},y=(r,e)=>{if(typeof r!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return e?t.from(r,e):t.from(r)};var a=r=>{let e=y(r,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var p=r=>{if(typeof r=="string")return r;if(typeof r!="object"||typeof r.byteOffset!="number"||typeof r.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return o(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};export{f as a,o as b,y as c,a as d,p as e};
@@ -0,0 +1 @@
1
+ import{O as S,P as I,j as T,n as y,p as E,q as b,r as p,u as l}from"./chunk-C6CKWQY5.js";import{b as j,c as x,i as O,k as M,l as R,m as k}from"./chunk-224RJRPV.js";import{e as C}from"./chunk-XB6R2VIU.js";var J=(h,r)=>T(h,r).then(e=>(r?.utf8Encoder??C)(e));var B=(h,r)=>J(h,r).then(e=>{if(e.length)try{return JSON.parse(e)}catch(n){throw n?.name==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:e}),n}return{}});var W=(h,r)=>{let e=(s,t)=>Object.keys(s).find(i=>i.toLowerCase()===t.toLowerCase()),n=s=>{let t=s;return typeof t=="number"&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=e(h.headers,"x-amzn-errortype");if(o!==void 0)return n(h.headers[o]);if(r&&typeof r=="object"){let s=e(r,"code");if(s&&r[s]!==void 0)return n(r[s]);if(r.__type!==void 0)return n(r.__type)}};function D(h,r,e){if(e?.source){let n=e.source;if(typeof r=="number"&&(r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER||n!==String(r)))return n.includes(".")?new p(n,"bigDecimal"):BigInt(n)}return r}var w=class extends S{settings;constructor(r){super(),this.settings=r}async read(r,e){return this._read(r,typeof e=="string"?JSON.parse(e,D):await B(e,this.serdeContext))}readObject(r,e){return this._read(r,e)}_read(r,e){let n=e!==null&&typeof e=="object",o=y.of(r);if(n){if(o.isStructSchema()){let t=e,i=o.isUnionSchema(),c={},a,{jsonName:f}=this.settings;f&&(a={});let u;i&&(u=new I(t,c));for(let[m,g]of o.structIterator()){let d=m;f&&(d=g.getMergedTraits().jsonName??d,a[d]=m),i&&u.mark(d),t[d]!=null&&(c[m]=this._read(g,t[d]))}if(i)u.writeUnknown();else if(typeof t.__type=="string")for(let[m,g]of Object.entries(t)){let d=f?a[m]??m:m;d in c||(c[d]=g)}return c}if(Array.isArray(e)&&o.isListSchema()){let t=o.getValueSchema(),i=[];for(let c of e)i.push(this._read(t,c));return i}if(o.isMapSchema()){let t=o.getValueSchema(),i={};for(let[c,a]of Object.entries(e))i[c]=this._read(t,a);return i}}if(o.isBlobSchema()&&typeof e=="string")return j(e);let s=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof e=="string"&&s)return s==="application/json"||s.endsWith("+json")?b.from(e):e;if(o.isTimestampSchema()&&e!=null)switch(l(o,this.settings)){case 5:return M(e);case 6:return R(e);case 7:return k(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(o.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(o.isBigDecimalSchema()&&e!=null){if(e instanceof p)return e;let t=e;return t.type==="bigDecimal"&&"string"in t?new p(t.string,t.type):new p(String(e),"bigDecimal")}if(o.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(o.isDocumentSchema())if(n){let t=Array.isArray(e)?[]:{};for(let[i,c]of Object.entries(e))c instanceof p?t[i]=c:t[i]=this._read(o,c);return t}else return structuredClone(e);return e}};var A="\u039D",_=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(r,e)=>{if(e instanceof p){let n=`${A+"nv"+this.counter++}_`+e.string;return this.values.set(`"${n}"`,e.string),n}if(typeof e=="bigint"){let n=e.toString(),o=`${A+"b"+this.counter++}_`+n;return this.values.set(`"${o}"`,n),o}return e}}replaceInJson(r){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return r;for(let[e,n]of this.values)r=r.replace(e,n);return r}};var N=class extends S{settings;buffer;useReplacer=!1;rootSchema;constructor(r){super(),this.settings=r}write(r,e){this.rootSchema=y.of(r),this.buffer=this._write(this.rootSchema,e)}writeDiscriminatedDocument(r,e){this.write(r,e),typeof this.buffer=="object"&&(this.buffer.__type=y.of(r).getName(!0))}flush(){let{rootSchema:r,useReplacer:e}=this;if(this.rootSchema=void 0,this.useReplacer=!1,r?.isStructSchema()||r?.isDocumentSchema()){if(!e)return JSON.stringify(this.buffer);let n=new _;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}_write(r,e,n){let o=e!==null&&typeof e=="object",s=y.of(r);if(o){if(s.isStructSchema()){let t=e,i={},{jsonName:c}=this.settings,a;c&&(a={});for(let[f,u]of s.structIterator()){let m=this._write(u,t[f],s);if(m!==void 0){let g=f;c&&(g=u.getMergedTraits().jsonName??f,a[f]=g),i[g]=m}}if(s.isUnionSchema()&&Object.keys(i).length===0){let{$unknown:f}=t;if(Array.isArray(f)){let[u,m]=f;i[u]=this._write(15,m)}}else if(typeof t.__type=="string")for(let[f,u]of Object.entries(t)){let m=c?a[f]??f:f;m in i||(i[m]=this._write(15,u))}return i}if(Array.isArray(e)&&s.isListSchema()){let t=s.getValueSchema(),i=[],c=!!s.getMergedTraits().sparse;for(let a of e)(c||a!=null)&&i.push(this._write(t,a));return i}if(s.isMapSchema()){let t=s.getValueSchema(),i={},c=!!s.getMergedTraits().sparse;for(let[a,f]of Object.entries(e))(c||f!=null)&&(i[a]=this._write(t,f));return i}if(e instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema()))return s===this.rootSchema?e:(this.serdeContext?.base64Encoder??x)(e);if(e instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(l(s,this.settings)){case 5:return e.toISOString().replace(".000Z","Z");case 6:return O(e);case 7:return e.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",e),e.getTime()/1e3}e instanceof p&&(this.useReplacer=!0)}if(!(e===null&&n?.isStructSchema())){if(s.isStringSchema()){if(typeof e>"u"&&s.isIdempotencyToken())return E();let t=s.getMergedTraits().mediaType;return e!=null&&t&&(t==="application/json"||t.endsWith("+json"))?b.from(e):e}if(typeof e=="number"&&s.isNumericSchema())return Math.abs(e)===1/0||isNaN(e)?String(e):e;if(typeof e=="string"&&s.isBlobSchema())return s===this.rootSchema?e:(this.serdeContext?.base64Encoder??x)(e);if(typeof e=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(o){let t=Array.isArray(e)?[]:{};for(let[i,c]of Object.entries(e))c instanceof p?(this.useReplacer=!0,t[i]=c):t[i]=this._write(s,c);return t}else return structuredClone(e);return e}}};var z=class extends S{settings;constructor(r){super(),this.settings=r}createSerializer(){let r=new N(this.settings);return r.setSerdeContext(this.serdeContext),r}createDeserializer(){let r=new w(this.settings);return r.setSerdeContext(this.serdeContext),r}};export{W as a,z as b};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-TX7AAHER.js";var c=(...t)=>async()=>{if(t.length===0)throw new e("No providers in chain");let o;for(let n of t)try{return await n()}catch(r){if(o=r,r?.tryNextLink)continue;throw r}throw o};export{c as a};