@ai-ecoverse/slicc-kernel 1.135.3 → 1.135.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 +2 -2
- package/dist/driver-worker.js +16 -4
- package/dist/driver-worker.js.map +2 -2
- package/dist/kernel-worker.js +1 -1
- package/dist/node-driver-worker.js +18 -9
- package/dist/node-driver-worker.js.map +2 -2
- package/dist/node-process-worker.js +19 -10
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +1 -1
- package/dist/process-worker.js +17 -5
- package/dist/process-worker.js.map +2 -2
- package/package.json +1 -1
package/dist/kernel-worker.js
CHANGED
|
@@ -7098,7 +7098,7 @@ function satisfies(version, range2) {
|
|
|
7098
7098
|
}
|
|
7099
7099
|
|
|
7100
7100
|
// src/version.ts
|
|
7101
|
-
var KERNEL_VERSION = true ? "1.135.
|
|
7101
|
+
var KERNEL_VERSION = true ? "1.135.4" : "0.0.0-dev";
|
|
7102
7102
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7103
7103
|
function procVersion() {
|
|
7104
7104
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -1281,13 +1281,10 @@ var BLOCKED_GLOBALS = [
|
|
|
1281
1281
|
"WebSocketStream",
|
|
1282
1282
|
"WebTransport",
|
|
1283
1283
|
"EventSource",
|
|
1284
|
-
"importScripts",
|
|
1285
1284
|
"indexedDB",
|
|
1286
1285
|
"caches",
|
|
1287
1286
|
"cookieStore",
|
|
1288
|
-
"Worker",
|
|
1289
1287
|
"SharedWorker",
|
|
1290
|
-
"postMessage",
|
|
1291
1288
|
"close",
|
|
1292
1289
|
"webkitRequestFileSystem",
|
|
1293
1290
|
"webkitRequestFileSystemSync",
|
|
@@ -1303,7 +1300,14 @@ var BLOCKED_NAVIGATOR = [
|
|
|
1303
1300
|
"hid",
|
|
1304
1301
|
"serial"
|
|
1305
1302
|
];
|
|
1306
|
-
var OPEN_SLOTS = [
|
|
1303
|
+
var OPEN_SLOTS = [
|
|
1304
|
+
"fetch",
|
|
1305
|
+
"WebSocket",
|
|
1306
|
+
"BroadcastChannel",
|
|
1307
|
+
"importScripts",
|
|
1308
|
+
"Worker",
|
|
1309
|
+
"postMessage"
|
|
1310
|
+
];
|
|
1307
1311
|
function chain(target) {
|
|
1308
1312
|
const out = [];
|
|
1309
1313
|
for (let at = target; at && at !== Object.prototype; ) {
|
|
@@ -1355,21 +1359,26 @@ function vacate(target, names) {
|
|
|
1355
1359
|
function lockdown(scope = globalThis) {
|
|
1356
1360
|
hide(scope, BLOCKED_GLOBALS);
|
|
1357
1361
|
vacate(scope, OPEN_SLOTS);
|
|
1362
|
+
if ("self" in scope) {
|
|
1363
|
+
Reflect.defineProperty(scope, "self", {
|
|
1364
|
+
value: scope,
|
|
1365
|
+
writable: true,
|
|
1366
|
+
enumerable: false,
|
|
1367
|
+
configurable: true
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1358
1370
|
const navigator = scope.navigator;
|
|
1359
1371
|
if (navigator && typeof navigator === "object") hide(navigator, BLOCKED_NAVIGATOR);
|
|
1360
1372
|
}
|
|
1361
1373
|
|
|
1362
1374
|
// src/node-lockdown.ts
|
|
1363
|
-
var NODE_GLOBALS = [
|
|
1375
|
+
var NODE_GLOBALS = ["localStorage", "sessionStorage"];
|
|
1376
|
+
var NODE_SLOTS = [
|
|
1364
1377
|
"require",
|
|
1365
1378
|
"module",
|
|
1366
1379
|
"exports",
|
|
1367
1380
|
"__filename",
|
|
1368
1381
|
"__dirname",
|
|
1369
|
-
"localStorage",
|
|
1370
|
-
"sessionStorage"
|
|
1371
|
-
];
|
|
1372
|
-
var NODE_SLOTS = [
|
|
1373
1382
|
"process",
|
|
1374
1383
|
"global",
|
|
1375
1384
|
"setImmediate",
|