@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.es.js +8 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/map.json +1 -1
- package/dist/types/resources/Issues.d.ts +2 -2
- package/dist/types/resources/Jobs.d.ts +1 -1
- package/dist/types/resources/Tags.d.ts +1 -1
- package/package.json +5 -5
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;
|
|
@@ -2376,8 +2378,11 @@ var Tags = /** @class */ (function (_super) {
|
|
|
2376
2378
|
Tags.prototype.all = function (projectId, options) {
|
|
2377
2379
|
return RequestHelper.get()(this, endpoint(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), options);
|
|
2378
2380
|
};
|
|
2379
|
-
Tags.prototype.create = function (projectId, options) {
|
|
2380
|
-
return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId),
|
|
2381
|
+
Tags.prototype.create = function (projectId, tagName, ref, options) {
|
|
2382
|
+
return RequestHelper.post()(this, endpoint(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["projects/", "/repository/tags"], ["projects/", "/repository/tags"])), projectId), __assign({ query: {
|
|
2383
|
+
tagName: tagName,
|
|
2384
|
+
ref: ref,
|
|
2385
|
+
} }, options));
|
|
2381
2386
|
};
|
|
2382
2387
|
Tags.prototype.remove = function (projectId, tagName, options) {
|
|
2383
2388
|
return RequestHelper.del()(this, endpoint(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["projects/", "/repository/tags/", ""], ["projects/", "/repository/tags/", ""])), projectId, tagName), options);
|