@davidsouther/jiffies 2.2.4 → 2.3.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/LICENSE +1 -1
- package/lib/cjs/assert.d.ts +2 -2
- package/lib/cjs/awaitable.d.ts +1 -1
- package/lib/cjs/components/button_bar.d.ts +2 -2
- package/lib/cjs/components/inline_edit.d.ts +2 -2
- package/lib/cjs/components/logger.d.ts +1 -1
- package/lib/cjs/components/select.d.ts +4 -7
- package/lib/cjs/components/test.d.ts +1 -1
- package/lib/cjs/components/virtual_scroll.d.ts +6 -4
- package/lib/cjs/context.d.ts +5 -9
- package/lib/cjs/debounce.d.ts +1 -1
- package/lib/cjs/diff.d.ts +2 -2
- package/lib/cjs/display.d.ts +1 -1
- package/lib/cjs/dom/css/border.d.ts +2 -2
- package/lib/cjs/dom/css/constants.d.ts +3 -3
- package/lib/cjs/dom/css/core.d.ts +1 -1
- package/lib/cjs/dom/css/fstyle.d.ts +2 -2
- package/lib/cjs/dom/css/sizing.d.ts +2 -2
- package/lib/cjs/dom/dom.d.ts +8 -8
- package/lib/cjs/dom/fc.d.ts +8 -12
- package/lib/cjs/dom/form/form.d.ts +5 -6
- package/lib/cjs/dom/html.d.ts +112 -113
- package/lib/cjs/dom/observable.d.ts +1 -1
- package/lib/cjs/dom/provide.d.ts +1 -1
- package/lib/cjs/dom/router/router.d.ts +2 -2
- package/lib/cjs/dom/svg.d.ts +64 -64
- package/lib/cjs/dom/types/css.d.ts +10 -32
- package/lib/cjs/dom/types/html.d.ts +4 -6
- package/lib/cjs/equal.d.ts +8 -5
- package/lib/cjs/flags.d.ts +1 -1
- package/lib/cjs/fs.d.ts +3 -3
- package/lib/cjs/fs_node.d.ts +1 -1
- package/lib/cjs/lock.d.ts +1 -1
- package/lib/cjs/log.d.ts +9 -9
- package/lib/cjs/observable/event.d.ts +2 -2
- package/lib/cjs/observable/observable.d.ts +37 -35
- package/lib/cjs/result.d.ts +21 -21
- package/lib/cjs/safe.d.ts +1 -1
- package/lib/cjs/scope/describe.d.ts +4 -4
- package/lib/cjs/scope/display/console.d.ts +1 -1
- package/lib/cjs/scope/display/dom.d.ts +2 -2
- package/lib/cjs/scope/display/junit.d.ts +1 -1
- package/lib/cjs/scope/execute.d.ts +2 -2
- package/lib/cjs/scope/index.d.ts +3 -3
- package/lib/cjs/scope/scope.d.ts +3 -3
- package/lib/cjs/scope/state.d.ts +1 -1
- package/lib/cjs/server/http/apps.d.ts +1 -1
- package/lib/cjs/server/http/css.d.ts +1 -1
- package/lib/cjs/server/http/index.d.ts +4 -9
- package/lib/cjs/server/http/response.d.ts +3 -3
- package/lib/cjs/server/http/sitemap.d.ts +1 -1
- package/lib/cjs/server/http/static.d.ts +1 -1
- package/lib/cjs/server/http/typescript.d.ts +1 -1
- package/lib/cjs/test_all.d.ts +9 -9
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/assert.d.ts +2 -2
- package/lib/esm/awaitable.d.ts +1 -1
- package/lib/esm/components/button_bar.d.ts +2 -2
- package/lib/esm/components/inline_edit.d.ts +2 -2
- package/lib/esm/components/logger.d.ts +1 -1
- package/lib/esm/components/select.d.ts +3 -3
- package/lib/esm/components/test.d.ts +1 -1
- package/lib/esm/components/virtual_scroll.d.ts +6 -4
- package/lib/esm/context.d.ts +5 -9
- package/lib/esm/debounce.d.ts +1 -2
- package/lib/esm/diff.d.ts +2 -2
- package/lib/esm/display.d.ts +1 -1
- package/lib/esm/dom/css/border.d.ts +2 -2
- package/lib/esm/dom/css/constants.d.ts +3 -3
- package/lib/esm/dom/css/core.d.ts +1 -1
- package/lib/esm/dom/css/fstyle.d.ts +2 -2
- package/lib/esm/dom/css/sizing.d.ts +2 -2
- package/lib/esm/dom/dom.d.ts +8 -8
- package/lib/esm/dom/fc.d.ts +8 -12
- package/lib/esm/dom/form/form.d.ts +5 -6
- package/lib/esm/dom/html.d.ts +112 -113
- package/lib/esm/dom/observable.d.ts +1 -1
- package/lib/esm/dom/provide.d.ts +1 -1
- package/lib/esm/dom/router/router.d.ts +2 -2
- package/lib/esm/dom/svg.d.ts +64 -64
- package/lib/esm/dom/types/css.d.ts +10 -32
- package/lib/esm/dom/types/html.d.ts +4 -6
- package/lib/esm/equal.d.ts +8 -5
- package/lib/esm/flags.d.ts +1 -1
- package/lib/esm/fs.d.ts +3 -3
- package/lib/esm/fs_node.d.ts +1 -1
- package/lib/esm/lock.d.ts +1 -1
- package/lib/esm/log.d.ts +9 -9
- package/lib/esm/observable/event.d.ts +2 -2
- package/lib/esm/observable/observable.d.ts +37 -35
- package/lib/esm/result.d.ts +21 -21
- package/lib/esm/safe.d.ts +1 -1
- package/lib/esm/scope/describe.d.ts +4 -4
- package/lib/esm/scope/display/console.d.ts +1 -1
- package/lib/esm/scope/display/dom.d.ts +2 -2
- package/lib/esm/scope/display/junit.d.ts +1 -1
- package/lib/esm/scope/execute.d.ts +2 -2
- package/lib/esm/scope/index.d.ts +3 -3
- package/lib/esm/scope/scope.d.ts +3 -3
- package/lib/esm/scope/state.d.ts +1 -1
- package/lib/esm/server/http/apps.d.ts +1 -1
- package/lib/esm/server/http/css.d.ts +1 -1
- package/lib/esm/server/http/index.d.ts +4 -9
- package/lib/esm/server/http/response.d.ts +3 -3
- package/lib/esm/server/http/sitemap.d.ts +1 -1
- package/lib/esm/server/http/static.d.ts +1 -1
- package/lib/esm/server/http/typescript.d.ts +1 -1
- package/lib/esm/test_all.d.ts +9 -9
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -9
- package/src/assert.ts +5 -5
- package/src/components/button_bar.ts +28 -30
- package/src/components/inline_edit.ts +8 -7
- package/src/components/logger.ts +6 -6
- package/src/components/select.ts +7 -7
- package/src/components/test.ts +5 -0
- package/src/components/virtual_scroll.test.ts +9 -6
- package/src/components/virtual_scroll.ts +29 -24
- package/src/context.test.ts +4 -4
- package/src/context.ts +16 -11
- package/src/debounce.ts +9 -3
- package/src/diff.test.ts +4 -4
- package/src/diff.ts +14 -16
- package/src/dom/css/border.ts +11 -11
- package/src/dom/css/core.ts +1 -1
- package/src/dom/css/fstyle.ts +4 -4
- package/src/dom/css/sizing.ts +1 -1
- package/src/dom/dom.ts +57 -47
- package/src/dom/fc.test.ts +8 -8
- package/src/dom/fc.ts +32 -35
- package/src/dom/form/form.app.ts +9 -9
- package/src/dom/form/form.ts +25 -16
- package/src/dom/form/index.html +3 -2
- package/src/dom/html.test.ts +12 -10
- package/src/dom/html.ts +2 -3
- package/src/dom/observable.test.ts +6 -6
- package/src/dom/observable.ts +2 -2
- package/src/dom/provide.ts +1 -1
- package/src/dom/router/link.ts +3 -3
- package/src/dom/router/router.ts +5 -5
- package/src/dom/svg.ts +7 -6
- package/src/dom/test.ts +3 -0
- package/src/dom/types/css.ts +43 -61
- package/src/dom/types/html.ts +2 -4
- package/src/dom/xml.ts +2 -2
- package/src/equal.test.ts +3 -3
- package/src/equal.ts +27 -14
- package/src/flags.test.ts +2 -2
- package/src/flags.ts +2 -2
- package/src/fs.test.ts +5 -5
- package/src/fs.ts +26 -20
- package/src/fs_node.ts +4 -4
- package/src/fs_win.test.ts +1 -1
- package/src/generator.test.ts +4 -3
- package/src/generator.ts +1 -1
- package/src/hooks/_notes +4 -1
- package/src/index.html +7 -7
- package/src/lock.test.ts +4 -4
- package/src/lock.ts +8 -7
- package/src/log.ts +28 -18
- package/src/observable/event.ts +7 -7
- package/src/observable/observable.test.ts +3 -3
- package/src/observable/observable.ts +71 -52
- package/src/result.test.ts +7 -10
- package/src/result.ts +51 -47
- package/src/safe.ts +1 -1
- package/src/scope/describe.ts +12 -11
- package/src/scope/display/console.ts +4 -4
- package/src/scope/display/dom.ts +9 -9
- package/src/scope/display/junit.ts +21 -24
- package/src/scope/execute.ts +17 -12
- package/src/scope/expect.ts +22 -22
- package/src/scope/fix.ts +10 -7
- package/src/scope/index.ts +3 -3
- package/src/scope/scope.ts +2 -2
- package/src/scope/state.ts +2 -2
- package/src/server/http/apps.ts +5 -5
- package/src/server/http/css.ts +10 -26
- package/src/server/http/index.ts +30 -24
- package/src/server/http/response.ts +12 -5
- package/src/server/http/sitemap.ts +8 -8
- package/src/server/http/static.ts +9 -6
- package/src/server/http/typescript.ts +25 -25
- package/src/server/main.ts +7 -4
- package/src/test.mjs +8 -8
- package/src/test_all.ts +16 -13
- package/src/transpile.mjs +6 -18
- package/build/pico.css +0 -2466
- package/build/pico.css.map +0 -1
- package/lib/cjs/assert.js +0 -46
- package/lib/cjs/awaitable.js +0 -2
- package/lib/cjs/case.js +0 -9
- package/lib/cjs/components/button_bar.js +0 -29
- package/lib/cjs/components/inline_edit.js +0 -51
- package/lib/cjs/components/logger.js +0 -27
- package/lib/cjs/components/select.js +0 -6
- package/lib/cjs/components/test.js +0 -7
- package/lib/cjs/components/virtual_scroll.js +0 -102
- package/lib/cjs/components/virtual_scroll.test.js +0 -22
- package/lib/cjs/context.js +0 -48
- package/lib/cjs/context.test.js +0 -48
- package/lib/cjs/debounce.js +0 -12
- package/lib/cjs/diff.js +0 -58
- package/lib/cjs/diff.test.js +0 -41
- package/lib/cjs/display.js +0 -16
- package/lib/cjs/dom/css/border.js +0 -33
- package/lib/cjs/dom/css/constants.js +0 -31
- package/lib/cjs/dom/css/core.js +0 -31
- package/lib/cjs/dom/css/fstyle.js +0 -36
- package/lib/cjs/dom/css/sizing.js +0 -14
- package/lib/cjs/dom/dom.js +0 -110
- package/lib/cjs/dom/fc.js +0 -39
- package/lib/cjs/dom/fc.test.js +0 -23
- package/lib/cjs/dom/form/form.app.js +0 -27
- package/lib/cjs/dom/form/form.js +0 -49
- package/lib/cjs/dom/form/form.test.js +0 -1
- package/lib/cjs/dom/html.js +0 -119
- package/lib/cjs/dom/html.test.js +0 -60
- package/lib/cjs/dom/observable.js +0 -10
- package/lib/cjs/dom/observable.test.js +0 -35
- package/lib/cjs/dom/provide.js +0 -12
- package/lib/cjs/dom/router/link.js +0 -7
- package/lib/cjs/dom/router/router.js +0 -55
- package/lib/cjs/dom/svg.js +0 -69
- package/lib/cjs/dom/test.js +0 -13
- package/lib/cjs/dom/types/css.js +0 -24
- package/lib/cjs/dom/types/dom.js +0 -1
- package/lib/cjs/dom/types/html.js +0 -2
- package/lib/cjs/dom/xml.js +0 -8
- package/lib/cjs/equal.js +0 -48
- package/lib/cjs/equal.test.js +0 -22
- package/lib/cjs/flags.js +0 -52
- package/lib/cjs/flags.test.js +0 -37
- package/lib/cjs/fs.js +0 -235
- package/lib/cjs/fs.test.js +0 -86
- package/lib/cjs/fs_node.js +0 -50
- package/lib/cjs/fs_win.test.js +0 -10
- package/lib/cjs/generator.js +0 -14
- package/lib/cjs/generator.test.js +0 -26
- package/lib/cjs/is_browser.js +0 -4
- package/lib/cjs/loader-register.d.mts +0 -1
- package/lib/cjs/loader-register.d.ts +0 -1
- package/lib/cjs/loader-register.js +0 -4
- package/lib/cjs/loader-register.mjs +0 -4
- package/lib/cjs/loader.d.mts +0 -23
- package/lib/cjs/loader.mjs +0 -41
- package/lib/cjs/lock.js +0 -27
- package/lib/cjs/lock.test.js +0 -18
- package/lib/cjs/log.js +0 -98
- package/lib/cjs/observable/event.js +0 -61
- package/lib/cjs/observable/observable.js +0 -363
- package/lib/cjs/observable/observable.test.js +0 -65
- package/lib/cjs/package.json +0 -1
- package/lib/cjs/range.js +0 -11
- package/lib/cjs/result.js +0 -80
- package/lib/cjs/result.test.js +0 -78
- package/lib/cjs/safe.js +0 -14
- package/lib/cjs/scope/describe.js +0 -73
- package/lib/cjs/scope/display/console.js +0 -25
- package/lib/cjs/scope/display/dom.js +0 -30
- package/lib/cjs/scope/display/junit.js +0 -21
- package/lib/cjs/scope/execute.js +0 -91
- package/lib/cjs/scope/expect.js +0 -110
- package/lib/cjs/scope/fix.js +0 -26
- package/lib/cjs/scope/index.js +0 -15
- package/lib/cjs/scope/scope.js +0 -2
- package/lib/cjs/scope/state.js +0 -12
- package/lib/cjs/server/http/apps.js +0 -27
- package/lib/cjs/server/http/css.js +0 -54
- package/lib/cjs/server/http/index.js +0 -77
- package/lib/cjs/server/http/response.js +0 -45
- package/lib/cjs/server/http/sitemap.js +0 -46
- package/lib/cjs/server/http/static.js +0 -25
- package/lib/cjs/server/http/typescript.js +0 -44
- package/lib/cjs/server/main.js +0 -14
- package/lib/cjs/test.mjs +0 -28
- package/lib/cjs/test_all.js +0 -30
- package/lib/cjs/transpile.mjs +0 -22
- package/lib/esm/assert.js +0 -38
- package/lib/esm/awaitable.js +0 -1
- package/lib/esm/case.js +0 -5
- package/lib/esm/components/button_bar.js +0 -27
- package/lib/esm/components/inline_edit.js +0 -48
- package/lib/esm/components/logger.js +0 -22
- package/lib/esm/components/select.js +0 -3
- package/lib/esm/components/test.js +0 -3
- package/lib/esm/components/virtual_scroll.js +0 -94
- package/lib/esm/components/virtual_scroll.test.js +0 -20
- package/lib/esm/context.js +0 -43
- package/lib/esm/context.test.js +0 -46
- package/lib/esm/debounce.js +0 -8
- package/lib/esm/diff.js +0 -54
- package/lib/esm/diff.test.js +0 -39
- package/lib/esm/display.js +0 -11
- package/lib/esm/dom/css/border.js +0 -27
- package/lib/esm/dom/css/constants.js +0 -28
- package/lib/esm/dom/css/core.js +0 -24
- package/lib/esm/dom/css/fstyle.js +0 -32
- package/lib/esm/dom/css/sizing.js +0 -10
- package/lib/esm/dom/dom.js +0 -104
- package/lib/esm/dom/fc.js +0 -35
- package/lib/esm/dom/fc.test.js +0 -21
- package/lib/esm/dom/form/form.app.js +0 -23
- package/lib/esm/dom/form/form.js +0 -34
- package/lib/esm/dom/form/form.test.js +0 -1
- package/lib/esm/dom/html.js +0 -114
- package/lib/esm/dom/html.test.js +0 -58
- package/lib/esm/dom/observable.js +0 -6
- package/lib/esm/dom/observable.test.js +0 -33
- package/lib/esm/dom/provide.js +0 -7
- package/lib/esm/dom/router/link.js +0 -3
- package/lib/esm/dom/router/router.js +0 -52
- package/lib/esm/dom/svg.js +0 -65
- package/lib/esm/dom/test.js +0 -9
- package/lib/esm/dom/types/css.js +0 -23
- package/lib/esm/dom/types/dom.js +0 -1
- package/lib/esm/dom/types/html.js +0 -1
- package/lib/esm/dom/xml.js +0 -4
- package/lib/esm/equal.js +0 -41
- package/lib/esm/equal.test.js +0 -20
- package/lib/esm/flags.js +0 -48
- package/lib/esm/flags.test.js +0 -35
- package/lib/esm/fs.js +0 -226
- package/lib/esm/fs.test.js +0 -84
- package/lib/esm/fs_node.js +0 -45
- package/lib/esm/fs_win.test.js +0 -8
- package/lib/esm/generator.js +0 -10
- package/lib/esm/generator.test.js +0 -24
- package/lib/esm/is_browser.js +0 -1
- package/lib/esm/loader-register.d.mts +0 -1
- package/lib/esm/loader-register.mjs +0 -2
- package/lib/esm/loader.d.mts +0 -23
- package/lib/esm/loader.mjs +0 -36
- package/lib/esm/lock.js +0 -23
- package/lib/esm/lock.test.js +0 -16
- package/lib/esm/log.js +0 -88
- package/lib/esm/observable/event.js +0 -46
- package/lib/esm/observable/observable.js +0 -343
- package/lib/esm/observable/observable.test.js +0 -63
- package/lib/esm/range.js +0 -7
- package/lib/esm/result.js +0 -65
- package/lib/esm/result.test.js +0 -76
- package/lib/esm/safe.js +0 -10
- package/lib/esm/scope/describe.js +0 -60
- package/lib/esm/scope/display/console.js +0 -21
- package/lib/esm/scope/display/dom.js +0 -26
- package/lib/esm/scope/display/junit.js +0 -17
- package/lib/esm/scope/execute.js +0 -85
- package/lib/esm/scope/expect.js +0 -104
- package/lib/esm/scope/fix.js +0 -22
- package/lib/esm/scope/index.js +0 -3
- package/lib/esm/scope/scope.js +0 -1
- package/lib/esm/scope/state.js +0 -8
- package/lib/esm/server/http/apps.js +0 -23
- package/lib/esm/server/http/css.js +0 -50
- package/lib/esm/server/http/index.js +0 -73
- package/lib/esm/server/http/response.js +0 -40
- package/lib/esm/server/http/sitemap.js +0 -42
- package/lib/esm/server/http/static.js +0 -21
- package/lib/esm/server/http/typescript.js +0 -40
- package/lib/esm/server/main.js +0 -12
- package/lib/esm/test.mjs +0 -26
- package/lib/esm/test_all.js +0 -28
- package/lib/esm/transpile.mjs +0 -18
- package/src/components/test.js +0 -3
- package/src/loader-register.mjs +0 -3
- package/src/loader.mjs +0 -46
|
@@ -1,28 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017-2018 Fredrik Nicol
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
22
|
-
*/
|
|
23
|
-
export {};
|
|
24
|
-
export declare type PropertyValue<TValue> = TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ? TUnpacked : AValue> : TValue extends infer TUnpacked & {} ? TUnpacked : TValue;
|
|
25
|
-
export declare type Fallback<T> = {
|
|
1
|
+
export type PropertyValue<TValue> = TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ? TUnpacked : AValue> : TValue extends infer TUnpacked & {} ? TUnpacked : TValue;
|
|
2
|
+
export type Fallback<T> = {
|
|
26
3
|
[P in keyof T]: T[P] | NonNullable<T[P]>[];
|
|
27
4
|
};
|
|
28
5
|
export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
@@ -5864,13 +5841,13 @@ export interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}>
|
|
|
5864
5841
|
}
|
|
5865
5842
|
export interface Properties<TLength = (string & {}) | 0, TTime = string & {}> extends StandardProperties<TLength, TTime>, SvgProperties<TLength, TTime> {
|
|
5866
5843
|
}
|
|
5867
|
-
export
|
|
5868
|
-
export
|
|
5869
|
-
export
|
|
5870
|
-
export
|
|
5871
|
-
export
|
|
5872
|
-
export
|
|
5873
|
-
export
|
|
5844
|
+
export type AtRules = "@charset" | "@counter-style" | "@document" | "@font-face" | "@font-feature-values" | "@import" | "@keyframes" | "@layer" | "@media" | "@namespace" | "@page" | "@property" | "@scroll-timeline" | "@supports" | "@viewport";
|
|
5845
|
+
export type AdvancedPseudos = "::cue" | "::cue-region" | "::part" | "::slotted" | ":dir" | ":has" | ":host" | ":host-context" | ":is" | ":lang" | ":matches()" | ":not" | ":nth-child" | ":nth-last-child" | ":nth-last-of-type" | ":nth-of-type" | ":where";
|
|
5846
|
+
export type SimplePseudos = "::after" | "::backdrop" | "::before" | "::cue" | "::cue-region" | "::first-letter" | "::first-line" | "::grammar-error" | "::marker" | "::placeholder" | "::selection" | "::spelling-error" | "::target-text" | ":active" | ":after" | ":any-link" | ":before" | ":blank" | ":checked" | ":current" | ":default" | ":defined" | ":disabled" | ":empty" | ":enabled" | ":first" | ":first-child" | ":first-letter" | ":first-line" | ":first-of-type" | ":focus" | ":focus-visible" | ":focus-within" | ":fullscreen" | ":future" | ":hover" | ":in-range" | ":indeterminate" | ":invalid" | ":last-child" | ":last-of-type" | ":left" | ":link" | ":local-link" | ":nth-col" | ":nth-last-col" | ":only-child" | ":only-of-type" | ":optional" | ":out-of-range" | ":past" | ":paused" | ":picture-in-picture" | ":placeholder-shown" | ":read-only" | ":read-write" | ":required" | ":right" | ":root" | ":scope" | ":target" | ":target-within" | ":user-invalid" | ":user-valid" | ":valid" | ":visited";
|
|
5847
|
+
export type Pseudos = AdvancedPseudos | SimplePseudos;
|
|
5848
|
+
export type HtmlAttributes = "[abbr]" | "[accept-charset]" | "[accept]" | "[accesskey]" | "[action]" | "[align]" | "[alink]" | "[allow]" | "[allowfullscreen]" | "[allowpaymentrequest]" | "[alt]" | "[archive]" | "[async]" | "[autobuffer]" | "[autocapitalize]" | "[autocomplete]" | "[autofocus]" | "[autoplay]" | "[axis]" | "[background]" | "[behavior]" | "[bgcolor]" | "[border]" | "[bottommargin]" | "[buffered]" | "[cellpadding]" | "[cellspacing]" | "[char]" | "[charoff]" | "[charset]" | "[checked]" | "[cite]" | "[class]" | "[classid]" | "[clear]" | "[code]" | "[codebase]" | "[codetype]" | "[color]" | "[cols]" | "[colspan]" | "[command]" | "[compact]" | "[content]" | "[contenteditable]" | "[contextmenu]" | "[controls]" | "[coords]" | "[crossorigin]" | "[data]" | "[datafld]" | "[datasrc]" | "[datetime]" | "[declare]" | "[decoding]" | "[default]" | "[defer]" | "[dir]" | "[direction]" | "[dirname]" | "[disabled]" | "[download]" | "[draggable]" | "[enctype]" | "[enterkeyhint]" | "[exportparts]" | "[face]" | "[for]" | "[form]" | "[formaction]" | "[formenctype]" | "[formmethod]" | "[formnovalidate]" | "[formtarget]" | "[frame]" | "[frameborder]" | "[headers]" | "[height]" | "[hidden]" | "[high]" | "[href]" | "[hreflang]" | "[hspace]" | "[http-equiv]" | "[icon]" | "[id]" | "[imagesizes]" | "[imagesrcset]" | "[inputmode]" | "[integrity]" | "[intrinsicsize]" | "[is]" | "[ismap]" | "[itemid]" | "[itemprop]" | "[itemref]" | "[itemscope]" | "[itemtype]" | "[kind]" | "[label]" | "[lang]" | "[language]" | "[leftmargin]" | "[link]" | "[loading]" | "[longdesc]" | "[loop]" | "[low]" | "[manifest]" | "[marginheight]" | "[marginwidth]" | "[max]" | "[maxlength]" | "[mayscript]" | "[media]" | "[method]" | "[methods]" | "[min]" | "[minlength]" | "[moz-opaque]" | "[mozallowfullscreen]" | "[mozcurrentsampleoffset]" | "[msallowfullscreen]" | "[multiple]" | "[muted]" | "[name]" | "[nohref]" | "[nomodule]" | "[nonce]" | "[noresize]" | "[noshade]" | "[novalidate]" | "[nowrap]" | "[object]" | "[onafterprint]" | "[onbeforeprint]" | "[onbeforeunload]" | "[onblur]" | "[onerror]" | "[onfocus]" | "[onhashchange]" | "[onlanguagechange]" | "[onload]" | "[onmessage]" | "[onoffline]" | "[ononline]" | "[onpopstate]" | "[onredo]" | "[onresize]" | "[onstorage]" | "[onundo]" | "[onunload]" | "[open]" | "[optimum]" | "[part]" | "[ping]" | "[placeholder]" | "[played]" | "[poster]" | "[prefetch]" | "[preload]" | "[profile]" | "[radiogroup]" | "[readonly]" | "[referrerpolicy]" | "[rel]" | "[required]" | "[rev]" | "[reversed]" | "[rightmargin]" | "[rows]" | "[rowspan]" | "[rules]" | "[sandbox-allow-downloads]" | "[sandbox-allow-modals]" | "[sandbox-allow-popups-to-escape-sandbox]" | "[sandbox-allow-popups]" | "[sandbox-allow-presentation]" | "[sandbox-allow-same-origin]" | "[sandbox-allow-storage-access-by-user-activation]" | "[sandbox-allow-top-navigation-by-user-activation]" | "[sandbox]" | "[scope]" | "[scoped]" | "[scrollamount]" | "[scrolldelay]" | "[scrolling]" | "[selected]" | "[shadowroot]" | "[shape]" | "[size]" | "[sizes]" | "[slot]" | "[span]" | "[spellcheck]" | "[src]" | "[srcdoc]" | "[srclang]" | "[srcset]" | "[standby]" | "[start]" | "[style]" | "[summary]" | "[tabindex]" | "[target]" | "[text]" | "[title]" | "[topmargin]" | "[translate]" | "[truespeed]" | "[type]" | "[usemap]" | "[valign]" | "[value]" | "[valuetype]" | "[version]" | "[vlink]" | "[volume]" | "[vspace]" | "[webkitallowfullscreen]" | "[width]" | "[wrap]" | "[xmlns]";
|
|
5849
|
+
export type SvgAttributes = "[accent-height]" | "[alignment-baseline]" | "[allowReorder]" | "[alphabetic]" | "[animation]" | "[arabic-form]" | "[ascent]" | "[attributeName]" | "[attributeType]" | "[azimuth]" | "[baseFrequency]" | "[baseProfile]" | "[baseline-shift]" | "[bbox]" | "[bias]" | "[by]" | "[calcMode]" | "[cap-height]" | "[class]" | "[clip-path]" | "[clip-rule]" | "[clipPathUnits]" | "[clip]" | "[color-interpolation-filters]" | "[color-interpolation]" | "[color-profile]" | "[color-rendering]" | "[color]" | "[contentScriptType]" | "[contentStyleType]" | "[cursor]" | "[cx]" | "[cy]" | "[d]" | "[descent]" | "[diffuseConstant]" | "[direction]" | "[display]" | "[divisor]" | "[document]" | "[dominant-baseline]" | "[download]" | "[dur]" | "[dx]" | "[dy]" | "[edgeMode]" | "[elevation]" | "[enable-background]" | "[fill-opacity]" | "[fill-rule]" | "[fill]" | "[filterRes]" | "[filterUnits]" | "[filter]" | "[flood-color]" | "[flood-opacity]" | "[font-family]" | "[font-size-adjust]" | "[font-size]" | "[font-stretch]" | "[font-style]" | "[font-variant]" | "[font-weight]" | "[format]" | "[fr]" | "[from]" | "[fx]" | "[fy]" | "[g1]" | "[g2]" | "[global]" | "[glyph-name]" | "[glyph-orientation-horizontal]" | "[glyph-orientation-vertical]" | "[glyphRef]" | "[gradientTransform]" | "[gradientUnits]" | "[graphical]" | "[hanging]" | "[hatchContentUnits]" | "[hatchUnits]" | "[height]" | "[horiz-adv-x]" | "[horiz-origin-x]" | "[horiz-origin-y]" | "[href]" | "[hreflang]" | "[id]" | "[ideographic]" | "[image-rendering]" | "[in2]" | "[in]" | "[k1]" | "[k2]" | "[k3]" | "[k4]" | "[k]" | "[kernelMatrix]" | "[kernelUnitLength]" | "[kerning]" | "[keyPoints]" | "[lang]" | "[lengthAdjust]" | "[letter-spacing]" | "[lighting-color]" | "[limitingConeAngle]" | "[marker-end]" | "[marker-mid]" | "[marker-start]" | "[markerHeight]" | "[markerUnits]" | "[markerWidth]" | "[maskContentUnits]" | "[maskUnits]" | "[mask]" | "[mathematical]" | "[media]" | "[mode]" | "[name]" | "[numOctaves]" | "[offset]" | "[opacity]" | "[operator]" | "[order]" | "[orient]" | "[orientation]" | "[origin]" | "[overflow]" | "[overline-position]" | "[overline-thickness]" | "[paint-order]" | "[panose-1]" | "[path]" | "[patternContentUnits]" | "[patternTransform]" | "[patternUnits]" | "[ping]" | "[pitch]" | "[pointer-events]" | "[pointsAtX]" | "[pointsAtY]" | "[pointsAtZ]" | "[points]" | "[preserveAlpha]" | "[preserveAspectRatio]" | "[primitiveUnits]" | "[r]" | "[radius]" | "[refX]" | "[refY]" | "[referrerpolicy]" | "[rel]" | "[repeatCount]" | "[requiredExtensions]" | "[requiredFeatures]" | "[rotate]" | "[rx]" | "[ry]" | "[scale]" | "[seed]" | "[shape-rendering]" | "[side]" | "[slope]" | "[solid-color]" | "[solid-opacity]" | "[spacing]" | "[specularConstant]" | "[specularExponent]" | "[spreadMethod]" | "[startOffset]" | "[stdDeviation]" | "[stemh]" | "[stemv]" | "[stitchTiles]" | "[stop-color]" | "[stop-opacity]" | "[strikethrough-position]" | "[strikethrough-thickness]" | "[string]" | "[stroke-dasharray]" | "[stroke-dashoffset]" | "[stroke-linecap]" | "[stroke-linejoin]" | "[stroke-miterlimit]" | "[stroke-opacity]" | "[stroke-width]" | "[stroke]" | "[style]" | "[surfaceScale]" | "[systemLanguage]" | "[tabindex]" | "[targetX]" | "[targetY]" | "[target]" | "[text-anchor]" | "[text-decoration]" | "[text-overflow]" | "[text-rendering]" | "[textLength]" | "[title]" | "[to]" | "[transform-origin]" | "[transform]" | "[type]" | "[u1]" | "[u2]" | "[underline-position]" | "[underline-thickness]" | "[unicode-bidi]" | "[unicode-range]" | "[unicode]" | "[units-per-em]" | "[v-alphabetic]" | "[v-hanging]" | "[v-ideographic]" | "[v-mathematical]" | "[values]" | "[vector-effect]" | "[version]" | "[vert-adv-y]" | "[vert-origin-x]" | "[vert-origin-y]" | "[viewBox]" | "[viewTarget]" | "[visibility]" | "[white-space]" | "[width]" | "[widths]" | "[word-spacing]" | "[writing-mode]" | "[x-height]" | "[x1]" | "[x2]" | "[xChannelSelector]" | "[x]" | "[y1]" | "[y2]" | "[yChannelSelector]" | "[y]" | "[z]" | "[zoomAndPan]";
|
|
5850
|
+
export type Globals = "inherit" | "initial" | "revert" | "unset";
|
|
5874
5851
|
export declare namespace Property {
|
|
5875
5852
|
type AccentColor = Globals | DataType.Color | "auto";
|
|
5876
5853
|
type AlignContent = Globals | DataType.ContentDistribution | DataType.ContentPosition | "baseline" | "normal" | (string & {});
|
|
@@ -6610,3 +6587,4 @@ declare namespace DataType {
|
|
|
6610
6587
|
type ViewportLength<TLength> = TLength | "auto" | (string & {});
|
|
6611
6588
|
type VisualBox = "border-box" | "content-box" | "padding-box";
|
|
6612
6589
|
}
|
|
6590
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Properties } from "./css";
|
|
1
|
+
import type { Properties } from "./css";
|
|
2
2
|
export interface AriaAttributes {
|
|
3
3
|
[_: `aria-${string}`]: string;
|
|
4
4
|
}
|
|
@@ -6,11 +6,9 @@ export interface Sized {
|
|
|
6
6
|
height?: number | string;
|
|
7
7
|
width?: number | string;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
(k: Event): void;
|
|
13
|
-
}
|
|
9
|
+
export type MimeTypeString = `${string}/${string}`;
|
|
10
|
+
export type ReferrerPolicy = "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
11
|
+
export type EventHandler = (k: Event) => void;
|
|
14
12
|
export interface GlobalEvents {
|
|
15
13
|
abort: EventHandler;
|
|
16
14
|
autocomplete: EventHandler;
|
package/lib/esm/equal.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare function compareArrays<T>(equal: (a: T, b: T, partial: boolean) => boolean): (A: T[], B: T[], partial?: boolean) => boolean;
|
|
2
2
|
export declare const equalArrays: (A: any[], B: any[], partial?: boolean) => boolean;
|
|
3
|
-
export declare
|
|
3
|
+
export declare function matchArrays<T>(a: T[], b: T[], partial?: boolean): boolean;
|
|
4
4
|
export declare function asArray<T = unknown>(a: Record<string, T>): [string, T][];
|
|
5
|
-
export declare const matchObjects: (a:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare
|
|
5
|
+
export declare const matchObjects: (a: object, b: object & {
|
|
6
|
+
[k: string]: unknown;
|
|
7
|
+
}, partial?: boolean) => boolean;
|
|
8
|
+
export declare function equals<T>(a: T, b: T, partial?: boolean): boolean;
|
|
9
|
+
export declare function equals<T>(a: T[], b: T[], partial?: boolean): boolean;
|
|
10
|
+
export type Equals<T1, T2> = (<T>() => T extends T2 ? true : false) extends <T>() => T extends T1 ? true : false ? true : false;
|
|
11
|
+
export type Not<B extends boolean> = B extends true ? false : true;
|
package/lib/esm/flags.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const parse: (parseArgs: string[]) => {
|
|
2
2
|
readonly argv0: string;
|
|
3
|
-
readonly args:
|
|
3
|
+
readonly args: ReadonlyArray<string>;
|
|
4
4
|
get(flag: string, def?: boolean): boolean;
|
|
5
5
|
asNumber(param: string, def?: number): number;
|
|
6
6
|
asString(param: string, def?: string): string;
|
package/lib/esm/fs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PathLike = string;
|
|
2
2
|
export interface PlatformParts {
|
|
3
3
|
SEP: string;
|
|
4
4
|
WD: string;
|
|
@@ -27,9 +27,9 @@ export interface FileSystemAdapter {
|
|
|
27
27
|
rm(path: PathLike): Promise<void>;
|
|
28
28
|
}
|
|
29
29
|
export declare class FileSystem implements FileSystemAdapter {
|
|
30
|
-
protected adapter: FileSystemAdapter;
|
|
31
30
|
protected wd: string;
|
|
32
31
|
protected stack: string[];
|
|
32
|
+
protected adapter: FileSystemAdapter;
|
|
33
33
|
constructor(adapter?: FileSystemAdapter);
|
|
34
34
|
cwd(): string;
|
|
35
35
|
cd(dir: string): void;
|
|
@@ -60,7 +60,7 @@ export declare class RecordFileSystemAdapter implements FileSystemAdapter {
|
|
|
60
60
|
export declare class LocalStorageFileSystemAdapter extends RecordFileSystemAdapter {
|
|
61
61
|
constructor();
|
|
62
62
|
}
|
|
63
|
-
export
|
|
63
|
+
export type ObjectFileSystem = {
|
|
64
64
|
[k: string]: string | ObjectFileSystem;
|
|
65
65
|
};
|
|
66
66
|
export declare class ObjectFileSystemAdapter extends RecordFileSystemAdapter {
|
package/lib/esm/fs_node.d.ts
CHANGED
package/lib/esm/lock.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function lock(fn:
|
|
1
|
+
export declare function lock<CF extends (...args: unknown[]) => unknown>(fn: CF): CF;
|
package/lib/esm/log.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Display } from "./display.
|
|
2
|
-
export
|
|
3
|
-
(message: Display, data?: {}): void;
|
|
4
|
-
}
|
|
1
|
+
import { type Display } from "./display.ts";
|
|
2
|
+
export type Log = (message: Display, data?: object) => void;
|
|
5
3
|
export interface Logger {
|
|
4
|
+
logAt: (level: number, prefix: string, fn?: (logLine: string) => void) => Log;
|
|
6
5
|
level: number;
|
|
7
6
|
format: <D extends {
|
|
8
7
|
name: string;
|
|
@@ -12,6 +11,7 @@ export interface Logger {
|
|
|
12
11
|
source: string;
|
|
13
12
|
}>(data: D) => string;
|
|
14
13
|
console: Console;
|
|
14
|
+
default: (logLine: string) => void;
|
|
15
15
|
debug: Log;
|
|
16
16
|
info: Log;
|
|
17
17
|
warn: Log;
|
|
@@ -35,7 +35,7 @@ export declare function basicLogFormatter(data: {
|
|
|
35
35
|
message: string;
|
|
36
36
|
source: string;
|
|
37
37
|
}): string;
|
|
38
|
-
|
|
38
|
+
type LoggerFormatFn = <D extends {
|
|
39
39
|
name: string;
|
|
40
40
|
prefix: string;
|
|
41
41
|
level: number;
|
|
@@ -47,8 +47,8 @@ export declare function getLogger(name: string, args?: LoggerFormatFn | {
|
|
|
47
47
|
console?: Console;
|
|
48
48
|
}): Logger;
|
|
49
49
|
export declare const DEFAULT_LOGGER: Logger;
|
|
50
|
-
export declare function debug(message: Display, data?:
|
|
51
|
-
export declare function info(message: Display, data?:
|
|
52
|
-
export declare function warn(message: Display, data?:
|
|
53
|
-
export declare function error(message: Display, data?:
|
|
50
|
+
export declare function debug(message: Display, data?: object): void;
|
|
51
|
+
export declare function info(message: Display, data?: object): void;
|
|
52
|
+
export declare function warn(message: Display, data?: object): void;
|
|
53
|
+
export declare function error(message: Display, data?: object): void;
|
|
54
54
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from "./observable.
|
|
1
|
+
import type { Observable } from "./observable.ts";
|
|
2
2
|
export interface Next<T> {
|
|
3
3
|
value: T;
|
|
4
4
|
completed: false;
|
|
@@ -17,7 +17,7 @@ export interface Failed {
|
|
|
17
17
|
completed: true;
|
|
18
18
|
failed: true;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type Event<T, E> = Next<T> | Error<E> | Completed | Failed;
|
|
21
21
|
export interface EventSubscriber<T, E> {
|
|
22
22
|
next(e: Event<T, E>): void;
|
|
23
23
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Display } from "../display.ts";
|
|
2
|
+
import { type Logger } from "../log.ts";
|
|
2
3
|
export interface FullSubscriber<T, E> {
|
|
3
|
-
next?: (t: T) => void | Promise<
|
|
4
|
-
error?: (e: E) => void | Promise<
|
|
5
|
-
complete?: () => void | Promise<
|
|
4
|
+
next?: (t: T) => void | Promise<void>;
|
|
5
|
+
error?: (e: E) => void | Promise<void>;
|
|
6
|
+
complete?: () => void | Promise<void>;
|
|
6
7
|
}
|
|
7
|
-
export
|
|
8
|
+
export type Subscriber<T, E> = FullSubscriber<T, E> | ((t: T) => void | Promise<void>);
|
|
8
9
|
export interface Subscription {
|
|
9
10
|
unsubscribe(): void;
|
|
10
11
|
}
|
|
@@ -21,13 +22,14 @@ export interface Observable<T, E = unknown> {
|
|
|
21
22
|
}
|
|
22
23
|
export declare const Observable: {
|
|
23
24
|
of<T, E>(...ts: T[]): Observable<T, E>;
|
|
24
|
-
combineLatest<T1, T2,
|
|
25
|
+
combineLatest<T1, T2, E>(o1: Observable<T1, E>, o2: Observable<T2, E>): Observable<[T1, T2], E>;
|
|
25
26
|
};
|
|
26
27
|
interface Scheduler {
|
|
27
|
-
execute(fn: () => (void | Promise<
|
|
28
|
+
execute(fn: () => (void | Promise<void>)[]): void | Promise<void>;
|
|
28
29
|
}
|
|
29
30
|
export declare const AsyncScheduler: Scheduler;
|
|
30
31
|
export declare const SyncScheduler: Scheduler;
|
|
32
|
+
export declare function setDefaultScheduler(scheduler: Scheduler): void;
|
|
31
33
|
export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T, E>, Observable<T, E> {
|
|
32
34
|
#private;
|
|
33
35
|
private readonly scheduler;
|
|
@@ -35,10 +37,10 @@ export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T
|
|
|
35
37
|
get hot(): boolean;
|
|
36
38
|
get cold(): boolean;
|
|
37
39
|
constructor(scheduler?: Scheduler);
|
|
38
|
-
onWarm(fn:
|
|
39
|
-
next(t: T | T2): void | Promise<
|
|
40
|
-
error(e: E): void | Promise<
|
|
41
|
-
complete(): void | Promise<
|
|
40
|
+
onWarm(fn: CallableFunction): void;
|
|
41
|
+
next(t: T | T2): void | Promise<void>;
|
|
42
|
+
error(e: E): void | Promise<void>;
|
|
43
|
+
complete(): void | Promise<void>;
|
|
42
44
|
subscribe(subscriber: Subscriber<T, E>): Subscription;
|
|
43
45
|
pipe<T1>(o1: Subscriber<T, E> & Observable<T1, E>): Observable<T1, E>;
|
|
44
46
|
pipe<T1, T2>(o1: Subscriber<T, E> & Observable<T1, E>, o2: Subscriber<T1, E> & Observable<T2, E>): Observable<T2, E>;
|
|
@@ -52,44 +54,44 @@ export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T
|
|
|
52
54
|
export declare class BehaviorSubject<T, E = unknown, T2 = T> extends Subject<T, E, T2> {
|
|
53
55
|
#private;
|
|
54
56
|
constructor(t: T, scheduler?: Scheduler);
|
|
55
|
-
next(t: T | T2): void | Promise<
|
|
57
|
+
next(t: T | T2): void | Promise<void>;
|
|
56
58
|
subscribe(subscriber: Subscriber<T, E>): Subscription;
|
|
57
59
|
get current(): T;
|
|
58
60
|
}
|
|
59
61
|
export declare class ReplaySubject<T, E = unknown> extends Subject<T, E> {
|
|
60
62
|
#private;
|
|
61
|
-
|
|
63
|
+
readonly n: number;
|
|
62
64
|
constructor(n: number, scheduler?: Scheduler);
|
|
63
|
-
next(t: T): void | Promise<
|
|
65
|
+
next(t: T): void | Promise<void>;
|
|
64
66
|
subscribe(subscriber: Subscriber<T, E>): Subscription;
|
|
65
67
|
}
|
|
66
68
|
export declare function eventListener<E extends Event>(): (Subject<E, unknown, E> | ((e: E) => void))[];
|
|
67
69
|
export declare class EventHandler<E extends Event> extends Subject<E> {
|
|
68
70
|
private readonly eventFn;
|
|
69
|
-
constructor(eventFn: (e: E) => void | Promise<
|
|
70
|
-
next(e: E):
|
|
71
|
+
constructor(eventFn: (e: E) => void | Promise<void>);
|
|
72
|
+
next(e: E): Promise<undefined>;
|
|
71
73
|
}
|
|
72
|
-
export declare const watch: <T, E>(logger?: Logger) => (observable: Observable<T, E>) => void;
|
|
74
|
+
export declare const watch: <T extends Display, E extends Display>(logger?: Logger) => (observable: Observable<T, E>) => void;
|
|
73
75
|
declare class MapOperator<T, U, E> extends Subject<U, E, T> implements FullSubscriber<T, E>, Observable<U, E> {
|
|
74
76
|
private readonly mapFn;
|
|
75
77
|
constructor(mapFn: (t: T) => U);
|
|
76
|
-
next(t: T): void | Promise<
|
|
78
|
+
next(t: T): void | Promise<void>;
|
|
77
79
|
}
|
|
78
80
|
declare class FilterOperator<T, E> extends Subject<T, E> implements FullSubscriber<T, E>, Observable<T, E> {
|
|
79
81
|
private readonly filterFn;
|
|
80
82
|
constructor(filterFn: (t: T) => boolean);
|
|
81
|
-
next(t: T): void | Promise<
|
|
83
|
+
next(t: T): void | Promise<void>;
|
|
82
84
|
}
|
|
83
85
|
declare class DistinctOperator<T, E> extends Subject<T, E> implements FullSubscriber<T, E>, Observable<T, E> {
|
|
84
86
|
#private;
|
|
85
87
|
private readonly distinctFn;
|
|
86
88
|
constructor(distinctFn?: (t1: T, t2: T) => boolean);
|
|
87
|
-
next(t: T): void | Promise<
|
|
89
|
+
next(t: T): void | Promise<void>;
|
|
88
90
|
}
|
|
89
91
|
declare class ReduceOperator<A, T, E> extends BehaviorSubject<A, E, T> {
|
|
90
92
|
private readonly fn;
|
|
91
93
|
constructor(fn: (acc: A, t: T) => A, init: A);
|
|
92
|
-
next(t: T): void | Promise<
|
|
94
|
+
next(t: T): void | Promise<void>;
|
|
93
95
|
}
|
|
94
96
|
export declare class TakeUntilOperator<T, E> extends Subject<T, E> {
|
|
95
97
|
constructor(o: Observable<unknown, unknown>);
|
|
@@ -97,20 +99,20 @@ export declare class TakeUntilOperator<T, E> extends Subject<T, E> {
|
|
|
97
99
|
export declare class TapOperator<T, E> extends Subject<T, E> {
|
|
98
100
|
private readonly subscriber;
|
|
99
101
|
constructor(fn: Subscriber<T, E>);
|
|
100
|
-
next(t: T): void | Promise<
|
|
101
|
-
error(e: E): void | Promise<
|
|
102
|
-
complete(): void | Promise<
|
|
102
|
+
next(t: T): void | Promise<void>;
|
|
103
|
+
error(e: E): void | Promise<void>;
|
|
104
|
+
complete(): void | Promise<void>;
|
|
103
105
|
}
|
|
104
106
|
declare class FirstOperator<T, E> extends Subject<T, E> {
|
|
105
|
-
next(t: T): void | Promise<
|
|
107
|
+
next(t: T): void | Promise<void>;
|
|
106
108
|
}
|
|
107
109
|
declare class LastOperator<T, E = Error> extends Subject<T, E> {
|
|
108
110
|
#private;
|
|
109
111
|
next(t: T): void;
|
|
110
|
-
complete(): void | Promise<
|
|
112
|
+
complete(): void | Promise<void>;
|
|
111
113
|
}
|
|
112
114
|
export declare const filter: <T, E>(fn: (t: T) => boolean) => FilterOperator<T, E>;
|
|
113
|
-
export declare const distinct: <T, E>(fn?: (
|
|
115
|
+
export declare const distinct: <T, E>(fn?: (t1: T, t2: T) => boolean) => DistinctOperator<T, E>;
|
|
114
116
|
export declare const first: <T, E>() => FirstOperator<T, E>;
|
|
115
117
|
export declare const last: <T, E>() => LastOperator<T, E>;
|
|
116
118
|
export declare const map: <T1, T2, E>(fn: (t: T1) => T2) => MapOperator<T1, T2, E>;
|
|
@@ -120,13 +122,13 @@ export declare const takeUntil: <T, E>(o: Observable<unknown, unknown>) => TakeU
|
|
|
120
122
|
export declare const tap: <T, E>(fn: Subscriber<T, E>) => TapOperator<T, E>;
|
|
121
123
|
export declare const operator: {
|
|
122
124
|
filter: <T, E>(fn: (t: T) => boolean) => FilterOperator<T, E>;
|
|
123
|
-
distinct: <
|
|
124
|
-
first: <
|
|
125
|
-
last: <
|
|
126
|
-
map: <T1, T2,
|
|
127
|
-
replay: <
|
|
128
|
-
reduce: <A,
|
|
129
|
-
takeUntil: <
|
|
130
|
-
tap: <
|
|
125
|
+
distinct: <T, E>(fn?: (t1: T, t2: T) => boolean) => DistinctOperator<T, E>;
|
|
126
|
+
first: <T, E>() => FirstOperator<T, E>;
|
|
127
|
+
last: <T, E>() => LastOperator<T, E>;
|
|
128
|
+
map: <T1, T2, E>(fn: (t: T1) => T2) => MapOperator<T1, T2, E>;
|
|
129
|
+
replay: <T, E>(n: number) => ReplaySubject<T, E>;
|
|
130
|
+
reduce: <A, T, E>(fn: (acc: A, t: T) => A, init: A) => ReduceOperator<A, T, E>;
|
|
131
|
+
takeUntil: <T, E>(o: Observable<unknown, unknown>) => TakeUntilOperator<T, E>;
|
|
132
|
+
tap: <T, E>(fn: Subscriber<T, E>) => TapOperator<T, E>;
|
|
131
133
|
};
|
|
132
134
|
export {};
|
package/lib/esm/result.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare
|
|
3
|
-
export declare type Option<T> = Some<T> | None;
|
|
4
|
-
export declare type Err<E = Error> = {
|
|
5
|
-
err: E;
|
|
6
|
-
map: <U>(fn: (t: unknown) => Result<U>) => Result<U>;
|
|
7
|
-
};
|
|
8
|
-
export declare type Ok<T> = {
|
|
9
|
-
ok: T;
|
|
10
|
-
map: <U>(fn: (t: T) => Result<U>) => Result<U>;
|
|
11
|
-
};
|
|
12
|
-
export declare type Result<T, E = Error> = Ok<T> | Err<E>;
|
|
13
|
-
export declare const isNone: <T>(s: Option<T>) => s is null;
|
|
14
|
-
export declare const isSome: <T>(s: Option<T>) => s is T;
|
|
1
|
+
export declare const isNone: <T>(s: Option<T>) => s is None;
|
|
2
|
+
export declare const isSome: <T>(s: Option<T>) => s is Some<T>;
|
|
15
3
|
export declare function None<T = unknown>(_?: T): Option<T>;
|
|
16
4
|
export declare function Some<T>(t: Option<T>): Option<T>;
|
|
17
5
|
export declare function Some<T>(t: T): Option<T>;
|
|
18
6
|
export declare const isOk: <T, E>(t: Result<T, E>) => t is Ok<T>;
|
|
19
7
|
export declare const isErr: <T, E>(e: Result<T, E>) => e is Err<E>;
|
|
20
8
|
export declare const isResult: <T, E>(t: Result<T, E>) => t is Result<T, E>;
|
|
21
|
-
export declare function Ok<T>(ok: Ok<T>): T;
|
|
22
|
-
export declare function Ok<T>(t?: T): Ok<T>;
|
|
23
|
-
export declare function Err<E>(e: Err<E>): E;
|
|
24
|
-
export declare function Err<E>(e: E): Err<E>;
|
|
25
|
-
export declare function Err<E>(e: string): Err<E>;
|
|
9
|
+
export declare function Ok<T, E = unknown>(ok: Ok<T>): T;
|
|
10
|
+
export declare function Ok<T, E = unknown>(t?: T): Ok<T>;
|
|
11
|
+
export declare function Err<T, E>(e: Err<E>): E;
|
|
12
|
+
export declare function Err<T, E>(e: E): Err<E>;
|
|
13
|
+
export declare function Err<T, E>(e: string): Err<E>;
|
|
26
14
|
export declare function unwrap<T, E>(result: Result<T, E>): T | never;
|
|
27
15
|
export declare function unwrap<O>(some: Option<O>): O | never;
|
|
28
16
|
export declare function unwrapOr<T, E>(result: Result<T, E>, def: T): T;
|
|
29
17
|
export declare function unwrapOr<T>(some: Some<T>, def: T): T;
|
|
30
|
-
export declare function unwrapOrElse<T, E>(result: Result<T,
|
|
31
|
-
export declare function unwrapOrElse<T>(some: Some<T>, def: () => T): T;
|
|
18
|
+
export declare function unwrapOrElse<T, E>(result: Result<T, E>, def: () => T): T;
|
|
19
|
+
export declare function unwrapOrElse<T, E>(some: Some<T>, def: () => T): T;
|
|
20
|
+
export type None = null;
|
|
21
|
+
export type Some<T> = T;
|
|
22
|
+
export type Option<T> = Some<T> | None;
|
|
23
|
+
export type Err<E = Error> = {
|
|
24
|
+
err: E;
|
|
25
|
+
map: <U>(fn: (t: unknown) => Result<U>) => Result<U>;
|
|
26
|
+
};
|
|
27
|
+
export type Ok<T> = {
|
|
28
|
+
ok: T;
|
|
29
|
+
map: <U>(fn: (t: T) => Result<U>) => Result<U>;
|
|
30
|
+
};
|
|
31
|
+
export type Result<T, E = Error> = Ok<T> | Err<E>;
|
package/lib/esm/safe.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const safe: <A extends unknown[], R>(fn: (...args: A) => R, r: R) => (...args: A) => R;
|
|
1
|
+
export declare const safe: <A extends unknown[], R>(fn: (...args: A) => R, r: R) => ((...args: A) => R);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TestCase } from "./scope.
|
|
1
|
+
import type { TestCase } from "./scope.ts";
|
|
2
2
|
export declare const beforeall: unique symbol;
|
|
3
3
|
export declare const beforeeach: unique symbol;
|
|
4
4
|
export declare const afterall: unique symbol;
|
|
@@ -6,10 +6,10 @@ export declare const aftereach: unique symbol;
|
|
|
6
6
|
export declare function rootCases(): TestCase;
|
|
7
7
|
export declare function getTotalCases(): number;
|
|
8
8
|
export declare function getSkippedCases(): number;
|
|
9
|
-
export declare function describe(title: string, block:
|
|
10
|
-
export declare function it(title: string, block:
|
|
9
|
+
export declare function describe(title: string, block: CallableFunction): void;
|
|
10
|
+
export declare function it(title: string, block: CallableFunction): void;
|
|
11
11
|
export declare namespace it {
|
|
12
|
-
var skip: (title: string, _block:
|
|
12
|
+
var skip: (title: string, _block: CallableFunction) => void;
|
|
13
13
|
}
|
|
14
14
|
export declare function beforeEach(fn: () => void): void;
|
|
15
15
|
export declare function beforeAll(fn: () => void): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TestResult } from "../scope.
|
|
1
|
+
import type { TestResult } from "../scope.ts";
|
|
2
2
|
export declare function onConsole(results: TestResult): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DOMElement } from "../../dom/dom.
|
|
2
|
-
import { TestResult } from "../scope.
|
|
1
|
+
import type { DOMElement } from "../../dom/dom.ts";
|
|
2
|
+
import type { TestResult } from "../scope.ts";
|
|
3
3
|
export declare function displayStatistics(results: TestResult, root?: DOMElement): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TestResult } from "../scope.
|
|
1
|
+
import type { TestResult } from "../scope.ts";
|
|
2
2
|
export declare function asXML(results: TestResult): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TestResult, TestSummary } from "./scope.
|
|
2
|
-
export declare function execute(cases?: import("./scope.
|
|
1
|
+
import type { TestResult, TestSummary } from "./scope.ts";
|
|
2
|
+
export declare function execute(cases?: import("./scope.ts").TestCase): Promise<TestResult>;
|
|
3
3
|
export declare function getError({ error }: TestResult): number | TestResult | TestSummary | "unknown error";
|
|
4
4
|
export interface FlatResult {
|
|
5
5
|
test: string;
|
package/lib/esm/scope/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { expect } from "./expect.
|
|
2
|
-
export { fix } from "./fix.
|
|
3
|
-
export { afterAll, afterEach, beforeAll, beforeEach, cleanState, describe, it, } from "./describe.
|
|
1
|
+
export { expect } from "./expect.ts";
|
|
2
|
+
export { fix } from "./fix.ts";
|
|
3
|
+
export { afterAll, afterEach, beforeAll, beforeEach, cleanState, describe, it, } from "./describe.ts";
|
package/lib/esm/scope/scope.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface TestCase {
|
|
2
|
-
[k: string]:
|
|
3
|
-
[k: symbol]:
|
|
2
|
+
[k: string]: CallableFunction | TestCase;
|
|
3
|
+
[k: symbol]: CallableFunction;
|
|
4
4
|
}
|
|
5
5
|
export interface TestResult {
|
|
6
6
|
executed: number;
|
|
@@ -8,7 +8,7 @@ export interface TestResult {
|
|
|
8
8
|
failed: number;
|
|
9
9
|
[k: string]: TestResult | TestSummary | number;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type TestSummary = TestFailed | TestPassed;
|
|
12
12
|
export interface TestFailed {
|
|
13
13
|
error: unknown;
|
|
14
14
|
}
|
package/lib/esm/scope/state.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Awaitable } from "../awaitable.
|
|
1
|
+
import type { Awaitable } from "../awaitable.ts";
|
|
2
2
|
export declare function cleanState<State extends {}>(init: () => Awaitable<State>, runner: (action: () => Promise<void>) => void): State;
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
import { IncomingMessage, ServerResponse } from "http";
|
|
2
|
+
import { type IncomingMessage, type ServerResponse } from "node:http";
|
|
5
3
|
export interface StaticResponse {
|
|
6
4
|
status: 200 | 404 | 500;
|
|
7
5
|
content: Buffer;
|
|
8
6
|
contentType: string;
|
|
9
7
|
contentLength?: number;
|
|
8
|
+
headers?: Map<string, string>;
|
|
10
9
|
}
|
|
11
10
|
export interface ServerConfig {
|
|
12
11
|
root: string;
|
|
13
12
|
scopes?: Record<`@${string}`, string>;
|
|
14
13
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export interface StaticMiddleware {
|
|
19
|
-
(req: IncomingMessage): Promise<undefined | (() => Promise<StaticResponse>)>;
|
|
20
|
-
}
|
|
14
|
+
export type MiddlewareFactory = (config: ServerConfig) => Promise<StaticMiddleware>;
|
|
15
|
+
export type StaticMiddleware = (req: IncomingMessage) => Promise<undefined | (() => Promise<StaticResponse>)>;
|
|
21
16
|
export declare const makeServer: (config: ServerConfig, middlewares?: MiddlewareFactory[]) => Promise<import("http").Server<typeof IncomingMessage, typeof ServerResponse>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Stats } from "fs";
|
|
2
|
-
import { StaticResponse } from ".";
|
|
1
|
+
import type { Stats } from "node:fs";
|
|
2
|
+
import type { StaticResponse } from ".";
|
|
3
3
|
export declare const fileResponse: (filename: string, stat?: Stats, status?: 200 | 404 | 500) => () => Promise<StaticResponse>;
|
|
4
|
-
export declare const contentResponse: (content: string, contentType: string, status?: 200 | 404 | 500) => () => Promise<StaticResponse>;
|
|
4
|
+
export declare const contentResponse: (content: string, contentType: string, status?: 200 | 404 | 500, headers?: Map<string, string>) => () => Promise<StaticResponse>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MiddlewareFactory } from "./index.
|
|
1
|
+
import type { MiddlewareFactory } from "./index.ts";
|
|
2
2
|
export declare const sitemap: MiddlewareFactory;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { MiddlewareFactory } from "./index.
|
|
1
|
+
import type { MiddlewareFactory } from "./index.ts";
|
|
2
2
|
export declare const staticFileServer: MiddlewareFactory;
|