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

Function exists

github-actions/browserstack/set-browserstack-env.js:19862–19874  ·  view source on GitHub ↗
(fsPath)

Source from the content-addressed store, hash-verified

19860 function prepareKeyValueMessage(key, value) {
19861 const delimiter2 = `ghadelimiter_${crypto.randomUUID()}`;
19862 const convertedValue = toCommandValue(value);
19863 if (key.includes(delimiter2)) {
19864 throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter2}"`);
19865 }
19866 if (convertedValue.includes(delimiter2)) {
19867 throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter2}"`);
19868 }
19869 return `${key}<<${delimiter2}${os2.EOL}${convertedValue}${os2.EOL}${delimiter2}`;
19870 }
19871
19872 //
19873 var tunnel = __toESM(require_tunnel2());
19874 var import_undici = __toESM(require_undici());
19875 var HttpCodes;
19876 (function(HttpCodes2) {
19877 HttpCodes2[HttpCodes2["OK"] = 200] = "OK";

Callers 1

execMethod · 0.70

Calls 1

__awaiter2Function · 0.70

Tested by

no test coverage detected