Skip to content

Commit

Permalink
Simplify node version retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
darseen committed Jan 8, 2024
1 parent fdea4a7 commit 2ce93da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/amadeus/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Client {
params: params,
bearerToken: bearerToken,
clientVersion: this.version,
languageVersion: process.version,
languageVersion: process.versions.node,
appId: this.customAppId,
appVersion: this.customAppVersion,
port: this.port,
Expand Down
2 changes: 1 addition & 1 deletion src/amadeus/client/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Request {
this.queryPath = this.fullQueryPath();
this.bearerToken = options.bearerToken;
this.clientVersion = options.clientVersion;
this.languageVersion = options.languageVersion.replace('v', '');
this.languageVersion = options.languageVersion
this.appId = options.appId;
this.appVersion = options.appVersion;
this.headers = {
Expand Down

0 comments on commit 2ce93da

Please sign in to comment.