@kasperpeulen/vitest-plugin-nextjs 0.0.0-stage → 0.1.0-alpha.0
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/README.md +249 -2
- package/dist/_virtual/_rolldown/runtime.js +14 -0
- package/dist/action-ids.d.ts +18 -0
- package/dist/action-ids.js +44 -0
- package/dist/adapter.d.ts +8 -0
- package/dist/adapter.js +12 -0
- package/dist/app-requests.d.ts +63 -0
- package/dist/app-requests.js +253 -0
- package/dist/browser-context.d.ts +24 -0
- package/dist/browser-context.js +157 -0
- package/dist/build-output.d.ts +68 -0
- package/dist/build-output.js +216 -0
- package/dist/build.d.ts +26 -0
- package/dist/build.js +39 -0
- package/dist/built-files.d.ts +9 -0
- package/dist/built-files.js +22 -0
- package/dist/cache.d.ts +44 -0
- package/dist/cache.js +99 -0
- package/dist/client-components.d.ts +3 -0
- package/dist/client-components.js +4 -0
- package/dist/client-file-key.d.ts +5 -0
- package/dist/client-file-key.js +5 -0
- package/dist/client-files.d.ts +83 -0
- package/dist/client-files.js +186 -0
- package/dist/client-graph.d.ts +94 -0
- package/dist/client-graph.js +266 -0
- package/dist/client-modules.d.ts +10 -0
- package/dist/client-modules.js +43 -0
- package/dist/client.d.ts +42 -0
- package/dist/client.js +263 -0
- package/dist/commonjs.d.ts +44 -0
- package/dist/commonjs.js +111 -0
- package/dist/compat/browser/client.d.ts +19 -0
- package/dist/compat/browser/client.js +13 -0
- package/dist/compat/build.d.ts +145 -0
- package/dist/compat/build.js +149 -0
- package/dist/compat/checks.d.ts +16 -0
- package/dist/compat/checks.js +148 -0
- package/dist/compat/patches.d.ts +13 -0
- package/dist/compat/patches.js +30 -0
- package/dist/compat/paths.d.ts +74 -0
- package/dist/compat/paths.js +160 -0
- package/dist/compat/rsc/handlers.d.ts +2 -0
- package/dist/compat/rsc/handlers.js +2 -0
- package/dist/compat/rsc/prerender.d.ts +10 -0
- package/dist/compat/rsc/prerender.js +9 -0
- package/dist/compat/server/headers.d.ts +3 -0
- package/dist/compat/server/headers.js +3 -0
- package/dist/compat/ssr/build-output.d.ts +4 -0
- package/dist/compat/ssr/build-output.js +3 -0
- package/dist/compat/ssr/cache.d.ts +6 -0
- package/dist/compat/ssr/cache.js +6 -0
- package/dist/compat/ssr/handler.d.ts +8 -0
- package/dist/compat/ssr/handler.js +8 -0
- package/dist/compat/ssr/node-server.d.ts +5 -0
- package/dist/compat/ssr/node-server.js +4 -0
- package/dist/compat/ssr/render-errors.d.ts +4 -0
- package/dist/compat/ssr/render-errors.js +4 -0
- package/dist/compat/ssr/senders.d.ts +6 -0
- package/dist/compat/ssr/senders.js +6 -0
- package/dist/compat/types.d.ts +8 -0
- package/dist/compat/types.js +1 -0
- package/dist/compile.d.ts +31 -0
- package/dist/compile.js +140 -0
- package/dist/disk.d.ts +16 -0
- package/dist/disk.js +13 -0
- package/dist/document-loads.d.ts +15 -0
- package/dist/document-loads.js +53 -0
- package/dist/document.d.ts +79 -0
- package/dist/document.js +328 -0
- package/dist/downloads.d.ts +15 -0
- package/dist/downloads.js +71 -0
- package/dist/esm-require.d.ts +11 -0
- package/dist/esm-require.js +32 -0
- package/dist/fast-crypto/index.js +1093 -0
- package/dist/fast-crypto.d.ts +20 -0
- package/dist/fast-crypto.js +151 -0
- package/dist/flight.d.ts +19 -0
- package/dist/flight.js +42 -0
- package/dist/form-submission.d.ts +15 -0
- package/dist/form-submission.js +27 -0
- package/dist/from-page.d.ts +5 -0
- package/dist/from-page.js +44 -0
- package/dist/globals.d.ts +1 -0
- package/dist/globals.js +197 -0
- package/dist/host-document.d.ts +26 -0
- package/dist/host-document.js +34 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.js +281 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +3 -0
- package/dist/leftovers.d.ts +11 -0
- package/dist/leftovers.js +55 -0
- package/dist/mode.d.ts +169 -0
- package/dist/mode.js +31 -0
- package/dist/node/LICENSES.md +3540 -0
- package/dist/node/assert/strict.js +29 -0
- package/dist/node/assert.js +3044 -0
- package/dist/node/buffer.js +1499 -0
- package/dist/node/child_process.js +45 -0
- package/dist/node/cluster.js +85 -0
- package/dist/node/console.js +96 -0
- package/dist/node/constants.js +495 -0
- package/dist/node/crypto.js +1388 -0
- package/dist/node/dgram.js +78 -0
- package/dist/node/diagnostics_channel.js +122 -0
- package/dist/node/dns/promises.js +129 -0
- package/dist/node/dns.js +137 -0
- package/dist/node/domain.js +43 -0
- package/dist/node/events.js +1155 -0
- package/dist/node/fs/promises.js +40 -0
- package/dist/node/fs.js +10375 -0
- package/dist/node/http.js +326 -0
- package/dist/node/http2.js +305 -0
- package/dist/node/https.js +57 -0
- package/dist/node/inspector/promises.js +66 -0
- package/dist/node/inspector.js +76 -0
- package/dist/node/module.js +205 -0
- package/dist/node/net.js +392 -0
- package/dist/node/os.js +259 -0
- package/dist/node/path/posix.js +25 -0
- package/dist/node/path/win32.js +25 -0
- package/dist/node/path.js +384 -0
- package/dist/node/perf_hooks.js +313 -0
- package/dist/node/process.js +452 -0
- package/dist/node/punycode.js +178 -0
- package/dist/node/querystring.js +934 -0
- package/dist/node/readline/promises.js +71 -0
- package/dist/node/readline.js +56 -0
- package/dist/node/repl.js +44 -0
- package/dist/node/sqlite.js +22 -0
- package/dist/node/stream/consumers.js +47 -0
- package/dist/node/stream/promises.js +6 -0
- package/dist/node/stream/web.js +52 -0
- package/dist/node/stream.js +4323 -0
- package/dist/node/string_decoder.js +276 -0
- package/dist/node/sys.js +6 -0
- package/dist/node/timers/promises.js +71 -0
- package/dist/node/timers.js +133 -0
- package/dist/node/tls.js +122 -0
- package/dist/node/trace_events.js +23 -0
- package/dist/node/tty.js +69 -0
- package/dist/node/url.js +1426 -0
- package/dist/node/util/types.js +1456 -0
- package/dist/node/util.js +4807 -0
- package/dist/node/v8.js +160 -0
- package/dist/node/vm.js +88 -0
- package/dist/node/wasi.js +16 -0
- package/dist/node/worker_threads.js +123 -0
- package/dist/node/zlib.js +1396 -0
- package/dist/node-builtins.d.ts +40 -0
- package/dist/node-builtins.js +74 -0
- package/dist/node-on-page.d.ts +46 -0
- package/dist/node-on-page.js +101 -0
- package/dist/node-platform.d.ts +36 -0
- package/dist/node-platform.js +152 -0
- package/dist/node-rendered.d.ts +21 -0
- package/dist/node-rendered.js +26 -0
- package/dist/node-server.d.ts +46 -0
- package/dist/node-server.js +193 -0
- package/dist/optimizer-cache-key.d.ts +26 -0
- package/dist/optimizer-cache-key.js +73 -0
- package/dist/own-package.d.ts +1 -0
- package/dist/own-package.js +6 -0
- package/dist/page-store.d.ts +33 -0
- package/dist/page-store.js +80 -0
- package/dist/page-timers.d.ts +22 -0
- package/dist/page-timers.js +47 -0
- package/dist/page.d.ts +112 -0
- package/dist/page.js +549 -0
- package/dist/paths.d.ts +13 -0
- package/dist/paths.js +47 -0
- package/dist/plugin.d.ts +22 -0
- package/dist/plugin.js +995 -0
- package/dist/prerender-verdict.d.ts +8 -0
- package/dist/prerender-verdict.js +67 -0
- package/dist/project/context.d.ts +546 -0
- package/dist/project/context.js +111 -0
- package/dist/project/entries.d.ts +42 -0
- package/dist/project/entries.js +189 -0
- package/dist/project/env-worker.d.ts +1 -0
- package/dist/project/env-worker.js +9 -0
- package/dist/project/env.d.ts +36 -0
- package/dist/project/env.js +82 -0
- package/dist/project/layers.d.ts +31 -0
- package/dist/project/layers.js +150 -0
- package/dist/project/loaders.d.ts +71 -0
- package/dist/project/loaders.js +300 -0
- package/dist/project/metadata.d.ts +8 -0
- package/dist/project/metadata.js +34 -0
- package/dist/project/module-exports.d.ts +29 -0
- package/dist/project/module-exports.js +77 -0
- package/dist/project/routes.d.ts +19 -0
- package/dist/project/routes.js +92 -0
- package/dist/project/routing.d.ts +46 -0
- package/dist/project/routing.js +280 -0
- package/dist/project/transform.d.ts +8 -0
- package/dist/project/transform.js +110 -0
- package/dist/project/webpack.d.ts +46 -0
- package/dist/project/webpack.js +160 -0
- package/dist/project.d.ts +264 -0
- package/dist/project.js +58 -0
- package/dist/registry-global.d.ts +5 -0
- package/dist/registry-global.js +5 -0
- package/dist/registry.d.ts +241 -0
- package/dist/registry.js +30 -0
- package/dist/route-chunks.d.ts +13 -0
- package/dist/route-chunks.js +32 -0
- package/dist/route-lookup.d.ts +34 -0
- package/dist/route-lookup.js +207 -0
- package/dist/routes-ahead-shared.d.ts +17 -0
- package/dist/routes-ahead-shared.js +9 -0
- package/dist/routes-ahead.d.ts +10 -0
- package/dist/routes-ahead.js +54 -0
- package/dist/rsc.d.ts +19 -0
- package/dist/rsc.js +171 -0
- package/dist/server-action.d.ts +9 -0
- package/dist/server-action.js +15 -0
- package/dist/server-code.d.ts +176 -0
- package/dist/server-code.js +357 -0
- package/dist/server-in-front.d.ts +37 -0
- package/dist/server-in-front.js +90 -0
- package/dist/server-layers.d.ts +22 -0
- package/dist/server-layers.js +33 -0
- package/dist/setup-browser.d.ts +1 -0
- package/dist/setup-browser.js +8 -0
- package/dist/setup-node.d.ts +1 -0
- package/dist/setup-node.js +6 -0
- package/dist/setup.d.ts +8 -0
- package/dist/setup.js +62 -0
- package/dist/speed-features.d.ts +13 -0
- package/dist/speed-features.js +95 -0
- package/dist/ssr.d.ts +70 -0
- package/dist/ssr.js +480 -0
- package/dist/static-build.d.ts +36 -0
- package/dist/static-build.js +92 -0
- package/dist/storage.d.ts +31 -0
- package/dist/storage.js +94 -0
- package/dist/styles-shared.d.ts +137 -0
- package/dist/styles-shared.js +124 -0
- package/dist/styles.d.ts +102 -0
- package/dist/styles.js +730 -0
- package/dist/stylesheet-versions.d.ts +17 -0
- package/dist/stylesheet-versions.js +43 -0
- package/dist/tester.html +10 -0
- package/dist/use-cache.d.ts +15 -0
- package/dist/use-cache.js +93 -0
- package/dist/vitest-version.d.ts +6 -0
- package/dist/vitest-version.js +12 -0
- package/package.json +125 -3
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
|
|
2
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
3
|
+
function createNotImplementedError(name) {
|
|
4
|
+
return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
|
|
5
|
+
}
|
|
6
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
7
|
+
function notImplemented(name) {
|
|
8
|
+
const fn = () => {
|
|
9
|
+
throw /* @__PURE__ */ createNotImplementedError(name);
|
|
10
|
+
};
|
|
11
|
+
return Object.assign(fn, { __unenv__: true });
|
|
12
|
+
}
|
|
13
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
14
|
+
function notImplementedClass(name) {
|
|
15
|
+
return class {
|
|
16
|
+
__unenv__ = true;
|
|
17
|
+
constructor() {
|
|
18
|
+
throw new Error(`[unenv] ${name} is not implemented yet!`);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
|
|
24
|
+
var noop_default = Object.assign(() => {}, { __unenv__: true });
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector/promises.mjs
|
|
27
|
+
const console = {
|
|
28
|
+
debug: noop_default,
|
|
29
|
+
error: noop_default,
|
|
30
|
+
info: noop_default,
|
|
31
|
+
log: noop_default,
|
|
32
|
+
warn: noop_default,
|
|
33
|
+
dir: noop_default,
|
|
34
|
+
dirxml: noop_default,
|
|
35
|
+
table: noop_default,
|
|
36
|
+
trace: noop_default,
|
|
37
|
+
group: noop_default,
|
|
38
|
+
groupCollapsed: noop_default,
|
|
39
|
+
groupEnd: noop_default,
|
|
40
|
+
clear: noop_default,
|
|
41
|
+
count: noop_default,
|
|
42
|
+
countReset: noop_default,
|
|
43
|
+
assert: noop_default,
|
|
44
|
+
profile: noop_default,
|
|
45
|
+
profileEnd: noop_default,
|
|
46
|
+
time: noop_default,
|
|
47
|
+
timeLog: noop_default,
|
|
48
|
+
timeStamp: noop_default
|
|
49
|
+
};
|
|
50
|
+
const Network = /* @__PURE__ */ notImplementedClass("inspectorPromises.Network");
|
|
51
|
+
const Session = /* @__PURE__ */ notImplementedClass("inspectorPromises.Session");
|
|
52
|
+
const url = /* @__PURE__ */ notImplemented("inspectorPromises.url");
|
|
53
|
+
const waitForDebugger = /* @__PURE__ */ notImplemented("inspectorPromises.waitForDebugger");
|
|
54
|
+
const open = /* @__PURE__ */ notImplemented("inspectorPromises.open");
|
|
55
|
+
const close = /* @__PURE__ */ notImplemented("inspectorPromises.close");
|
|
56
|
+
var promises_default = {
|
|
57
|
+
close,
|
|
58
|
+
console,
|
|
59
|
+
Network,
|
|
60
|
+
open,
|
|
61
|
+
Session,
|
|
62
|
+
url,
|
|
63
|
+
waitForDebugger
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
export { Network, Session, close, console, promises_default as default, open, url, waitForDebugger };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
|
|
2
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
3
|
+
function createNotImplementedError(name) {
|
|
4
|
+
return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
|
|
5
|
+
}
|
|
6
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
7
|
+
function notImplemented(name) {
|
|
8
|
+
const fn = () => {
|
|
9
|
+
throw /* @__PURE__ */ createNotImplementedError(name);
|
|
10
|
+
};
|
|
11
|
+
return Object.assign(fn, { __unenv__: true });
|
|
12
|
+
}
|
|
13
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
14
|
+
function notImplementedClass(name) {
|
|
15
|
+
return class {
|
|
16
|
+
__unenv__ = true;
|
|
17
|
+
constructor() {
|
|
18
|
+
throw new Error(`[unenv] ${name} is not implemented yet!`);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/mock/noop.mjs
|
|
24
|
+
var noop_default = Object.assign(() => {}, { __unenv__: true });
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector.mjs
|
|
27
|
+
const close = noop_default;
|
|
28
|
+
const console = {
|
|
29
|
+
debug: noop_default,
|
|
30
|
+
error: noop_default,
|
|
31
|
+
info: noop_default,
|
|
32
|
+
log: noop_default,
|
|
33
|
+
warn: noop_default,
|
|
34
|
+
dir: noop_default,
|
|
35
|
+
dirxml: noop_default,
|
|
36
|
+
table: noop_default,
|
|
37
|
+
trace: noop_default,
|
|
38
|
+
group: noop_default,
|
|
39
|
+
groupCollapsed: noop_default,
|
|
40
|
+
groupEnd: noop_default,
|
|
41
|
+
clear: noop_default,
|
|
42
|
+
count: noop_default,
|
|
43
|
+
countReset: noop_default,
|
|
44
|
+
assert: noop_default,
|
|
45
|
+
profile: noop_default,
|
|
46
|
+
profileEnd: noop_default,
|
|
47
|
+
time: noop_default,
|
|
48
|
+
timeLog: noop_default,
|
|
49
|
+
timeStamp: noop_default
|
|
50
|
+
};
|
|
51
|
+
const open = () => ({
|
|
52
|
+
__unenv__: true,
|
|
53
|
+
[Symbol.dispose]() {
|
|
54
|
+
return Promise.resolve();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const url = () => void 0;
|
|
58
|
+
const waitForDebugger = noop_default;
|
|
59
|
+
const Session = /* @__PURE__ */ notImplementedClass("inspector.Session");
|
|
60
|
+
const Network = {
|
|
61
|
+
loadingFailed: /* @__PURE__ */ notImplemented("inspector.Network.loadingFailed"),
|
|
62
|
+
loadingFinished: /* @__PURE__ */ notImplemented("inspector.Network.loadingFinished"),
|
|
63
|
+
requestWillBeSent: /* @__PURE__ */ notImplemented("inspector.Network.requestWillBeSent"),
|
|
64
|
+
responseReceived: /* @__PURE__ */ notImplemented("inspector.Network.responseReceived")
|
|
65
|
+
};
|
|
66
|
+
var inspector_default = {
|
|
67
|
+
Session,
|
|
68
|
+
close,
|
|
69
|
+
console,
|
|
70
|
+
open,
|
|
71
|
+
url,
|
|
72
|
+
waitForDebugger,
|
|
73
|
+
Network
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { Network, Session, close, console, inspector_default as default, open, url, waitForDebugger };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/_internal/utils.mjs
|
|
2
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
3
|
+
function createNotImplementedError(name) {
|
|
4
|
+
return /* @__PURE__ */ new Error(`[unenv] ${name} is not implemented yet!`);
|
|
5
|
+
}
|
|
6
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
7
|
+
function notImplemented(name) {
|
|
8
|
+
const fn = () => {
|
|
9
|
+
throw /* @__PURE__ */ createNotImplementedError(name);
|
|
10
|
+
};
|
|
11
|
+
return Object.assign(fn, { __unenv__: true });
|
|
12
|
+
}
|
|
13
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
14
|
+
function notImplementedClass(name) {
|
|
15
|
+
return class {
|
|
16
|
+
__unenv__ = true;
|
|
17
|
+
constructor() {
|
|
18
|
+
throw new Error(`[unenv] ${name} is not implemented yet!`);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/module.mjs
|
|
24
|
+
const _cache = Object.create(null);
|
|
25
|
+
const _extensions = {
|
|
26
|
+
".js": /* @__PURE__ */ notImplemented("module.require.extensions['.js']"),
|
|
27
|
+
".json": /* @__PURE__ */ notImplemented("module.require.extensions['.json']"),
|
|
28
|
+
".node": /* @__PURE__ */ notImplemented("module.require.extensions['.node']")
|
|
29
|
+
};
|
|
30
|
+
const createRequire$1 = function(_filename) {
|
|
31
|
+
return Object.assign(/* @__PURE__ */ notImplemented("module.require"), {
|
|
32
|
+
resolve: Object.assign(/* @__PURE__ */ notImplemented("module.require.resolve"), { paths: /* @__PURE__ */ notImplemented("module.require.resolve.paths") }),
|
|
33
|
+
cache: Object.create(null),
|
|
34
|
+
extensions: _extensions,
|
|
35
|
+
main: void 0
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
const getCompileCacheDir = function() {};
|
|
39
|
+
const enableCompileCache = function(_cacheDir) {
|
|
40
|
+
return {
|
|
41
|
+
status: 0,
|
|
42
|
+
message: "not implemented"
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
const constants = Object.freeze({ compileCacheStatus: Object.freeze({
|
|
46
|
+
FAILED: 0,
|
|
47
|
+
ENABLED: 1,
|
|
48
|
+
ALREADY_ENABLED: 2,
|
|
49
|
+
DISABLED: 3
|
|
50
|
+
}) });
|
|
51
|
+
const builtinModules = [
|
|
52
|
+
"_http_agent",
|
|
53
|
+
"_http_client",
|
|
54
|
+
"_http_common",
|
|
55
|
+
"_http_incoming",
|
|
56
|
+
"_http_outgoing",
|
|
57
|
+
"_http_server",
|
|
58
|
+
"_stream_duplex",
|
|
59
|
+
"_stream_passthrough",
|
|
60
|
+
"_stream_readable",
|
|
61
|
+
"_stream_transform",
|
|
62
|
+
"_stream_wrap",
|
|
63
|
+
"_stream_writable",
|
|
64
|
+
"_tls_common",
|
|
65
|
+
"_tls_wrap",
|
|
66
|
+
"assert",
|
|
67
|
+
"assert/strict",
|
|
68
|
+
"async_hooks",
|
|
69
|
+
"buffer",
|
|
70
|
+
"child_process",
|
|
71
|
+
"cluster",
|
|
72
|
+
"console",
|
|
73
|
+
"constants",
|
|
74
|
+
"crypto",
|
|
75
|
+
"dgram",
|
|
76
|
+
"diagnostics_channel",
|
|
77
|
+
"dns",
|
|
78
|
+
"dns/promises",
|
|
79
|
+
"domain",
|
|
80
|
+
"events",
|
|
81
|
+
"fs",
|
|
82
|
+
"fs/promises",
|
|
83
|
+
"http",
|
|
84
|
+
"http2",
|
|
85
|
+
"https",
|
|
86
|
+
"inspector",
|
|
87
|
+
"inspector/promises",
|
|
88
|
+
"module",
|
|
89
|
+
"net",
|
|
90
|
+
"os",
|
|
91
|
+
"path",
|
|
92
|
+
"path/posix",
|
|
93
|
+
"path/win32",
|
|
94
|
+
"perf_hooks",
|
|
95
|
+
"process",
|
|
96
|
+
"punycode",
|
|
97
|
+
"querystring",
|
|
98
|
+
"readline",
|
|
99
|
+
"readline/promises",
|
|
100
|
+
"repl",
|
|
101
|
+
"stream",
|
|
102
|
+
"stream/consumers",
|
|
103
|
+
"stream/promises",
|
|
104
|
+
"stream/web",
|
|
105
|
+
"string_decoder",
|
|
106
|
+
"sys",
|
|
107
|
+
"timers",
|
|
108
|
+
"timers/promises",
|
|
109
|
+
"tls",
|
|
110
|
+
"trace_events",
|
|
111
|
+
"tty",
|
|
112
|
+
"url",
|
|
113
|
+
"util",
|
|
114
|
+
"util/types",
|
|
115
|
+
"v8",
|
|
116
|
+
"vm",
|
|
117
|
+
"wasi",
|
|
118
|
+
"worker_threads",
|
|
119
|
+
"zlib"
|
|
120
|
+
];
|
|
121
|
+
const isBuiltin = function(id) {
|
|
122
|
+
return id.startsWith("node:") || builtinModules.includes(id);
|
|
123
|
+
};
|
|
124
|
+
const runMain = /* @__PURE__ */ notImplemented("module.runMain");
|
|
125
|
+
const register = /* @__PURE__ */ notImplemented("module.register");
|
|
126
|
+
const syncBuiltinESMExports = function() {
|
|
127
|
+
return [];
|
|
128
|
+
};
|
|
129
|
+
const findSourceMap$1 = function(path, error) {};
|
|
130
|
+
const flushCompileCache = function flushCompileCache() {};
|
|
131
|
+
const wrap = function(source) {
|
|
132
|
+
return `(function (exports, require, module, __filename, __dirname) { ${source}\n});`;
|
|
133
|
+
};
|
|
134
|
+
const wrapper = ["(function (exports, require, module, __filename, __dirname) { ", "\n});"];
|
|
135
|
+
const stripTypeScriptTypes = /* @__PURE__ */ notImplemented("module.stripTypeScriptTypes");
|
|
136
|
+
const SourceMap = /* @__PURE__ */ notImplementedClass("module.SourceMap");
|
|
137
|
+
const _debug = console.debug;
|
|
138
|
+
const _findPath = /* @__PURE__ */ notImplemented("module._findPath");
|
|
139
|
+
const _initPaths = /* @__PURE__ */ notImplemented("module._initPaths");
|
|
140
|
+
const _load = /* @__PURE__ */ notImplemented("module._load");
|
|
141
|
+
const _nodeModulePaths = /* @__PURE__ */ notImplemented("module._nodeModulePaths");
|
|
142
|
+
const _preloadModules = /* @__PURE__ */ notImplemented("module._preloadModules");
|
|
143
|
+
const _resolveFilename = /* @__PURE__ */ notImplemented("module._resolveFilename");
|
|
144
|
+
const _resolveLookupPaths = /* @__PURE__ */ notImplemented("module._resolveLookupPaths");
|
|
145
|
+
const _stat = /* @__PURE__ */ notImplemented("module._stat");
|
|
146
|
+
const _readPackage = /* @__PURE__ */ notImplemented("module._readPackage");
|
|
147
|
+
const findPackageJSON = /* @__PURE__ */ notImplemented("module.findPackageJSON");
|
|
148
|
+
const getSourceMapsSupport = /* @__PURE__ */ notImplemented("module.getSourceMapsSupport");
|
|
149
|
+
const setSourceMapsSupport = /* @__PURE__ */ notImplemented("module.setSourceMapsSupport");
|
|
150
|
+
const _pathCache = Object.create(null);
|
|
151
|
+
const globalPaths = ["node_modules"];
|
|
152
|
+
const Module = {
|
|
153
|
+
get Module() {
|
|
154
|
+
return Module;
|
|
155
|
+
},
|
|
156
|
+
SourceMap,
|
|
157
|
+
_cache,
|
|
158
|
+
_extensions,
|
|
159
|
+
_debug,
|
|
160
|
+
_pathCache,
|
|
161
|
+
_findPath,
|
|
162
|
+
_initPaths,
|
|
163
|
+
_load,
|
|
164
|
+
_nodeModulePaths,
|
|
165
|
+
_preloadModules,
|
|
166
|
+
_resolveFilename,
|
|
167
|
+
_resolveLookupPaths,
|
|
168
|
+
_stat,
|
|
169
|
+
_readPackage,
|
|
170
|
+
builtinModules,
|
|
171
|
+
constants,
|
|
172
|
+
createRequire: createRequire$1,
|
|
173
|
+
enableCompileCache,
|
|
174
|
+
findSourceMap: findSourceMap$1,
|
|
175
|
+
getCompileCacheDir,
|
|
176
|
+
globalPaths,
|
|
177
|
+
isBuiltin,
|
|
178
|
+
register,
|
|
179
|
+
runMain,
|
|
180
|
+
syncBuiltinESMExports,
|
|
181
|
+
wrap,
|
|
182
|
+
wrapper,
|
|
183
|
+
flushCompileCache,
|
|
184
|
+
stripTypeScriptTypes,
|
|
185
|
+
findPackageJSON,
|
|
186
|
+
getSourceMapsSupport,
|
|
187
|
+
setSourceMapsSupport
|
|
188
|
+
};
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/node/module.ts
|
|
191
|
+
const missing = (name) => function() {
|
|
192
|
+
throw new Error(`vitest-plugin-rsc: ${name} of Node.js is not there in the browser`);
|
|
193
|
+
};
|
|
194
|
+
const findSourceMap = () => void 0;
|
|
195
|
+
const createRequire = () => Object.assign(missing("module.createRequire()'s require"), {
|
|
196
|
+
resolve: missing("module.createRequire()'s require.resolve"),
|
|
197
|
+
cache: {}
|
|
198
|
+
});
|
|
199
|
+
var module_default = {
|
|
200
|
+
...Module,
|
|
201
|
+
findSourceMap,
|
|
202
|
+
createRequire
|
|
203
|
+
};
|
|
204
|
+
//#endregion
|
|
205
|
+
export { Module, SourceMap, _cache, _debug, _extensions, _findPath, _initPaths, _load, _nodeModulePaths, _pathCache, _preloadModules, _readPackage, _resolveFilename, _resolveLookupPaths, _stat, builtinModules, constants, createRequire, module_default as default, enableCompileCache, findPackageJSON, findSourceMap, flushCompileCache, getCompileCacheDir, getSourceMapsSupport, globalPaths, isBuiltin, register, runMain, setSourceMapsSupport, stripTypeScriptTypes, syncBuiltinESMExports, wrap, wrapper };
|