@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 +1 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +2 -0
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +3 -1
- package/package.json +1 -1
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-
|
|
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;
|
|
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
package/dist/pages.d.ts.map
CHANGED
|
@@ -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;
|
|
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) {
|