diff --git a/dist/index.js b/dist/index.js index f7cd3ff..d4400ea 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26345,7 +26345,9 @@ function fetch(url, opts) { return; } - destroyStream(response.body, err); + if (response && response.body) { + destroyStream(response.body, err); + } }); /* c8 ignore next 18 */ diff --git a/package-lock.json b/package-lock.json index 9180855..9972224 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "yaml": "^2.2.1" }, "devDependencies": { - "@types/jest": "^29.4.2", + "@types/jest": "^29.4.3", "@vercel/ncc": "^0.36.1", "ajv": "^8.12.0", "jest": "^29.5.0", @@ -1335,9 +1335,9 @@ } }, "node_modules/@types/jest": { - "version": "29.4.2", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.4.2.tgz", - "integrity": "sha512-bbne90W7is+m88ezmZrLiTpp41tIoTdvPC5t3gLoNgu/6qbGdWTC2JWqPWQRJn2Q7rVYTr8aTWqOjhGJDXyvAQ==", + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.4.3.tgz", + "integrity": "sha512-rQ+fXtBHSDfgoTwGLLNuZ27fHpp14mCZSxGUZ3MlNExwJno5hz0uXEWtXfQlE8vaZmYAa6atbR9rpHk+NnlRaw==", "dev": true, "dependencies": { "expect": "^29.0.0", @@ -1345,9 +1345,9 @@ } }, "node_modules/@types/node": { - "version": "18.11.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", - "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==", + "version": "18.15.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.3.tgz", + "integrity": "sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==", "dev": true }, "node_modules/@types/prettier": { @@ -1363,9 +1363,9 @@ "dev": true }, "node_modules/@types/yargs": { - "version": "17.0.20", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.20.tgz", - "integrity": "sha512-eknWrTHofQuPk2iuqDm1waA7V6xPlbgBoaaXEgYkClhLOnB0TtbW+srJaOToAgawPxPlHQzwypFA2bhZaUGP5A==", + "version": "17.0.22", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.22.tgz", + "integrity": "sha512-pet5WJ9U8yPVRhkwuEIp5ktAeAqRZOq4UdAyWLWzxbtpyXnzbtLdKiXAjJzi/KLmPGS9wk86lUFWZFN6sISo4g==", "dev": true, "dependencies": { "@types/yargs-parser": "*" @@ -1690,9 +1690,9 @@ } }, "node_modules/ci-info": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.1.tgz", - "integrity": "sha512-4jYS4MOAaCIStSRwiuxc4B8MYhIe676yO1sYGzARnjXkWpmzZMMYxY6zu8WYWDhSuth5zhrQ1rhNSibyyvv4/w==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", "dev": true, "funding": [ { @@ -3087,9 +3087,9 @@ "dev": true }, "node_modules/node-fetch": { - "version": "2.6.8", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.8.tgz", - "integrity": "sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg==", + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==", "dependencies": { "whatwg-url": "^5.0.0" }, diff --git a/package.json b/package.json index 959b639..2108211 100644 --- a/package.json +++ b/package.json @@ -26,16 +26,16 @@ "dependencies": { "@actions/core": "^1.10.0", "@actions/github": "^5.1.1", - "@actions/http-client": "^2.0.1", + "@actions/http-client": "^2.1.0", "@octokit/rest": "^19.0.7", "lodash": "^4.17.21", "yaml": "^2.2.1" }, "devDependencies": { - "@types/jest": "^29.4.0", + "@types/jest": "^29.4.3", "@vercel/ncc": "^0.36.1", "ajv": "^8.12.0", - "jest": "^29.4.1", - "prettier": "^2.8.3" + "jest": "^29.5.0", + "prettier": "^2.8.4" } }