vite-node 5.1.0 → 5.2.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/dist/cli.d.mts +21 -0
- package/dist/cli.mjs +145 -0
- package/dist/{client.js → client-CyS7w_FB.mjs} +54 -87
- package/dist/client.d.mts +2 -0
- package/dist/client.mjs +5 -0
- package/dist/{constants.js → constants-DRkacFwN.mjs} +3 -1
- package/dist/{constants.d.ts → constants.d.mts} +3 -2
- package/dist/constants.mjs +3 -0
- package/dist/dist-B2ebky9O.mjs +85 -0
- package/dist/{chunk-hmr.js → hmr-qEG3qSgW.mjs} +17 -29
- package/dist/hmr.d.mts +57 -0
- package/dist/hmr.mjs +5 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +3 -0
- package/dist/{server.js → server-BWywEVuB.mjs} +52 -87
- package/dist/server.d.mts +60 -0
- package/dist/server.mjs +7 -0
- package/dist/source-map-DQLD3K8K.mjs +737 -0
- package/dist/{source-map.d.ts → source-map.d.mts} +9 -8
- package/dist/source-map.mjs +4 -0
- package/dist/types-55T_-8KG.mjs +1 -0
- package/dist/types-Dtew7m7O.d.mts +212 -0
- package/dist/types.d.mts +2 -0
- package/dist/types.mjs +3 -0
- package/dist/{utils.js → utils-ExLpYVUV.mjs} +10 -18
- package/dist/{utils.d.ts → utils.d.mts} +7 -7
- package/dist/utils.mjs +3 -0
- package/package.json +25 -32
- package/dist/chunk-index.js +0 -82
- package/dist/cli.d.ts +0 -21
- package/dist/cli.js +0 -162
- package/dist/client.d.ts +0 -2
- package/dist/hmr.d.ts +0 -55
- package/dist/hmr.js +0 -10
- package/dist/index.d-D6Pqey3g.d.ts +0 -367
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1
- package/dist/server.d.ts +0 -58
- package/dist/source-map.js +0 -919
- package/dist/trace-mapping.d-BWFx6tPc.d.ts +0 -62
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -1
- package/vite-node.js +0 -2
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
type GeneratedColumn = number;
|
|
2
|
-
type SourcesIndex = number;
|
|
3
|
-
type SourceLine = number;
|
|
4
|
-
type SourceColumn = number;
|
|
5
|
-
type NamesIndex = number;
|
|
6
|
-
type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
7
|
-
|
|
8
|
-
interface SourceMapV3 {
|
|
9
|
-
file?: string | null;
|
|
10
|
-
names: string[];
|
|
11
|
-
sourceRoot?: string;
|
|
12
|
-
sources: (string | null)[];
|
|
13
|
-
sourcesContent?: (string | null)[];
|
|
14
|
-
version: 3;
|
|
15
|
-
ignoreList?: number[];
|
|
16
|
-
}
|
|
17
|
-
interface EncodedSourceMap extends SourceMapV3 {
|
|
18
|
-
mappings: string;
|
|
19
|
-
}
|
|
20
|
-
interface DecodedSourceMap extends SourceMapV3 {
|
|
21
|
-
mappings: SourceMapSegment[][];
|
|
22
|
-
}
|
|
23
|
-
type XInput = {
|
|
24
|
-
x_google_ignoreList?: SourceMapV3['ignoreList'];
|
|
25
|
-
};
|
|
26
|
-
type EncodedSourceMapXInput = EncodedSourceMap & XInput;
|
|
27
|
-
type DecodedSourceMapXInput = DecodedSourceMap & XInput;
|
|
28
|
-
type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap;
|
|
29
|
-
declare abstract class SourceMap {
|
|
30
|
-
version: SourceMapV3['version'];
|
|
31
|
-
file: SourceMapV3['file'];
|
|
32
|
-
names: SourceMapV3['names'];
|
|
33
|
-
sourceRoot: SourceMapV3['sourceRoot'];
|
|
34
|
-
sources: SourceMapV3['sources'];
|
|
35
|
-
sourcesContent: SourceMapV3['sourcesContent'];
|
|
36
|
-
resolvedSources: SourceMapV3['sources'];
|
|
37
|
-
ignoreList: SourceMapV3['ignoreList'];
|
|
38
|
-
}
|
|
39
|
-
type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
|
|
40
|
-
type RoArray<T> = Ro<T>[];
|
|
41
|
-
type RoObject<T> = {
|
|
42
|
-
[K in keyof T]: T[K] | Ro<T[K]>;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
declare class TraceMap implements SourceMap {
|
|
46
|
-
version: SourceMapV3['version'];
|
|
47
|
-
file: SourceMapV3['file'];
|
|
48
|
-
names: SourceMapV3['names'];
|
|
49
|
-
sourceRoot: SourceMapV3['sourceRoot'];
|
|
50
|
-
sources: SourceMapV3['sources'];
|
|
51
|
-
sourcesContent: SourceMapV3['sourcesContent'];
|
|
52
|
-
ignoreList: SourceMapV3['ignoreList'];
|
|
53
|
-
resolvedSources: string[];
|
|
54
|
-
private _encoded;
|
|
55
|
-
private _decoded;
|
|
56
|
-
private _decodedMemo;
|
|
57
|
-
private _bySources;
|
|
58
|
-
private _bySourceMemos;
|
|
59
|
-
constructor(map: Ro<SourceMapInput>, mapUrl?: string | null);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type { DecodedSourceMap as D, EncodedSourceMap as E, SourceMapInput as S };
|
package/dist/types.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { D as DecodedSourceMap, E as EncodedSourceMap, S as SourceMapInput } from './trace-mapping.d-BWFx6tPc.js';
|
|
2
|
-
export { A as Arrayable, h as Awaitable, k as CreateHotContextFunction, D as DebuggerOptions, c as DepsHandlingOptions, i as FetchFunction, F as FetchResult, b as HotContext, l as ModuleCache, M as ModuleCacheMap, f as ModuleExecutionInfo, N as Nullable, R as RawSourceMap, j as ResolveIdFunction, S as StartOfSourceMap, d as ViteNodeResolveId, n as ViteNodeResolveModule, m as ViteNodeRunnerOptions, V as ViteNodeServerOptions } from './index.d-D6Pqey3g.js';
|
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/vite-node.js
DELETED