Skip to content

Commit 2ce93da

Browse files
committed
Simplify node version retrieval
1 parent fdea4a7 commit 2ce93da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/amadeus/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class Client {
174174
params: params,
175175
bearerToken: bearerToken,
176176
clientVersion: this.version,
177-
languageVersion: process.version,
177+
languageVersion: process.versions.node,
178178
appId: this.customAppId,
179179
appVersion: this.customAppVersion,
180180
port: this.port,

src/amadeus/client/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Request {
3333
this.queryPath = this.fullQueryPath();
3434
this.bearerToken = options.bearerToken;
3535
this.clientVersion = options.clientVersion;
36-
this.languageVersion = options.languageVersion.replace('v', '');
36+
this.languageVersion = options.languageVersion
3737
this.appId = options.appId;
3838
this.appVersion = options.appVersion;
3939
this.headers = {

0 commit comments

Comments
 (0)