vike 0.4.165-commit-2598887 → 0.4.165-commit-6dfef11
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/cjs/node/plugin/plugins/buildConfig/fixServerAssets.js +0 -1
- package/dist/cjs/node/runtime/html/injectAssets/injectHtmlTags.js +1 -1
- package/dist/cjs/utils/projectInfo.js +1 -1
- package/dist/esm/node/plugin/plugins/buildConfig/fixServerAssets.js +0 -1
- package/dist/esm/node/runtime/html/injectAssets/injectHtmlTags.js +1 -1
- package/dist/esm/utils/projectInfo.d.ts +2 -2
- package/dist/esm/utils/projectInfo.js +1 -1
- package/package.json +1 -1
|
@@ -52,7 +52,6 @@ async function copyAssets(filesToCopy, config) {
|
|
|
52
52
|
await Promise.all(filesToCopy.map((file) => concurrencyLimit(() => promises_1.default.cp(path_1.default.posix.join(outDirServer, file), path_1.default.posix.join(outDirClient, file), {
|
|
53
53
|
recursive: true
|
|
54
54
|
}))));
|
|
55
|
-
await promises_1.default.rm(assetsDirServer, { recursive: true });
|
|
56
55
|
}
|
|
57
56
|
// Add serverManifest resources to clientManifest
|
|
58
57
|
function addServerAssets(clientManifest, serverManifest) {
|
|
@@ -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.
|
|
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-
|
|
5
|
+
const PROJECT_VERSION = '0.4.165-commit-6dfef11';
|
|
6
6
|
exports.PROJECT_VERSION = PROJECT_VERSION;
|
|
7
7
|
const projectInfo = {
|
|
8
8
|
projectName: 'Vike',
|
|
@@ -46,7 +46,6 @@ async function copyAssets(filesToCopy, config) {
|
|
|
46
46
|
await Promise.all(filesToCopy.map((file) => concurrencyLimit(() => fs.cp(path.posix.join(outDirServer, file), path.posix.join(outDirClient, file), {
|
|
47
47
|
recursive: true
|
|
48
48
|
}))));
|
|
49
|
-
await fs.rm(assetsDirServer, { recursive: true });
|
|
50
49
|
}
|
|
51
50
|
// Add serverManifest resources to clientManifest
|
|
52
51
|
function addServerAssets(clientManifest, serverManifest) {
|
|
@@ -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.
|
|
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-
|
|
3
|
+
declare const PROJECT_VERSION: "0.4.165-commit-6dfef11";
|
|
4
4
|
declare const projectInfo: {
|
|
5
5
|
projectName: "Vike";
|
|
6
|
-
projectVersion: "0.4.165-commit-
|
|
6
|
+
projectVersion: "0.4.165-commit-6dfef11";
|
|
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-
|
|
4
|
+
const PROJECT_VERSION = '0.4.165-commit-6dfef11';
|
|
5
5
|
const projectInfo = {
|
|
6
6
|
projectName: 'Vike',
|
|
7
7
|
projectVersion: PROJECT_VERSION
|