We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31d508a + 7934dcb commit 1fac9c3Copy full SHA for 1fac9c3
src/webServiceClient.ts
@@ -1,5 +1,6 @@
1
import * as http from 'http';
2
import * as https from 'https';
3
+import { version } from '../package.json';
4
import Transaction from './request/transaction';
5
import * as models from './response/models';
6
import { WebServiceClientError } from './types';
@@ -62,7 +63,7 @@ export default class WebServiceClient {
62
63
Accept: 'application/json',
64
'Content-Length': Buffer.byteLength(postData),
65
'Content-Type': 'application/json',
- 'User-Agent': `minfraud-api-node/${process.env.npm_package_version}`,
66
+ 'User-Agent': `minfraud-api-node/${version}`,
67
},
68
host: this.host,
69
method: 'POST',
0 commit comments