@@ -3606,7 +3606,7 @@ module.exports = __toCommonJS(dist_src_exports);
3606
3606
var import_universal_user_agent = __nccwpck_require__(5030);
3607
3607
3608
3608
// pkg/dist-src/version.js
3609
- var VERSION = "9.0.4 ";
3609
+ var VERSION = "9.0.6 ";
3610
3610
3611
3611
// pkg/dist-src/defaults.js
3612
3612
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -3711,9 +3711,9 @@ function addQueryParameters(url, parameters) {
3711
3711
}
3712
3712
3713
3713
// pkg/dist-src/util/extract-url-variable-names.js
3714
- var urlVariableRegex = /\{[^}]+\}/g;
3714
+ var urlVariableRegex = /\{[^{} }]+\}/g;
3715
3715
function removeNonChars(variableName) {
3716
- return variableName.replace(/^\W+|\W+$ /g, "").split(/,/);
3716
+ return variableName.replace(/(?: ^\W+)|(?:(?<!\W)\W+$) /g, "").split(/,/);
3717
3717
}
3718
3718
function extractUrlVariableNames(url) {
3719
3719
const matches = url.match(urlVariableRegex);
@@ -3899,7 +3899,7 @@ function parse(options) {
3899
3899
}
3900
3900
if (url.endsWith("/graphql")) {
3901
3901
if (options.mediaType.previews?.length) {
3902
- const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
3902
+ const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-]) [\w-]+(?=-preview)/g) || [];
3903
3903
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
3904
3904
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
3905
3905
return `application/vnd.github.${preview}-preview${format}`;
@@ -6816,7 +6816,7 @@ var import_endpoint = __nccwpck_require__(9440);
6816
6816
var import_universal_user_agent = __nccwpck_require__(5030);
6817
6817
6818
6818
// pkg/dist-src/version.js
6819
- var VERSION = "8.2.0 ";
6819
+ var VERSION = "8.4.1 ";
6820
6820
6821
6821
// pkg/dist-src/is-plain-object.js
6822
6822
function isPlainObject(value) {
@@ -6841,7 +6841,7 @@ function getBufferResponse(response) {
6841
6841
6842
6842
// pkg/dist-src/fetch-wrapper.js
6843
6843
function fetchWrapper(requestOptions) {
6844
- var _a, _b, _c;
6844
+ var _a, _b, _c, _d ;
6845
6845
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
6846
6846
const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
6847
6847
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
@@ -6862,8 +6862,9 @@ function fetchWrapper(requestOptions) {
6862
6862
return fetch(requestOptions.url, {
6863
6863
method: requestOptions.method,
6864
6864
body: requestOptions.body,
6865
+ redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
6865
6866
headers: requestOptions.headers,
6866
- signal: (_c = requestOptions.request) == null ? void 0 : _c .signal,
6867
+ signal: (_d = requestOptions.request) == null ? void 0 : _d .signal,
6867
6868
// duplex must be set if request.body is ReadableStream or Async Iterables.
6868
6869
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
6869
6870
...requestOptions.body && { duplex: "half" }
@@ -6874,7 +6875,7 @@ function fetchWrapper(requestOptions) {
6874
6875
headers[keyAndValue[0]] = keyAndValue[1];
6875
6876
}
6876
6877
if ("deprecation" in headers) {
6877
- const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
6878
+ const matches = headers.link && headers.link.match(/<([^< >]+)>; rel="deprecation"/);
6878
6879
const deprecationLink = matches && matches.pop();
6879
6880
log.warn(
6880
6881
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`
0 commit comments