@zuplo/runtime 6.63.3 → 6.63.4
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-CRSNWVTX.js → chunk-5YGMAZTS.js} +2 -2
- package/out/esm/{chunk-BHPOLR2W.js → chunk-AURJS7GN.js} +5 -5
- package/out/esm/{chunk-BHPOLR2W.js.map → chunk-AURJS7GN.js.map} +1 -1
- package/out/esm/{chunk-2TEG5A7U.js → chunk-KLJAHVJG.js} +2 -2
- package/out/esm/index.js +2 -2
- package/out/esm/index.js.map +1 -1
- package/out/esm/internal/index.js +1 -1
- package/out/esm/mocks/index.js +1 -1
- package/out/types/index.d.ts +2 -2
- package/package.json +1 -1
- /package/out/esm/{chunk-CRSNWVTX.js.map → chunk-5YGMAZTS.js.map} +0 -0
- /package/out/esm/{chunk-BHPOLR2W.js.LEGAL.txt → chunk-AURJS7GN.js.LEGAL.txt} +0 -0
- /package/out/esm/{chunk-2TEG5A7U.js.map → chunk-KLJAHVJG.js.map} +0 -0
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{b as e,c as t,e as i,f as o,g as a,h as r,i as n}from"../chunk-
|
|
25
|
+
import{b as e,c as t,e as i,f as o,g as a,h as r,i as n}from"../chunk-KLJAHVJG.js";import"../chunk-AURJS7GN.js";export{o as getIdForParameterSchema,r as getIdForRefSchema,a as getIdForRequestBodySchema,i as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/out/esm/mocks/index.js
CHANGED
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{b as p}from"../chunk-
|
|
25
|
+
import{b as p}from"../chunk-5YGMAZTS.js";import{Z as n,a as t}from"../chunk-AURJS7GN.js";function g(u={request:new Request("https://api.example.com")}){let e=[];function o(i){e.push(Promise.resolve(i))}return t(o,"waitUntil"),{context:new s({event:{waitUntil:o},route:u.route}),invokeResponse:t(async()=>{await Promise.all(e)},"invokeResponse")}}t(g,"createMockContext");var a={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:t(()=>({}),"raw")},s=class extends EventTarget{static{t(this,"MockZuploContext")}#e;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;analyticsContext;constructor({event:e,route:o=a,parentContext:r}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:n.console.info,log:n.console.log,debug:n.console.debug,warn:n.console.warn,error:n.console.error},this.custom={},this.route=o,this.incomingRequestProperties={asn:1234,asOrganization:"ORGANIZATION",city:"Seattle",region:"Washington",regionCode:"WA",colo:"SEA",continent:"NA",country:"US",postalCode:"98004",metroCode:"SEA",latitude:void 0,longitude:void 0,timezone:void 0,httpProtocol:void 0},this.parentContext=r,this.#e=e,this.analyticsContext=new p(this.requestId)}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,r){throw new Error("Not implemented")}invokeRoute(e,o){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,r){let l=t(i=>{try{typeof o=="function"?o(i):o.handleEvent(i)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,l,r)}};export{s as MockZuploContext,g as createMockContext};
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/out/types/index.d.ts
CHANGED
|
@@ -9223,7 +9223,7 @@ declare interface UrlConfig {
|
|
|
9223
9223
|
* "module": "$import(@zuplo/runtime)",
|
|
9224
9224
|
* "options": {
|
|
9225
9225
|
* "baseUrl": "https://secure-backend.example.com",
|
|
9226
|
-
* "
|
|
9226
|
+
* "mtlsCertificate": "my-client-cert"
|
|
9227
9227
|
* }
|
|
9228
9228
|
* }
|
|
9229
9229
|
* }
|
|
@@ -9290,7 +9290,7 @@ export declare function urlForwardHandler(
|
|
|
9290
9290
|
* "module": "$import(@zuplo/runtime)",
|
|
9291
9291
|
* "options": {
|
|
9292
9292
|
* "rewritePattern": "https://secure-api.example.com/api/${params.version}",
|
|
9293
|
-
* "
|
|
9293
|
+
* "mtlsCertificate": "my-client-cert"
|
|
9294
9294
|
* }
|
|
9295
9295
|
* }
|
|
9296
9296
|
* }
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|