@difizen/libro-common 0.1.0 → 0.1.1
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/es/array.d.ts +368 -0
- package/es/array.d.ts.map +1 -0
- package/es/display-wrapper.d.ts +6 -0
- package/es/display-wrapper.d.ts.map +1 -0
- package/es/index.d.ts +11 -0
- package/es/index.d.ts.map +1 -0
- package/es/iter.d.ts +147 -0
- package/es/iter.d.ts.map +1 -0
- package/es/json.d.ts +126 -0
- package/es/json.d.ts.map +1 -0
- package/es/path.d.ts +97 -0
- package/es/path.d.ts.map +1 -0
- package/es/polling/index.d.ts +3 -0
- package/es/polling/index.d.ts.map +1 -0
- package/es/polling/poll.d.ts +193 -0
- package/es/polling/poll.d.ts.map +1 -0
- package/es/polling/protocol.d.ts +120 -0
- package/es/polling/protocol.d.ts.map +1 -0
- package/es/posix.d.ts +2 -0
- package/es/posix.d.ts.map +1 -0
- package/es/protocol/cell-protocol.d.ts +181 -0
- package/es/protocol/cell-protocol.d.ts.map +1 -0
- package/es/protocol/index.d.ts +4 -0
- package/es/protocol/index.d.ts.map +1 -0
- package/es/protocol/notebook-protocol.d.ts +63 -0
- package/es/protocol/notebook-protocol.d.ts.map +1 -0
- package/es/protocol/output-protocol.d.ts +125 -0
- package/es/protocol/output-protocol.d.ts.map +1 -0
- package/es/sanitizer.d.ts +44 -0
- package/es/sanitizer.d.ts.map +1 -0
- package/es/url.d.ts +98 -0
- package/es/url.d.ts.map +1 -0
- package/es/utils.d.ts +57 -0
- package/es/utils.d.ts.map +1 -0
- package/package.json +1 -1
package/es/path.d.ts
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The namespace for path-related functions.
|
|
3
|
+
*
|
|
4
|
+
* Note that Jupyter server paths do not start with a leading slash.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace PathExt {
|
|
7
|
+
/**
|
|
8
|
+
* Join all arguments together and normalize the resulting path.
|
|
9
|
+
* Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown.
|
|
10
|
+
*
|
|
11
|
+
* @param paths - The string paths to join.
|
|
12
|
+
*/
|
|
13
|
+
function join(...paths: string[]): string;
|
|
14
|
+
/**
|
|
15
|
+
* Return the last portion of a path. Similar to the Unix basename command.
|
|
16
|
+
* Often used to extract the file name from a fully qualified path.
|
|
17
|
+
*
|
|
18
|
+
* @param path - The path to evaluate.
|
|
19
|
+
*
|
|
20
|
+
* @param ext - An extension to remove from the result.
|
|
21
|
+
*/
|
|
22
|
+
function basename(path: string, ext?: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Get the directory name of a path, similar to the Unix dirname command.
|
|
25
|
+
* When an empty path is given, returns the root path.
|
|
26
|
+
*
|
|
27
|
+
* @param path - The file path.
|
|
28
|
+
*/
|
|
29
|
+
function dirname(path: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get the extension of the path.
|
|
32
|
+
*
|
|
33
|
+
* @param path - The file path.
|
|
34
|
+
*
|
|
35
|
+
* @returns the extension of the file.
|
|
36
|
+
*
|
|
37
|
+
* #### Notes
|
|
38
|
+
* The extension is the string from the last occurrence of the `.`
|
|
39
|
+
* character to end of string in the last portion of the path, inclusive.
|
|
40
|
+
* If there is no `.` in the last portion of the path, or if the first
|
|
41
|
+
* character of the basename of path [[basename]] is `.`, then an
|
|
42
|
+
* empty string is returned.
|
|
43
|
+
*/
|
|
44
|
+
function extname(path: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* Normalize a string path, reducing '..' and '.' parts.
|
|
47
|
+
* When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
|
|
48
|
+
* When an empty path is given, returns the root path.
|
|
49
|
+
*
|
|
50
|
+
* @param path - The string path to normalize.
|
|
51
|
+
*/
|
|
52
|
+
function normalize(path: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Resolve a sequence of paths or path segments into an absolute path.
|
|
55
|
+
* The root path in the application has no leading slash, so it is removed.
|
|
56
|
+
*
|
|
57
|
+
* @param parts - The paths to join.
|
|
58
|
+
*
|
|
59
|
+
* #### Notes
|
|
60
|
+
* The right-most parameter is considered {to}. Other parameters are considered an array of {from}.
|
|
61
|
+
*
|
|
62
|
+
* Starting from leftmost {from} parameter, resolves {to} to an absolute path.
|
|
63
|
+
*
|
|
64
|
+
* If {to} isn't already absolute, {from} arguments are prepended in right to left order, until an absolute path is found. If after using all {from} paths still no absolute path is found, the current working directory is used as well. The resulting path is normalized, and trailing slashes are removed unless the path gets resolved to the root directory.
|
|
65
|
+
*/
|
|
66
|
+
function resolve(...parts: string[]): string;
|
|
67
|
+
/**
|
|
68
|
+
* Solve the relative path from {from} to {to}.
|
|
69
|
+
*
|
|
70
|
+
* @param from - The source path.
|
|
71
|
+
*
|
|
72
|
+
* @param to - The target path.
|
|
73
|
+
*
|
|
74
|
+
* #### Notes
|
|
75
|
+
* If from and to each resolve to the same path (after calling
|
|
76
|
+
* path.resolve() on each), a zero-length string is returned.
|
|
77
|
+
* If a zero-length string is passed as from or to, `/`
|
|
78
|
+
* will be used instead of the zero-length strings.
|
|
79
|
+
*/
|
|
80
|
+
function relative(from: string, to: string): string;
|
|
81
|
+
/**
|
|
82
|
+
* Normalize a file extension to be of the type `'.foo'`.
|
|
83
|
+
*
|
|
84
|
+
* @param extension - the file extension.
|
|
85
|
+
*
|
|
86
|
+
* #### Notes
|
|
87
|
+
* Adds a leading dot if not present and converts to lower case.
|
|
88
|
+
*/
|
|
89
|
+
function normalizeExtension(extension: string): string;
|
|
90
|
+
/**
|
|
91
|
+
* Remove the leading slash from a path.
|
|
92
|
+
*
|
|
93
|
+
* @param path: the path from which to remove a leading slash.
|
|
94
|
+
*/
|
|
95
|
+
function removeSlash(path: string): string;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=path.d.ts.map
|
package/es/path.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../src/path.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,yBAAiB,OAAO,CAAC;IACvB;;;;;OAKG;IACH,SAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAG/C;IAED;;;;;;;OAOG;IACH,SAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D;IAED;;;;;OAKG;IACH,SAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG5C;IAED;;;;;;;;;;;;;OAaG;IACH,SAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C;IAED;;;;;;OAMG;IACH,SAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK9C;IAED;;;;;;;;;;;;OAYG;IACH,SAAgB,OAAO,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAElD;IAED;;;;;;;;;;;;OAYG;IACH,SAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAEzD;IAED;;;;;;;OAOG;IACH,SAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAK5D;IAED;;;;OAIG;IACH,SAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKhD;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/polling/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
import type { Event } from '@difizen/mana-common';
|
|
3
|
+
import { Emitter, Deferred } from '@difizen/mana-common';
|
|
4
|
+
import type { IPoll } from './protocol.js';
|
|
5
|
+
/**
|
|
6
|
+
* A class that wraps an asynchronous function to poll at a regular interval
|
|
7
|
+
* with exponential increases to the interval length if the poll fails.
|
|
8
|
+
*
|
|
9
|
+
* @typeparam T - The resolved type of the factory's promises.
|
|
10
|
+
* Defaults to `any`.
|
|
11
|
+
*
|
|
12
|
+
* @typeparam U - The rejected type of the factory's promises.
|
|
13
|
+
* Defaults to `any`.
|
|
14
|
+
*
|
|
15
|
+
* @typeparam V - An optional type to extend the phases supported by a poll.
|
|
16
|
+
* Defaults to `standby`, which already exists in the `Phase` type.
|
|
17
|
+
*/
|
|
18
|
+
export declare class Poll<T = any, U = any, V extends string = 'standby'> implements IPoll<T, U, V> {
|
|
19
|
+
protected disposeEmitter: Emitter<void>;
|
|
20
|
+
protected _factory: Poll.Factory<T, U, V>;
|
|
21
|
+
protected _frequency: IPoll.Frequency;
|
|
22
|
+
protected _standby: Poll.Standby | (() => boolean | Poll.Standby);
|
|
23
|
+
protected _state: IPoll.State<T, U, V>;
|
|
24
|
+
protected _tick: Deferred<this>;
|
|
25
|
+
protected tickedEmitter: Emitter<IPoll.State<T, U, V>>;
|
|
26
|
+
protected _timeout?: NodeJS.Timeout | undefined;
|
|
27
|
+
disposed: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Instantiate a new poll with exponential backoff in case of failure.
|
|
30
|
+
*
|
|
31
|
+
* @param options - The poll instantiation options.
|
|
32
|
+
*/
|
|
33
|
+
constructor(options: Poll.IOptions<T, U, V>);
|
|
34
|
+
/**
|
|
35
|
+
* The name of the poll.
|
|
36
|
+
*/
|
|
37
|
+
readonly name: string;
|
|
38
|
+
/**
|
|
39
|
+
* A signal emitted when the poll is disposed.
|
|
40
|
+
*/
|
|
41
|
+
get onDispose(): Event<void>;
|
|
42
|
+
/**
|
|
43
|
+
* The polling frequency parameters.
|
|
44
|
+
*/
|
|
45
|
+
get frequency(): IPoll.Frequency;
|
|
46
|
+
set frequency(frequency: IPoll.Frequency);
|
|
47
|
+
/**
|
|
48
|
+
* Whether the poll is disposed.
|
|
49
|
+
*/
|
|
50
|
+
get isDisposed(): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Indicates when the poll switches to standby.
|
|
53
|
+
*/
|
|
54
|
+
get standby(): Poll.Standby | (() => boolean | Poll.Standby);
|
|
55
|
+
set standby(standby: Poll.Standby | (() => boolean | Poll.Standby));
|
|
56
|
+
/**
|
|
57
|
+
* The poll state, which is the content of the current poll tick.
|
|
58
|
+
*/
|
|
59
|
+
get state(): IPoll.State<T, U, V>;
|
|
60
|
+
/**
|
|
61
|
+
* A promise that resolves when the poll next ticks.
|
|
62
|
+
*/
|
|
63
|
+
get tick(): Promise<this>;
|
|
64
|
+
/**
|
|
65
|
+
* A signal emitted when the poll ticks and fires off a new request.
|
|
66
|
+
*/
|
|
67
|
+
get ticked(): Event<IPoll.State<T, U, V>>;
|
|
68
|
+
/**
|
|
69
|
+
* Return an async iterator that yields every tick.
|
|
70
|
+
*/
|
|
71
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<IPoll.State<T, U, V>>;
|
|
72
|
+
/**
|
|
73
|
+
* Dispose the poll.
|
|
74
|
+
*/
|
|
75
|
+
dispose(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Refreshes the poll. Schedules `refreshed` tick if necessary.
|
|
78
|
+
*
|
|
79
|
+
* @returns A promise that resolves after tick is scheduled and never rejects.
|
|
80
|
+
*
|
|
81
|
+
* #### Notes
|
|
82
|
+
* The returned promise resolves after the tick is scheduled, but before
|
|
83
|
+
* the polling action is run. To wait until after the poll action executes,
|
|
84
|
+
* await the `poll.tick` promise: `await poll.refresh(); await poll.tick;`
|
|
85
|
+
*/
|
|
86
|
+
refresh(): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Schedule the next poll tick.
|
|
89
|
+
*
|
|
90
|
+
* @param next - The next poll state data to schedule. Defaults to standby.
|
|
91
|
+
*
|
|
92
|
+
* @param next.cancel - Cancels state transition if function returns `true`.
|
|
93
|
+
*
|
|
94
|
+
* @returns A promise that resolves when the next poll state is active.
|
|
95
|
+
*
|
|
96
|
+
* #### Notes
|
|
97
|
+
* This method is not meant to be invoked by user code typically. It is public
|
|
98
|
+
* to allow poll instances to be composed into classes that schedule ticks.
|
|
99
|
+
*/
|
|
100
|
+
schedule(next?: Partial<IPoll.State<T, U, V> & {
|
|
101
|
+
cancel: (last: IPoll.State<T, U, V>) => boolean;
|
|
102
|
+
}>): Promise<void>;
|
|
103
|
+
/**
|
|
104
|
+
* Starts the poll. Schedules `started` tick if necessary.
|
|
105
|
+
*
|
|
106
|
+
* @returns A promise that resolves after tick is scheduled and never rejects.
|
|
107
|
+
*/
|
|
108
|
+
start(): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Stops the poll. Schedules `stopped` tick if necessary.
|
|
111
|
+
*
|
|
112
|
+
* @returns A promise that resolves after tick is scheduled and never rejects.
|
|
113
|
+
*/
|
|
114
|
+
stop(): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Execute a new poll factory promise or stand by if necessary.
|
|
117
|
+
*/
|
|
118
|
+
protected _execute(): void;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* A namespace for `Poll` types, interfaces, and statics.
|
|
122
|
+
*/
|
|
123
|
+
export declare namespace Poll {
|
|
124
|
+
/**
|
|
125
|
+
* A promise factory that returns an individual poll request.
|
|
126
|
+
*
|
|
127
|
+
* @typeparam T - The resolved type of the factory's promises.
|
|
128
|
+
*
|
|
129
|
+
* @typeparam U - The rejected type of the factory's promises.
|
|
130
|
+
*
|
|
131
|
+
* @typeparam V - The type to extend the phases supported by a poll.
|
|
132
|
+
*/
|
|
133
|
+
type Factory<T, U, V extends string> = (state: IPoll.State<T, U, V>) => Promise<T>;
|
|
134
|
+
/**
|
|
135
|
+
* Indicates when the poll switches to standby.
|
|
136
|
+
*/
|
|
137
|
+
type Standby = 'never' | 'when-hidden';
|
|
138
|
+
/**
|
|
139
|
+
* Instantiation options for polls.
|
|
140
|
+
*
|
|
141
|
+
* @typeparam T - The resolved type of the factory's promises.
|
|
142
|
+
*
|
|
143
|
+
* @typeparam U - The rejected type of the factory's promises.
|
|
144
|
+
*
|
|
145
|
+
* @typeparam V - The type to extend the phases supported by a poll.
|
|
146
|
+
*/
|
|
147
|
+
interface IOptions<T, U, V extends string> {
|
|
148
|
+
/**
|
|
149
|
+
* Whether to begin polling automatically; defaults to `true`.
|
|
150
|
+
*/
|
|
151
|
+
auto?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* A factory function that is passed a poll tick and returns a poll promise.
|
|
154
|
+
*/
|
|
155
|
+
factory: Factory<T, U, V>;
|
|
156
|
+
/**
|
|
157
|
+
* The polling frequency parameters.
|
|
158
|
+
*/
|
|
159
|
+
frequency?: Partial<IPoll.Frequency>;
|
|
160
|
+
/**
|
|
161
|
+
* The name of the poll.
|
|
162
|
+
* Defaults to `'unknown'`.
|
|
163
|
+
*/
|
|
164
|
+
name?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Indicates when the poll switches to standby or a function that returns
|
|
167
|
+
* a boolean or a `Poll.Standby` value to indicate whether to stand by.
|
|
168
|
+
* Defaults to `'when-hidden'`.
|
|
169
|
+
*
|
|
170
|
+
* #### Notes
|
|
171
|
+
* If a function is passed in, for any given context, it should be
|
|
172
|
+
* idempotent and safe to call multiple times. It will be called before each
|
|
173
|
+
* tick execution, but may be called by clients as well.
|
|
174
|
+
*/
|
|
175
|
+
standby?: Standby | (() => boolean | Standby);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* An interval value (0ms) that indicates the poll should tick immediately.
|
|
179
|
+
*/
|
|
180
|
+
const IMMEDIATE = 0;
|
|
181
|
+
/**
|
|
182
|
+
* Delays are 32-bit integers in many browsers so intervals need to be capped.
|
|
183
|
+
*
|
|
184
|
+
* #### Notes
|
|
185
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout#Maximum_delay_value
|
|
186
|
+
*/
|
|
187
|
+
const MAX_INTERVAL = 2147483647;
|
|
188
|
+
/**
|
|
189
|
+
* An interval value that indicates the poll should never tick.
|
|
190
|
+
*/
|
|
191
|
+
const NEVER: number;
|
|
192
|
+
}
|
|
193
|
+
//# sourceMappingURL=poll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../src/polling/poll.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,qBAAa,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,MAAM,GAAG,SAAS,CAC9D,YAAW,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAEzB,SAAS,CAAC,cAAc,gBAAuB;IAC/C,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1C,SAAS,CAAC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IACtC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,GAAG,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;IAClE,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACvC,SAAS,CAAC,KAAK,iBAAwB;IACvC,SAAS,CAAC,aAAa,gCAAuC;IAC9D,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;IAChD,QAAQ,UAAS;IACjB;;;;OAIG;gBACS,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W,CAAC;CAC/B"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { Event } from '@difizen/mana-common';
|
|
2
|
+
/**
|
|
3
|
+
* A readonly poll that calls an asynchronous function with each tick.
|
|
4
|
+
*
|
|
5
|
+
* @typeparam T - The resolved type of the factory's promises.
|
|
6
|
+
*
|
|
7
|
+
* @typeparam U - The rejected type of the factory's promises.
|
|
8
|
+
*
|
|
9
|
+
* @typeparam V - The type to extend the phases supported by a poll.
|
|
10
|
+
*/
|
|
11
|
+
export interface IPoll<T, U, V extends string> extends AsyncIterable<IPoll.State<T, U, V>> {
|
|
12
|
+
/**
|
|
13
|
+
* A signal emitted when the poll is disposed.
|
|
14
|
+
*/
|
|
15
|
+
readonly onDispose: Event<void>;
|
|
16
|
+
/**
|
|
17
|
+
* The polling frequency data.
|
|
18
|
+
*/
|
|
19
|
+
readonly frequency: IPoll.Frequency;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the poll is disposed.
|
|
22
|
+
*/
|
|
23
|
+
readonly disposed: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the poll.
|
|
26
|
+
*/
|
|
27
|
+
readonly name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The poll state, which is the content of the currently-scheduled poll tick.
|
|
30
|
+
*/
|
|
31
|
+
readonly state: IPoll.State<T, U, V>;
|
|
32
|
+
/**
|
|
33
|
+
* A promise that resolves when the currently-scheduled tick completes.
|
|
34
|
+
*
|
|
35
|
+
* #### Notes
|
|
36
|
+
* Usually this will resolve after `state.interval` milliseconds from
|
|
37
|
+
* `state.timestamp`. It can resolve earlier if the user starts or refreshes
|
|
38
|
+
* the poll, etc.
|
|
39
|
+
*/
|
|
40
|
+
readonly tick: Promise<IPoll<T, U, V>>;
|
|
41
|
+
/**
|
|
42
|
+
* A signal emitted when the poll state changes, i.e., a new tick is scheduled.
|
|
43
|
+
*/
|
|
44
|
+
readonly ticked: Event<IPoll.State<T, U, V>>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A namespace for `IPoll` types.
|
|
48
|
+
*/
|
|
49
|
+
export declare namespace IPoll {
|
|
50
|
+
/**
|
|
51
|
+
* The polling frequency parameters.
|
|
52
|
+
*
|
|
53
|
+
* #### Notes
|
|
54
|
+
* We implement the "decorrelated jitter" strategy from
|
|
55
|
+
* https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/.
|
|
56
|
+
* Essentially, if consecutive retries are needed, we choose an integer:
|
|
57
|
+
* `sleep = min(max, rand(interval, backoff * sleep))`
|
|
58
|
+
* This ensures that the poll is never less than `interval`, and nicely
|
|
59
|
+
* spreads out retries for consecutive tries. Over time, if (interval < max),
|
|
60
|
+
* the random number will be above `max` about (1 - 1/backoff) of the time
|
|
61
|
+
* (sleeping the `max`), and the rest of the time the sleep will be a random
|
|
62
|
+
* number below `max`, decorrelating our trigger time from other pollers.
|
|
63
|
+
*/
|
|
64
|
+
type Frequency = {
|
|
65
|
+
/**
|
|
66
|
+
* Whether poll frequency backs off (boolean) or the backoff growth rate
|
|
67
|
+
* (float > 1).
|
|
68
|
+
*
|
|
69
|
+
* #### Notes
|
|
70
|
+
* If `true`, the default backoff growth rate is `3`.
|
|
71
|
+
*/
|
|
72
|
+
readonly backoff: boolean | number;
|
|
73
|
+
/**
|
|
74
|
+
* The basic polling interval in milliseconds (integer).
|
|
75
|
+
*/
|
|
76
|
+
readonly interval: number;
|
|
77
|
+
/**
|
|
78
|
+
* The maximum milliseconds (integer) between poll requests.
|
|
79
|
+
*/
|
|
80
|
+
readonly max: number;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* The phase of the poll when the current tick was scheduled.
|
|
84
|
+
*
|
|
85
|
+
* @typeparam T - A type for any additional tick phases a poll supports.
|
|
86
|
+
*/
|
|
87
|
+
type Phase<T extends string> = T | 'constructed' | 'disposed' | 'reconnected' | 'refreshed' | 'rejected' | 'resolved' | 'standby' | 'started' | 'stopped';
|
|
88
|
+
/**
|
|
89
|
+
* Definition of poll state at any given time.
|
|
90
|
+
*
|
|
91
|
+
* @typeparam T - The resolved type of the factory's promises.
|
|
92
|
+
*
|
|
93
|
+
* @typeparam U - The rejected type of the factory's promises.
|
|
94
|
+
*
|
|
95
|
+
* @typeparam V - The type to extend the phases supported by a poll.
|
|
96
|
+
*/
|
|
97
|
+
type State<T, U, V extends string> = {
|
|
98
|
+
/**
|
|
99
|
+
* The number of milliseconds until the current tick resolves.
|
|
100
|
+
*/
|
|
101
|
+
readonly interval: number;
|
|
102
|
+
/**
|
|
103
|
+
* The payload of the last poll resolution or rejection.
|
|
104
|
+
*
|
|
105
|
+
* #### Notes
|
|
106
|
+
* The payload is `null` unless the `phase` is `'reconnected`, `'resolved'`,
|
|
107
|
+
* or `'rejected'`. Its type is `T` for resolutions and `U` for rejections.
|
|
108
|
+
*/
|
|
109
|
+
readonly payload: T | U | null;
|
|
110
|
+
/**
|
|
111
|
+
* The current poll phase.
|
|
112
|
+
*/
|
|
113
|
+
readonly phase: Phase<V>;
|
|
114
|
+
/**
|
|
115
|
+
* The timestamp for when this tick was scheduled.
|
|
116
|
+
*/
|
|
117
|
+
readonly timestamp: number;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/polling/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;;;GAQG;AACH,MAAM,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,MAAM,CAC3C,SAAQ,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC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QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QAEzB;;WAEG;QACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;KAC5B,CAAC;CACH"}
|
package/es/posix.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"posix.d.ts","sourceRoot":"","sources":["../src/posix.ts"],"names":[],"mappings":"AA0DA,eAAO,MAAM,IAAI,YAAsB,MAAM,EAAE,WAgB9C,CAAC"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { PartialJSONObject } from '../json.js';
|
|
2
|
+
import type { ExecutionCount, IAttachments, MultilineString } from './notebook-protocol.js';
|
|
3
|
+
import type { IOutput } from './output-protocol.js';
|
|
4
|
+
/**
|
|
5
|
+
* A type which describes the type of cell.
|
|
6
|
+
*/
|
|
7
|
+
export type CellType = 'code' | 'markdown' | 'raw' | string;
|
|
8
|
+
/**
|
|
9
|
+
* The Jupyter metadata namespace.
|
|
10
|
+
*/
|
|
11
|
+
export interface IBaseCellJupyterMetadata extends PartialJSONObject {
|
|
12
|
+
/**
|
|
13
|
+
* Whether the source is hidden.
|
|
14
|
+
*/
|
|
15
|
+
source_hidden: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Cell-level metadata.
|
|
19
|
+
*/
|
|
20
|
+
export interface IBaseCellMetadata extends PartialJSONObject {
|
|
21
|
+
/**
|
|
22
|
+
* Whether the cell is trusted.
|
|
23
|
+
*
|
|
24
|
+
* #### Notes
|
|
25
|
+
* This is not strictly part of the nbformat spec, but it is added by
|
|
26
|
+
* the contents manager.
|
|
27
|
+
*
|
|
28
|
+
* See https://jupyter-server.readthedocs.io/en/latest/operators/security.html.
|
|
29
|
+
*/
|
|
30
|
+
trusted: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The cell's name. If present, must be a non-empty string.
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* The Jupyter metadata namespace
|
|
37
|
+
*/
|
|
38
|
+
jupyter: Partial<IBaseCellJupyterMetadata>;
|
|
39
|
+
/**
|
|
40
|
+
* The cell's tags. Tags must be unique, and must not contain commas.
|
|
41
|
+
*/
|
|
42
|
+
tags: string[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The base cell interface.
|
|
46
|
+
*/
|
|
47
|
+
export interface IBaseCell extends PartialJSONObject {
|
|
48
|
+
/**
|
|
49
|
+
* String identifying the type of cell.
|
|
50
|
+
*/
|
|
51
|
+
cell_type: string;
|
|
52
|
+
/**
|
|
53
|
+
* Contents of the cell, represented as an array of lines.
|
|
54
|
+
*/
|
|
55
|
+
source: MultilineString;
|
|
56
|
+
/**
|
|
57
|
+
* Cell-level metadata.
|
|
58
|
+
*/
|
|
59
|
+
metadata: Partial<ICellMetadata>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Metadata for the raw cell.
|
|
63
|
+
*/
|
|
64
|
+
export interface IRawCellMetadata extends IBaseCellMetadata {
|
|
65
|
+
/**
|
|
66
|
+
* Raw cell metadata format for nbconvert.
|
|
67
|
+
*/
|
|
68
|
+
format: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A raw cell.
|
|
72
|
+
*/
|
|
73
|
+
export interface IRawCell extends IBaseCell {
|
|
74
|
+
/**
|
|
75
|
+
* A string field representing the identifier of this particular cell.
|
|
76
|
+
*
|
|
77
|
+
* Notebook format 4.4 requires no id field, but format 4.5 requires an id
|
|
78
|
+
* field. We need to handle both cases, so we make id optional here.
|
|
79
|
+
*/
|
|
80
|
+
id?: string | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* String identifying the type of cell.
|
|
83
|
+
*/
|
|
84
|
+
cell_type: 'raw';
|
|
85
|
+
/**
|
|
86
|
+
* Cell-level metadata.
|
|
87
|
+
*/
|
|
88
|
+
metadata: Partial<IRawCellMetadata>;
|
|
89
|
+
/**
|
|
90
|
+
* Cell attachments.
|
|
91
|
+
*/
|
|
92
|
+
attachments?: IAttachments | undefined;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A markdown cell.
|
|
96
|
+
*/
|
|
97
|
+
export interface IMarkdownCell extends IBaseCell {
|
|
98
|
+
/**
|
|
99
|
+
* A string field representing the identifier of this particular cell.
|
|
100
|
+
*
|
|
101
|
+
* Notebook format 4.4 requires no id field, but format 4.5 requires an id
|
|
102
|
+
* field. We need to handle both cases, so we make id optional here.
|
|
103
|
+
*/
|
|
104
|
+
id?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* String identifying the type of cell.
|
|
107
|
+
*/
|
|
108
|
+
cell_type: 'markdown';
|
|
109
|
+
/**
|
|
110
|
+
* Cell attachments.
|
|
111
|
+
*/
|
|
112
|
+
attachments?: IAttachments | undefined;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The Jupyter metadata namespace for code cells.
|
|
116
|
+
*/
|
|
117
|
+
export interface ICodeCellJupyterMetadata extends IBaseCellJupyterMetadata {
|
|
118
|
+
/**
|
|
119
|
+
* Whether the outputs are hidden. See https://github.com/jupyter/nbformat/issues/137.
|
|
120
|
+
*/
|
|
121
|
+
outputs_hidden: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Metadata for a code cell.
|
|
125
|
+
*/
|
|
126
|
+
export interface ICodeCellMetadata extends IBaseCellMetadata {
|
|
127
|
+
/**
|
|
128
|
+
* Whether the cell is collapsed/expanded.
|
|
129
|
+
*/
|
|
130
|
+
collapsed: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* The Jupyter metadata namespace
|
|
133
|
+
*/
|
|
134
|
+
jupyter: Partial<ICodeCellJupyterMetadata>;
|
|
135
|
+
/**
|
|
136
|
+
* Whether the cell's output is scrolled, unscrolled, or autoscrolled.
|
|
137
|
+
*/
|
|
138
|
+
scrolled: boolean | 'auto';
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* A code cell.
|
|
142
|
+
*/
|
|
143
|
+
export interface ICodeCell extends IBaseCell {
|
|
144
|
+
/**
|
|
145
|
+
* A string field representing the identifier of this particular cell.
|
|
146
|
+
*
|
|
147
|
+
* Notebook format 4.4 requires no id field, but format 4.5 requires an id
|
|
148
|
+
* field. We need to handle both cases, so we make id optional here.
|
|
149
|
+
*/
|
|
150
|
+
id?: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* String identifying the type of cell.
|
|
153
|
+
* Changed in Libro: cell_type 不再限制只能是code,以便支持多种语言的cell
|
|
154
|
+
*/
|
|
155
|
+
cell_type: string;
|
|
156
|
+
/**
|
|
157
|
+
* Cell-level metadata.
|
|
158
|
+
*/
|
|
159
|
+
metadata: Partial<ICodeCellMetadata>;
|
|
160
|
+
/**
|
|
161
|
+
* Execution, display, or stream outputs.
|
|
162
|
+
*/
|
|
163
|
+
outputs: IOutput[];
|
|
164
|
+
/**
|
|
165
|
+
* The code cell's prompt number. Will be null if the cell has not been run.
|
|
166
|
+
*/
|
|
167
|
+
execution_count: ExecutionCount;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* An unrecognized cell.
|
|
171
|
+
*/
|
|
172
|
+
export type IUnrecognizedCell = IBaseCell;
|
|
173
|
+
/**
|
|
174
|
+
* A cell union type.
|
|
175
|
+
*/
|
|
176
|
+
export type ICell = IRawCell | IMarkdownCell | ICodeCell | IUnrecognizedCell;
|
|
177
|
+
/**
|
|
178
|
+
* A union metadata type.
|
|
179
|
+
*/
|
|
180
|
+
export type ICellMetadata = IBaseCellMetadata | IRawCellMetadata | ICodeCellMetadata;
|
|
181
|
+
//# sourceMappingURL=cell-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/cell-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,KAAK,EACV,cA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