MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / setPlatformSpecificData

Function setPlatformSpecificData

out/cli.cjs:75571–75581  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

75569}
75570
75571// node_modules/@azure/core-rest-pipeline/dist/esm/util/userAgentPlatform.js
75572var os3 = __toESM(require("node:os"), 1);
75573var process8 = __toESM(require("node:process"), 1);
75574function getHeaderName() {
75575 return "User-Agent";
75576}
75577function setPlatformSpecificData(map) {
75578 const versions2 = process8.versions;
75579 if (versions2.bun) {
75580 map.set("Bun", versions2.bun);
75581 } else if (versions2.deno) {
75582 map.set("Deno", versions2.deno);
75583 } else if (versions2.node) {
75584 map.set("Node", versions2.node);

Callers 1

getUserAgentValueFunction · 0.85

Calls 2

setMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected