@ai-ecoverse/slicc-kernel 1.138.0 → 1.139.0

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.
@@ -7125,7 +7125,7 @@ function satisfies(version, range2) {
7125
7125
  }
7126
7126
 
7127
7127
  // src/version.ts
7128
- var KERNEL_VERSION = true ? "1.138.0" : "0.0.0-dev";
7128
+ var KERNEL_VERSION = true ? "1.139.0" : "0.0.0-dev";
7129
7129
  var OS_RELEASE = "6.0.0-slicc";
7130
7130
  function procVersion() {
7131
7131
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -1319,11 +1319,7 @@ function chain(target) {
1319
1319
  function hide(target, names) {
1320
1320
  for (const name of names) {
1321
1321
  const holders = chain(target);
1322
- for (const holder of holders) {
1323
- if (Object.getOwnPropertyDescriptor(holder, name)?.configurable) {
1324
- Reflect.deleteProperty(holder, name);
1325
- }
1326
- }
1322
+ for (const holder of holders) Reflect.deleteProperty(holder, name);
1327
1323
  const kept = holders.slice(1).some((holder) => Object.hasOwn(holder, name));
1328
1324
  const defined = Reflect.defineProperty(target, name, {
1329
1325
  value: void 0,
@@ -1339,11 +1335,7 @@ function hide(target, names) {
1339
1335
  function vacate(target, names) {
1340
1336
  for (const name of names) {
1341
1337
  const holders = chain(target);
1342
- for (const holder of holders) {
1343
- if (Object.getOwnPropertyDescriptor(holder, name)?.configurable) {
1344
- Reflect.deleteProperty(holder, name);
1345
- }
1346
- }
1338
+ for (const holder of holders) Reflect.deleteProperty(holder, name);
1347
1339
  const kept = holders.slice(1).some((holder) => Object.hasOwn(holder, name));
1348
1340
  const opened = Reflect.defineProperty(target, name, {
1349
1341
  value: void 0,
@@ -1398,6 +1390,10 @@ function refused(specifier) {
1398
1390
  code: "ERR_ACCESS_DENIED"
1399
1391
  });
1400
1392
  }
1393
+ var BASE64_MODULE = "data:text/javascript;base64,";
1394
+ var fromBase64 = Buffer.from.bind(Buffer);
1395
+ var toText = Function.prototype.call.bind(Buffer.prototype.toString);
1396
+ var PLAIN_BASE64 = /^[A-Za-z0-9+/]+={0,2}$/;
1401
1397
  function refuseModules() {
1402
1398
  registerHooks({
1403
1399
  resolve(specifier, context, next) {
@@ -1405,11 +1401,18 @@ function refuseModules() {
1405
1401
  const resolved = next(specifier, context);
1406
1402
  if (!resolved.url.startsWith("data:")) throw refused(resolved.url);
1407
1403
  return resolved;
1404
+ },
1405
+ load(url, context, next) {
1406
+ const payload = url.startsWith(BASE64_MODULE) ? url.slice(BASE64_MODULE.length) : "";
1407
+ if (payload.length % 4 !== 0 || !PLAIN_BASE64.test(payload)) return next(url, context);
1408
+ const source = toText(fromBase64(payload, "base64"), "utf8");
1409
+ return { format: "module", source, shortCircuit: true };
1408
1410
  }
1409
1411
  });
1410
1412
  }
1411
1413
  var locked = /* @__PURE__ */ new WeakSet();
1412
1414
  var nodeProcess = typeof globalThis.process === "object" && globalThis.process !== null ? globalThis.process : void 0;
1415
+ var memoryUsage = process.memoryUsage.bind(process);
1413
1416
  function nodeLockdown(scope = globalThis) {
1414
1417
  if (locked.has(scope)) return;
1415
1418
  locked.add(scope);