@eluvio/elv-client-js 3.2.37 → 3.2.38

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.
@@ -22,7 +22,7 @@ var WalletConfiguration = {
22
22
  appUrl: "https://wallet.contentfabric.io"
23
23
  }
24
24
  },
25
- __MARKETPLACE_ORDER: ["PREVIEW", "wwe-marketplace-main", "realcannonballrun-marketplace", "maskverse-marketplace", "dolly-marketplace", "eluvio-live-marketplace-sonark", "cirkay-marketplace", "oc-marketplace", "emp-marketplace", "microsoft", "indieflix-marketplace", "angels-airwaves-marketplace"]
25
+ __MARKETPLACE_ORDER: ["PREVIEW", "de228e92-ed45-4fe0-8e52-658cf366e962", "wwe-marketplace-main", "realcannonballrun-marketplace", "maskverse-marketplace", "dolly-marketplace", "eluvio-live-marketplace-sonark", "cirkay-marketplace", "eluvio-live-marketplace-fuudge", "oc-marketplace", "emp-marketplace", "microsoft", "indieflix-marketplace", "angels-airwaves-marketplace"]
26
26
  }; // No production environment on demo
27
27
 
28
28
  WalletConfiguration.demo.production = WalletConfiguration.demo.staging; // Allow demo to be referred to as demov3
@@ -177,19 +177,18 @@ exports.SetProfileMetadata = /*#__PURE__*/function () {
177
177
  * @param {string=} mode="public" - Specify `public` or `private` metadata.
178
178
  * @param {string=} appId - Namespace to use for the metadata, if retrieving app metadata.. Uses the app ID specified on client initialization by default.
179
179
  * @param {string} key - The metadata key to set
180
- * @param {string} value - The metadata value to set
181
180
  */
182
181
 
183
182
 
184
183
  exports.RemoveProfileMetadata = /*#__PURE__*/function () {
185
184
  var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref7) {
186
- var _ref7$type, type, _ref7$mode, mode, appId, key, value;
185
+ var _ref7$type, type, _ref7$mode, mode, appId, key;
187
186
 
188
187
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
189
188
  while (1) {
190
189
  switch (_context3.prev = _context3.next) {
191
190
  case 0:
192
- _ref7$type = _ref7.type, type = _ref7$type === void 0 ? "app" : _ref7$type, _ref7$mode = _ref7.mode, mode = _ref7$mode === void 0 ? "public" : _ref7$mode, appId = _ref7.appId, key = _ref7.key, value = _ref7.value;
191
+ _ref7$type = _ref7.type, type = _ref7$type === void 0 ? "app" : _ref7$type, _ref7$mode = _ref7.mode, mode = _ref7$mode === void 0 ? "public" : _ref7$mode, appId = _ref7.appId, key = _ref7.key;
193
192
  _context3.next = 3;
194
193
  return this.stateStoreClient.Request({
195
194
  method: "DELETE",
@@ -201,7 +200,6 @@ exports.RemoveProfileMetadata = /*#__PURE__*/function () {
201
200
  mode: mode,
202
201
  key: key
203
202
  }),
204
- body: value,
205
203
  headers: {
206
204
  Authorization: "Bearer ".concat(this.AuthToken())
207
205
  }
@@ -1026,7 +1026,7 @@ var ElvWalletClient = /*#__PURE__*/function () {
1026
1026
  produceLinkUrls: true,
1027
1027
  authorizationToken: this.publicStaticToken,
1028
1028
  noAuth: true,
1029
- select: ["*/.", "*/marketplaces/*/.", "*/marketplaces/*/info/tenant_id", "*/marketplaces/*/info/tenant_name", "*/marketplaces/*/info/branding"],
1029
+ select: ["*/.", "*/marketplaces/*/.", "*/marketplaces/*/info/tenant_id", "*/marketplaces/*/info/tenant_name", "*/marketplaces/*/info/branding", "*/marketplaces/*/info/storefront/background", "*/marketplaces/*/info/storefront/background_mobile"],
1030
1030
  remove: ["*/marketplaces/*/info/branding/custom_css"]
1031
1031
  });
1032
1032
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "3.2.37",
3
+ "version": "3.2.38",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -654,16 +654,10 @@ exports.CopyContentObject = async function({libraryId, originalVersionHash, opti
654
654
  const userCapKey = `eluv.caps.iusr${this.utils.AddressToHash(this.signer.address)}`;
655
655
 
656
656
  if(metadata[userCapKey]) {
657
- const isOwner = this.utils.EqualAddress(this.signer.address, await this.ContentObjectOwner({objectId: originalObjectId}));
658
-
659
- if(!isOwner) {
660
- throw Error(`Current user is not owner of object ${metadata}`);
661
- }
662
-
663
657
  const userConkKey = await this.Crypto.DecryptCap(metadata[userCapKey], this.signer.signingKey.privateKey);
664
658
  userConkKey.qid = objectId;
665
659
 
666
- this.ReplaceMetadata({
660
+ await this.ReplaceMetadata({
667
661
  libraryId,
668
662
  objectId,
669
663
  writeToken,