leaf-connect 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/index.js +4 -1
package/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "leaf-connect",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Node.js client library for the Nissan Leaf API",
5
5
  "main": "src/index.js",
6
- "scripts": {
7
- "lint": "standard src/**/*.js",
8
- "lint-fix": "standard --fix src/**/*.js"
9
- },
10
6
  "files": [
11
7
  "src/*"
12
8
  ],
@@ -28,5 +24,9 @@
28
24
  },
29
25
  "devDependencies": {
30
26
  "standard": "17.1.0"
27
+ },
28
+ "scripts": {
29
+ "lint": "standard src/**/*.js",
30
+ "lint-fix": "standard --fix src/**/*.js"
31
31
  }
32
- }
32
+ }
package/src/index.js CHANGED
@@ -5,7 +5,7 @@ const extractData = require('./lib/extract-data')
5
5
  const retryUntilSuccess = require('./lib/retry-until-success')
6
6
  const logger = require('./lib/logger')
7
7
 
8
- const API_ENDPOINT = 'https://gdcportalgw.its-mo.com/api_v210707_NE/gdc/'
8
+ const API_ENDPOINT = 'https://gdcportalgw.its-mo.com/api_v230317_NE/gdc'
9
9
  const INITIAL_APP_STR = '9s5rfKVuMrT03RtzajWNcA'
10
10
  const RESULT_POLLING_INTERVAL = 20000
11
11
  const REGION_CODES = ['NE', 'NCI', 'NNA', 'NMA', 'NML']
@@ -36,6 +36,9 @@ module.exports = async ({
36
36
  baseURL: API_ENDPOINT,
37
37
  method: 'post',
38
38
  transformRequest: [data => stringify(data)],
39
+ headers: {
40
+ 'User-Agent': ''
41
+ }
39
42
  })
40
43
 
41
44
  apiInstance.interceptors.request.use(config => {