vike 0.4.165-commit-2598887 → 0.4.165-commit-b3cc3cb

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.
@@ -95,7 +95,7 @@ function injectBreakLines(htmlFragment, before, after) {
95
95
  const whitespaceExtra = paddingParent ? ' ' : '';
96
96
  const whitespace = `${paddingParent}${whitespaceExtra}`;
97
97
  const padding = `\n${whitespace}`;
98
- htmlFragment = htmlFragment.split(/<(?=[^\/])/).join(`${padding}<`);
98
+ htmlFragment = htmlFragment.replace(/<[^\/]/g, (match) => `${padding}${match}`);
99
99
  if (isBlankLine) {
100
100
  (0, utils_js_1.assert)(htmlFragment.startsWith(padding), { htmlFragment });
101
101
  htmlFragment = whitespaceExtra + htmlFragment.slice(padding.length);
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = exports.projectInfo = void 0;
4
4
  const assertSingleInstance_js_1 = require("./assertSingleInstance.js");
5
- const PROJECT_VERSION = '0.4.165-commit-2598887';
5
+ const PROJECT_VERSION = '0.4.165-commit-b3cc3cb';
6
6
  exports.PROJECT_VERSION = PROJECT_VERSION;
7
7
  const projectInfo = {
8
8
  projectName: 'Vike',
@@ -94,7 +94,7 @@ function injectBreakLines(htmlFragment, before, after) {
94
94
  const whitespaceExtra = paddingParent ? ' ' : '';
95
95
  const whitespace = `${paddingParent}${whitespaceExtra}`;
96
96
  const padding = `\n${whitespace}`;
97
- htmlFragment = htmlFragment.split(/<(?=[^\/])/).join(`${padding}<`);
97
+ htmlFragment = htmlFragment.replace(/<[^\/]/g, (match) => `${padding}${match}`);
98
98
  if (isBlankLine) {
99
99
  assert(htmlFragment.startsWith(padding), { htmlFragment });
100
100
  htmlFragment = whitespaceExtra + htmlFragment.slice(padding.length);
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
- declare const PROJECT_VERSION: "0.4.165-commit-2598887";
3
+ declare const PROJECT_VERSION: "0.4.165-commit-b3cc3cb";
4
4
  declare const projectInfo: {
5
5
  projectName: "Vike";
6
- projectVersion: "0.4.165-commit-2598887";
6
+ projectVersion: "0.4.165-commit-b3cc3cb";
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export { projectInfo };
2
2
  export { PROJECT_VERSION };
3
3
  import { onProjectInfo } from './assertSingleInstance.js';
4
- const PROJECT_VERSION = '0.4.165-commit-2598887';
4
+ const PROJECT_VERSION = '0.4.165-commit-b3cc3cb';
5
5
  const projectInfo = {
6
6
  projectName: 'Vike',
7
7
  projectVersion: PROJECT_VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.165-commit-2598887",
3
+ "version": "0.4.165-commit-b3cc3cb",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",