@zuplo/runtime 6.51.45 → 6.51.47
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-TPMH5PF5.js → chunk-DXTRQA6T.js} +1 -1
- package/out/esm/{chunk-PPV7V43C.js → chunk-GIIYBL5U.js} +1 -1
- package/out/esm/index.js +64 -36
- package/out/esm/internal/index.js +1 -1
- package/out/esm/mocks/index.js +1 -1
- package/out/types/index.d.ts +3 -0
- package/out/types/internal/index.d.ts +3 -0
- package/out/types/mocks/index.d.ts +3 -0
- package/package.json +3 -2
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{c as e,d as t,f as a,g as o,h as r,i,j as n}from"../chunk-
|
|
25
|
+
import{c as e,d as t,f as a,g as o,h as r,i,j as n}from"../chunk-DXTRQA6T.js";import"../chunk-GIIYBL5U.js";export{o as getIdForParameterSchema,i as getIdForRefSchema,r as getIdForRequestBodySchema,a as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
|
package/out/esm/mocks/index.js
CHANGED
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{a as t}from"../chunk-
|
|
25
|
+
import{a as t}from"../chunk-GIIYBL5U.js";function l(s={request:new Request("https://api.example.com")}){let e=[];function o(r){e.push(Promise.resolve(r))}return t(o,"waitUntil"),{context:new i({event:{waitUntil:o},route:s.route}),invokeResponse:t(async()=>{await Promise.all(e)},"invokeResponse")}}t(l,"createMockContext");var p={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:t(()=>({}),"raw")},i=class extends EventTarget{static{t(this,"MockZuploContext")}#e;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;constructor({event:e,route:o=p,parentContext:n}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:console.info,log:console.log,debug:console.debug,warn:console.warn,error: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=n,this.#e=e}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,n){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,n){let u=t(r=>{try{typeof o=="function"?o(r):o.handleEvent(r)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,u,n)}};export{i as MockZuploContext,l as createMockContext};
|
package/out/types/index.d.ts
CHANGED
|
@@ -1013,6 +1013,9 @@ declare interface BuildRouteConfiguration {
|
|
|
1013
1013
|
* @deprecated This property is deprecated. Use route.raw() instead.
|
|
1014
1014
|
*/
|
|
1015
1015
|
custom?: any;
|
|
1016
|
+
mcp?: {
|
|
1017
|
+
enabled?: boolean;
|
|
1018
|
+
};
|
|
1016
1019
|
policies?: {
|
|
1017
1020
|
inbound?: string[];
|
|
1018
1021
|
outbound?: string[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.51.
|
|
4
|
+
"version": "6.51.47",
|
|
5
5
|
"repository": "https://github.com/zuplo/zuplo",
|
|
6
6
|
"author": "Zuplo, Inc.",
|
|
7
7
|
"exports": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"bs58": "^6.0.0",
|
|
37
37
|
"cookie": "^1.0.1",
|
|
38
38
|
"jose": "^5.6.3",
|
|
39
|
-
"path-to-regexp": "^6.3.0"
|
|
39
|
+
"path-to-regexp": "^6.3.0",
|
|
40
|
+
"zod": "3.25.27"
|
|
40
41
|
}
|
|
41
42
|
}
|