Skip to content

Commit 9952adb

Browse files
authored
Merge pull request #64 from git-for-windows/dependabot/npm_and_yarn/npm_and_yarn-dcef12be29
build(deps): bump the npm_and_yarn group with 2 updates
2 parents 20478bf + 3933b4a commit 9952adb

File tree

3 files changed

+122
-54
lines changed

3 files changed

+122
-54
lines changed

dist/index.js

+13-10
Original file line numberDiff line numberDiff line change
@@ -3906,7 +3906,7 @@ module.exports = __toCommonJS(dist_src_exports);
39063906
var import_universal_user_agent = __nccwpck_require__(3843);
39073907

39083908
// pkg/dist-src/version.js
3909-
var VERSION = "9.0.4";
3909+
var VERSION = "9.0.6";
39103910

39113911
// pkg/dist-src/defaults.js
39123912
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -4011,9 +4011,9 @@ function addQueryParameters(url, parameters) {
40114011
}
40124012

40134013
// pkg/dist-src/util/extract-url-variable-names.js
4014-
var urlVariableRegex = /\{[^}]+\}/g;
4014+
var urlVariableRegex = /\{[^{}}]+\}/g;
40154015
function removeNonChars(variableName) {
4016-
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
4016+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
40174017
}
40184018
function extractUrlVariableNames(url) {
40194019
const matches = url.match(urlVariableRegex);
@@ -4199,7 +4199,7 @@ function parse(options) {
41994199
}
42004200
if (url.endsWith("/graphql")) {
42014201
if (options.mediaType.previews?.length) {
4202-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
4202+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
42034203
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
42044204
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
42054205
return `application/vnd.github.${preview}-preview${format}`;
@@ -4448,7 +4448,7 @@ __export(dist_src_exports, {
44484448
module.exports = __toCommonJS(dist_src_exports);
44494449

44504450
// pkg/dist-src/version.js
4451-
var VERSION = "9.1.5";
4451+
var VERSION = "9.2.2";
44524452

44534453
// pkg/dist-src/normalize-paginated-list-response.js
44544454
function normalizePaginatedListResponse(response) {
@@ -4496,7 +4496,7 @@ function iterator(octokit, route, parameters) {
44964496
const response = await requestMethod({ method, url, headers });
44974497
const normalizedResponse = normalizePaginatedListResponse(response);
44984498
url = ((normalizedResponse.headers.link || "").match(
4499-
/<([^>]+)>;\s*rel="next"/
4499+
/<([^<>]+)>;\s*rel="next"/
45004500
) || [])[1];
45014501
return { value: normalizedResponse };
45024502
} catch (error) {
@@ -4609,6 +4609,8 @@ var paginatingEndpoints = [
46094609
"GET /orgs/{org}/members/{username}/codespaces",
46104610
"GET /orgs/{org}/migrations",
46114611
"GET /orgs/{org}/migrations/{migration_id}/repositories",
4612+
"GET /orgs/{org}/organization-roles/{role_id}/teams",
4613+
"GET /orgs/{org}/organization-roles/{role_id}/users",
46124614
"GET /orgs/{org}/outside_collaborators",
46134615
"GET /orgs/{org}/packages",
46144616
"GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
@@ -7055,7 +7057,7 @@ var import_endpoint = __nccwpck_require__(4471);
70557057
var import_universal_user_agent = __nccwpck_require__(3843);
70567058

70577059
// pkg/dist-src/version.js
7058-
var VERSION = "8.2.0";
7060+
var VERSION = "8.4.1";
70597061

70607062
// pkg/dist-src/is-plain-object.js
70617063
function isPlainObject(value) {
@@ -7080,7 +7082,7 @@ function getBufferResponse(response) {
70807082

70817083
// pkg/dist-src/fetch-wrapper.js
70827084
function fetchWrapper(requestOptions) {
7083-
var _a, _b, _c;
7085+
var _a, _b, _c, _d;
70847086
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
70857087
const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
70867088
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
@@ -7101,8 +7103,9 @@ function fetchWrapper(requestOptions) {
71017103
return fetch(requestOptions.url, {
71027104
method: requestOptions.method,
71037105
body: requestOptions.body,
7106+
redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
71047107
headers: requestOptions.headers,
7105-
signal: (_c = requestOptions.request) == null ? void 0 : _c.signal,
7108+
signal: (_d = requestOptions.request) == null ? void 0 : _d.signal,
71067109
// duplex must be set if request.body is ReadableStream or Async Iterables.
71077110
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
71087111
...requestOptions.body && { duplex: "half" }
@@ -7113,7 +7116,7 @@ function fetchWrapper(requestOptions) {
71137116
headers[keyAndValue[0]] = keyAndValue[1];
71147117
}
71157118
if ("deprecation" in headers) {
7116-
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
7119+
const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
71177120
const deprecationLink = matches && matches.pop();
71187121
log.warn(
71197122
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+108-43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)