@ai-ecoverse/slicc-kernel 1.136.3 → 1.136.4
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/README.md +22 -2
- package/dist/kernel-worker.js +147 -29
- package/dist/kernel-worker.js.map +4 -4
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +147 -29
- package/dist/node.js.map +4 -4
- package/dist/process-worker.js +1 -1
- package/dist/types/kernel/net/sealed-binding.d.ts +2 -0
- package/dist/types/kernel/net/sealed-conn.d.ts +1 -0
- package/dist/types/kernel/net/sealed-pg.d.ts +5 -0
- package/dist/types/kernel/net/sealed-scram.d.ts +8 -0
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -2783,7 +2783,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2783
2783
|
var init_version = __esm({
|
|
2784
2784
|
"src/version.ts"() {
|
|
2785
2785
|
"use strict";
|
|
2786
|
-
KERNEL_VERSION = true ? "1.136.
|
|
2786
|
+
KERNEL_VERSION = true ? "1.136.4" : "0.0.0-dev";
|
|
2787
2787
|
OS_RELEASE = "6.0.0-slicc";
|
|
2788
2788
|
}
|
|
2789
2789
|
});
|
|
@@ -12,6 +12,7 @@ export interface SealedSession {
|
|
|
12
12
|
verified: boolean;
|
|
13
13
|
handshakeAt: number;
|
|
14
14
|
alpn: string | false;
|
|
15
|
+
binding?: Uint8Array | undefined;
|
|
15
16
|
anchoring?: (found: Anchors) => Promise<string | undefined>;
|
|
16
17
|
}
|
|
17
18
|
export declare function substitutes(s: SealedSession): boolean;
|
|
@@ -6,6 +6,9 @@ export interface PgExpect {
|
|
|
6
6
|
fake: string;
|
|
7
7
|
}
|
|
8
8
|
export declare class PgServer {
|
|
9
|
+
readonly binding: Uint8Array | undefined;
|
|
10
|
+
plus: boolean;
|
|
11
|
+
constructor(binding?: Uint8Array);
|
|
9
12
|
private buffer;
|
|
10
13
|
private skip;
|
|
11
14
|
cleartext: boolean;
|
|
@@ -30,8 +33,10 @@ export interface PgAsks {
|
|
|
30
33
|
cleartext(placeholders: string[]): Promise<Record<string, string> | undefined>;
|
|
31
34
|
scram(scram: SessionScram): Promise<Record<string, string> | undefined>;
|
|
32
35
|
}
|
|
36
|
+
export declare function serverHeader(header: string, server: PgServer): string;
|
|
33
37
|
export declare class PgClient {
|
|
34
38
|
private clientFirst;
|
|
39
|
+
private header;
|
|
35
40
|
private readonly server;
|
|
36
41
|
private readonly asks;
|
|
37
42
|
constructor(server: PgServer, asks: PgAsks);
|
|
@@ -10,10 +10,18 @@ export interface ScramKeys {
|
|
|
10
10
|
serverSignature: Uint8Array;
|
|
11
11
|
}
|
|
12
12
|
export declare function base64Of(bytes: Uint8Array): string;
|
|
13
|
+
export interface ClientFirst {
|
|
14
|
+
header: string;
|
|
15
|
+
bare: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function clientFirstOf(message: string): ClientFirst | undefined;
|
|
13
18
|
export declare function clientFirstBare(message: string): string | undefined;
|
|
19
|
+
export declare function channelOf(header: string, binding?: Uint8Array): string;
|
|
14
20
|
export declare function exchangeOf(clientFirst: string, serverFirst: string, clientFinal: string): {
|
|
15
21
|
exchange: ScramExchange;
|
|
16
22
|
proof: Uint8Array;
|
|
23
|
+
channel: Uint8Array;
|
|
24
|
+
nonce: string;
|
|
17
25
|
} | undefined;
|
|
18
26
|
export declare function scramKeys(password: string, x: ScramExchange): Promise<ScramKeys>;
|
|
19
27
|
export declare function saslprep(password: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-kernel",
|
|
3
|
-
"version": "1.136.
|
|
3
|
+
"version": "1.136.4",
|
|
4
4
|
"description": "SLICC's wasm-realm kernel: run Emscripten programs in the browser against OPFS, with fork, spawn, pipes and waitpid",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|