@ai-ecoverse/slicc-kernel 1.135.2 → 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.
@@ -65,6 +65,14 @@ function vacate(target, names) {
65
65
  function lockdown(scope2 = globalThis) {
66
66
  hide(scope2, BLOCKED_GLOBALS);
67
67
  vacate(scope2, OPEN_SLOTS);
68
+ if ("self" in scope2) {
69
+ Reflect.defineProperty(scope2, "self", {
70
+ value: scope2,
71
+ writable: true,
72
+ enumerable: false,
73
+ configurable: true
74
+ });
75
+ }
68
76
  const navigator = scope2.navigator;
69
77
  if (navigator && typeof navigator === "object") hide(navigator, BLOCKED_NAVIGATOR);
70
78
  }
@@ -77,13 +85,10 @@ var init_lockdown = __esm({
77
85
  "WebSocketStream",
78
86
  "WebTransport",
79
87
  "EventSource",
80
- "importScripts",
81
88
  "indexedDB",
82
89
  "caches",
83
90
  "cookieStore",
84
- "Worker",
85
91
  "SharedWorker",
86
- "postMessage",
87
92
  "close",
88
93
  "webkitRequestFileSystem",
89
94
  "webkitRequestFileSystemSync",
@@ -99,7 +104,14 @@ var init_lockdown = __esm({
99
104
  "hid",
100
105
  "serial"
101
106
  ];
102
- OPEN_SLOTS = ["fetch", "WebSocket", "BroadcastChannel"];
107
+ OPEN_SLOTS = [
108
+ "fetch",
109
+ "WebSocket",
110
+ "BroadcastChannel",
111
+ "importScripts",
112
+ "Worker",
113
+ "postMessage"
114
+ ];
103
115
  }
104
116
  });
105
117
 
@@ -6678,7 +6690,7 @@ var KERNEL_VERSION, OS_RELEASE;
6678
6690
  var init_version = __esm({
6679
6691
  "src/version.ts"() {
6680
6692
  "use strict";
6681
- KERNEL_VERSION = true ? "1.135.2" : "0.0.0-dev";
6693
+ KERNEL_VERSION = true ? "1.135.4" : "0.0.0-dev";
6682
6694
  OS_RELEASE = "6.0.0-slicc";
6683
6695
  }
6684
6696
  });
@@ -18335,16 +18347,13 @@ import { parentPort } from "node:worker_threads";
18335
18347
  // src/node-lockdown.ts
18336
18348
  init_lockdown();
18337
18349
  import { isBuiltin, registerHooks } from "node:module";
18338
- var NODE_GLOBALS = [
18350
+ var NODE_GLOBALS = ["localStorage", "sessionStorage"];
18351
+ var NODE_SLOTS = [
18339
18352
  "require",
18340
18353
  "module",
18341
18354
  "exports",
18342
18355
  "__filename",
18343
18356
  "__dirname",
18344
- "localStorage",
18345
- "sessionStorage"
18346
- ];
18347
- var NODE_SLOTS = [
18348
18357
  "process",
18349
18358
  "global",
18350
18359
  "setImmediate",