Skip to content

Commit 9418257

Browse files
Bump @octokit/request from 8.4.0 to 8.4.1 (#20)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Hamza Remmal <[email protected]>
1 parent ae7e7a9 commit 9418257

File tree

3 files changed

+22
-19
lines changed

3 files changed

+22
-19
lines changed

dist/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3723,7 +3723,7 @@ module.exports = __toCommonJS(dist_src_exports);
37233723
var import_universal_user_agent = __nccwpck_require__(3843);
37243724

37253725
// pkg/dist-src/version.js
3726-
var VERSION = "9.0.5";
3726+
var VERSION = "9.0.6";
37273727

37283728
// pkg/dist-src/defaults.js
37293729
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -3828,9 +3828,9 @@ function addQueryParameters(url, parameters) {
38283828
}
38293829

38303830
// pkg/dist-src/util/extract-url-variable-names.js
3831-
var urlVariableRegex = /\{[^}]+\}/g;
3831+
var urlVariableRegex = /\{[^{}}]+\}/g;
38323832
function removeNonChars(variableName) {
3833-
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
3833+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
38343834
}
38353835
function extractUrlVariableNames(url) {
38363836
const matches = url.match(urlVariableRegex);
@@ -4016,7 +4016,7 @@ function parse(options) {
40164016
}
40174017
if (url.endsWith("/graphql")) {
40184018
if (options.mediaType.previews?.length) {
4019-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
4019+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
40204020
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
40214021
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
40224022
return `application/vnd.github.${preview}-preview${format}`;
@@ -6865,7 +6865,7 @@ var RequestError = class extends Error {
68656865
if (options.request.headers.authorization) {
68666866
requestCopy.headers = Object.assign({}, options.request.headers, {
68676867
authorization: options.request.headers.authorization.replace(
6868-
/ .*$/,
6868+
/(?<! ) .*$/,
68696869
" [REDACTED]"
68706870
)
68716871
});
@@ -6933,7 +6933,7 @@ var import_endpoint = __nccwpck_require__(4471);
69336933
var import_universal_user_agent = __nccwpck_require__(3843);
69346934

69356935
// pkg/dist-src/version.js
6936-
var VERSION = "8.4.0";
6936+
var VERSION = "8.4.1";
69376937

69386938
// pkg/dist-src/is-plain-object.js
69396939
function isPlainObject(value) {
@@ -6992,7 +6992,7 @@ function fetchWrapper(requestOptions) {
69926992
headers[keyAndValue[0]] = keyAndValue[1];
69936993
}
69946994
if ("deprecation" in headers) {
6995-
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
6995+
const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
69966996
const deprecationLink = matches && matches.pop();
69976997
log.warn(
69986998
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)