MCPcopy Index your code
hub / github.com/slackapi/node-slack-sdk / getUserAgent

Function getUserAgent

packages/web-api/src/instrument.ts:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 * Returns the current User-Agent value for instrumentation
28 */
29export function getUserAgent(): string {
30 const appIdentifier = Object.entries(appMetadata).map(([name, version]) => `${name}/${version}`).join(' ');
31 // only prepend the appIdentifier when its not empty
32 return ((appIdentifier.length > 0) ? `${appIdentifier} ` : '') + baseUserAgent;
33}

Callers 1

constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected