@@ -3723,7 +3723,7 @@ module.exports = __toCommonJS(dist_src_exports);
37233723var 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
37293729var 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;
38323832function removeNonChars(variableName) {
3833- return variableName.replace(/^\W+|\W+$ /g, "").split(/,/);
3833+ return variableName.replace(/(?: ^\W+)|(?:(?<!\W)\W+$) /g, "").split(/,/);
38343834}
38353835function 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);
69336933var 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
69396939function 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}` : ""}`
0 commit comments