vike 0.4.218-commit-e7b31bd → 0.4.218-commit-5d388ee
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/__internal/setup.js +3 -0
- package/dist/cjs/node/runtime/page-files/setup.js +3 -0
- package/dist/cjs/utils/PROJECT_VERSION.js +1 -1
- package/dist/cjs/utils/getGlobalObject.js +1 -1
- package/dist/esm/node/runtime/page-files/setup.d.ts +1 -0
- package/dist/esm/node/runtime/page-files/setup.js +3 -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 -1
- package/dist/esm/utils/projectInfo.d.ts +1 -1
- package/package.json +11 -1
|
@@ -3,7 +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 projectKey = '_vike';
|
|
7
6
|
/** Share information across module instances. */
|
|
8
7
|
function getGlobalObject(
|
|
9
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.
|
|
@@ -20,6 +19,7 @@ key) {
|
|
|
20
19
|
(0, assert_js_1.assert)(!(key in globalObjects));
|
|
21
20
|
}
|
|
22
21
|
function getGlobalObjects() {
|
|
22
|
+
const projectKey = '_vike';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
const globalObjects = (globalThis[projectKey] = globalThis[projectKey] || {});
|
|
25
25
|
return globalObjects;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.218-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.218-commit-5d388ee";
|
|
@@ -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-5d388ee';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { getGlobalObject };
|
|
2
2
|
export { assertIsSingleModuleInstance };
|
|
3
3
|
import { assert } from './assert.js';
|
|
4
|
-
const projectKey = '_vike';
|
|
5
4
|
/** Share information across module instances. */
|
|
6
5
|
function getGlobalObject(
|
|
7
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.
|
|
@@ -18,6 +17,7 @@ key) {
|
|
|
18
17
|
assert(!(key in globalObjects));
|
|
19
18
|
}
|
|
20
19
|
function getGlobalObjects() {
|
|
20
|
+
const projectKey = '_vike';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
const globalObjects = (globalThis[projectKey] = globalThis[projectKey] || {});
|
|
23
23
|
return globalObjects;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike",
|
|
3
|
-
"version": "0.4.218-commit-
|
|
3
|
+
"version": "0.4.218-commit-5d388ee",
|
|
4
4
|
"repository": "https://github.com/vikejs/vike",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": {
|
|
@@ -102,6 +102,12 @@
|
|
|
102
102
|
"types": "./dist/esm/__internal/index.d.ts",
|
|
103
103
|
"default": "./dist/esm/__internal/index.js"
|
|
104
104
|
},
|
|
105
|
+
"./__internal/setup": {
|
|
106
|
+
"require": "./dist/cjs/node/runtime/page-files/setup.js",
|
|
107
|
+
"node": "./dist/esm/node/runtime/page-files/setup.js",
|
|
108
|
+
"types": "./dist/esm/node/runtime/page-files/setup.d.ts",
|
|
109
|
+
"default": "./dist/esm/node/runtime/page-files/setup.js"
|
|
110
|
+
},
|
|
105
111
|
".": {
|
|
106
112
|
"worker": "./dist/esm/node/runtime/index-deprecated.js",
|
|
107
113
|
"edge-light": "./dist/esm/node/runtime/index-deprecated.js",
|
|
@@ -199,6 +205,9 @@
|
|
|
199
205
|
],
|
|
200
206
|
"__internal": [
|
|
201
207
|
"./dist/esm/__internal/index.d.ts"
|
|
208
|
+
],
|
|
209
|
+
"__internal/setup": [
|
|
210
|
+
"./dist/esm/node/runtime/page-files/setup.d.ts"
|
|
202
211
|
]
|
|
203
212
|
}
|
|
204
213
|
},
|
|
@@ -219,6 +228,7 @@
|
|
|
219
228
|
"./dist-cjs-fixup.mjs",
|
|
220
229
|
"./getPageContext.js",
|
|
221
230
|
"./__internal.js",
|
|
231
|
+
"./__internal/setup.js",
|
|
222
232
|
"./modifyUrl.js",
|
|
223
233
|
"./plugin.js",
|
|
224
234
|
"./prerender.js",
|