MCPcopy Create free account
hub / github.com/angular/dev-infra / __awaiter2

Function __awaiter2

github-actions/browserstack/set-browserstack-env.js:19832–19858  ·  view source on GitHub ↗
(thisArg, _arguments, P, generator)

Source from the content-addressed store, hash-verified

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()}`;

Callers 2

existsFunction · 0.70
tryGetExecutablePathFunction · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected