@@ -3714,7 +3714,7 @@ module.exports = __toCommonJS(dist_src_exports);
3714
3714
var import_universal_user_agent = __nccwpck_require__(3843);
3715
3715
3716
3716
// pkg/dist-src/version.js
3717
- var VERSION = "9.0.5 ";
3717
+ var VERSION = "9.0.6 ";
3718
3718
3719
3719
// pkg/dist-src/defaults.js
3720
3720
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -3819,9 +3819,9 @@ function addQueryParameters(url, parameters) {
3819
3819
}
3820
3820
3821
3821
// pkg/dist-src/util/extract-url-variable-names.js
3822
- var urlVariableRegex = /\{[^}]+\}/g;
3822
+ var urlVariableRegex = /\{[^{} }]+\}/g;
3823
3823
function removeNonChars(variableName) {
3824
- return variableName.replace(/^\W+|\W+$ /g, "").split(/,/);
3824
+ return variableName.replace(/(?: ^\W+)|(?:(?<!\W)\W+$) /g, "").split(/,/);
3825
3825
}
3826
3826
function extractUrlVariableNames(url) {
3827
3827
const matches = url.match(urlVariableRegex);
@@ -4007,7 +4007,7 @@ function parse(options) {
4007
4007
}
4008
4008
if (url.endsWith("/graphql")) {
4009
4009
if (options.mediaType.previews?.length) {
4010
- const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
4010
+ const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-]) [\w-]+(?=-preview)/g) || [];
4011
4011
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
4012
4012
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
4013
4013
return `application/vnd.github.${preview}-preview${format}`;
@@ -6852,7 +6852,7 @@ var RequestError = class extends Error {
6852
6852
if (options.request.headers.authorization) {
6853
6853
requestCopy.headers = Object.assign({}, options.request.headers, {
6854
6854
authorization: options.request.headers.authorization.replace(
6855
- / .*$/,
6855
+ /(?<! ) .*$/,
6856
6856
" [REDACTED]"
6857
6857
)
6858
6858
});
@@ -6919,7 +6919,7 @@ var import_endpoint = __nccwpck_require__(4471);
6919
6919
var import_universal_user_agent = __nccwpck_require__(3843);
6920
6920
6921
6921
// pkg/dist-src/version.js
6922
- var VERSION = "8.4.0 ";
6922
+ var VERSION = "8.4.1 ";
6923
6923
6924
6924
// pkg/dist-src/is-plain-object.js
6925
6925
function isPlainObject(value) {
@@ -6978,7 +6978,7 @@ function fetchWrapper(requestOptions) {
6978
6978
headers[keyAndValue[0]] = keyAndValue[1];
6979
6979
}
6980
6980
if ("deprecation" in headers) {
6981
- const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
6981
+ const matches = headers.link && headers.link.match(/<([^< >]+)>; rel="deprecation"/);
6982
6982
const deprecationLink = matches && matches.pop();
6983
6983
log.warn(
6984
6984
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
0 commit comments