Bump version to 2.13.0

Update dependencies
This commit is contained in:
Shivam Mathur 2021-08-23 13:20:03 +05:30
parent 91936faf85
commit cf40c1e950
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 733 additions and 1165 deletions

70
dist/index.js vendored
View File

@ -1291,7 +1291,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
}); });
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = __nccwpck_require__(241); const command_1 = __nccwpck_require__(241);
const file_command_1 = __nccwpck_require__(717); const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(278); const utils_1 = __nccwpck_require__(278);
@ -1469,19 +1469,30 @@ exports.debug = debug;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message. Errors will be converted to string via toString() * @param message error issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/ */
function error(message) { function error(message, properties = {}) {
command_1.issue('error', message instanceof Error ? message.toString() : message); command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
} }
exports.error = error; exports.error = error;
/** /**
* Adds an warning issue * Adds a warning issue
* @param message warning issue message. Errors will be converted to string via toString() * @param message warning issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/ */
function warning(message) { function warning(message, properties = {}) {
command_1.issue('warning', message instanceof Error ? message.toString() : message); command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
} }
exports.warning = warning; exports.warning = warning;
/**
* Adds a notice issue
* @param message notice issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function notice(message, properties = {}) {
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.notice = notice;
/** /**
* Writes info to log with console.log. * Writes info to log with console.log.
* @param message info message * @param message info message
@ -1613,7 +1624,7 @@ exports.issueCommand = issueCommand;
// We use any as a valid input type // We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.toCommandValue = void 0; exports.toCommandProperties = exports.toCommandValue = void 0;
/** /**
* Sanitizes an input into a string so it can be passed into issueCommand safely * Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string * @param input input to sanitize into a string
@ -1628,6 +1639,25 @@ function toCommandValue(input) {
return JSON.stringify(input); return JSON.stringify(input);
} }
exports.toCommandValue = toCommandValue; exports.toCommandValue = toCommandValue;
/**
*
* @param annotationProperties
* @returns The command properties to send with the actual annotation command
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
*/
function toCommandProperties(annotationProperties) {
if (!Object.keys(annotationProperties).length) {
return {};
}
return {
title: annotationProperties.title,
line: annotationProperties.startLine,
endLine: annotationProperties.endLine,
col: annotationProperties.startColumn,
endColumn: annotationProperties.endColumn
};
}
exports.toCommandProperties = toCommandProperties;
//# sourceMappingURL=utils.js.map //# sourceMappingURL=utils.js.map
/***/ }), /***/ }),
@ -2898,77 +2928,77 @@ function copyFile(srcFile, destFile, force) {
/***/ 357: /***/ 357:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("assert");; module.exports = require("assert");
/***/ }), /***/ }),
/***/ 129: /***/ 129:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("child_process");; module.exports = require("child_process");
/***/ }), /***/ }),
/***/ 614: /***/ 614:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("events");; module.exports = require("events");
/***/ }), /***/ }),
/***/ 747: /***/ 747:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("fs");; module.exports = require("fs");
/***/ }), /***/ }),
/***/ 211: /***/ 211:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("https");; module.exports = require("https");
/***/ }), /***/ }),
/***/ 87: /***/ 87:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("os");; module.exports = require("os");
/***/ }), /***/ }),
/***/ 622: /***/ 622:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("path");; module.exports = require("path");
/***/ }), /***/ }),
/***/ 304: /***/ 304:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("string_decoder");; module.exports = require("string_decoder");
/***/ }), /***/ }),
/***/ 213: /***/ 213:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("timers");; module.exports = require("timers");
/***/ }), /***/ }),
/***/ 835: /***/ 835:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("url");; module.exports = require("url");
/***/ }), /***/ }),
/***/ 669: /***/ 669:
/***/ ((module) => { /***/ ((module) => {
module.exports = require("util");; module.exports = require("util");
/***/ }) /***/ })
@ -3007,7 +3037,9 @@ module.exports = require("util");;
/************************************************************************/ /************************************************************************/
/******/ /* webpack/runtime/compat */ /******/ /* webpack/runtime/compat */
/******/ /******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
/******/
/************************************************************************/
/******/ /******/
/******/ // startup /******/ // startup
/******/ // Load entry module and return exports /******/ // Load entry module and return exports

1804
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "setup-php", "name": "setup-php",
"version": "2.12.0", "version": "2.13.0",
"private": false, "private": false,
"description": "Setup PHP for use with GitHub Actions", "description": "Setup PHP for use with GitHub Actions",
"main": "lib/install.js", "main": "lib/install.js",
@ -24,27 +24,27 @@
"author": "shivammathur", "author": "shivammathur",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.4.0", "@actions/core": "^1.5.0",
"@actions/exec": "^1.1.0", "@actions/exec": "^1.1.0",
"@actions/io": "^1.1.1", "@actions/io": "^1.1.1",
"fs": "0.0.1-security" "fs": "0.0.1-security"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^26.0.24", "@types/jest": "^27.0.1",
"@types/node": "^16.3.2", "@types/node": "^16.7.1",
"@typescript-eslint/eslint-plugin": "^4.28.3", "@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.28.3", "@typescript-eslint/parser": "^4.29.2",
"@vercel/ncc": "^0.28.6", "@vercel/ncc": "^0.29.2",
"eslint": "^7.30.0", "eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4", "eslint-plugin-import": "^2.24.1",
"eslint-plugin-jest": "^24.3.6", "eslint-plugin-jest": "^24.4.0",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^3.4.1",
"husky": "^4.3.8", "husky": "^4.3.8",
"jest": "^27.0.6", "jest": "^27.0.6",
"jest-circus": "^27.0.6", "jest-circus": "^27.0.6",
"prettier": "^2.3.2", "prettier": "^2.3.2",
"ts-jest": "^27.0.3", "ts-jest": "^27.0.5",
"typescript": "^4.3.5" "typescript": "^4.3.5"
}, },
"husky": { "husky": {