diff --git a/dist/index.js b/dist/index.js index 158a3b7..85d1836 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,11 @@ "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -14,7 +18,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -25,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); var fs_1 = __importDefault(require("fs")); var os_1 = __importDefault(require("os")); var core = __importStar(require("@actions/core")); +process.stdout.write("::warning file=README.md::This version of DreamAnnotate is deprecated, see https://github.com/yogstation13/DreamAnnotate/discussions/1 for more details." + os_1.default.EOL); try { var data = fs_1.default.readFileSync(core.getInput("outputFile")).toString("utf8"); core.info("DreamChecker Output: "); @@ -33,9 +38,10 @@ try { var matches = Array.from(data.matchAll(regex), function (m) { return m.groups; }); for (var _i = 0, matches_1 = matches; _i < matches_1.length; _i++) { var match = matches_1[_i]; - process.stdout.write("::" + match.type + " file=" + match.filename + ",line=" + match.line + ",col=" + match.column + "::" + match.message + os_1.default.EOL); + process.stdout.write("::".concat(match.type, " file=").concat(match.filename, ",line=").concat(match.line, ",col=").concat(match.column, "::").concat(match.message).concat(os_1.default.EOL)); } } catch (error) { + //@ts-ignore core.setFailed(error.message); } diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json new file mode 100644 index 0000000..5d2d842 --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,18 @@ +{ + "name": "dreamannotate", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "node_modules/@actions/core": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.5.tgz", + "integrity": "sha512-mwpoNjHSWWh0IiALdDEQi3tru124JKn0yVNziIBzTME8QRv7thwoghVuT1jBRjFvdtoHsqD58IRHy1nf86paRg==" + }, + "node_modules/@types/node": { + "version": "14.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.10.1.tgz", + "integrity": "sha512-aYNbO+FZ/3KGeQCEkNhHFRIzBOUgc7QvcVNKXbfnhDkSfwUv91JsQQa10rDgKSTSLkXZ1UIyPe4FJJNVgw1xWQ==" + } + } +} diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 30bafc0..7d0d729 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,38 +1,16 @@ { - "_from": "@actions/core", - "_id": "@actions/core@1.2.5", - "_inBundle": false, - "_integrity": "sha512-mwpoNjHSWWh0IiALdDEQi3tru124JKn0yVNziIBzTME8QRv7thwoghVuT1jBRjFvdtoHsqD58IRHy1nf86paRg==", - "_location": "/@actions/core", - "_phantomChildren": {}, - "_requested": { - "type": "tag", - "registry": true, - "raw": "@actions/core", - "name": "@actions/core", - "escapedName": "@actions%2fcore", - "scope": "@actions", - "rawSpec": "", - "saveSpec": null, - "fetchSpec": "latest" - }, - "_requiredBy": [ - "#USER", - "/" - ], - "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.5.tgz", - "_shasum": "fa57bf8c07a38191e243beb9ea9d8368c1cb02c8", - "_spec": "@actions/core", - "_where": "C:\\Users\\alexkar598\\IdeaProjects\\dreamAnnotate", - "bugs": { - "url": "https://github.com/actions/toolkit/issues" - }, - "bundleDependencies": false, - "deprecated": false, + "name": "@actions/core", + "version": "1.2.5", "description": "Actions core lib", - "devDependencies": { - "@types/node": "^12.0.2" - }, + "keywords": [ + "github", + "actions", + "core" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", + "license": "MIT", + "main": "lib/core.js", + "types": "lib/core.d.ts", "directories": { "lib": "lib", "test": "__tests__" @@ -41,15 +19,6 @@ "lib", "!.DS_Store" ], - "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", - "keywords": [ - "github", - "actions", - "core" - ], - "license": "MIT", - "main": "lib/core.js", - "name": "@actions/core", "publishConfig": { "access": "public" }, @@ -63,6 +32,10 @@ "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "types": "lib/core.d.ts", - "version": "1.2.5" + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "devDependencies": { + "@types/node": "^12.0.2" + } } diff --git a/package-lock.json b/package-lock.json index 68e837b..08ebb5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,29 @@ { "name": "dreamannotate", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "dreamannotate", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@actions/core": "^1.2.5", + "@types/node": "^14.10.1" + } + }, + "node_modules/@actions/core": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.5.tgz", + "integrity": "sha512-mwpoNjHSWWh0IiALdDEQi3tru124JKn0yVNziIBzTME8QRv7thwoghVuT1jBRjFvdtoHsqD58IRHy1nf86paRg==" + }, + "node_modules/@types/node": { + "version": "14.10.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.10.1.tgz", + "integrity": "sha512-aYNbO+FZ/3KGeQCEkNhHFRIzBOUgc7QvcVNKXbfnhDkSfwUv91JsQQa10rDgKSTSLkXZ1UIyPe4FJJNVgw1xWQ==" + } + }, "dependencies": { "@actions/core": { "version": "1.2.5", diff --git a/src/index.ts b/src/index.ts index f48c04a..7b71d9e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,8 @@ export interface Match { message: string } +process.stdout.write("::warning file=README.md::This version of DreamAnnotate is deprecated, see https://github.com/yogstation13/DreamAnnotate/discussions/1 for more details." + os.EOL) + try { const data = fs.readFileSync(core.getInput("outputFile")).toString("utf8"); core.info("DreamChecker Output: "); @@ -21,5 +23,6 @@ try { process.stdout.write(`::${match.type} file=${match.filename},line=${match.line},col=${match.column}::${match.message}${os.EOL}`) } } catch (error) { + //@ts-ignore core.setFailed(error.message) } \ No newline at end of file