@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.es.js
CHANGED
|
@@ -187,7 +187,9 @@ function getHelper(service, endpoint, _a, acc) {
|
|
|
187
187
|
}
|
|
188
188
|
newAcc = __spreadArray(__spreadArray([], __read(acc), false), __read(body), false);
|
|
189
189
|
next = parse(headers.link).next;
|
|
190
|
-
_b = (next
|
|
190
|
+
_b = (next
|
|
191
|
+
? parseUrl(next, { parseNumbers: true, arrayFormat: 'bracket' })
|
|
192
|
+
: {}).query, qs = _b === void 0 ? {} : _b;
|
|
191
193
|
withinBounds = maxPages
|
|
192
194
|
? newAcc.length / (qs.per_page || 20) < maxPages
|
|
193
195
|
: true;
|
|
@@ -2328,8 +2330,7 @@ var Runners = /** @class */ (function (_super) {
|
|
|
2328
2330
|
return RequestHelper.put()(this, "runners/".concat(runnerId), options);
|
|
2329
2331
|
};
|
|
2330
2332
|
Runners.prototype.enable = function (projectId, runnerId, options) {
|
|
2331
|
-
|
|
2332
|
-
return RequestHelper.post()(this, endpoint(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["projects/", "/runners"], ["projects/", "/runners"])), pId), __assign({ runnerId: rId }, options));
|
|
2333
|
+
return RequestHelper.post()(this, endpoint(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["projects/", "/runners"], ["projects/", "/runners"])), projectId), __assign({ runnerId: runnerId }, options));
|
|
2333
2334
|
};
|
|
2334
2335
|
Runners.prototype.disable = function (projectId, runnerId, options) {
|
|
2335
2336
|
return RequestHelper.del()(this, endpoint(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["projects/", "/runners/", ""], ["projects/", "/runners/", ""])), projectId, runnerId), options);
|