@@ -1812,6 +1812,7 @@ module.exports = [["0","\u0000",127],["8ea1","。",62],["a1a1"," 、。,.
1812
1812
// ignored, since we can never get coverage for them.
1813
1813
var assert = __webpack_require__(357)
1814
1814
var signals = __webpack_require__(654)
1815
+ var isWin = /^win/i.test(process.platform)
1815
1816
1816
1817
var EE = __webpack_require__(614)
1817
1818
/* istanbul ignore if */
@@ -1901,6 +1902,11 @@ signals.forEach(function (sig) {
1901
1902
/* istanbul ignore next */
1902
1903
emit('afterexit', null, sig)
1903
1904
/* istanbul ignore next */
1905
+ if (isWin && sig === 'SIGHUP') {
1906
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
1907
+ // so use a supported signal instead
1908
+ sig = 'SIGINT'
1909
+ }
1904
1910
process.kill(process.pid, sig)
1905
1911
}
1906
1912
}
@@ -6281,6 +6287,12 @@ function convertBody(buffer, headers) {
6281
6287
// html4
6282
6288
if (!res && str) {
6283
6289
res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
6290
+ if (!res) {
6291
+ res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
6292
+ if (res) {
6293
+ res.pop(); // drop last quote
6294
+ }
6295
+ }
6284
6296
6285
6297
if (res) {
6286
6298
res = /charset=(.*)/i.exec(res.pop());
@@ -7288,7 +7300,7 @@ function fetch(url, opts) {
7288
7300
// HTTP fetch step 5.5
7289
7301
switch (request.redirect) {
7290
7302
case 'error':
7291
- reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect'));
7303
+ reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
7292
7304
finalize();
7293
7305
return;
7294
7306
case 'manual':
@@ -7327,7 +7339,8 @@ function fetch(url, opts) {
7327
7339
method: request.method,
7328
7340
body: request.body,
7329
7341
signal: request.signal,
7330
- timeout: request.timeout
7342
+ timeout: request.timeout,
7343
+ size: request.size
7331
7344
};
7332
7345
7333
7346
// HTTP-redirect fetch step 9
@@ -12724,7 +12737,8 @@ class GithubHelper {
12724
12737
this.octokit = github.getOctokit(token);
12725
12738
if (github.context.eventName === 'pull_request') {
12726
12739
this.isPR = true;
12727
- this.payload = github.context.payload;
12740
+ this.payload = github.context
12741
+ .payload;
12728
12742
this.owner = this.payload.pull_request.head.repo.owner.login;
12729
12743
this.repo = this.payload.pull_request.head.repo.name;
12730
12744
this.sha = this.payload.pull_request.head.sha;
0 commit comments