@zuplo/cli 7.15.9 → 7.15.11
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/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts +11 -1
- package/node_modules/@posthog/core/dist/posthog-core-stateless.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core-stateless.js +9 -2
- package/node_modules/@posthog/core/dist/posthog-core-stateless.mjs +9 -2
- package/node_modules/@posthog/core/package.json +2 -2
- package/node_modules/@posthog/core/src/posthog-core-stateless.ts +20 -2
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +25 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +26 -0
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-KC64BFKL.js → chunk-24DRL32G.js} +102 -102
- package/node_modules/@zuplo/runtime/out/esm/chunk-24DRL32G.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +1 -0
- package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +1 -0
- package/node_modules/@zuplo/runtime/out/types/mcp/messages/index.d.ts +1 -0
- package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +1 -0
- package/node_modules/@zuplo/runtime/out/types/mocks/index.d.ts +1 -0
- package/node_modules/@zuplo/runtime/out/types/sdks/aws/index.d.ts +1 -0
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +11 -11
- package/node_modules/@zuplo/runtime/out/esm/chunk-KC64BFKL.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-KC64BFKL.js.LEGAL.txt → chunk-24DRL32G.js.LEGAL.txt} +0 -0
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* See https://zuplo.com/legal/eula for more information.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import{P as p,V as c,Z as u}from"../chunk-
|
|
12
|
+
import{P as p,V as c,Z as u}from"../chunk-24DRL32G.js";import"../chunk-BH4DKEES.js";import{a as d}from"../chunk-T2WKOG7J.js";import"../chunk-R6UNMRUU.js";import"../chunk-AJ3MMWJS.js";import"../chunk-5JGLAPFA.js";import{Y as i}from"../chunk-G42UYZ6V.js";import{a as o}from"../chunk-VXPFMOL5.js";function w(l={request:new Request("https://api.example.com")}){let e=[];function t(s){e.push(Promise.resolve(s))}return o(t,"waitUntil"),{context:new a({event:{waitUntil:t},route:l.route,originalRequest:l.request}),invokeResponse:o(async()=>{await Promise.all(e)},"invokeResponse")}}o(w,"createMockContext");var g={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:o(()=>({}),"raw")},a=class extends EventTarget{static{o(this,"MockZuploContext")}#e;#t;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;analyticsContext;constructor({event:e,route:t=g,parentContext:n,originalRequest:r}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:i.console.info,log:i.console.log,debug:i.console.debug,warn:i.console.warn,error:i.console.error,setLogProperties:o(()=>{},"setLogProperties")},this.custom={},this.route=t,this.incomingRequestProperties={ip:"203.0.113.7",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,clientCertFingerprintSha256:void 0,clientCertNotBefore:void 0,clientCertNotAfter:void 0,clientCertIssuerDn:void 0,clientCertSubjectDn:void 0},this.parentContext=n,this.#e=e,this.#t=r,this.analyticsContext=new c(this.requestId)}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,t){throw new Error("Not implemented")}invokeOutboundPolicy(e,t,n){throw new Error("Not implemented")}invokeRoute(e,t){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addPreRequestHandler(e,t){let n;try{n=u.getContextExtensions(this)}catch{n=u.initialize(this,new d(this.#t??new Request("https://api.example.com")))}n.preRequestPhase??="active",p(this,n,e,t)}get preRequestHandlers(){let e;try{e=u.getContextExtensions(this)}catch{return[]}return(e.preRequestState?.entries??[]).map(t=>({policyName:t.policyName,name:t.name}))}addEventListener(e,t,n){let r=o(s=>{try{typeof t=="function"?t(s):t.handleEvent(s)}catch(m){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),m}},"wrapped");super.addEventListener(e,r,n)}};export{a as MockZuploContext,w as createMockContext};
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -6097,6 +6097,7 @@ declare const EventType: {
|
|
|
6097
6097
|
readonly GRAPHQL_OPERATION: "graphql_operation";
|
|
6098
6098
|
readonly CACHE_OPERATION: "cache_operation";
|
|
6099
6099
|
readonly HANDLER_EXECUTION: "handler_execution";
|
|
6100
|
+
readonly RATE_LIMIT_SERVICE_CALL: "rate_limit_service_call";
|
|
6100
6101
|
};
|
|
6101
6102
|
|
|
6102
6103
|
declare type EventType = (typeof EventType)[keyof typeof EventType];
|
|
@@ -623,6 +623,7 @@ declare const EventType: {
|
|
|
623
623
|
readonly GRAPHQL_OPERATION: "graphql_operation";
|
|
624
624
|
readonly CACHE_OPERATION: "cache_operation";
|
|
625
625
|
readonly HANDLER_EXECUTION: "handler_execution";
|
|
626
|
+
readonly RATE_LIMIT_SERVICE_CALL: "rate_limit_service_call";
|
|
626
627
|
};
|
|
627
628
|
|
|
628
629
|
declare type EventType = (typeof EventType)[keyof typeof EventType];
|
|
@@ -139,6 +139,7 @@ declare const EventType: {
|
|
|
139
139
|
readonly GRAPHQL_OPERATION: "graphql_operation";
|
|
140
140
|
readonly CACHE_OPERATION: "cache_operation";
|
|
141
141
|
readonly HANDLER_EXECUTION: "handler_execution";
|
|
142
|
+
readonly RATE_LIMIT_SERVICE_CALL: "rate_limit_service_call";
|
|
142
143
|
};
|
|
143
144
|
|
|
144
145
|
declare type EventType = (typeof EventType)[keyof typeof EventType];
|
|
@@ -199,6 +199,7 @@ declare const EventType: {
|
|
|
199
199
|
readonly GRAPHQL_OPERATION: "graphql_operation";
|
|
200
200
|
readonly CACHE_OPERATION: "cache_operation";
|
|
201
201
|
readonly HANDLER_EXECUTION: "handler_execution";
|
|
202
|
+
readonly RATE_LIMIT_SERVICE_CALL: "rate_limit_service_call";
|
|
202
203
|
};
|
|
203
204
|
|
|
204
205
|
declare type EventType = (typeof EventType)[keyof typeof EventType];
|
|
@@ -114,6 +114,7 @@ declare const EventType: {
|
|
|
114
114
|
readonly GRAPHQL_OPERATION: "graphql_operation";
|
|
115
115
|
readonly CACHE_OPERATION: "cache_operation";
|
|
116
116
|
readonly HANDLER_EXECUTION: "handler_execution";
|
|
117
|
+
readonly RATE_LIMIT_SERVICE_CALL: "rate_limit_service_call";
|
|
117
118
|
};
|
|
118
119
|
|
|
119
120
|
declare type EventType = (typeof EventType)[keyof typeof EventType];
|
|
@@ -358,6 +358,7 @@ declare const EventType: {
|
|
|
358
358
|
readonly GRAPHQL_OPERATION: "graphql_operation";
|
|
359
359
|
readonly CACHE_OPERATION: "cache_operation";
|
|
360
360
|
readonly HANDLER_EXECUTION: "handler_execution";
|
|
361
|
+
readonly RATE_LIMIT_SERVICE_CALL: "rate_limit_service_call";
|
|
361
362
|
};
|
|
362
363
|
|
|
363
364
|
declare type EventType = (typeof EventType)[keyof typeof EventType];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "7.15.
|
|
3
|
+
"version": "7.15.11",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@opentelemetry/api": "1.9.0",
|
|
33
33
|
"@opentelemetry/api-logs": "0.220.0",
|
|
34
34
|
"@swc/core": "1.10.18",
|
|
35
|
-
"@zuplo/core": "7.15.
|
|
35
|
+
"@zuplo/core": "7.15.11",
|
|
36
36
|
"@zuplo/editor": "1.0.39603386871",
|
|
37
|
-
"@zuplo/openapi-tools": "7.15.
|
|
38
|
-
"@zuplo/runtime": "7.15.
|
|
37
|
+
"@zuplo/openapi-tools": "7.15.11",
|
|
38
|
+
"@zuplo/runtime": "7.15.11",
|
|
39
39
|
"chalk": "5.4.1",
|
|
40
40
|
"chokidar": "3.5.3",
|
|
41
41
|
"cookie": "1.0.2",
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
"workerd": "1.20261002.1",
|
|
67
67
|
"yargs": "17.7.2",
|
|
68
68
|
"zod": "4.6.7",
|
|
69
|
-
"@zuplo/graphql": "7.15.
|
|
70
|
-
"@zuplo/otel": "7.15.
|
|
69
|
+
"@zuplo/graphql": "7.15.11",
|
|
70
|
+
"@zuplo/otel": "7.15.11"
|
|
71
71
|
},
|
|
72
72
|
"optionalDependencies": {
|
|
73
|
-
"@zuplo/lint-darwin-arm64": "7.15.
|
|
74
|
-
"@zuplo/lint-darwin-x64": "7.15.
|
|
75
|
-
"@zuplo/lint-linux-x64": "7.15.
|
|
76
|
-
"@zuplo/lint-linux-arm64": "7.15.
|
|
77
|
-
"@zuplo/lint-win32-x64": "7.15.
|
|
73
|
+
"@zuplo/lint-darwin-arm64": "7.15.11",
|
|
74
|
+
"@zuplo/lint-darwin-x64": "7.15.11",
|
|
75
|
+
"@zuplo/lint-linux-x64": "7.15.11",
|
|
76
|
+
"@zuplo/lint-linux-arm64": "7.15.11",
|
|
77
|
+
"@zuplo/lint-win32-x64": "7.15.11"
|
|
78
78
|
},
|
|
79
79
|
"bundleDependencies": [
|
|
80
80
|
"@inquirer/prompts",
|