@hellocoop/nextjs 2.11.1 → 2.11.3

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/README.md CHANGED
@@ -8,7 +8,7 @@ This [Next.js](https://nextjs.org/) package provides:
8
8
  - React components for buttons and logged in context
9
9
 
10
10
 
11
- The [Hellō Next.js Sample](https://github.com/hellocoop/hello-nextjs-sample) uses this package and [npx `@hellocoop/quickstart --nextjs`](https://www.hello.dev/docs/sdks/quickstart#nextjs) to be configured in seconds. Check it out deployed on [Vercel](https://hello-netjs-sample.vercel.app).
11
+ The [Hellō Next.js Sample](https://github.com/hellocoop/hello-nextjs-sample) uses this package and [npx `@hellocoop/quickstart --nextjs`](https://www.hello.dev/docs/sdks/quickstart#nextjs) to be configured in seconds. Check it out deployed on [Vercel](https://hello-nextjs-sample.vercel.app).
12
12
 
13
13
  See the [Next.js Quickstart documentation](https://www.hello.dev/docs/quickstarts/nextjs) for how to add Hellō to your Next.js app in minutes, and the [Next.js SDK documentation](https://www.hello.dev/docs/sdks/nextjs) for details.
14
14
 
package/dist/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAOH,MAAM,EACT,MAAM,mBAAmB,CAAA;AAE1B,OAAO,QAAQ,aAAa,CAAC;IACzB,UAAU,WAAW;QACjB,IAAI,CAAC,EAAE,IAAI,CAAC;KACf;CACJ;AA0DD,KAAK,eAAe,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;AAGnE,eAAO,MAAM,OAAO,WAAa,MAAM,KAAG,eA0BzC,CAAA"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAOH,MAAM,EACT,MAAM,mBAAmB,CAAA;AAE1B,OAAO,QAAQ,aAAa,CAAC;IACzB,UAAU,WAAW;QACjB,IAAI,CAAC,EAAE,IAAI,CAAC;KACf;CACJ;AA4DD,KAAK,eAAe,GAAG,CAAC,GAAG,EAAE,WAAW,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;AAGnE,eAAO,MAAM,OAAO,WAAa,MAAM,KAAG,eA0BzC,CAAA"}
package/dist/app.js CHANGED
@@ -26,6 +26,8 @@ const convertToHelloRequest = (req) => {
26
26
  path: req.nextUrl.pathname,
27
27
  getAuth: () => req.auth,
28
28
  setAuth: (auth) => { req.auth = auth; },
29
+ method: req.method,
30
+ body: req.body
29
31
  };
30
32
  };
31
33
  const convertToHelloResponse = (res) => {
@@ -1 +1 @@
1
- {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../src/pages.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,cAAc,EAEjB,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAQH,MAAM,EACT,MAAM,mBAAmB,CAAA;AAI1B,OAAO,QAAQ,MAAM,CAAC;IAClB,UAAU,cAAc;QACpB,IAAI,CAAC,EAAE,IAAI,CAAC;KACf;CACJ;AAoCD,eAAO,MAAM,kBAAkB,YAA2B,yBAAyB;UACnC,IAAI;GAanD,CAAA;AAED,eAAO,MAAM,OAAO,QAAyB,cAAc,KAAG,QAAQ,IAAI,CAMzE,CAAA;AAED,eAAO,MAAM,QAAQ,WAAsB,MAAM,KAAG,cAUnD,CAAA;AAED,eAAO,MAAM,SAAS,WAZqB,MAAM,KAAG,cAYnB,CAAA"}
1
+ {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../src/pages.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,cAAc,EAEjB,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAQH,MAAM,EACT,MAAM,mBAAmB,CAAA;AAI1B,OAAO,QAAQ,MAAM,CAAC;IAClB,UAAU,cAAc;QACpB,IAAI,CAAC,EAAE,IAAI,CAAC;KACf;CACJ;AAsCD,eAAO,MAAM,kBAAkB,YAA2B,yBAAyB;UACnC,IAAI;GAanD,CAAA;AAED,eAAO,MAAM,OAAO,QAAyB,cAAc,KAAG,QAAQ,IAAI,CAMzE,CAAA;AAED,eAAO,MAAM,QAAQ,WAAsB,MAAM,KAAG,cAUnD,CAAA;AAED,eAAO,MAAM,SAAS,WAZqB,MAAM,KAAG,cAYnB,CAAA"}
package/dist/pages.js CHANGED
@@ -13,6 +13,8 @@ const convertToHelloRequest = (req) => {
13
13
  path: req.url ? (_a = (0, url_1.parse)(req.url, true)) === null || _a === void 0 ? void 0 : _a.pathname : '/',
14
14
  getAuth: () => req.auth,
15
15
  setAuth: (auth) => { req.auth = auth; },
16
+ method: req.method,
17
+ body: req.body
16
18
  };
17
19
  };
18
20
  const convertToHelloResponse = (res) => {
@@ -33,7 +35,7 @@ const convertToHelloResponse = (res) => {
33
35
  return {
34
36
  send: (data) => res.send(data)
35
37
  };
36
- },
38
+ }
37
39
  };
38
40
  };
39
41
  const getServerSideProps = async function (context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/nextjs",
3
- "version": "2.11.1",
3
+ "version": "2.11.3",
4
4
  "description": "Next.js SDK for Hellō https://hello.dev",
5
5
  "repository": {
6
6
  "type": "git",