diff --git a/dist/gateway.d.ts b/dist/gateway.d.ts index 6fc0ee9..51bcdd5 100644 --- a/dist/gateway.d.ts +++ b/dist/gateway.d.ts @@ -32,6 +32,7 @@ type GatewayOptions = { }; declare function gateway(this: any, options: GatewayOptions): { exports: { + prepare: (json: any, ctx: any) => Promise; handler: (json: any, ctx: any) => Promise; parseJSON: (data: any) => any; }; diff --git a/dist/gateway.js b/dist/gateway.js index 152a55d..b9a7a3f 100644 --- a/dist/gateway.js +++ b/dist/gateway.js @@ -252,6 +252,7 @@ function gateway(options) { } return { exports: { + prepare, handler, parseJSON, } diff --git a/dist/gateway.js.map b/dist/gateway.js.map index 25b0c41..c32ad83 100644 --- a/dist/gateway.js.map +++ b/dist/gateway.js.map @@ -1 +1 @@ -{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../src/gateway.ts"],"names":[],"mappings":";AAAA,wDAAwD;;;;;AAGxD,oDAA2B;AAE3B,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,gBAAM,CAAC,KAAK,CAAA;AAuDnC,SAAS,OAAO,CAAY,OAAuB;IACjD,IAAI,MAAM,GAAQ,IAAI,CAAA;IACtB,MAAM,IAAI,GAAQ,MAAM,CAAC,IAAI,CAAA;IAC7B,MAAM,EAAE,GAAQ,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEhD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAA;IACjC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAA;IACjC,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;IACzC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAA;IAE5C,MAAM,YAAY,GAAG,IAAI,IAAI,OAAO,CAAC,KAAK,CAAA;IAE1C,IAAI,YAAY,EAAE,CAAC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D,SAAS,MAAM,CAAC,CAAM;IACpB,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAChB,IAAI,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACvB,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;QACb,CAAC;IACH,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAGD,mBAAmB;AACnB,OAAO,CAAC,QAAQ,GAAI;IAElB,4BAA4B;IAC5B,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAErB,+BAA+B;IAC/B,MAAM,EAAE,IAAI,CAAC;QAEX,sDAAsD;QACtD,IAAI,EAAE,KAAK;KACZ,CAAC;IAEF,qCAAqC;IACrC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC;IAEf,wEAAwE;IACxE,OAAO,EAAE;QAEP,oCAAoC;QACpC,MAAM,EAAE,KAAK;QAEb,uCAAuC;QACvC,sCAAsC;QACtC,GAAG,EAAE,CAAC,CAAC;KACR;IAED,KAAK,EAAE;QACL,yDAAyD;QACzD,OAAO,EAAE,KAAK;QAEd,yDAAyD;QACzD,OAAO,EAAE,KAAK;KACf;IAGD,wBAAwB;IACxB,KAAK,EAAE;QAEL,kEAAkE;QAClE,QAAQ,EAAE,KAAK;QAEf,kCAAkC;QAClC,GAAG,EAAE,KAAK;KACX;CACiB,CAAA;AAQpB,kBAAe,OAAO,CAAA;AAEtB,IAAI,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IACpC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAA;AAC1B,CAAC"} \ No newline at end of file diff --git a/package.json b/package.json index 1539c4b..df406c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@seneca/gateway", - "version": "1.0.0", + "version": "1.1.0", "main": "dist/gateway.js", "type": "commonjs", "types": "dist/gateway.d.ts", @@ -39,11 +39,11 @@ "devDependencies": { "@seneca/maintain": "^0.1.0", "@types/jest": "^29.5.11", - "@types/node": "^20.10.6", + "@types/node": "^20.11.5", "esbuild": "^0.19.11", "esbuild-jest": "^0.5.0", "jest": "^29.7.0", - "seneca-msg-test": "^3.4.0", + "seneca-msg-test": "^4.1.0", "typescript": "^5.3.3" }, "peerDependencies": { diff --git a/src/gateway.ts b/src/gateway.ts index 281aa50..747a831 100644 --- a/src/gateway.ts +++ b/src/gateway.ts @@ -369,6 +369,7 @@ function gateway(this: any, options: GatewayOptions) { return { exports: { + prepare, handler, parseJSON, }