(thisArg, _arguments, P, generator)
| 19830 | } |
| 19831 | } |
| 19832 | } |
| 19833 | cmdStr += `${CMD_STRING}${escapeData(this.message)}`; |
| 19834 | return cmdStr; |
| 19835 | } |
| 19836 | }; |
| 19837 | function escapeData(s) { |
| 19838 | return toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); |
| 19839 | } |
| 19840 | function escapeProperty(s) { |
| 19841 | return toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); |
| 19842 | } |
| 19843 | |
| 19844 | // |
| 19845 | var crypto = __toESM(__require("crypto")); |
| 19846 | var fs = __toESM(__require("fs")); |
| 19847 | var os2 = __toESM(__require("os")); |
| 19848 | function issueFileCommand(command, message) { |
| 19849 | const filePath = process.env[`GITHUB_${command}`]; |
| 19850 | if (!filePath) { |
| 19851 | throw new Error(`Unable to find environment variable for file command ${command}`); |
| 19852 | } |
| 19853 | if (!fs.existsSync(filePath)) { |
| 19854 | throw new Error(`Missing file at path: ${filePath}`); |
| 19855 | } |
| 19856 | fs.appendFileSync(filePath, `${toCommandValue(message)}${os2.EOL}`, { |
| 19857 | encoding: "utf8" |
| 19858 | }); |
| 19859 | } |
| 19860 | function prepareKeyValueMessage(key, value) { |
| 19861 | const delimiter2 = `ghadelimiter_${crypto.randomUUID()}`; |
no test coverage detected