@hellocoop/nextjs 3.2.1 → 3.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAe,MAAM,wBAAwB,CAAA;AAS1D,eAAO,MAAM,IAAI,QAAsB,OAAO,CAAC,IAAI,CAQlD,CAAA"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAe,MAAM,wBAAwB,CAAA;AAc1D,eAAO,MAAM,IAAI,QAAsB,OAAO,CAAC,IAAI,CAQlD,CAAA"}
package/dist/auth.js CHANGED
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.auth = void 0;
4
7
  const definitions_1 = require("@hellocoop/definitions");
5
8
  const api_1 = require("@hellocoop/api");
6
9
  const headers_1 = require("next/headers");
7
10
  const helper_server_1 = require("@hellocoop/helper-server");
11
+ // set name and version to provide in metadata
12
+ const package_json_1 = __importDefault(require("../package.json"));
13
+ const { name, version } = package_json_1.default;
14
+ api_1.PackageMetadata.setMetadata(name, version);
8
15
  // TODO cache decryption
9
16
  // import { unstable_cache } from 'next/cache';
10
17
  // https://nextjs.org/docs/app/api-reference/functions/unstable_cache
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/nextjs",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Next.js SDK for Hellō https://hello.dev",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,12 +61,12 @@
61
61
  "node": ">=18"
62
62
  },
63
63
  "dependencies": {
64
- "@hellocoop/api": "^2.1.1",
65
- "@hellocoop/helper-server": "^2.1.3",
64
+ "@hellocoop/api": "^2.2.1",
65
+ "@hellocoop/helper-server": "^2.2.1",
66
66
  "@hellocoop/react": "^3.1.9",
67
67
  "cookie": "^1.0.1",
68
68
  "cors": "^2.8.5",
69
69
  "swr": "^2.2.2"
70
70
  },
71
- "gitHead": "313660c6d341d486fb79b45c741ce8fda5acbb45"
71
+ "gitHead": "3d2e3dfbe982218f8abfce50126b2463fceb5831"
72
72
  }