@rtsdk/topia 0.0.16 → 0.0.17

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.
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  // controllers
11
- import { DroppedAsset } from "controllers/DroppedAsset";
11
+ // import { DroppedAsset } from "controllers/DroppedAsset";
12
12
  import { SDKController } from "controllers/SDKController";
13
13
  // utils
14
14
  import { getErrorResponse } from "utils";
@@ -38,6 +38,7 @@ export class Asset extends SDKController {
38
38
  }
39
39
  drop({ position: { x, y }, uniqueName, urlSlug, }) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
+ // }): Promise<DroppedAsset> {
41
42
  try {
42
43
  const response = yield this.topia.axios.post(`/world/${urlSlug}/assets`, {
43
44
  assetId: this.id,
@@ -45,7 +46,8 @@ export class Asset extends SDKController {
45
46
  uniqueName,
46
47
  }, this.requestOptions);
47
48
  const { id } = response.data;
48
- return new DroppedAsset(this.topia, id, urlSlug, { credentials: this.credentials });
49
+ return id;
50
+ // return new DroppedAsset(this.topia, id, urlSlug, { credentials: this.credentials });
49
51
  }
50
52
  catch (error) {
51
53
  throw getErrorResponse({ error });
package/package.json CHANGED
@@ -56,5 +56,5 @@
56
56
  "local-publish": "yarn build && yalc publish --push --no-scripts"
57
57
  },
58
58
  "type": "module",
59
- "version": "0.0.16"
59
+ "version": "0.0.17"
60
60
  }