elegance-js 2.1.5 → 2.1.6

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.
@@ -1096,7 +1096,7 @@ var generateLayout = async (DIST_DIR2, filePath, directory, childIndicator, gene
1096
1096
  } catch (e) {
1097
1097
  throw new Error(`Error in Page: ${directory === "" ? "/" : directory}layout.ts - ${e}`);
1098
1098
  }
1099
- LAYOUT_MAP2.set(directory === "" ? "/" : directory, {
1099
+ LAYOUT_MAP2.set(directory === "" ? "/" : `/${directory}`, {
1100
1100
  isDynamic: isDynamicLayout,
1101
1101
  filePath
1102
1102
  });
@@ -1311,7 +1311,7 @@ var buildPage = async (DIST_DIR2, directory, filePath, name) => {
1311
1311
  } catch (e) {
1312
1312
  throw new Error(`Error in Page: ${directory}/${name}.ts - ${e}`);
1313
1313
  }
1314
- PAGE_MAP.set(directory === "" ? "/" : directory, {
1314
+ PAGE_MAP.set(directory === "" ? "/" : `/${directory}`, {
1315
1315
  isDynamic: isDynamicPage,
1316
1316
  filePath
1317
1317
  });
@@ -729,7 +729,7 @@ var generateLayout = async (DIST_DIR2, filePath, directory, childIndicator, gene
729
729
  } catch (e) {
730
730
  throw new Error(`Error in Page: ${directory === "" ? "/" : directory}layout.ts - ${e}`);
731
731
  }
732
- LAYOUT_MAP.set(directory === "" ? "/" : directory, {
732
+ LAYOUT_MAP.set(directory === "" ? "/" : `/${directory}`, {
733
733
  isDynamic: isDynamicLayout,
734
734
  filePath
735
735
  });
@@ -944,7 +944,7 @@ var buildPage = async (DIST_DIR2, directory, filePath, name) => {
944
944
  } catch (e) {
945
945
  throw new Error(`Error in Page: ${directory}/${name}.ts - ${e}`);
946
946
  }
947
- PAGE_MAP.set(directory === "" ? "/" : directory, {
947
+ PAGE_MAP.set(directory === "" ? "/" : `/${directory}`, {
948
948
  isDynamic: isDynamicPage,
949
949
  filePath
950
950
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "bin": {