@umami/shiso 0.35.0 → 0.36.0

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.js CHANGED
@@ -292,7 +292,6 @@ function parseContent(content, config = {}) {
292
292
  });
293
293
  }
294
294
  });
295
- console.log({ content, tabs, navigation, section, next, prev });
296
295
  return { ...content, tabs, navigation, section, next, prev };
297
296
  }
298
297
  function Docs({ content, config }) {
package/dist/index.mjs CHANGED
@@ -267,7 +267,6 @@ function parseContent(content, config = {}) {
267
267
  });
268
268
  }
269
269
  });
270
- console.log({ content, tabs, navigation, section, next, prev });
271
270
  return { ...content, tabs, navigation, section, next, prev };
272
271
  }
273
272
  function Docs({ content, config }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "0.35.0",
3
+ "version": "0.36.0",
4
4
  "description": "A content layer for Next.js",
5
5
  "homepage": "https://umami.is/shiso",
6
6
  "repository": {
package/server/index.d.ts CHANGED
@@ -14,7 +14,7 @@ declare module '@umami/shiso/server' {
14
14
  }>;
15
15
  }) => Promise<{
16
16
  title: {
17
- absolute: string;
17
+ absolute: any;
18
18
  default: any;
19
19
  };
20
20
  }>;
package/server/index.js CHANGED
@@ -106,20 +106,20 @@ export function next(type, config) {
106
106
  function generateMetadata(_a) {
107
107
  return __awaiter(this, arguments, void 0, function (_b) {
108
108
  var name, file, content;
109
- var _c, _d, _e;
109
+ var _c, _d, _e, _f;
110
110
  var params = _b.params;
111
- return __generator(this, function (_f) {
112
- switch (_f.label) {
111
+ return __generator(this, function (_g) {
112
+ switch (_g.label) {
113
113
  case 0: return [4 /*yield*/, params];
114
114
  case 1:
115
- name = ((_d = (_c = (_f.sent())) === null || _c === void 0 ? void 0 : _c.slug) === null || _d === void 0 ? void 0 : _d.join('/')) || 'index';
115
+ name = ((_d = (_c = (_g.sent())) === null || _c === void 0 ? void 0 : _c.slug) === null || _d === void 0 ? void 0 : _d.join('/')) || 'index';
116
116
  file = path.join(dir, "".concat(name, ".mdx"));
117
117
  return [4 /*yield*/, getContent(file)];
118
118
  case 2:
119
- content = _f.sent();
119
+ content = _g.sent();
120
120
  return [2 /*return*/, {
121
121
  title: {
122
- absolute: "".concat((_e = content === null || content === void 0 ? void 0 : content.meta) === null || _e === void 0 ? void 0 : _e.title, " \u2013 ").concat(title),
122
+ absolute: ((_e = content === null || content === void 0 ? void 0 : content.meta) === null || _e === void 0 ? void 0 : _e.title) ? "".concat((_f = content === null || content === void 0 ? void 0 : content.meta) === null || _f === void 0 ? void 0 : _f.title, " \u2013 ").concat(title) : title,
123
123
  default: title,
124
124
  },
125
125
  }];