argous 1.2.214 → 1.2.215
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/api/index.js +6 -8
- package/lib/api/index.js +1 -2
- package/package.json +1 -1
package/dist/api/index.js
CHANGED
|
@@ -279,16 +279,14 @@ var agSet = function (data) { return __awaiter(void 0, void 0, void 0, function
|
|
|
279
279
|
}); };
|
|
280
280
|
exports.agSet = agSet;
|
|
281
281
|
var action = function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
282
|
-
var
|
|
282
|
+
var res;
|
|
283
283
|
return __generator(this, function (_a) {
|
|
284
284
|
switch (_a.label) {
|
|
285
|
-
case 0:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
headers: actionHeaders
|
|
291
|
-
})];
|
|
285
|
+
case 0: return [4 /*yield*/, fetch(exports.api() + "agaction.rslvr", {
|
|
286
|
+
method: 'POST',
|
|
287
|
+
body: JSON.stringify(data),
|
|
288
|
+
headers: exports.headers(data)
|
|
289
|
+
})];
|
|
292
290
|
case 1:
|
|
293
291
|
res = _a.sent();
|
|
294
292
|
return [4 /*yield*/, res.json()];
|
package/lib/api/index.js
CHANGED
|
@@ -134,11 +134,10 @@ export const agSet = async (data) => {
|
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
export const action = async (data) => {
|
|
137
|
-
const actionHeaders = headers(data);
|
|
138
137
|
const res = await fetch(`${api()}agaction.rslvr`, {
|
|
139
138
|
method: 'POST',
|
|
140
139
|
body: JSON.stringify(data),
|
|
141
|
-
headers:
|
|
140
|
+
headers: headers(data)
|
|
142
141
|
});
|
|
143
142
|
return await res.json();
|
|
144
143
|
};
|