@workerbase/sdk
Advanced tools
Comparing version 0.1.23 to 0.1.24
@@ -78,14 +78,19 @@ "use strict"; | ||
}, | ||
_a[BasicMethods.GET] = function (id) { return __awaiter(void 0, void 0, void 0, function () { | ||
var data, item; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, doRequest_1.doRequest(_api, endpoint + "/" + id, {}, internalHostname)]; | ||
case 1: | ||
data = (_a.sent()).data; | ||
item = data.data; | ||
return [2 /*return*/, transformData(item)]; | ||
} | ||
_a[BasicMethods.GET] = function (id, options) { | ||
if (options === void 0) { options = {}; } | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var data, item; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, doRequest_1.doRequest(_api, endpoint + "/" + id, { | ||
params: options, | ||
}, internalHostname)]; | ||
case 1: | ||
data = (_a.sent()).data; | ||
item = data.data; | ||
return [2 /*return*/, transformData(item)]; | ||
} | ||
}); | ||
}); | ||
}); }, | ||
}, | ||
_a[BasicMethods.UPDATE] = function (id, changes) { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -92,0 +97,0 @@ var data, item; |
{ | ||
"name": "@workerbase/sdk", | ||
"version": "0.1.23", | ||
"version": "0.1.24", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
100507
1593