Skip to content

Commit 612dced

Browse files
authored
Merge pull request #215 from zaproxy/dependabot/npm_and_yarn/dot-github/actions/update-website/octokit/request-8.4.1
Bump @octokit/request from 8.2.0 to 8.4.1 in /.github/actions/update-website
2 parents fbfa139 + d03ef1b commit 612dced

File tree

2 files changed

+51
-18
lines changed

2 files changed

+51
-18
lines changed

.github/actions/update-website/dist/index.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -3606,7 +3606,7 @@ module.exports = __toCommonJS(dist_src_exports);
36063606
var import_universal_user_agent = __nccwpck_require__(5030);
36073607

36083608
// pkg/dist-src/version.js
3609-
var VERSION = "9.0.4";
3609+
var VERSION = "9.0.6";
36103610

36113611
// pkg/dist-src/defaults.js
36123612
var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
@@ -3711,9 +3711,9 @@ function addQueryParameters(url, parameters) {
37113711
}
37123712

37133713
// pkg/dist-src/util/extract-url-variable-names.js
3714-
var urlVariableRegex = /\{[^}]+\}/g;
3714+
var urlVariableRegex = /\{[^{}}]+\}/g;
37153715
function removeNonChars(variableName) {
3716-
return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
3716+
return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
37173717
}
37183718
function extractUrlVariableNames(url) {
37193719
const matches = url.match(urlVariableRegex);
@@ -3899,7 +3899,7 @@ function parse(options) {
38993899
}
39003900
if (url.endsWith("/graphql")) {
39013901
if (options.mediaType.previews?.length) {
3902-
const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
3902+
const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || [];
39033903
headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => {
39043904
const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
39053905
return `application/vnd.github.${preview}-preview${format}`;
@@ -6816,7 +6816,7 @@ var import_endpoint = __nccwpck_require__(9440);
68166816
var import_universal_user_agent = __nccwpck_require__(5030);
68176817

68186818
// pkg/dist-src/version.js
6819-
var VERSION = "8.2.0";
6819+
var VERSION = "8.4.1";
68206820

68216821
// pkg/dist-src/is-plain-object.js
68226822
function isPlainObject(value) {
@@ -6841,7 +6841,7 @@ function getBufferResponse(response) {
68416841

68426842
// pkg/dist-src/fetch-wrapper.js
68436843
function fetchWrapper(requestOptions) {
6844-
var _a, _b, _c;
6844+
var _a, _b, _c, _d;
68456845
const log = requestOptions.request && requestOptions.request.log ? requestOptions.request.log : console;
68466846
const parseSuccessResponseBody = ((_a = requestOptions.request) == null ? void 0 : _a.parseSuccessResponseBody) !== false;
68476847
if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
@@ -6862,8 +6862,9 @@ function fetchWrapper(requestOptions) {
68626862
return fetch(requestOptions.url, {
68636863
method: requestOptions.method,
68646864
body: requestOptions.body,
6865+
redirect: (_c = requestOptions.request) == null ? void 0 : _c.redirect,
68656866
headers: requestOptions.headers,
6866-
signal: (_c = requestOptions.request) == null ? void 0 : _c.signal,
6867+
signal: (_d = requestOptions.request) == null ? void 0 : _d.signal,
68676868
// duplex must be set if request.body is ReadableStream or Async Iterables.
68686869
// See https://fetch.spec.whatwg.org/#dom-requestinit-duplex.
68696870
...requestOptions.body && { duplex: "half" }
@@ -6874,7 +6875,7 @@ function fetchWrapper(requestOptions) {
68746875
headers[keyAndValue[0]] = keyAndValue[1];
68756876
}
68766877
if ("deprecation" in headers) {
6877-
const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
6878+
const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
68786879
const deprecationLink = matches && matches.pop();
68796880
log.warn(
68806881
`[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}`

.github/actions/update-website/package-lock.json

+42-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)