@uniformdev/context-next 18.18.1-alpha.12 → 18.19.1-alpha.7

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/dist/index.esm.js CHANGED
@@ -7,6 +7,7 @@ function enableNextSsr(ctx, context) {
7
7
  const { req } = ctx;
8
8
  if (req) {
9
9
  context.update({
10
+ // note: https and unknown here are ok, because nothing is matching on host or protocol in the tracker
10
11
  url: new URL(`https://${(_a = req.headers.host) != null ? _a : "unknown"}${req.url}`),
11
12
  cookies: req.headers.cookie ? parse(req.headers.cookie) : void 0
12
13
  });
package/dist/index.js CHANGED
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  return to;
19
19
  };
20
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
25
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
26
  mod
23
27
  ));
@@ -40,6 +44,7 @@ function enableNextSsr(ctx, context) {
40
44
  const { req } = ctx;
41
45
  if (req) {
42
46
  context.update({
47
+ // note: https and unknown here are ok, because nothing is matching on host or protocol in the tracker
43
48
  url: new URL(`https://${(_a = req.headers.host) != null ? _a : "unknown"}${req.url}`),
44
49
  cookies: req.headers.cookie ? (0, import_cookie.parse)(req.headers.cookie) : void 0
45
50
  });
package/dist/index.mjs CHANGED
@@ -7,6 +7,7 @@ function enableNextSsr(ctx, context) {
7
7
  const { req } = ctx;
8
8
  if (req) {
9
9
  context.update({
10
+ // note: https and unknown here are ok, because nothing is matching on host or protocol in the tracker
10
11
  url: new URL(`https://${(_a = req.headers.host) != null ? _a : "unknown"}${req.url}`),
11
12
  cookies: req.headers.cookie ? parse(req.headers.cookie) : void 0
12
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-next",
3
- "version": "18.18.1-alpha.12+e9f4d7eda",
3
+ "version": "18.19.1-alpha.7+b4918b2f5",
4
4
  "description": "Uniform Context Next.js integration package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -20,17 +20,18 @@
20
20
  "clean": "rimraf dist",
21
21
  "test": "jest --maxWorkers=1 --passWithNoTests",
22
22
  "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
23
- "format": "prettier --write \"src/**/*.{js,ts,tsx}\""
23
+ "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
24
+ "document": "api-extractor run --local"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@types/cookie": "0.5.1",
27
28
  "@types/react": "18.0.28",
28
- "next": "13.1.6",
29
+ "next": "13.2.1",
29
30
  "react": "18.2.0",
30
31
  "react-dom": "18.2.0"
31
32
  },
32
33
  "dependencies": {
33
- "@uniformdev/context": "18.18.1-alpha.12+e9f4d7eda",
34
+ "@uniformdev/context": "18.19.1-alpha.7+b4918b2f5",
34
35
  "cookie": "^0.5.0"
35
36
  },
36
37
  "peerDependencies": {
@@ -44,5 +45,5 @@
44
45
  "publishConfig": {
45
46
  "access": "public"
46
47
  },
47
- "gitHead": "e9f4d7eda7b1b425205d0be4ec736ebd5dbaed4d"
48
+ "gitHead": "b4918b2f547ebb0b889528bbbacbc930cbb66694"
48
49
  }