@zuplo/runtime 5.2424.0 → 5.2427.0
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-VLX2J7HF.js → chunk-BGTPRWGR.js} +2 -2
- package/out/esm/chunk-HQYDEVIA.js +36 -0
- package/out/esm/{chunk-NFVGBDMC.js → chunk-NZXOB6F5.js} +2 -2
- package/out/esm/{chunk-PPV7V43C.js → chunk-OQPRFCK5.js} +2 -2
- package/out/esm/index.js +17 -17
- package/out/esm/internal/index.js +1 -1
- package/out/esm/mocks/index.js +1 -1
- package/out/esm/policies/axiomatics-authz-inbound/exports.js +1 -1
- package/out/types/index.d.ts +1 -1
- package/package.json +6 -13
- package/out/cjs/index.js +0 -76
- package/out/cjs/index.js.LEGAL.txt +0 -24
- package/out/cjs/internal/index.js +0 -26
- package/out/cjs/mocks/index.js +0 -26
- package/out/cjs/policies/axiomatics-authz-inbound/exports.js +0 -36
- package/out/esm/chunk-OHZWUPN3.js +0 -36
- package/out/esm/chunk-OHZWUPN3.js.LEGAL.txt +0 -10
- package/out/esm/chunk-PPV7V43C.js.LEGAL.txt +0 -0
- package/out/esm/chunk-VLX2J7HF.js.LEGAL.txt +0 -0
- /package/out/{cjs/internal/index.js.LEGAL.txt → esm/chunk-BGTPRWGR.js.LEGAL.txt} +0 -0
- /package/out/{cjs/policies/axiomatics-authz-inbound/exports.js.LEGAL.txt → esm/chunk-HQYDEVIA.js.LEGAL.txt} +0 -0
- /package/out/{cjs/mocks/index.js.LEGAL.txt → esm/chunk-NZXOB6F5.js.LEGAL.txt} +0 -0
- /package/out/esm/{chunk-NFVGBDMC.js.LEGAL.txt → chunk-OQPRFCK5.js.LEGAL.txt} +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 a,f as o,g as r,h as i,i as n}from"../chunk-
|
|
25
|
+
import{b as e,c as t,e as a,f as o,g as r,h as i,i as n}from"../chunk-BGTPRWGR.js";import"../chunk-NZXOB6F5.js";import"../chunk-OQPRFCK5.js";export{o as getIdForParameterSchema,i as getIdForRefSchema,r as getIdForRequestBodySchema,a as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
|
|
26
26
|
/*! For license information please see index.js.LEGAL.txt */
|
package/out/esm/mocks/index.js
CHANGED
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{a as n}from"../chunk-
|
|
25
|
+
import{a as n}from"../chunk-OQPRFCK5.js";function l(i={request:new Request("https://api.example.com")}){let e=[];function o(t){e.push(Promise.resolve(t))}return n(o,"waitUntil"),{context:new r({event:{waitUntil:o},route:i.route}),invokeResponse:n(async()=>{await Promise.all(e)},"invokeResponse")}}n(l,"createMockContext");var a={path:"/",methods:["GET"],handler:{module:{},export:"default"},version:"none",raw:n(()=>({}),"raw")},r=class extends EventTarget{static{n(this,"MockZuploContext")}#e;requestId;log;route;custom;incomingRequestProperties;constructor({event:e,route:o=a}){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")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,s){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,s)}};export{r as MockZuploContext,l as createMockContext};
|
|
26
26
|
/*! For license information please see index.js.LEGAL.txt */
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
* DEALINGS IN THE SOFTWARE.
|
|
23
23
|
*--------------------------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
-
import{g as o}from"../../chunk-
|
|
25
|
+
import{g as o}from"../../chunk-HQYDEVIA.js";import"../../chunk-NZXOB6F5.js";import"../../chunk-OQPRFCK5.js";export{o as PdpService};
|
|
26
26
|
/*! For license information please see exports.js.LEGAL.txt */
|
package/out/types/index.d.ts
CHANGED
|
@@ -1085,7 +1085,7 @@ export declare class ConfigurationError extends RuntimeError {
|
|
|
1085
1085
|
* Then use the class in another module.
|
|
1086
1086
|
*
|
|
1087
1087
|
* ```
|
|
1088
|
-
* import { myData } from "./my-module";
|
|
1088
|
+
* import { myData } from "./my-module.js";
|
|
1089
1089
|
*
|
|
1090
1090
|
*
|
|
1091
1091
|
* const data = myData.get(context)
|
package/package.json
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/runtime",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "5.2427.0",
|
|
4
5
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
6
|
"author": "Zuplo, Inc.",
|
|
6
7
|
"exports": {
|
|
7
8
|
".": {
|
|
8
|
-
"
|
|
9
|
-
"worker": "./out/esm/index.js",
|
|
9
|
+
"import": "./out/esm/index.js",
|
|
10
10
|
"types": "./out/types/index.d.ts"
|
|
11
11
|
},
|
|
12
12
|
"./mocks": {
|
|
13
|
-
"
|
|
14
|
-
"worker": "./out/esm/mocks/index.js",
|
|
13
|
+
"import": "./out/esm/mocks/index.js",
|
|
15
14
|
"types": "./out/types/mocks/index.d.ts"
|
|
16
15
|
},
|
|
17
|
-
"./internal": {
|
|
18
|
-
"node": "./out/cjs/internal/index.js",
|
|
19
|
-
"worker": "./out/esm/internal/index.js",
|
|
20
|
-
"types": "./out/types/internal/index.d.ts"
|
|
21
|
-
},
|
|
22
16
|
"./policies/axiomatics-authz-inbound": {
|
|
23
|
-
"
|
|
24
|
-
"worker": "./out/esm/policies/axiomatics-authz-inbound/exports.js",
|
|
17
|
+
"import": "./out/esm/policies/axiomatics-authz-inbound/exports.js",
|
|
25
18
|
"types": "./out/types/policies/axiomatics-authz-inbound/exports.d.ts"
|
|
26
19
|
}
|
|
27
20
|
},
|
|
@@ -39,7 +32,7 @@
|
|
|
39
32
|
"LICENSE.txt"
|
|
40
33
|
],
|
|
41
34
|
"devDependencies": {
|
|
42
|
-
"@types/node": "^18.
|
|
35
|
+
"@types/node": "^18.14.0",
|
|
43
36
|
"typescript": "^5.5.4"
|
|
44
37
|
},
|
|
45
38
|
"dependencies": {
|