Skip to content

Commit

Permalink
Merge branch 'develop' into feat/non-track-event-js-node
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrpo authored Nov 12, 2024
2 parents 4dbdee5 + a1bed21 commit 864a461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { wrapError, isWrappedError } from '../commands/error.js';
import { sanitizeTrackingPlan } from './trackingplans.js';
import lodash from 'lodash';
import { APIError } from '../types.js';
import { version } from '../../../package.json';
import { EventType } from 'src/generators/gen.js';
import packageJson from '../../../package.json' assert { type: 'json' };

const { set } = lodash;

Expand Down Expand Up @@ -237,7 +237,7 @@ async function apiGet<T>(url: string, token: string, email: string): Promise<T>
url === 'workspace' || url.includes('trackingplans')
? `Basic ${Buffer.from(email + ':' + token).toString('base64')}`
: 'Bearer ' + token,
'User-Agent': `RudderTyper/${version} Node/${process.version} Platform/${process.platform}`,
'User-Agent': `RudderTyper/${packageJson.version} Node/${process.version} Platform/${process.platform}`,
},
timeout: {
request: 10000, //ms
Expand Down

0 comments on commit 864a461

Please sign in to comment.