@gitbeaker/core 35.2.0 → 35.5.0
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/index.js
CHANGED
|
@@ -214,7 +214,9 @@ function getHelper(service, endpoint, _a, acc) {
|
|
|
214
214
|
}
|
|
215
215
|
newAcc = __spreadArray(__spreadArray([], __read(acc), false), __read(body), false);
|
|
216
216
|
next = li.parse(headers.link).next;
|
|
217
|
-
_b = (next
|
|
217
|
+
_b = (next
|
|
218
|
+
? queryString.parseUrl(next, { parseNumbers: true, arrayFormat: 'bracket' })
|
|
219
|
+
: {}).query, qs = _b === void 0 ? {} : _b;
|
|
218
220
|
withinBounds = maxPages
|
|
219
221
|
? newAcc.length / (qs.per_page || 20) < maxPages
|
|
220
222
|
: true;
|
|
@@ -2355,8 +2357,7 @@ var Runners = /** @class */ (function (_super) {
|
|
|
2355
2357
|
return RequestHelper.put()(this, "runners/".concat(runnerId), options);
|
|
2356
2358
|
};
|
|
2357
2359
|
Runners.prototype.enable = function (projectId, runnerId, options) {
|
|
2358
|
-
|
|
2359
|
-
return RequestHelper.post()(this, endpoint(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["projects/", "/runners"], ["projects/", "/runners"])), pId), __assign({ runnerId: rId }, options));
|
|
2360
|
+
return RequestHelper.post()(this, endpoint(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["projects/", "/runners"], ["projects/", "/runners"])), projectId), __assign({ runnerId: runnerId }, options));
|
|
2360
2361
|
};
|
|
2361
2362
|
Runners.prototype.disable = function (projectId, runnerId, options) {
|
|
2362
2363
|
return RequestHelper.del()(this, endpoint(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["projects/", "/runners/", ""], ["projects/", "/runners/", ""])), projectId, runnerId), options);
|