@zuplo/runtime 5.2455.0 → 5.2457.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/out/esm/{chunk-HQYDEVIA.js → chunk-C655W6MN.js} +2 -2
- package/out/esm/{chunk-NZXOB6F5.js → chunk-JWGMLMWV.js} +1 -1
- package/out/esm/{chunk-BGTPRWGR.js → chunk-OZDH5CEO.js} +2 -2
- package/out/esm/index.js +18 -18
- package/out/esm/internal/index.js +1 -1
- package/out/esm/policies/axiomatics-authz-inbound/exports.js +1 -1
- package/out/types/index.d.ts +8 -0
- package/package.json +2 -2
- /package/out/esm/{chunk-HQYDEVIA.js.LEGAL.txt → chunk-C655W6MN.js.LEGAL.txt} +0 -0
- /package/out/esm/{chunk-BGTPRWGR.js.LEGAL.txt → chunk-JWGMLMWV.js.LEGAL.txt} +0 -0
- /package/out/esm/{chunk-NZXOB6F5.js.LEGAL.txt → chunk-OZDH5CEO.js.LEGAL.txt} +0 -0
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{a as b}from"./chunk-
|
|
25
|
+
import{a as b}from"./chunk-JWGMLMWV.js";import{a as r}from"./chunk-OQPRFCK5.js";var I=class extends Error{static{r(this,"SystemError")}constructor(t,n){super(t,n),this.name="InternalError"}},p=class extends Error{static{r(this,"RuntimeError")}extensionMembers;constructor(t,n){typeof t=="string"?super(t,n):(super(t.message,n),this.extensionMembers=t.extensionMembers),this.name="RuntimeError"}},M=class extends p{static{r(this,"ConfigurationError")}constructor(t,n){super(t,n),this.name="ConfigurationError"}},j=class extends p{static{r(this,"FeatureNotEnabledError")}constructor(t,n){super(t,n),this.name="FeatureNotEnabledError"}};var G=!1;function d(e,t){return{open:`\x1B[${e.join(";")}m`,close:`\x1B[${t}m`,regexp:new RegExp(`\\x1b\\[${t}m`,"g")}}r(d,"code");function m(e,t){return G?`${t.open}${e.replace(t.regexp,t.open)}${t.close}`:e}r(m,"run");function X(e){return m(e,d([31],39))}r(X,"red");function W(e){return m(e,d([32],39))}r(W,"green");function K(e){return m(e,d([33],39))}r(K,"yellow");function Q(e){return m(e,d([34],39))}r(Q,"blue");function ee(e){return m(e,d([35],39))}r(ee,"magenta");function te(e){return m(e,d([36],39))}r(te,"cyan");var we=new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|"),"g");var U=[X,W,K,Q,ee,te];function ne(e){let t=0,n=e.length,o=0;if(n>0)for(;o<n;)t=(t<<5)-t+e.charCodeAt(o++)|0;return t}r(ne,"hashCode");function P(e){let t=Math.abs(ne(e));return U[t%U.length]}r(P,"generateColor");function v(e,t,...n){let o=0,s=n.length,u=String(t).replace(/%[sdjoO%]/g,i=>{if(i==="%%")return"%";if(o>=s)return i;switch(i){case"%s":return String(n[o++]);case"%d":return Number(n[o++]).toString();case"%o":return e(n[o++]).split(`
|
|
26
26
|
`).map(c=>c.trim()).join(" ");case"%O":return e(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}default:return i}});for(let i of n.splice(o))i===null||!(typeof i=="object"&&i!==null)?u+=" "+i:u+=" "+e(i);return u}r(v,"format");function g(e,t,n,o){let s={seen:[],stylize:re,showHidden:t??!1,depth:n??2,colors:o??!1,customInspect:!0};return s.colors&&(s.stylize=oe),y(s,e,s.depth)}r(g,"inspect");g.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function re(e,t){return e}r(re,"stylizeNoColor");function ie(e){return typeof e=="boolean"}r(ie,"isBoolean");function H(e){return e===void 0}r(H,"isUndefined");function oe(e,t){let n=g.styles[t];return n?"\x1B["+g.colors[n][0]+"m"+e+"\x1B["+g.colors[n][1]+"m":e}r(oe,"stylizeWithColor");function R(e){return typeof e=="function"}r(R,"isFunction");function _(e){return typeof e=="string"}r(_,"isString");function se(e){return typeof e=="number"}r(se,"isNumber");function q(e){return e===null}r(q,"isNull");function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r(F,"hasOwn");function E(e){return z(e)&&A(e)==="[object RegExp]"}r(E,"isRegExp");function z(e){return typeof e=="object"&&e!==null}r(z,"isObject");function S(e){return z(e)&&(A(e)==="[object Error]"||e instanceof Error)}r(S,"isError");function B(e){return z(e)&&A(e)==="[object Date]"}r(B,"isDate");function A(e){return Object.prototype.toString.call(e)}r(A,"objectToString");function ce(e){let t={};return e.forEach(function(n,o){t[n]=!0}),t}r(ce,"arrayToHash");function ue(e,t,n,o,s){let u=[];for(let i=0,c=t.length;i<c;++i)F(t,String(i))?u.push(O(e,t,n,o,String(i),!0)):u.push("");return s.forEach(function(i){i.match(/^\d+$/)||u.push(O(e,t,n,o,i,!0))}),u}r(ue,"formatArray");function C(e){return"["+Error.prototype.toString.call(e)+"]"}r(C,"formatError");function y(e,t,n){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==g&&!(t.constructor&&t.constructor.prototype===t)){let l=t.inspect(n,e);return _(l)||(l=y(e,l,n)),l}let o=ae(e,t);if(o)return o;let s=Object.keys(t),u=ce(s);try{e.showHidden&&Object.getOwnPropertyNames&&(s=Object.getOwnPropertyNames(t))}catch{}if(S(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return C(t);if(s.length===0){if(R(t)){let l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(B(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return C(t)}let i="",c=!1,a=["{","}"];if(Array.isArray(t)&&(c=!0,a=["[","]"]),R(t)&&(i=" [Function"+(t.name?": "+t.name:"")+"]"),E(t)&&(i=" "+RegExp.prototype.toString.call(t)),B(t)&&(i=" "+Date.prototype.toUTCString.call(t)),S(t)&&(i=" "+C(t)),s.length===0&&(!c||t.length==0))return a[0]+i+a[1];if(n<0)return E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);let f;return c?f=ue(e,t,n,u,s):f=s.map(function(l){return O(e,t,n,u,l,c)}),e.seen.pop(),le(f,i,a)}r(y,"formatValue");function O(e,t,n,o,s,u){let i,c,a;a={value:void 0};try{a.value=t[s]}catch{}try{Object.getOwnPropertyDescriptor&&(a=Object.getOwnPropertyDescriptor(t,s)||a)}catch{}if(a.get?a.set?c=e.stylize("[Getter/Setter]","special"):c=e.stylize("[Getter]","special"):a.set&&(c=e.stylize("[Setter]","special")),F(o,s)||(i="["+s+"]"),c||(e.seen.indexOf(a.value)<0?(q(n)?c=y(e,a.value,null):c=y(e,a.value,n-1),c.indexOf(`
|
|
27
27
|
`)>-1&&(u?c=c.split(`
|
|
28
28
|
`).map(function(f){return" "+f}).join(`
|
|
@@ -33,4 +33,4 @@ import{a as b}from"./chunk-NZXOB6F5.js";import{a as r}from"./chunk-OQPRFCK5.js";
|
|
|
33
33
|
`)>=0&&o++,u+i.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(t===""?"":t+`
|
|
34
34
|
`)+" "+e.join(`,
|
|
35
35
|
`)+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}r(le,"reduceToSingleString");var L=r((e,...t)=>v(g,e,t),"format");var N=class{static{r(this,"Debugger")}manager;ns;color;last;enabled;constructor(t,n){this.manager=t,this.ns=n,this.color=P(n),this.last=0,this.enabled=t.enabled.some(o=>o.test(n))}log(...t){if(!this.enabled)return;let n,o=t[0];typeof o=="function"?n=o():n=String(o);let s=Date.now()-(this.last||Date.now());n=L(n,...t);let u=`${this.color(this.ns)} ${n} ${this.color(`+${s}ms`)}`;console.log(u),this.last=Date.now()}},$=class{static{r(this,"DebugManager")}debuggers;enabled;constructor(t){this.debuggers=new Map,this.enabled=t??[]}};function fe(e){return!e||e.length===0?[]:(e=e.replace(/\s/g,"").replace(/\*/g,".+"),e.split(",").map(t=>new RegExp(`^${t}$`)))}r(fe,"extract");var x;function k(e){let t=globalThis.DEBUG;x||(x=new $(fe(t)));let n=new N(x,e);return x.debuggers.set(e,n),Object.assign(n.log.bind(n),{self:n})}r(k,"debug");var h=k("zuplo:runtime:external-service");function pe(){let e,{__ZUPLO_EXTERNAL_SERVICE_TOKEN:t}=b.instance.runtime;if(t&&t!=="undefined")try{let n=atob(t);e=JSON.parse(n)}catch{}return e}r(pe,"getServiceAuth");async function J(e,t){let n=pe();if(n)if(h(`Using external service auth. ClientId: ${n.clientId})`),typeof e=="string"){let o=new URL(e),s=o.hostname,u=t??{},i=new Headers(u.headers||{});i.set("CF-Access-Client-Id",n.clientId),i.set("CF-Access-Client-Secret",n.clientSecret),u.headers=i;let c;if(n.customServiceMapping&&n.customServiceMapping[s])c=`https://${n.customServiceMapping[s]}`;else if(b.instance.useLegacyServiceRouting)c=`https://${s}.zuptunnel.com`;else{h("Using sha256 service routing");let l=b.instance.build;if(l.ACCOUNT_NAME&&l.PROJECT_NAME&&l.ENVIRONMENT_TYPE)c=`https://${await ge(s,l.ACCOUNT_NAME,l.PROJECT_NAME,l.ENVIRONMENT_TYPE)}.zuptunnel.com`;else throw h("Cannot use sha256 service routing, missing build variables"),new p("Failed to generate fully qualified tunnel url.")}let a=new URL(`${c}${o.pathname}${o.search}`);h(`Calling external service: ${a.toString()}`);let f=await w.fetch(a.toString(),u);if(f.status===403&&f.headers.get("cf-access-domain")!==null)throw console.error("403 Forbidden when calling external service.",{clientId:n.clientId,tunnelHost:c}),new p("Could not connect to secure tunnel.");return f}else throw h("Cannot call external service with Request object"),new p("Currently, we only support fetch(<some_string>, ...).");else throw h("There is no external service auth configured for this zup."),new p("There are no external services configured for this zup.")}r(J,"externalServiceHandler");async function ge(e,t,n,o){let s=e.toLowerCase(),u=t.toLowerCase(),i=n.toLowerCase(),c=he(o);h(`Hashing service name: ${u}-${s}.${u}-${i}-${c}`);let a=await D(`${u}-${s}`),f=await D(`${u}-${i}-${c}`);return`${a}.${f}`}r(ge,"hashServiceName");async function D(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(u=>u.toString(16).padStart(2,"0")).join("").slice(0,-1)}r(D,"hashSegment");function he(e){let t=e.toLowerCase();switch(t){case"production":case"preview":return t;default:return"working-copy"}}r(he,"sanitizeEnvironmentType");var V=new Map;V.set("service:",J);var Z=globalThis.fetch;function T(e,t){let n=de(t);if(typeof e=="string"){let o=new URL(e),s=V.get(o.protocol);return s?s(e,n):Z(e,n)}else return Z(e,n)}r(T,"internalFetch");globalThis.fetch=T;var de=r(e=>{if(!e||e instanceof Request)return e;let t=e;if(!t.zuplo)return e;let n=e;return n.cf={cacheEverything:t.zuplo?.cacheEverything,cacheTtl:t.zuplo?.cacheTtlSeconds},delete e.zuplo,e},"transformInit");var me={fetch:T},w=me;var Y=class{constructor(t){this.options=t;this.authHeader=`Basic ${btoa(t.pdpUsername+":"+t.pdpPassword)}`,this.authorizationUrl=new URL("/authorize",t.pdpUrl).toString()}static{r(this,"PdpService")}authHeader;authorizationUrl;async makePdpRequest(t){let n=await w.fetch(this.authorizationUrl,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/xacml+json; charset=UTF-8",[this.options.tokenHeaderName??"Authorization"]:this.authHeader}});if(!n.ok)throw new Error(`Request to PDP service failed with response status ${n.status}.`);return await n.json()}};export{k as a,I as b,p as c,M as d,j as e,w as f,Y as g};
|
|
36
|
-
/*! For license information please see chunk-
|
|
36
|
+
/*! For license information please see chunk-C655W6MN.js.LEGAL.txt */
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
25
|
import{a as d}from"./chunk-OQPRFCK5.js";function N(c){if(c.length>=255)throw new TypeError("Alphabet too long");let _=new Uint8Array(256);for(let e=0;e<_.length;e++)_[e]=255;for(let e=0;e<c.length;e++){let t=c.charAt(e),s=t.charCodeAt(0);if(_[s]!==255)throw new TypeError(t+" is ambiguous");_[s]=e}let i=c.length,h=c.charAt(0),f=Math.log(i)/Math.log(256),E=Math.log(256)/Math.log(i);function p(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(e.length===0)return"";let t=0,s=0,r=0,l=e.length;for(;r!==l&&e[r]===0;)r++,t++;let u=(l-r)*E+1>>>0,o=new Uint8Array(u);for(;r!==l;){let n=e[r],m=0;for(let g=u-1;(n!==0||m<s)&&g!==-1;g--,m++)n+=256*o[g]>>>0,o[g]=n%i>>>0,n=n/i>>>0;if(n!==0)throw new Error("Non-zero carry");s=m,r++}let a=u-s;for(;a!==u&&o[a]===0;)a++;let L=h.repeat(t);for(;a<u;++a)L+=c.charAt(o[a]);return L}d(p,"encode");function T(e){if(typeof e!="string")throw new TypeError("Expected String");if(e.length===0)return new Uint8Array;let t=0,s=0,r=0;for(;e[t]===h;)s++,t++;let l=(e.length-t)*f+1>>>0,u=new Uint8Array(l);for(;e[t];){let n=_[e.charCodeAt(t)];if(n===255)return;let m=0;for(let g=l-1;(n!==0||m<r)&&g!==-1;g--,m++)n+=i*u[g]>>>0,u[g]=n%256>>>0,n=n/256>>>0;if(n!==0)throw new Error("Non-zero carry");r=m,t++}let o=l-r;for(;o!==l&&u[o]===0;)o++;let a=new Uint8Array(s+(l-o)),L=s;for(;o!==l;)a[L++]=u[o++];return a}d(T,"decodeUnsafe");function R(e){let t=T(e);if(t)return t;throw new Error("Non-base"+i+" character")}return d(R,"decode"),{encode:p,decodeUnsafe:T,decode:R}}d(N,"base");var A=N;var b="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",P=A(b);var U="2024-03-14",y=Object.freeze({none:{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1},"2023-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!1,doNotRunHooksOnSystemRoutes:!1,removeAllVendorHeadersExceptListed:!1},"2024-01-15":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0},"2024-03-14":{runOutboundPoliciesOnHandlerOnAllStatuses:!0,doNotRunHooksOnSystemRoutes:!0,removeAllVendorHeadersExceptListed:!0}});function I(){return new O({build:{ACCOUNT_NAME:"mock-account-name",PROJECT_NAME:"mock-project-name",API_VERSION:"0.0.0",BUILD_ID:crypto.randomUUID(),TIMESTAMP:new Date().toISOString(),BUILD_ENV:"test",ZUPLO_VERSION:"0.0.0",COMPATIBILITY_DATE:U,ENVIRONMENT_TYPE:"mock-environment-type",GIT_SHA:void 0,IS_LOCAL_DEVELOPMENT:!1,COMPATIBILITY_FLAGS:y[U]},runtime:{RUNTIME_ENV:"test",RUNTIME_STAGE:"test",__ZUPLO_DEPLOYMENT_NAME:"mock-deployment-name",__ZUPLO_LOG_LEVEL:"debug",__ZUPLO_LOG_FORMAT:"pretty",__ZUPLO_MANAGEMENT_API_URL:"",__ZUPLO_RUNTIME_TYPE:"cloudflare",__ZUPLO_AUTH_API_JWT:""}})}d(I,"getMockEnvironment");var O=class c{static{d(this,"Environment")}config;static#e;static#t=!1;static initialize(_){this.#e||(this.#e=new c(_),this.#t=!0)}static get instance(){return this.#t||(console.debug("Environment has not been initialized. This is okay when running tests, a mock environment will be used."),this.#e=I()),this.#e}constructor({build:_,runtime:i}){let h;try{if(i.__ZUPLO_CONFIG){let f=atob(i.__ZUPLO_CONFIG);h=JSON.parse(f)}if(i.ZUPLO_SYSTEM_CONFIGURATIONS){let f=new TextDecoder().decode(P.decode(i.ZUPLO_SYSTEM_CONFIGURATIONS)),E=JSON.parse(f);for(let p of Object.keys(E))i[p]=E[p]}}catch(f){console.error("Failed to parse runtime configuration",f)}this.config=h??{},this.build=_,this.runtime=i,this.instanceId=crypto.randomUUID()}build;runtime;instanceId;get deploymentName(){return this.runtime.__ZUPLO_DEPLOYMENT_NAME??this.config.deployment_name??void 0}get useLegacyServiceRouting(){return this.config.use_legacy_service_routing??void 0}get useProxyForFetchFromZups(){return this.config.use_proxy_for_fetch_from_zups??void 0}get devPortalBaseUrl(){return this.runtime.__ZUPLO_DEV_PORTAL_URL??this.config.dev_portal_url??"https://dev-portal-v4-1.zuplo.com"}get buildAssetsUrl(){return this.runtime.__ZUPLO_BUILD_ASSETS_URL??this.config.build_assets_url??"https://build-assets.zuplo.com"}get remoteLogToken(){return this.runtime.__ZUPLO_REMOTE_LOG_TOKEN??this.config.remote_log_token??void 0}get zuploClientAuthBucketId(){return this.config.zuplo_auth_client_bucket_id??"auth_o8PUdhKxSTOiB794GWPwLQCD"}get managementApiURL(){return this.runtime.__ZUPLO_MANAGEMENT_API_URL??this.config.management_api_url??"https://api.zuplo.com"}get developerApiUrl(){return this.config.developer_api_url??"https://dev.zuplo.com"}get cdnURL(){return this.runtime.__ZUPLO_CDN_URL??this.config.cdn_url??"https://cdn.zuplo.com"}get remoteLogURL(){return this.runtime.__ZUPLO_REMOTE_LOG_URL??this.config.log_event_api??"https://ellie.zuplo.com"}get loggingId(){return this.runtime.__ZUPLO_LOGGING_ID??this.config.logging_id??void 0}get redisURL(){return this.runtime.__ZUPLO_REDIS_URL??this.config.redis_proxy_url??"https://redis-proxy.zuplo.com"}get apiKeyServiceUrl(){return this.runtime.__ZUPLO_API_KEY_SERVICE_URL??this.config.api_key_service_url??"https://apikey.zuplo.com"}get meteringServiceUrl(){return this.config.metering_service_url??"https://meters.zuplo.com"}get authApiJWT(){return this.runtime.__ZUPLO_AUTH_API_JWT??void 0}get authClientId(){return this.runtime.__ZUPLO_AUTH_CLIENT_ID}get authClientSecret(){return this.runtime.__ZUPLO_AUTH_CLIENT_SECRET}get userLogLevel(){return this.runtime.ZUPLO_LOG_LEVEL??this.runtime.__ZUPLO_LOG_LEVEL??this.config.user_log_level??"debug"}get systemLogLevel(){return this.runtime.__ZUPLO_LOG_LEVEL??this.config.system_log_level??"debug"}get logFormat(){return this.runtime.__ZUPLO_LOG_FORMAT??this.config.log_format??"cloudflare"}get isCloudflare(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="cloudflare":this.config.runtime_type?this.config.runtime_type==="cloudflare":typeof WebSocketPair=="function"}get isDeno(){return this.runtime.__ZUPLO_RUNTIME_TYPE?this.runtime.__ZUPLO_RUNTIME_TYPE==="deno":this.config.runtime_type?this.config.runtime_type==="deno":typeof WebSocketPair!="function"}get isLocalDevelopment(){return this.build.IS_LOCAL_DEVELOPMENT}get isTestMode(){return!!this.runtime.__ZUPLO_TEST_MODE}get systemUserAgent(){return`Zuplo/${this.build.ZUPLO_VERSION}`}get loggingEnvironmentType(){return this.isCloudflare?"edge":this.isLocalDevelopment?"local":this.isDeno?"working-copy":"unknown"}get loggingEnvironmentStage(){return this.build.ENVIRONMENT_TYPE==="PRODUCTION"?"production":this.build.ENVIRONMENT_TYPE==="PREVIEW"?"preview":this.isLocalDevelopment?"local":this.isWorkingCopy?"working-copy":"unknown"}get isWorkingCopy(){return this.build.ENVIRONMENT_TYPE==="WORKING_COPY"}};export{O as a};
|
|
26
|
-
/*! For license information please see chunk-
|
|
26
|
+
/*! For license information please see chunk-JWGMLMWV.js.LEGAL.txt */
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{a}from"./chunk-
|
|
26
|
-
/*! For license information please see chunk-
|
|
25
|
+
import{a}from"./chunk-JWGMLMWV.js";import{a as n}from"./chunk-OQPRFCK5.js";var c=(o=>(o.Build="build-data",o.CorsPreflight="cors-preflight",o.DeveloperPortal="developer-portal",o.DeveloperPortalLegacy="developer-portal-legacy",o.StripePlugin="stripe-plugin",o.EmptyGatewayCatchall="empty-gateway-catchall",o.Ping="ping",o.UnmatchedPath="unmatched-path",o))(c||{});var p=["ZUPLO_USER_LOGGER_DATA_DOG_API_KEY","ZUPLO_USER_LOGGER_DATA_DOG_URL","ZUPLO_LOG_LEVEL","ZUPLO_HANDLER_WRITE_LOG_LEVEL"];function _(e){return e.startsWith("__ZUPLO")||e.startsWith("ZUPLO_")?!p.includes(e)&&!e.startsWith("ZUPLO_PUBLIC_"):!1}n(_,"isRestrictedEnvVariableName");function g(e){return!!e.startsWith("ZUPLO_")}n(g,"isZuploReadableEnvVariableName");var f=new Proxy({},{get(e,r){let t=String(r);switch(t){case"ZUPLO_ENVIRONMENT_TYPE":return a.instance.loggingEnvironmentType;case"ZUPLO_ENVIRONMENT_STAGE":return a.instance.loggingEnvironmentStage;case"ZUPLO_ENVIRONMENT_NAME":return a.instance.runtime.__ZUPLO_DEPLOYMENT_NAME;case"ZUPLO_ACCOUNT_NAME":return a.instance.build.ACCOUNT_NAME;case"ZUPLO_PROJECT_NAME":return a.instance.build.PROJECT_NAME;case"ZUPLO_BUILD_ID":return a.instance.build.BUILD_ID}if(!(_(t)&&!g(t)))return a.instance.runtime[t]}});function C(e,r,t){return`_${s(e+"_"+r+"_"+t)}`}n(C,"getRawOperationDataIdentifierName");function h(e,r,t,i){return`_${s(e.toLowerCase())}_`+r.toLowerCase()+"_"+t.toLowerCase()+`_${i.toLowerCase()}`}n(h,"getIdForParameterSchema");function A(e,r,t){return`_${s(e.toLowerCase())}_`+r.toLowerCase()+`_rb_${s(t.toLowerCase())}`}n(A,"getIdForRequestBodySchema");function m(e,r){return`_${s(e)}__${s(r)}`}n(m,"getIdForRefSchema");function s(e){let r=[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r.push(e.charAt(t)):r.push("_")}return r.join("")}n(s,"sanitizedIdentifierName");export{c as a,_ as b,g as c,f as d,C as e,h as f,A as g,m as h,s as i};
|
|
26
|
+
/*! For license information please see chunk-OZDH5CEO.js.LEGAL.txt */
|