@zuplo/runtime 6.65.4 → 6.65.6
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-HNEQMV5Z.js → chunk-RQBSMXP2.js} +2 -2
- package/out/esm/{chunk-FU34FDGK.js → chunk-THXYBHW6.js} +6 -6
- package/out/esm/{chunk-FU34FDGK.js.map → chunk-THXYBHW6.js.map} +1 -1
- package/out/esm/{chunk-6ZERWI3T.js → chunk-WKSWUPSN.js} +2 -2
- package/out/esm/index.js +6 -6
- 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 +18 -2
- package/out/types/internal/index.d.ts +15 -1
- package/out/types/mocks/index.d.ts +3 -1
- package/package.json +1 -1
- /package/out/esm/{chunk-HNEQMV5Z.js.map → chunk-RQBSMXP2.js.map} +0 -0
- /package/out/esm/{chunk-FU34FDGK.js.LEGAL.txt → chunk-THXYBHW6.js.LEGAL.txt} +0 -0
- /package/out/esm/{chunk-6ZERWI3T.js.map → chunk-WKSWUPSN.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-WKSWUPSN.js";import"../chunk-THXYBHW6.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 l}from"../chunk-
|
|
25
|
+
import{b as l}from"../chunk-RQBSMXP2.js";import{Z as n,a as t}from"../chunk-THXYBHW6.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,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},this.parentContext=r,this.#e=e,this.analyticsContext=new l(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 p=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,p,r)}};export{s as MockZuploContext,g as createMockContext};
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/out/types/index.d.ts
CHANGED
|
@@ -1989,7 +1989,8 @@ declare type CompatibilityDate =
|
|
|
1989
1989
|
| "2024-01-15"
|
|
1990
1990
|
| "2024-03-14"
|
|
1991
1991
|
| "2024-09-02"
|
|
1992
|
-
| "2025-02-06"
|
|
1992
|
+
| "2025-02-06"
|
|
1993
|
+
| "2026-03-01";
|
|
1993
1994
|
|
|
1994
1995
|
declare interface CompatibilityFlags {
|
|
1995
1996
|
/**
|
|
@@ -2036,6 +2037,19 @@ declare interface CompatibilityFlags {
|
|
|
2036
2037
|
* @compatibilityDate 2025-02-06
|
|
2037
2038
|
*/
|
|
2038
2039
|
useForwardRedirectsPropOnUrlForwardHandler: boolean;
|
|
2040
|
+
/**
|
|
2041
|
+
* Whether response sending hooks should chain properly, where each hook
|
|
2042
|
+
* receives the response from the previous hook instead of the original response.
|
|
2043
|
+
*
|
|
2044
|
+
* Before this flag: All hooks received the original response, so only the last
|
|
2045
|
+
* hook's output was returned.
|
|
2046
|
+
*
|
|
2047
|
+
* After this flag: Hooks are chained properly, each receiving the previous
|
|
2048
|
+
* hook's response.
|
|
2049
|
+
*
|
|
2050
|
+
* @compatibilityDate 2026-03-01
|
|
2051
|
+
*/
|
|
2052
|
+
chainResponseSendingHooks: boolean;
|
|
2039
2053
|
}
|
|
2040
2054
|
|
|
2041
2055
|
/**
|
|
@@ -5122,7 +5136,9 @@ export declare interface Logger extends SystemLogger {
|
|
|
5122
5136
|
* }
|
|
5123
5137
|
* ```
|
|
5124
5138
|
*/
|
|
5125
|
-
setLogProperties(
|
|
5139
|
+
setLogProperties?(
|
|
5140
|
+
properties: Record<string, string | number | boolean>
|
|
5141
|
+
): void;
|
|
5126
5142
|
}
|
|
5127
5143
|
|
|
5128
5144
|
/* Excluded from this release type: LoggingContext */
|
|
@@ -56,7 +56,8 @@ declare type CompatibilityDate =
|
|
|
56
56
|
| "2024-01-15"
|
|
57
57
|
| "2024-03-14"
|
|
58
58
|
| "2024-09-02"
|
|
59
|
-
| "2025-02-06"
|
|
59
|
+
| "2025-02-06"
|
|
60
|
+
| "2026-03-01";
|
|
60
61
|
|
|
61
62
|
declare interface CompatibilityFlags {
|
|
62
63
|
/**
|
|
@@ -103,6 +104,19 @@ declare interface CompatibilityFlags {
|
|
|
103
104
|
* @compatibilityDate 2025-02-06
|
|
104
105
|
*/
|
|
105
106
|
useForwardRedirectsPropOnUrlForwardHandler: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Whether response sending hooks should chain properly, where each hook
|
|
109
|
+
* receives the response from the previous hook instead of the original response.
|
|
110
|
+
*
|
|
111
|
+
* Before this flag: All hooks received the original response, so only the last
|
|
112
|
+
* hook's output was returned.
|
|
113
|
+
*
|
|
114
|
+
* After this flag: Hooks are chained properly, each receiving the previous
|
|
115
|
+
* hook's response.
|
|
116
|
+
*
|
|
117
|
+
* @compatibilityDate 2026-03-01
|
|
118
|
+
*/
|
|
119
|
+
chainResponseSendingHooks: boolean;
|
|
106
120
|
}
|
|
107
121
|
|
|
108
122
|
/**
|
|
@@ -823,7 +823,9 @@ declare interface Logger extends BaseLogger {
|
|
|
823
823
|
* }
|
|
824
824
|
* ```
|
|
825
825
|
*/
|
|
826
|
-
setLogProperties(
|
|
826
|
+
setLogProperties?(
|
|
827
|
+
properties: Record<string, string | number | boolean>
|
|
828
|
+
): void;
|
|
827
829
|
}
|
|
828
830
|
|
|
829
831
|
/**
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|