@zuplo/runtime 6.70.21 → 6.70.23
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-2ZQVIVZ3.js → chunk-GDWI24KD.js} +2 -2
- package/out/esm/{chunk-YGYFQCBA.js → chunk-JAEQKE5H.js} +3 -3
- package/out/esm/{chunk-YGYFQCBA.js.map → chunk-JAEQKE5H.js.map} +1 -1
- package/out/esm/{chunk-ZS34EO4B.js → chunk-NW4YQXGC.js} +2 -2
- package/out/esm/{chunk-UMZORQLU.js → chunk-RQLHORT4.js} +4 -4
- package/out/esm/{chunk-UMZORQLU.js.map → chunk-RQLHORT4.js.map} +1 -1
- package/out/esm/index.js +1 -1
- package/out/esm/internal/index.js +1 -1
- package/out/esm/mcp-gateway/index.js +20 -1372
- package/out/esm/mcp-gateway/index.js.map +1 -1
- package/out/esm/mocks/index.js +1 -1
- package/out/types/index.d.ts +3 -2
- package/package.json +1 -1
- /package/out/esm/{chunk-2ZQVIVZ3.js.map → chunk-GDWI24KD.js.map} +0 -0
- /package/out/esm/{chunk-YGYFQCBA.js.LEGAL.txt → chunk-JAEQKE5H.js.LEGAL.txt} +0 -0
- /package/out/esm/{chunk-ZS34EO4B.js.map → chunk-NW4YQXGC.js.map} +0 -0
- /package/out/esm/{chunk-UMZORQLU.js.LEGAL.txt → chunk-RQLHORT4.js.LEGAL.txt} +0 -0
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 d}from"../chunk-
|
|
25
|
+
import{b as d}from"../chunk-NW4YQXGC.js";import{_ as n,a as t}from"../chunk-JAEQKE5H.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 p={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=p,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,setLogProperties:t(()=>{},"setLogProperties")},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,clientCert:void 0,clientMtlsVerificationStatus:void 0,clientMtlsVerificationReason:void 0},this.parentContext=r,this.#e=e,this.analyticsContext=new d(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(a){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),a}},"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
|
@@ -759,8 +759,9 @@ export declare class ApiKeyConsumerClient {
|
|
|
759
759
|
*/
|
|
760
760
|
export declare interface ApiKeyConsumerClientOptions {
|
|
761
761
|
/**
|
|
762
|
-
* The bucket ID for the API key service.
|
|
763
|
-
*
|
|
762
|
+
* The bucket ID for the API key service. Must start with `bckt_`
|
|
763
|
+
* (e.g. `bckt_2HaK3odRyJle6NJSu8mzNKBC30BYxllxL`) — a bucket name is not
|
|
764
|
+
* accepted. Defaults to the bucket configured for the current environment.
|
|
764
765
|
*/
|
|
765
766
|
bucketId?: string;
|
|
766
767
|
/**
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|