roboto-js 1.3.12 → 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.
- package/dist/cjs/rbt_api.cjs +5 -8
- package/dist/esm/rbt_api.js +1 -4
- package/package.json +1 -1
- package/src/rbt_api.js +1 -5
package/dist/cjs/rbt_api.cjs
CHANGED
|
@@ -491,23 +491,20 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
491
491
|
case 0:
|
|
492
492
|
_context11.prev = 0;
|
|
493
493
|
_context11.next = 3;
|
|
494
|
-
return this.
|
|
494
|
+
return this.load('<@filekit.file>', id);
|
|
495
495
|
case 3:
|
|
496
496
|
response = _context11.sent;
|
|
497
497
|
record = response.data;
|
|
498
|
-
if (dataHash) {
|
|
499
|
-
record.data = dataHash;
|
|
500
|
-
}
|
|
501
498
|
return _context11.abrupt("return", new _rbt_file["default"](record, this.axios, this.localDb));
|
|
502
|
-
case
|
|
503
|
-
_context11.prev =
|
|
499
|
+
case 8:
|
|
500
|
+
_context11.prev = 8;
|
|
504
501
|
_context11.t0 = _context11["catch"](0);
|
|
505
502
|
return _context11.abrupt("return", this._handleError(_context11.t0));
|
|
506
|
-
case
|
|
503
|
+
case 11:
|
|
507
504
|
case "end":
|
|
508
505
|
return _context11.stop();
|
|
509
506
|
}
|
|
510
|
-
}, _callee11, this, [[0,
|
|
507
|
+
}, _callee11, this, [[0, 8]]);
|
|
511
508
|
}));
|
|
512
509
|
function loadFile(_x7) {
|
|
513
510
|
return _loadFile.apply(this, arguments);
|
package/dist/esm/rbt_api.js
CHANGED
|
@@ -228,11 +228,8 @@ 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.
|
|
231
|
+
const response = await this.load('<@filekit.file>', id);
|
|
232
232
|
const record = response.data;
|
|
233
|
-
if (dataHash) {
|
|
234
|
-
record.data = dataHash;
|
|
235
|
-
}
|
|
236
233
|
return new RbtFile(record, this.axios, this.localDb);
|
|
237
234
|
} catch (e) {
|
|
238
235
|
return this._handleError(e);
|
package/package.json
CHANGED
package/src/rbt_api.js
CHANGED
|
@@ -282,12 +282,8 @@ export default class RbtApi {
|
|
|
282
282
|
|
|
283
283
|
//return this.create('<@filekit.file>', dataHash);
|
|
284
284
|
try {
|
|
285
|
-
const response = await this.
|
|
285
|
+
const response = await this.load('<@filekit.file>', id);
|
|
286
286
|
const record = response.data;
|
|
287
|
-
|
|
288
|
-
if(dataHash){
|
|
289
|
-
record.data = dataHash;
|
|
290
|
-
}
|
|
291
287
|
return new RbtFile(record, this.axios, this.localDb);
|
|
292
288
|
|
|
293
289
|
} catch (e) {
|