@symbo.ls/create 2.11.293 → 2.11.295

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.
@@ -24901,11 +24901,12 @@ var preparePages = (options) => {
24901
24901
  const pages = {};
24902
24902
  Object.keys(options.pages).filter((v) => !v.startsWith("/")).forEach((v) => {
24903
24903
  if (v === "main")
24904
- pages["/"] = pages.main;
24904
+ pages["/"] = options.pages.main;
24905
24905
  else {
24906
- pages["/" + v] = pages[v];
24906
+ pages["/" + v] = options.pages[v];
24907
24907
  }
24908
24908
  });
24909
+ options.pages = pages;
24909
24910
  return pages;
24910
24911
  };
24911
24912
  var prepareDocument = (options) => {
@@ -83,11 +83,12 @@ const preparePages = (options) => {
83
83
  const pages = {};
84
84
  Object.keys(options.pages).filter((v) => !v.startsWith("/")).forEach((v) => {
85
85
  if (v === "main")
86
- pages["/"] = pages.main;
86
+ pages["/"] = options.pages.main;
87
87
  else {
88
- pages["/" + v] = pages[v];
88
+ pages["/" + v] = options.pages[v];
89
89
  }
90
90
  });
91
+ options.pages = pages;
91
92
  return pages;
92
93
  };
93
94
  const prepareDocument = (options) => {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.293",
3
+ "version": "2.11.295",
4
4
  "license": "MIT",
5
- "gitHead": "e8a23b9dcf271e1f863c1f73e7addeeff2f39c9d",
5
+ "gitHead": "87e4245ebd9ff43dd23e9939d8c16c40fe0a334c",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
package/src/prepare.js CHANGED
@@ -52,11 +52,12 @@ export const preparePages = options => {
52
52
  Object.keys(options.pages)
53
53
  .filter(v => !v.startsWith('/'))
54
54
  .forEach(v => {
55
- if (v === 'main') pages['/'] = pages.main
55
+ if (v === 'main') pages['/'] = options.pages.main
56
56
  else {
57
- pages['/' + v] = pages[v]
57
+ pages['/' + v] = options.pages[v]
58
58
  }
59
59
  })
60
+ options.pages = pages
60
61
  return pages
61
62
  }
62
63