vike 0.4.218-commit-0a599fa → 0.4.218-commit-da1f60b
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/commonConfig.js +1 -0
- package/dist/cjs/utils/PROJECT_VERSION.js +1 -1
- package/dist/cjs/utils/getGlobalObject.js +1 -2
- package/dist/esm/node/plugin/plugins/commonConfig.js +1 -0
- package/dist/esm/utils/PROJECT_VERSION.d.ts +1 -1
- package/dist/esm/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/utils/getGlobalObject.js +1 -2
- package/dist/esm/utils/projectInfo.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getGlobalObject = getGlobalObject;
|
|
4
4
|
exports.assertIsSingleModuleInstance = assertIsSingleModuleInstance;
|
|
5
5
|
const assert_js_1 = require("./assert.js");
|
|
6
|
-
const projectInfo_js_1 = require("./projectInfo.js");
|
|
7
|
-
const projectKey = `_${projectInfo_js_1.projectInfo.projectName.toLowerCase()}`;
|
|
8
6
|
/** Share information across module instances. */
|
|
9
7
|
function getGlobalObject(
|
|
10
8
|
// We use the filename (or file path) as key. There should be only one getGlobalObject() usage per file. Thus the key should be unique, assuming the filename (or file path) is unique.
|
|
@@ -21,6 +19,7 @@ key) {
|
|
|
21
19
|
(0, assert_js_1.assert)(!(key in globalObjects));
|
|
22
20
|
}
|
|
23
21
|
function getGlobalObjects() {
|
|
22
|
+
const projectKey = '_vike';
|
|
24
23
|
// @ts-ignore
|
|
25
24
|
const globalObjects = (globalThis[projectKey] = globalThis[projectKey] || {});
|
|
26
25
|
return globalObjects;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.218-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.218-commit-da1f60b";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.218-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.218-commit-da1f60b';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export { getGlobalObject };
|
|
2
2
|
export { assertIsSingleModuleInstance };
|
|
3
3
|
import { assert } from './assert.js';
|
|
4
|
-
import { projectInfo } from './projectInfo.js';
|
|
5
|
-
const projectKey = `_${projectInfo.projectName.toLowerCase()}`;
|
|
6
4
|
/** Share information across module instances. */
|
|
7
5
|
function getGlobalObject(
|
|
8
6
|
// We use the filename (or file path) as key. There should be only one getGlobalObject() usage per file. Thus the key should be unique, assuming the filename (or file path) is unique.
|
|
@@ -19,6 +17,7 @@ key) {
|
|
|
19
17
|
assert(!(key in globalObjects));
|
|
20
18
|
}
|
|
21
19
|
function getGlobalObjects() {
|
|
20
|
+
const projectKey = '_vike';
|
|
22
21
|
// @ts-ignore
|
|
23
22
|
const globalObjects = (globalThis[projectKey] = globalThis[projectKey] || {});
|
|
24
23
|
return globalObjects;
|