@eluvio/elv-client-js 4.2.1 → 4.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -635,7 +635,7 @@ exports.ContentObjectOwner = async function({objectId, versionHash}) {
635
635
 
636
636
  this.Log(`Retrieving content object owner: ${objectId}`);
637
637
 
638
- return (await this.ContentObject({objectId, versionHash})).content_profile.owner;
638
+ return this.utils.HashToAddress((await this.ContentObject({objectId, versionHash})).content_profile.owner);
639
639
  };
640
640
 
641
641
  /**
@@ -20,7 +20,7 @@ const UrlJoin = require("url-join");
20
20
  exports.CreateShare = async function({objectId, objectIds=[], expiresAt, params={}}) {
21
21
  const tenantId = await this.userProfileClient.TenantContractId();
22
22
  const token = await this.CreateFabricToken({});
23
-
23
+
24
24
  if(objectId) {
25
25
  objectIds = [objectId, ...objectIds]
26
26
  .filter((x, i, a) => x && a.indexOf(x) == i);