@ai-ecoverse/slicc-kernel 1.111.0 → 1.113.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.
@@ -2515,7 +2515,7 @@ var KERNEL_VERSION, OS_RELEASE;
2515
2515
  var init_version = __esm({
2516
2516
  "src/version.ts"() {
2517
2517
  "use strict";
2518
- KERNEL_VERSION = true ? "1.111.0" : "0.0.0-dev";
2518
+ KERNEL_VERSION = true ? "1.113.0" : "0.0.0-dev";
2519
2519
  OS_RELEASE = "6.0.0-slicc";
2520
2520
  }
2521
2521
  });
@@ -14914,7 +14914,23 @@ function netOps(kernel, io) {
14914
14914
  }
14915
14915
  };
14916
14916
  };
14917
+ const lookup2 = async (name3, options = {}) => {
14918
+ const family = options.family ?? 0;
14919
+ if (family !== 0 && family !== 4 && family !== 6) {
14920
+ throw new JsCallError("EAI_FAMILY", `resolve ${name3}`);
14921
+ }
14922
+ const signal = options.signal ?? NEVER;
14923
+ signal.throwIfAborted();
14924
+ const req = { op: "sock-resolve", name: String(name3), family };
14925
+ const r = await kernel.blocking(req, signal).catch((err) => {
14926
+ signal.throwIfAborted();
14927
+ if (err.code !== "ENOENT") throw err;
14928
+ throw new JsCallError("ENOTFOUND", `resolve ${name3}`);
14929
+ });
14930
+ return [...r.ok && r.kind === "json" ? r.json : []];
14931
+ };
14917
14932
  return {
14933
+ resolve: lookup2,
14918
14934
  listen: (options = {}) => opened2(async (fd) => {
14919
14935
  const addr = {
14920
14936
  family: "inet",