roboto-js 1.3.13 → 1.3.14

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.
@@ -491,7 +491,7 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
491
491
  case 0:
492
492
  _context11.prev = 0;
493
493
  _context11.next = 3;
494
- return this.axios.post('/object_service/createObject', ['<@filekit.file>', id]);
494
+ return this.load('<@filekit.file>', id);
495
495
  case 3:
496
496
  response = _context11.sent;
497
497
  record = response.data;
@@ -228,7 +228,7 @@ export default class RbtApi {
228
228
  async loadFile(id) {
229
229
  //return this.create('<@filekit.file>', dataHash);
230
230
  try {
231
- const response = await this.axios.post('/object_service/createObject', ['<@filekit.file>', id]);
231
+ const response = await this.load('<@filekit.file>', id);
232
232
  const record = response.data;
233
233
  return new RbtFile(record, this.axios, this.localDb);
234
234
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/rbt_api.js CHANGED
@@ -282,7 +282,7 @@ export default class RbtApi {
282
282
 
283
283
  //return this.create('<@filekit.file>', dataHash);
284
284
  try {
285
- const response = await this.axios.post('/object_service/createObject', ['<@filekit.file>', id]);
285
+ const response = await this.load('<@filekit.file>', id);
286
286
  const record = response.data;
287
287
  return new RbtFile(record, this.axios, this.localDb);
288
288