@hew-lang/sandbox-vm 0.7.0 → 0.7.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.
|
@@ -119,7 +119,7 @@ export type AskDetail = {
|
|
|
119
119
|
policy: SendPolicy;
|
|
120
120
|
sealed: boolean;
|
|
121
121
|
};
|
|
122
|
-
export type AsyncIoOp = "TcpRead" | "TcpWrite" | "TcpAccept" | "TcpConnect" | "TcpConnectTimeout" | "StdinReadLine" | "SinkFinish" | "TlsConnect" | "TlsRead" | "TlsWrite" | "FileRead" | "FileWrite" | "WebSocketAccept";
|
|
122
|
+
export type AsyncIoOp = "TcpRead" | "TcpWrite" | "TcpAccept" | "TcpConnect" | "TcpConnectTimeout" | "StdinReadLine" | "SinkFinish" | "TlsConnect" | "TlsRead" | "TlsWrite" | "FileRead" | "FileWrite" | "WebSocketAccept" | "WebSocketSendText" | "WebSocketSendBinary";
|
|
123
123
|
export type BlockV1 = {
|
|
124
124
|
id: number;
|
|
125
125
|
params: Array<ValueDef>;
|
|
@@ -512,6 +512,8 @@ const schema19 = {
|
|
|
512
512
|
"FileRead",
|
|
513
513
|
"FileWrite",
|
|
514
514
|
"WebSocketAccept",
|
|
515
|
+
"WebSocketSendText",
|
|
516
|
+
"WebSocketSendBinary",
|
|
515
517
|
],
|
|
516
518
|
type: "string",
|
|
517
519
|
},
|
|
@@ -31936,6 +31938,8 @@ const schema70 = {
|
|
|
31936
31938
|
"FileRead",
|
|
31937
31939
|
"FileWrite",
|
|
31938
31940
|
"WebSocketAccept",
|
|
31941
|
+
"WebSocketSendText",
|
|
31942
|
+
"WebSocketSendBinary",
|
|
31939
31943
|
],
|
|
31940
31944
|
type: "string",
|
|
31941
31945
|
};
|
|
@@ -31973,7 +31977,9 @@ function validate230(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
31973
31977
|
data === "TlsWrite" ||
|
|
31974
31978
|
data === "FileRead" ||
|
|
31975
31979
|
data === "FileWrite" ||
|
|
31976
|
-
data === "WebSocketAccept"
|
|
31980
|
+
data === "WebSocketAccept" ||
|
|
31981
|
+
data === "WebSocketSendText" ||
|
|
31982
|
+
data === "WebSocketSendBinary")) {
|
|
31977
31983
|
validate230.errors = [
|
|
31978
31984
|
{
|
|
31979
31985
|
instancePath,
|
|
@@ -107,6 +107,8 @@ declare const NATIVE_IO_ROUTES: {
|
|
|
107
107
|
readonly TlsRead: Refused;
|
|
108
108
|
readonly TlsWrite: Refused;
|
|
109
109
|
readonly WebSocketAccept: Refused;
|
|
110
|
+
readonly WebSocketSendText: Refused;
|
|
111
|
+
readonly WebSocketSendBinary: Refused;
|
|
110
112
|
readonly FileRead: "FileRead";
|
|
111
113
|
readonly FileWrite: "FileWrite";
|
|
112
114
|
};
|
|
@@ -215,6 +215,8 @@ const NATIVE_IO_ROUTES = {
|
|
|
215
215
|
TlsRead: refused("NativeIo::TlsRead", true),
|
|
216
216
|
TlsWrite: refused("NativeIo::TlsWrite", true),
|
|
217
217
|
WebSocketAccept: refused("NativeIo::WebSocketAccept", true),
|
|
218
|
+
WebSocketSendText: refused("NativeIo::WebSocketSendText", true),
|
|
219
|
+
WebSocketSendBinary: refused("NativeIo::WebSocketSendBinary", true),
|
|
218
220
|
FileRead: "FileRead",
|
|
219
221
|
FileWrite: "FileWrite",
|
|
220
222
|
};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hew-lang/sandbox-vm",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"hewSource": {
|
|
5
|
-
"commit": "
|
|
6
|
-
"tag": "v0.7.
|
|
5
|
+
"commit": "7b489ef7392ed3baced2a4d119e1e4741995ece2",
|
|
6
|
+
"tag": "v0.7.1",
|
|
7
7
|
"dirty": false
|
|
8
8
|
},
|
|
9
9
|
"description": "Deterministic TypeScript interpreter for the Hew educational sandbox",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"cli/"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@hew-lang/wasm": "0.7.
|
|
24
|
+
"@hew-lang/wasm": "0.7.1"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"hew",
|