@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/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
</div>
|
|
5
5
|
<br>
|
|
6
6
|
<p align="center">
|
|
7
|
-
<a href="https://
|
|
8
|
-
<img src="https://
|
|
7
|
+
<a href="https://circleci.com/gh/jdalrymple/gitbeaker/tree/master">
|
|
8
|
+
<img src="https://circleci.com/gh/jdalrymple/gitbeaker/tree/master.svg?style=svg" alt="CircleCI Pipeline Status">
|
|
9
9
|
</a>
|
|
10
10
|
<a href="https://codeclimate.com/github/jdalrymple/gitbeaker">
|
|
11
11
|
<img src="https://codeclimate.com/github/jdalrymple/gitbeaker/badges/gpa.svg" alt="Code Climate maintainability">
|
package/dist/index.es.js
CHANGED
|
@@ -169,7 +169,7 @@ function getHelper(service, endpoint, _a, acc) {
|
|
|
169
169
|
status: status,
|
|
170
170
|
}];
|
|
171
171
|
}
|
|
172
|
-
newAcc = __spreadArray(__spreadArray([], __read(acc)), __read(body));
|
|
172
|
+
newAcc = __spreadArray(__spreadArray([], __read(acc), false), __read(body));
|
|
173
173
|
next = parse(headers.link).next;
|
|
174
174
|
_b = (next ? parseUrl(next, { parseNumbers: true }) : {}).query, qs = _b === void 0 ? {} : _b;
|
|
175
175
|
withinBounds = maxPages
|
|
@@ -987,6 +987,9 @@ var Users = /** @class */ (function (_super) {
|
|
|
987
987
|
var uId = encodeURIComponent(userId);
|
|
988
988
|
return RequestHelper.post()(this, "users/" + uId + "/unblock", options);
|
|
989
989
|
};
|
|
990
|
+
Users.prototype.username = function (username, options) {
|
|
991
|
+
return RequestHelper.get()(this, 'users', __assign({ username: username }, options));
|
|
992
|
+
};
|
|
990
993
|
return Users;
|
|
991
994
|
}(BaseResource));
|
|
992
995
|
|
|
@@ -2317,7 +2320,9 @@ var ProtectedBranches = /** @class */ (function (_super) {
|
|
|
2317
2320
|
};
|
|
2318
2321
|
ProtectedBranches.prototype.protect = function (projectId, branchName, options) {
|
|
2319
2322
|
var pId = encodeURIComponent(projectId);
|
|
2320
|
-
return RequestHelper.post()(this, "projects/" + pId + "/protected_branches",
|
|
2323
|
+
return RequestHelper.post()(this, "projects/" + pId + "/protected_branches", {
|
|
2324
|
+
query: __assign({ name: branchName }, options),
|
|
2325
|
+
});
|
|
2321
2326
|
};
|
|
2322
2327
|
ProtectedBranches.prototype.show = function (projectId, branchName, options) {
|
|
2323
2328
|
var _a = __read([projectId, branchName].map(encodeURIComponent), 2), pId = _a[0], bName = _a[1];
|