Files
toolkit/packages/artifact/src/internal/shared/user-agent.ts
T

10 lines
405 B
TypeScript
Raw Normal View History

2023-08-23 10:12:06 -07:00
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
2023-08-22 11:33:00 -07:00
const packageJson = require('../../../package.json')
/**
* Ensure that this User Agent String is used in all HTTP calls so that we can monitor telemetry between different versions of this package
*/
export function getUserAgentString(): string {
return `@actions/artifact-${packageJson.version}`
}