@gitbeaker/core 34.1.0 → 34.4.1
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/README.md +2 -2
- package/dist/index.es.js +7 -2
- 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/ContainerRegistry.d.ts +2 -2
- package/dist/types/resources/Issues.d.ts +24 -2
- package/dist/types/resources/MergeRequestApprovals.d.ts +19 -7
- package/dist/types/resources/Users.d.ts +2 -1
- package/dist/types/templates/ResourceBadges.d.ts +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -131,7 +131,7 @@ function __spreadArray(to, from) {
|
|
|
131
131
|
function appendFormFromObject(object) {
|
|
132
132
|
/* eslint @typescript-eslint/ban-ts-comment: 0 */
|
|
133
133
|
// @ts-ignore
|
|
134
|
-
var form = new FormData__default[
|
|
134
|
+
var form = new FormData__default["default"]();
|
|
135
135
|
Object.entries(object).forEach(function (_a) {
|
|
136
136
|
var _b = __read(_a, 2), k = _b[0], v = _b[1];
|
|
137
137
|
if (Array.isArray(v))
|
|
@@ -177,7 +177,7 @@ function getHelper(service, endpoint, _a, acc) {
|
|
|
177
177
|
status: status,
|
|
178
178
|
}];
|
|
179
179
|
}
|
|
180
|
-
newAcc = __spreadArray(__spreadArray([], __read(acc)), __read(body));
|
|
180
|
+
newAcc = __spreadArray(__spreadArray([], __read(acc), false), __read(body));
|
|
181
181
|
next = li.parse(headers.link).next;
|
|
182
182
|
_b = (next ? queryString.parseUrl(next, { parseNumbers: true }) : {}).query, qs = _b === void 0 ? {} : _b;
|
|
183
183
|
withinBounds = maxPages
|
|
@@ -995,6 +995,9 @@ var Users = /** @class */ (function (_super) {
|
|
|
995
995
|
var uId = encodeURIComponent(userId);
|
|
996
996
|
return RequestHelper.post()(this, "users/" + uId + "/unblock", options);
|
|
997
997
|
};
|
|
998
|
+
Users.prototype.username = function (username, options) {
|
|
999
|
+
return RequestHelper.get()(this, 'users', __assign({ username: username }, options));
|
|
1000
|
+
};
|
|
998
1001
|
return Users;
|
|
999
1002
|
}(requesterUtils.BaseResource));
|
|
1000
1003
|
|
|
@@ -2325,7 +2328,9 @@ var ProtectedBranches = /** @class */ (function (_super) {
|
|
|
2325
2328
|
};
|
|
2326
2329
|
ProtectedBranches.prototype.protect = function (projectId, branchName, options) {
|
|
2327
2330
|
var pId = encodeURIComponent(projectId);
|
|
2328
|
-
return RequestHelper.post()(this, "projects/" + pId + "/protected_branches",
|
|
2331
|
+
return RequestHelper.post()(this, "projects/" + pId + "/protected_branches", {
|
|
2332
|
+
query: __assign({ name: branchName }, options),
|
|
2333
|
+
});
|
|
2329
2334
|
};
|
|
2330
2335
|
ProtectedBranches.prototype.show = function (projectId, branchName, options) {
|
|
2331
2336
|
var _a = __read([projectId, branchName].map(encodeURIComponent), 2), pId = _a[0], bName = _a[1];
|