UNPKG

bump-cli

Version:

The Bump CLI is used to interact with your API documentation hosted on Bump.sh by using the API of developers.bump.sh

20 lines (19 loc) 488 B
export class Vars { get apiBasePath() { return '/api/v1'; } get apiUrl() { return this.host.startsWith('http') ? this.host : `https://${this.host}`; } get envHost() { return process.env.BUMP_HOST; } get host() { return this.envHost || 'bump.sh'; } apiUserAgent(base) { const content = [base, process.env.BUMP_USER_AGENT].filter(Boolean); return content.join(' '); } } export const vars = new Vars();