@@ -3714,7 +3714,7 @@ module.exports = __toCommonJS(dist_src_exports);
37143714var import_universal_user_agent = __nccwpck_require__(3843);
37153715
37163716// pkg/dist-src/version.js
3717- var VERSION = "9.0.5 ";
3717+ var VERSION = "9.0.6 ";
37183718
37193719// pkg/dist-src/defaults.js
37203720var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -3819,9 +3819,9 @@ function addQueryParameters(url, parameters) {
38193819}
38203820
38213821// pkg/dist-src/util/extract-url-variable-names.js
3822- var urlVariableRegex = /\{[^}]+\}/g;
3822+ var urlVariableRegex = /\{[^{} }]+\}/g;
38233823function removeNonChars(variableName) {
3824- return variableName.replace(/^\W+|\W+$ /g, "").split(/,/);
3824+ return variableName.replace(/(?: ^\W+)|(?:(?<!\W)\W+$) /g, "").split(/,/);
38253825}
38263826function extractUrlVariableNames(url) {
38273827 const matches = url.match(urlVariableRegex);
@@ -4007,7 +4007,7 @@ function parse(options) {
40074007 }
40084008 if (url.endsWith("/graphql")) {
40094009 if (options.mediaType.previews?.length) {
4010- const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
4010+ const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-]) [\w-]+(?=-preview)/g) || [];
40114011 headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
40124012 const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
40134013 return `application/vnd.github.${preview}-preview${format}`;
@@ -6852,7 +6852,7 @@ var RequestError = class extends Error {
68526852 if (options.request.headers.authorization) {
68536853 requestCopy.headers = Object.assign({}, options.request.headers, {
68546854 authorization: options.request.headers.authorization.replace(
6855- / .*$/,
6855+ /(?<! ) .*$/,
68566856 " [REDACTED]"
68576857 )
68586858 });
@@ -6919,7 +6919,7 @@ var import_endpoint = __nccwpck_require__(4471);
69196919var import_universal_user_agent = __nccwpck_require__(3843);
69206920
69216921// pkg/dist-src/version.js
6922- var VERSION = "8.4.0 ";
6922+ var VERSION = "8.4.1 ";
69236923
69246924// pkg/dist-src/is-plain-object.js
69256925function isPlainObject(value) {
@@ -6978,7 +6978,7 @@ function fetchWrapper(requestOptions) {
69786978 headers[keyAndValue[0]] = keyAndValue[1];
69796979 }
69806980 if ("deprecation" in headers) {
6981- const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
6981+ const matches = headers.link && headers.link.match(/<([^< >]+)>; rel="deprecation"/);
69826982 const deprecationLink = matches && matches.pop();
69836983 log.warn(
69846984 `[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
0 commit comments