@rtsdk/topia 0.8.1 → 0.8.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/dist/index.cjs CHANGED
@@ -41368,7 +41368,8 @@ class Visitor extends User {
41368
41368
  try {
41369
41369
  let expressionId = id;
41370
41370
  if (name) {
41371
- expressionId = yield this.topiaPublicApi().get(`/expressions?name=${name}`, this.requestOptions);
41371
+ const response = yield this.topiaPublicApi().get(`/expressions?name=${name}`, this.requestOptions);
41372
+ expressionId = response.data[0].id;
41372
41373
  }
41373
41374
  const result = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/grant-expression/${expressionId}`, {}, this.requestOptions);
41374
41375
  return result;
package/dist/index.js CHANGED
@@ -41366,7 +41366,8 @@ class Visitor extends User {
41366
41366
  try {
41367
41367
  let expressionId = id;
41368
41368
  if (name) {
41369
- expressionId = yield this.topiaPublicApi().get(`/expressions?name=${name}`, this.requestOptions);
41369
+ const response = yield this.topiaPublicApi().get(`/expressions?name=${name}`, this.requestOptions);
41370
+ expressionId = response.data[0].id;
41370
41371
  }
41371
41372
  const result = yield this.topiaPublicApi().put(`/world/${this.urlSlug}/visitors/${this.id}/grant-expression/${expressionId}`, {}, this.requestOptions);
41372
41373
  return result;
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "local-publish": "yarn build && yalc publish --push --no-scripts"
60
60
  },
61
61
  "type": "module",
62
- "version": "0.8.1"
62
+ "version": "0.8.3"
63
63
  }