elit 3.6.5 → 3.6.7
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/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/README.md +6 -0
- package/dist/build.cjs +421 -331
- package/dist/build.d.ts +1 -16
- package/dist/build.js +420 -330
- package/dist/build.mjs +420 -330
- package/dist/chokidar.cjs +219 -182
- package/dist/chokidar.d.ts +25 -10
- package/dist/chokidar.js +217 -182
- package/dist/chokidar.mjs +218 -183
- package/dist/cli.cjs +21608 -20241
- package/dist/cli.d.ts +19 -37
- package/dist/cli.mjs +21262 -19910
- package/dist/config.cjs +357 -350
- package/dist/config.d.ts +19 -240
- package/dist/config.js +520 -515
- package/dist/config.mjs +346 -341
- package/dist/contracts-BeW9k0yZ.d.ts +54 -0
- package/dist/contracts-D7KIS-TK.d.ts +36 -0
- package/dist/coverage.cjs +448 -485
- package/dist/coverage.d.ts +13 -59
- package/dist/coverage.js +447 -484
- package/dist/coverage.mjs +447 -484
- package/dist/database.cjs +819 -828
- package/dist/database.d.ts +8 -24
- package/dist/database.js +818 -829
- package/dist/database.mjs +818 -829
- package/dist/desktop-auto-render.cjs +1700 -1522
- package/dist/desktop-auto-render.d.ts +4 -9
- package/dist/desktop-auto-render.js +1695 -1517
- package/dist/desktop-auto-render.mjs +1696 -1518
- package/dist/desktop.cjs +3 -1
- package/dist/desktop.d.ts +4 -1
- package/dist/desktop.js +1 -1
- package/dist/desktop.mjs +1 -1
- package/dist/dev-build.cjs +830 -0
- package/dist/dev-build.d.ts +53 -0
- package/dist/dev-build.js +3318 -0
- package/dist/dev-build.mjs +797 -0
- package/dist/dom.cjs +717 -590
- package/dist/dom.d.ts +2 -15
- package/dist/dom.js +714 -587
- package/dist/dom.mjs +716 -589
- package/dist/el.cjs +62 -52
- package/dist/el.d.ts +5 -10
- package/dist/el.js +60 -52
- package/dist/el.mjs +60 -52
- package/dist/fs.cjs +72 -63
- package/dist/fs.d.ts +22 -19
- package/dist/fs.js +71 -62
- package/dist/fs.mjs +71 -62
- package/dist/hmr.cjs +40 -14
- package/dist/hmr.d.ts +11 -23
- package/dist/hmr.js +38 -14
- package/dist/hmr.mjs +38 -14
- package/dist/http.cjs +251 -99
- package/dist/http.d.ts +38 -104
- package/dist/http.js +249 -99
- package/dist/http.mjs +249 -99
- package/dist/https.cjs +524 -228
- package/dist/https.d.ts +44 -36
- package/dist/https.js +520 -226
- package/dist/https.mjs +522 -228
- package/dist/index.cjs +7502 -7690
- package/dist/index.d.ts +8 -3
- package/dist/index.js +7486 -7676
- package/dist/index.mjs +7497 -7686
- package/dist/mime-types.cjs +10 -4
- package/dist/mime-types.d.ts +8 -11
- package/dist/mime-types.js +9 -3
- package/dist/mime-types.mjs +9 -3
- package/dist/native.cjs +8616 -8869
- package/dist/native.d.ts +7 -8
- package/dist/native.js +8682 -8935
- package/dist/native.mjs +8615 -8868
- package/dist/path.cjs +83 -77
- package/dist/path.d.ts +29 -29
- package/dist/path.js +82 -76
- package/dist/path.mjs +82 -76
- package/dist/pm.cjs +3300 -0
- package/dist/pm.d.ts +256 -0
- package/dist/pm.js +5638 -0
- package/dist/pm.mjs +3196 -0
- package/dist/preview-build.cjs +712 -0
- package/dist/preview-build.d.ts +59 -0
- package/dist/preview-build.js +3194 -0
- package/dist/preview-build.mjs +676 -0
- package/dist/render-context.cjs +13 -2
- package/dist/render-context.d.ts +9 -31
- package/dist/render-context.js +11 -2
- package/dist/render-context.mjs +11 -2
- package/dist/router.cjs +787 -645
- package/dist/router.d.ts +8 -12
- package/dist/router.js +786 -644
- package/dist/router.mjs +786 -644
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/server.cjs +3315 -2603
- package/dist/server.d.ts +49 -4
- package/dist/server.js +7611 -2834
- package/dist/server.mjs +3317 -2607
- package/dist/smtp-server.cjs +128 -0
- package/dist/smtp-server.d.ts +27 -0
- package/dist/smtp-server.js +4199 -0
- package/dist/smtp-server.mjs +100 -0
- package/dist/state-DvEkDehk.d.ts +195 -0
- package/dist/state.cjs +768 -658
- package/dist/state.d.ts +11 -69
- package/dist/state.js +760 -650
- package/dist/state.mjs +767 -657
- package/dist/style.cjs +1011 -968
- package/dist/style.d.ts +13 -127
- package/dist/style.js +1009 -970
- package/dist/style.mjs +1011 -971
- package/dist/test-reporter.cjs +332 -316
- package/dist/test-reporter.d.ts +28 -33
- package/dist/test-reporter.js +328 -312
- package/dist/test-reporter.mjs +328 -312
- package/dist/test-runtime.cjs +927 -968
- package/dist/test-runtime.d.ts +24 -99
- package/dist/test-runtime.js +922 -965
- package/dist/test-runtime.mjs +922 -965
- package/dist/test.cjs +4428 -4273
- package/dist/test.d.ts +2 -8
- package/dist/test.js +4307 -4154
- package/dist/test.mjs +4419 -4267
- package/dist/types-BONVzPtp.d.ts +59 -0
- package/dist/types-BR4wMiVx.d.ts +32 -0
- package/dist/types-C4gKykuG.d.ts +23 -0
- package/dist/types-CIhpN1-K.d.ts +64 -0
- package/dist/types-Ckj8md_j.d.ts +84 -0
- package/dist/types-CpjQTAkX.d.ts +24 -0
- package/dist/types-D0LjrYjS.d.ts +14 -0
- package/dist/types-DAisuVr5.d.ts +75 -0
- package/dist/types-tJn88E1N.d.ts +242 -0
- package/dist/types.d.ts +71 -226
- package/dist/universal.cjs +1 -1
- package/dist/universal.d.ts +1 -5
- package/dist/universal.js +1 -1
- package/dist/universal.mjs +1 -1
- package/dist/websocket-XfyK23zD.d.ts +119 -0
- package/dist/ws.cjs +129 -108
- package/dist/ws.d.ts +21 -131
- package/dist/ws.js +128 -109
- package/dist/ws.mjs +128 -109
- package/dist/wss.cjs +757 -479
- package/dist/wss.d.ts +31 -28
- package/dist/wss.js +755 -479
- package/dist/wss.mjs +758 -482
- package/package.json +16 -1
- package/vendor/epaint-0.31.1/src/image.rs +418 -0
- package/dist/server-CcBFc2F5.d.ts +0 -449
package/dist/test-runtime.d.ts
CHANGED
|
@@ -1,83 +1,32 @@
|
|
|
1
|
+
import { T as TestMatchers, D as DescribeFunction, a as TestFunction, H as HookFunction, M as MockFunction, b as TestResult } from './types-CIhpN1-K.js';
|
|
1
2
|
import { RawSourceMap } from 'source-map';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
declare function expect(actual: any): TestMatchers<any>;
|
|
5
|
+
|
|
6
|
+
declare const globals: {
|
|
7
|
+
describe: DescribeFunction;
|
|
8
|
+
it: TestFunction;
|
|
9
|
+
test: TestFunction;
|
|
10
|
+
expect: typeof expect;
|
|
11
|
+
beforeAll: (fn: HookFunction) => number;
|
|
12
|
+
afterAll: (fn: HookFunction) => number;
|
|
13
|
+
beforeEach: (fn: HookFunction) => number;
|
|
14
|
+
afterEach: (fn: HookFunction) => number;
|
|
15
|
+
vi: {
|
|
16
|
+
fn: <T extends (...args: any[]) => any>() => MockFunction<T>;
|
|
17
|
+
spyOn: (obj: any, method: string) => MockFunction<any>;
|
|
18
|
+
clearAllMocks: () => void;
|
|
19
|
+
restoreAllMocks: () => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare function setupGlobals(): void;
|
|
23
|
+
declare function clearGlobals(): void;
|
|
14
24
|
|
|
15
|
-
interface TestFunction {
|
|
16
|
-
(name: string, fn: () => void, timeout?: number): void;
|
|
17
|
-
skip: (name: string, fn: () => void, timeout?: number) => void;
|
|
18
|
-
only: (name: string, fn: () => void, timeout?: number) => void;
|
|
19
|
-
todo: (name: string, fn: () => void, timeout?: number) => void;
|
|
20
|
-
}
|
|
21
|
-
interface DescribeFunction {
|
|
22
|
-
(name: string, fn: () => void): void;
|
|
23
|
-
skip: (name: string, fn: () => void) => void;
|
|
24
|
-
only: (name: string, fn: () => void) => void;
|
|
25
|
-
}
|
|
26
|
-
interface MockFunction<T extends (...args: any[]) => any> {
|
|
27
|
-
(...args: Parameters<T>): ReturnType<T>;
|
|
28
|
-
_isMock: boolean;
|
|
29
|
-
_calls: Parameters<T>[];
|
|
30
|
-
_results: Array<{
|
|
31
|
-
type: 'return' | 'throw';
|
|
32
|
-
value: any;
|
|
33
|
-
}>;
|
|
34
|
-
_implementation: T | null;
|
|
35
|
-
mockImplementation(fn: T): MockFunction<T>;
|
|
36
|
-
mockReturnValue(value: ReturnType<T>): MockFunction<T>;
|
|
37
|
-
mockResolvedValue(value: ReturnType<T>): MockFunction<T>;
|
|
38
|
-
mockRejectedValue(value: any): MockFunction<T>;
|
|
39
|
-
restore(): void;
|
|
40
|
-
clear(): void;
|
|
41
|
-
}
|
|
42
|
-
interface TestMatchers<T> {
|
|
43
|
-
toBe(value: T): void;
|
|
44
|
-
toEqual(value: T): void;
|
|
45
|
-
toBeTruthy(): void;
|
|
46
|
-
toBeFalsy(): void;
|
|
47
|
-
toBeNull(): void;
|
|
48
|
-
toBeUndefined(): void;
|
|
49
|
-
toBeDefined(): void;
|
|
50
|
-
toBeGreaterThan(value: number): void;
|
|
51
|
-
toBeLessThan(value: number): void;
|
|
52
|
-
toContain(value: any): void;
|
|
53
|
-
toHaveLength(length: number): void;
|
|
54
|
-
toThrow(error?: any): void;
|
|
55
|
-
toMatch(pattern: RegExp | string): void;
|
|
56
|
-
toBeInstanceOf(classType: any): void;
|
|
57
|
-
toHaveProperty(path: string | string[], value?: any): void;
|
|
58
|
-
toBeCalled(): void;
|
|
59
|
-
toBeCalledTimes(times: number): void;
|
|
60
|
-
toBeCalledWith(...args: any[]): void;
|
|
61
|
-
lastReturnedWith(value: any): void;
|
|
62
|
-
not: TestMatchers<any>;
|
|
63
|
-
resolves: TestMatchers<any>;
|
|
64
|
-
rejects: TestMatchers<any>;
|
|
65
|
-
}
|
|
66
|
-
interface TestResult {
|
|
67
|
-
name: string;
|
|
68
|
-
status: 'pass' | 'fail' | 'skip' | 'todo';
|
|
69
|
-
duration: number;
|
|
70
|
-
error?: Error;
|
|
71
|
-
suite: string;
|
|
72
|
-
file?: string;
|
|
73
|
-
lineNumber?: number;
|
|
74
|
-
codeSnippet?: string;
|
|
75
|
-
}
|
|
76
25
|
declare function transpileFile(filePath: string): Promise<{
|
|
77
26
|
code: string;
|
|
78
27
|
sourceMap?: RawSourceMap;
|
|
79
28
|
}>;
|
|
80
|
-
|
|
29
|
+
|
|
81
30
|
declare function runTests(options: {
|
|
82
31
|
files: string[];
|
|
83
32
|
timeout?: number;
|
|
@@ -91,32 +40,8 @@ declare function runTests(options: {
|
|
|
91
40
|
todo: number;
|
|
92
41
|
results: TestResult[];
|
|
93
42
|
}>;
|
|
94
|
-
|
|
95
|
-
describe: DescribeFunction;
|
|
96
|
-
it: TestFunction;
|
|
97
|
-
test: TestFunction;
|
|
98
|
-
expect: typeof expect;
|
|
99
|
-
beforeAll: (fn: () => void | Promise<void>) => number;
|
|
100
|
-
afterAll: (fn: () => void | Promise<void>) => number;
|
|
101
|
-
beforeEach: (fn: () => void | Promise<void>) => number;
|
|
102
|
-
afterEach: (fn: () => void | Promise<void>) => number;
|
|
103
|
-
vi: {
|
|
104
|
-
fn: <T extends (...args: any[]) => any>() => MockFunction<T>;
|
|
105
|
-
spyOn: (obj: any, method: string) => MockFunction<any>;
|
|
106
|
-
clearAllMocks: () => void;
|
|
107
|
-
restoreAllMocks: () => void;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
declare function setupGlobals(): void;
|
|
111
|
-
declare function clearGlobals(): void;
|
|
112
|
-
/**
|
|
113
|
-
* Get all source files that were loaded during test execution
|
|
114
|
-
* Used for coverage reporting
|
|
115
|
-
*/
|
|
43
|
+
|
|
116
44
|
declare function getCoveredFiles(): Set<string>;
|
|
117
|
-
/**
|
|
118
|
-
* Reset covered files tracking (call before running tests)
|
|
119
|
-
*/
|
|
120
45
|
declare function resetCoveredFiles(): void;
|
|
121
46
|
|
|
122
|
-
export {
|
|
47
|
+
export { DescribeFunction, MockFunction, TestFunction, TestMatchers, TestResult, clearGlobals, getCoveredFiles, globals, resetCoveredFiles, runTests, setupGlobals, transpileFile };
|