buckyos 0.7.155 → 0.7.157

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/cli/dist/cli.mjs CHANGED
@@ -5205,7 +5205,7 @@ function validateContentHandlers(value, permissions) {
5205
5205
  }
5206
5206
  return value;
5207
5207
  }
5208
- const PACKAGE_VERSION = "0.7.155";
5208
+ const PACKAGE_VERSION = "0.7.157";
5209
5209
  const TOOL_VERSION = PACKAGE_VERSION;
5210
5210
  const SDK_VERSION = PACKAGE_VERSION;
5211
5211
  const PROTOCOL_VERSION = "1";
@@ -10861,17 +10861,8 @@ function parse(raw) {
10861
10861
  }
10862
10862
  }
10863
10863
  function endpointOf(ctx, url) {
10864
- const origin = gatewayOrigin(ctx.connection.endpoint);
10865
- if (url.kind === "obj") {
10866
- const query = objectUrl$1.formatObjectUrl(url).split("?")[1];
10867
- return `${origin}/kapi/${url.host.name}/obj${url.path}${query ? `?${query}` : ""}`;
10868
- }
10869
- if (url.kind === "cyfs_path" && (url.zone === null || url.zone === ctx.connection.zone)) {
10870
- return `${origin}/kapi/dfs/obj${url.path.replace(/\/$/, "")}`;
10871
- }
10872
- if (url.kind === "web")
10873
- return url.url;
10874
- return null;
10864
+ const origin = /^https?:\/\//.test(ctx.connection.endpoint) ? gatewayOrigin(ctx.connection.endpoint) : "";
10865
+ return objectUrl$1.objectEndpoint(url, origin, ctx.connection.zone);
10875
10866
  }
10876
10867
  function describe(ctx, url) {
10877
10868
  const out = {