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.
@@ -49,7 +49,9 @@ function parse(raw: string): ParsedUrl {
49
49
 
50
50
  /** The HTTP endpoint of a DID Object, when it has one: Provider routes for obj:// (and cyfs:///, its DFS object), https as is. */
51
51
  function endpointOf(ctx: CommandContext, url: ParsedUrl): string | null {
52
- const origin = gatewayOrigin(ctx.connection.endpoint)
52
+ // Without a session the connection is a placeholder: give the gateway-relative path.
53
+ const origin = /^https?:\/\//.test(ctx.connection.endpoint) ? gatewayOrigin(ctx.connection.endpoint) : ''
54
+
53
55
  if (url.kind === 'obj') {
54
56
  const query = objectUrl.formatObjectUrl(url).split('?')[1]
55
57
  return `${origin}/kapi/${url.host!.name}/obj${url.path}${query ? `?${query}` : ''}`
package/cli/version.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by scripts/generate-cli-version.mjs. Do not edit.
2
- export const PACKAGE_VERSION = '0.7.155'
2
+ export const PACKAGE_VERSION = '0.7.156'
3
3
  export const TOOL_VERSION = PACKAGE_VERSION
4
4
  export const SDK_VERSION = PACKAGE_VERSION
5
5
  export const PROTOCOL_VERSION = '1'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buckyos",
3
- "version": "0.7.155",
3
+ "version": "0.7.156",
4
4
  "description": "BuckyOS WebSDK for browser and Node.js environments",
5
5
  "license": "MIT",
6
6
  "repository": {