@gitbeaker/core 35.0.0 → 35.4.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 ? queryString.parseUrl(next, { parseNumbers: true }) : {}).query, qs = _b === void 0 ? {} : _b;
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;
@@ -2403,8 +2405,11 @@ var Tags = /** @class */ (function (_super) {
2403
2405
  Tags.prototype.all = function (projectId, options) {
2404
2406
  return RequestHelper.get()(this, endpoint(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), options);
2405
2407
  };
2406
- Tags.prototype.create = function (projectId, options) {
2407
- return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), options);
2408
+ Tags.prototype.create = function (projectId, tagName, ref, options) {
2409
+ return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), __assign({ query: {
2410
+ tagName: tagName,
2411
+ ref: ref,
2412
+ } }, options));
2408
2413
  };
2409
2414
  Tags.prototype.remove = function (projectId, tagName, options) {
2410
2415
  return RequestHelper.del()(this, endpoint(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["projects/", "/repository/tags/", ""], ["projects/", "/repository/tags/", ""])), projectId, tagName), options);