@zuplo/runtime 6.50.14 → 6.50.16

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.
@@ -22,4 +22,4 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{a as n}from"../chunk-PPV7V43C.js";function a(s={request:new Request("https://api.example.com")}){let e=[];function o(t){e.push(Promise.resolve(t))}return n(o,"waitUntil"),{context:new i({event:{waitUntil:o},route:s.route}),invokeResponse:n(async()=>{await Promise.all(e)},"invokeResponse")}}n(a,"createMockContext");var l={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:n(()=>({}),"raw")},i=class extends EventTarget{static{n(this,"MockZuploContext")}#e;requestId;log;route;custom;incomingRequestProperties;constructor({event:e,route:o=l}){super(),this.requestId=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},this.#e=e}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,r){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,r){let u=n(t=>{try{typeof o=="function"?o(t):o.handleEvent(t)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,u,r)}};export{i as MockZuploContext,a as createMockContext};
25
+ import{a as n}from"../chunk-PPV7V43C.js";function p(s={request:new Request("https://api.example.com")}){let e=[];function o(t){e.push(Promise.resolve(t))}return n(o,"waitUntil"),{context:new i({event:{waitUntil:o},route:s.route}),invokeResponse:n(async()=>{await Promise.all(e)},"invokeResponse")}}n(p,"createMockContext");var l={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:n(()=>({}),"raw")},i=class extends EventTarget{static{n(this,"MockZuploContext")}#e;requestId;log;route;custom;incomingRequestProperties;constructor({event:e,route:o=l}){super(),this.requestId=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.#e=e}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,r){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,r){let u=n(t=>{try{typeof o=="function"?o(t):o.handleEvent(t)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,u,r)}};export{i as MockZuploContext,p as createMockContext};
@@ -3,7 +3,7 @@ import type { ValidateFunction as ValidateFunction_2 } from 'ajv';
3
3
 
4
4
  export declare interface AkamaiApiSecurityLoggerEntry {
5
5
  ip: {
6
- v?: string;
6
+ v: string;
7
7
  src: string;
8
8
  dst: string;
9
9
  };
@@ -3096,6 +3096,10 @@ declare interface IncomingRequestProperties {
3096
3096
  * Timezone of the incoming request, for example, "America/Chicago".
3097
3097
  */
3098
3098
  readonly timezone: string | undefined;
3099
+ /**
3100
+ * If available, the HTTP protocol of the incoming request, for example, "HTTP/1.1".
3101
+ */
3102
+ readonly httpProtocol: string | undefined;
3099
3103
  }
3100
3104
 
3101
3105
  /** ISO 3166-1 Alpha-2 codes */
@@ -445,6 +445,10 @@ declare interface IncomingRequestProperties {
445
445
  * Timezone of the incoming request, for example, "America/Chicago".
446
446
  */
447
447
  readonly timezone: string | undefined;
448
+ /**
449
+ * If available, the HTTP protocol of the incoming request, for example, "HTTP/1.1".
450
+ */
451
+ readonly httpProtocol: string | undefined;
448
452
  }
449
453
 
450
454
  /** ISO 3166-1 Alpha-2 codes */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.50.14",
4
+ "version": "6.50.16",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {