Skip to content

Commit

Permalink
Merge pull request #206 from Darseen/node-version-retrieval
Browse files Browse the repository at this point in the history
Simplify node version retrieval
  • Loading branch information
minjikarin authored Jan 10, 2024
2 parents a70fd98 + 86ad4db commit 3aba7d3
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 3aba7d3

Please sign in to comment.