@difizen/libro-kernel 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/server/connection-error.d.ts +36 -0
- package/es/server/connection-error.d.ts.map +1 -0
- package/es/server/server-connection-protocol.d.ts +49 -0
- package/es/server/server-connection-protocol.d.ts.map +1 -0
- package/es/utils.d.ts +4 -0
- package/es/utils.d.ts.map +1 -0
- package/es/validate-property.d.ts +2 -0
- package/es/validate-property.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A wrapped error for a fetch response.
|
|
3
|
+
*/
|
|
4
|
+
export declare class ResponseError extends Error {
|
|
5
|
+
/**
|
|
6
|
+
* The response associated with the error.
|
|
7
|
+
*/
|
|
8
|
+
response: Response;
|
|
9
|
+
/**
|
|
10
|
+
* The traceback associated with the error.
|
|
11
|
+
*/
|
|
12
|
+
traceback: string;
|
|
13
|
+
/**
|
|
14
|
+
* Create a new response error.
|
|
15
|
+
*/
|
|
16
|
+
constructor(response: Response, message?: string, traceback?: string);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A wrapped error for a network error.
|
|
20
|
+
*/
|
|
21
|
+
export declare class NetworkError extends TypeError {
|
|
22
|
+
/**
|
|
23
|
+
* Create a new network error.
|
|
24
|
+
*/
|
|
25
|
+
constructor(original: TypeError);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Create a ResponseError from a response, handling the traceback and message
|
|
29
|
+
* as appropriate.
|
|
30
|
+
*
|
|
31
|
+
* @param response The response object.
|
|
32
|
+
*
|
|
33
|
+
* @returns A promise that resolves with a `ResponseError` object.
|
|
34
|
+
*/
|
|
35
|
+
export declare const createResponseError: (response: Response) => Promise<ResponseError>;
|
|
36
|
+
//# sourceMappingURL=connection-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-error.d.ts","sourceRoot":"","sources":["../../src/server/connection-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;gBAED,QAAQ,EAAE,QAAQ,EAClB,OAAO,SAAuE,EAC9E,SAAS,SAAK;CAMjB;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACzC;;OAEG;gBACS,QAAQ,EAAE,SAAS;CAIhC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,aAAoB,QAAQ,2BAW3D,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Jupyter server settings object.
|
|
3
|
+
* Note that all of the settings are optional when passed to
|
|
4
|
+
* [[makeSettings]]. The default settings are given in [[defaultSettings]].
|
|
5
|
+
*/
|
|
6
|
+
export interface ISettings {
|
|
7
|
+
/**
|
|
8
|
+
* The base url of the server.
|
|
9
|
+
*/
|
|
10
|
+
readonly baseUrl: string;
|
|
11
|
+
/**
|
|
12
|
+
* The app url of the JupyterLab application.
|
|
13
|
+
*/
|
|
14
|
+
readonly appUrl: string;
|
|
15
|
+
/**
|
|
16
|
+
* The base ws url of the server.
|
|
17
|
+
*/
|
|
18
|
+
readonly wsUrl: string;
|
|
19
|
+
/**
|
|
20
|
+
* The default request init options.
|
|
21
|
+
*/
|
|
22
|
+
readonly init: RequestInit;
|
|
23
|
+
/**
|
|
24
|
+
* The authentication token for requests. Use an empty string to disable.
|
|
25
|
+
*/
|
|
26
|
+
readonly token: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to append a token to a Websocket url. The default is `false` in the browser
|
|
29
|
+
* and `true` in node or jest.
|
|
30
|
+
*/
|
|
31
|
+
readonly appendToken: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The `fetch` method to use.
|
|
34
|
+
*/
|
|
35
|
+
readonly fetch: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
36
|
+
/**
|
|
37
|
+
* The `Request` object constructor.
|
|
38
|
+
*/
|
|
39
|
+
readonly Request: typeof Request;
|
|
40
|
+
/**
|
|
41
|
+
* The `Headers` object constructor.
|
|
42
|
+
*/
|
|
43
|
+
readonly Headers: typeof Headers;
|
|
44
|
+
/**
|
|
45
|
+
* The `WebSocket` object constructor.
|
|
46
|
+
*/
|
|
47
|
+
readonly WebSocket: typeof WebSocket;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=server-connection-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-connection-protocol.d.ts","sourceRoot":"","sources":["../../src/server/server-connection-protocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAE9E;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,OAAO,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,SAAS,CAAC;CACtC"}
|
package/es/utils.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getPersist: (key?: string, needParse?: boolean, defaultVal?: string | undefined) => any;
|
|
2
|
+
export declare const setPersist: (key?: string, val?: string) => void;
|
|
3
|
+
export declare const removePersist: (key?: string) => void;
|
|
4
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,mDAGT,MAAM,GAAG,SAAS,QAc/B,CAAC;AAGF,eAAO,MAAM,UAAU,sCAEtB,CAAC;AAEF,eAAO,MAAM,aAAa,wBAEzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-property.d.ts","sourceRoot":"","sources":["../src/validate-property.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,GAAG,EACX,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EACjB,MAAM,GAAE,GAAG,EAAO,GACjB,IAAI,CAgCN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-kernel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-infra",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-common": "^0.1.
|
|
36
|
-
"@difizen/libro-core": "^0.1.
|
|
35
|
+
"@difizen/libro-common": "^0.1.1",
|
|
36
|
+
"@difizen/libro-core": "^0.1.1",
|
|
37
37
|
"@difizen/mana-app": "latest",
|
|
38
38
|
"minimist": "^1.2.8",
|
|
39
39
|
"query-string": "^8.1.0",
|