@cypress/github-action 6.10.7 → 6.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +30 -16
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -100926,12 +100926,13 @@ class RequestError extends Error {
|
|
|
100926
100926
|
*/
|
|
100927
100927
|
response;
|
|
100928
100928
|
constructor(message, statusCode, options) {
|
|
100929
|
-
super(message);
|
|
100929
|
+
super(message, { cause: options.cause });
|
|
100930
100930
|
this.name = "HttpError";
|
|
100931
100931
|
this.status = Number.parseInt(statusCode);
|
|
100932
100932
|
if (Number.isNaN(this.status)) {
|
|
100933
100933
|
this.status = 0;
|
|
100934
100934
|
}
|
|
100935
|
+
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */
|
|
100935
100936
|
if ("response" in options) {
|
|
100936
100937
|
this.response = options.response;
|
|
100937
100938
|
}
|
|
@@ -100958,7 +100959,7 @@ class RequestError extends Error {
|
|
|
100958
100959
|
|
|
100959
100960
|
|
|
100960
100961
|
// pkg/dist-src/version.js
|
|
100961
|
-
var dist_bundle_VERSION = "
|
|
100962
|
+
var dist_bundle_VERSION = "10.0.7";
|
|
100962
100963
|
|
|
100963
100964
|
// pkg/dist-src/defaults.js
|
|
100964
100965
|
var defaults_default = {
|
|
@@ -100982,6 +100983,7 @@ function dist_bundle_isPlainObject(value) {
|
|
|
100982
100983
|
|
|
100983
100984
|
// pkg/dist-src/fetch-wrapper.js
|
|
100984
100985
|
|
|
100986
|
+
var noop = () => "";
|
|
100985
100987
|
async function fetchWrapper(requestOptions) {
|
|
100986
100988
|
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
|
100987
100989
|
if (!fetch) {
|
|
@@ -101083,7 +101085,7 @@ async function fetchWrapper(requestOptions) {
|
|
|
101083
101085
|
async function getResponseData(response) {
|
|
101084
101086
|
const contentType = response.headers.get("content-type");
|
|
101085
101087
|
if (!contentType) {
|
|
101086
|
-
return response.text().catch(
|
|
101088
|
+
return response.text().catch(noop);
|
|
101087
101089
|
}
|
|
101088
101090
|
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
|
|
101089
101091
|
if (isJSONResponse(mimetype)) {
|
|
@@ -101095,9 +101097,12 @@ async function getResponseData(response) {
|
|
|
101095
101097
|
return text;
|
|
101096
101098
|
}
|
|
101097
101099
|
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
|
101098
|
-
return response.text().catch(
|
|
101100
|
+
return response.text().catch(noop);
|
|
101099
101101
|
} else {
|
|
101100
|
-
return response.arrayBuffer().catch(
|
|
101102
|
+
return response.arrayBuffer().catch(
|
|
101103
|
+
/* v8 ignore next -- @preserve */
|
|
101104
|
+
() => new ArrayBuffer(0)
|
|
101105
|
+
);
|
|
101101
101106
|
}
|
|
101102
101107
|
}
|
|
101103
101108
|
function isJSONResponse(mimetype) {
|
|
@@ -101145,6 +101150,8 @@ function dist_bundle_withDefaults(oldEndpoint, newDefaults) {
|
|
|
101145
101150
|
// pkg/dist-src/index.js
|
|
101146
101151
|
var request = dist_bundle_withDefaults(endpoint, defaults_default);
|
|
101147
101152
|
|
|
101153
|
+
/* v8 ignore next -- @preserve */
|
|
101154
|
+
/* v8 ignore else -- @preserve */
|
|
101148
101155
|
|
|
101149
101156
|
;// CONCATENATED MODULE: ./node_modules/@octokit/graphql/dist-bundle/index.js
|
|
101150
101157
|
// pkg/dist-src/index.js
|
|
@@ -101329,7 +101336,7 @@ var createTokenAuth = function createTokenAuth2(token) {
|
|
|
101329
101336
|
|
|
101330
101337
|
|
|
101331
101338
|
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
|
|
101332
|
-
const version_VERSION = "
|
|
101339
|
+
const version_VERSION = "7.0.6";
|
|
101333
101340
|
|
|
101334
101341
|
|
|
101335
101342
|
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
|
|
@@ -101339,10 +101346,25 @@ const version_VERSION = "6.1.4";
|
|
|
101339
101346
|
|
|
101340
101347
|
|
|
101341
101348
|
|
|
101342
|
-
const
|
|
101349
|
+
const dist_src_noop = () => {
|
|
101343
101350
|
};
|
|
101344
101351
|
const consoleWarn = console.warn.bind(console);
|
|
101345
101352
|
const consoleError = console.error.bind(console);
|
|
101353
|
+
function createLogger(logger = {}) {
|
|
101354
|
+
if (typeof logger.debug !== "function") {
|
|
101355
|
+
logger.debug = dist_src_noop;
|
|
101356
|
+
}
|
|
101357
|
+
if (typeof logger.info !== "function") {
|
|
101358
|
+
logger.info = dist_src_noop;
|
|
101359
|
+
}
|
|
101360
|
+
if (typeof logger.warn !== "function") {
|
|
101361
|
+
logger.warn = consoleWarn;
|
|
101362
|
+
}
|
|
101363
|
+
if (typeof logger.error !== "function") {
|
|
101364
|
+
logger.error = consoleError;
|
|
101365
|
+
}
|
|
101366
|
+
return logger;
|
|
101367
|
+
}
|
|
101346
101368
|
const userAgentTrail = `octokit-core.js/${version_VERSION} ${getUserAgent()}`;
|
|
101347
101369
|
class Octokit {
|
|
101348
101370
|
static VERSION = version_VERSION;
|
|
@@ -101410,15 +101432,7 @@ class Octokit {
|
|
|
101410
101432
|
}
|
|
101411
101433
|
this.request = request.defaults(requestDefaults);
|
|
101412
101434
|
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
|
|
101413
|
-
this.log =
|
|
101414
|
-
{
|
|
101415
|
-
debug: noop,
|
|
101416
|
-
info: noop,
|
|
101417
|
-
warn: consoleWarn,
|
|
101418
|
-
error: consoleError
|
|
101419
|
-
},
|
|
101420
|
-
options.log
|
|
101421
|
-
);
|
|
101435
|
+
this.log = createLogger(options.log);
|
|
101422
101436
|
this.hook = hook;
|
|
101423
101437
|
if (!options.authStrategy) {
|
|
101424
101438
|
if (!options.auth) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cypress/github-action",
|
|
3
|
-
"version": "6.10.
|
|
3
|
+
"version": "6.10.8",
|
|
4
4
|
"description": "GitHub Action for running Cypress end-to-end and component tests",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@actions/core": "2.0.1",
|
|
44
44
|
"@actions/exec": "2.0.0",
|
|
45
45
|
"@actions/io": "2.0.0",
|
|
46
|
-
"@octokit/core": "
|
|
46
|
+
"@octokit/core": "7.0.6",
|
|
47
47
|
"argument-vector": "1.0.2",
|
|
48
48
|
"debug": "4.4.0",
|
|
49
49
|
"find-yarn-workspace-root": "2.0.0",
|