buckyos 0.7.155 → 0.7.156
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 +2 -2
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/obj.ts +3 -1
- package/cli/version.ts +1 -1
- package/package.json +1 -1
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.
|
|
5208
|
+
const PACKAGE_VERSION = "0.7.156";
|
|
5209
5209
|
const TOOL_VERSION = PACKAGE_VERSION;
|
|
5210
5210
|
const SDK_VERSION = PACKAGE_VERSION;
|
|
5211
5211
|
const PROTOCOL_VERSION = "1";
|
|
@@ -10861,7 +10861,7 @@ function parse(raw) {
|
|
|
10861
10861
|
}
|
|
10862
10862
|
}
|
|
10863
10863
|
function endpointOf(ctx, url) {
|
|
10864
|
-
const origin = gatewayOrigin(ctx.connection.endpoint);
|
|
10864
|
+
const origin = /^https?:\/\//.test(ctx.connection.endpoint) ? gatewayOrigin(ctx.connection.endpoint) : "";
|
|
10865
10865
|
if (url.kind === "obj") {
|
|
10866
10866
|
const query = objectUrl$1.formatObjectUrl(url).split("?")[1];
|
|
10867
10867
|
return `${origin}/kapi/${url.host.name}/obj${url.path}${query ? `?${query}` : ""}`;
|