@hellocoop/express 1.14.0 → 1.14.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAsB,MAAM,SAAS,CAAA;AAEvE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAIH,iBAAiB,EACjB,kBAAkB,EAKlB,MAAM,EAET,MAAM,mBAAmB,CAAA;AAG1B,KAAK,kBAAkB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,QAAQ,CAAA;CAChB,CAAA;AAED,KAAK,mBAAmB,GAAG;IACvB,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,QAAQ,CAAA;CAChB,CAAA;AAED,KAAK,gBAAgB,GAAG,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAClF,KAAK,iBAAiB,GAAG,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAErF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,YAAY,CAAC,GAAG;IACjE,SAAS,EAAE,gBAAgB,CAAC;IAC5B,UAAU,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAuDF,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,OAAO,CAAC;QAChB,UAAU,OAAO;YACf,IAAI,CAAC,EAAE,IAAI,CAAC;YACZ,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1B;QACD,UAAU,QAAQ;YAChB,SAAS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F;CACF;AAmBH,eAAO,MAAM,IAAI,WAAsB,MAAM,KAAG,MAiC/C,CAAA"}
package/dist/auth.js CHANGED
@@ -87,13 +87,12 @@ const auth = function (config) {
87
87
  };
88
88
  next();
89
89
  });
90
- r.use((0, express_1.text)()); // for parsing text/plain
91
- r.post(router_1.configuration.apiRoute, async (req, res) => {
90
+ r.post(router_1.configuration.apiRoute, (0, express_1.text)(), async (req, res) => {
92
91
  const helloReq = convertToHelloRequest(req, res);
93
92
  const helloRes = convertToHelloResponse(res);
94
93
  await (0, router_1.router)(helloReq, helloRes);
95
94
  });
96
- r.get(router_1.configuration.apiRoute, async (req, res) => {
95
+ r.get(router_1.configuration.apiRoute, (0, express_1.text)(), async (req, res) => {
97
96
  const helloReq = convertToHelloRequest(req, res);
98
97
  const helloRes = convertToHelloResponse(res);
99
98
  await (0, router_1.router)(helloReq, helloRes);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/express",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "Express SDK for Hellō https://hello.dev",
5
5
  "repository": {
6
6
  "type": "git",