Bump version 1.11.3

Sync tsconfig.json with v2

Update dependencies
This commit is contained in:
Shivam Mathur 2021-08-23 12:54:39 +05:30
parent 113a31fceb
commit 7958a5ccff
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
4 changed files with 734 additions and 1166 deletions

68
dist/index.js vendored
View File

@ -1137,7 +1137,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
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 file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(278);
@ -1315,19 +1315,30 @@ exports.debug = debug;
/**
* Adds an error issue
* @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) {
command_1.issue('error', message instanceof Error ? message.toString() : message);
function error(message, properties = {}) {
command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
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 properties optional properties to add to the annotation.
*/
function warning(message) {
command_1.issue('warning', message instanceof Error ? message.toString() : message);
function warning(message, properties = {}) {
command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
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.
* @param message info message
@ -1459,7 +1470,7 @@ exports.issueCommand = issueCommand;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
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
* @param input input to sanitize into a string
@ -1474,6 +1485,25 @@ function toCommandValue(input) {
return JSON.stringify(input);
}
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
/***/ }),
@ -2744,70 +2774,70 @@ function copyFile(srcFile, destFile, force) {
/***/ 357:
/***/ ((module) => {
module.exports = require("assert");;
module.exports = require("assert");
/***/ }),
/***/ 129:
/***/ ((module) => {
module.exports = require("child_process");;
module.exports = require("child_process");
/***/ }),
/***/ 614:
/***/ ((module) => {
module.exports = require("events");;
module.exports = require("events");
/***/ }),
/***/ 747:
/***/ ((module) => {
module.exports = require("fs");;
module.exports = require("fs");
/***/ }),
/***/ 211:
/***/ ((module) => {
module.exports = require("https");;
module.exports = require("https");
/***/ }),
/***/ 87:
/***/ ((module) => {
module.exports = require("os");;
module.exports = require("os");
/***/ }),
/***/ 622:
/***/ ((module) => {
module.exports = require("path");;
module.exports = require("path");
/***/ }),
/***/ 304:
/***/ ((module) => {
module.exports = require("string_decoder");;
module.exports = require("string_decoder");
/***/ }),
/***/ 213:
/***/ ((module) => {
module.exports = require("timers");;
module.exports = require("timers");
/***/ }),
/***/ 669:
/***/ ((module) => {
module.exports = require("util");;
module.exports = require("util");
/***/ })
@ -2846,7 +2876,9 @@ module.exports = require("util");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports

1802
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -2,7 +2,7 @@
"compilerOptions": {
"esModuleInterop": true,
"lib": [
"ESNext"
"ES2020"
],
"module": "commonjs",
"moduleResolution": "node",
@ -12,7 +12,7 @@
"rootDir": "./src",
"sourceMap": true,
"strict": true,
"target": "ESNext"
"target": "ES2019"
},
"exclude": ["__tests__", "lib", "node_modules"]
}