fleetmap-reports 2.0.200 → 2.0.201

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.200",
3
+ "version": "2.0.201",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -93,7 +93,7 @@ async function getItems (traccar, u, _chunk, counter, devicesPerRequest, ignoreP
93
93
  }
94
94
 
95
95
  async function streamJson (traccar, u) {
96
- console.log('streaming', u)
96
+ console.log('streaming', traccar.axios.defaults.baseURL, u)
97
97
  const response = await traccar.axios.get(u, {
98
98
  responseType: 'stream',
99
99
  jar: traccar.cookieJar,
@@ -105,6 +105,7 @@ async function streamJson (traccar, u) {
105
105
  route: []
106
106
  }
107
107
 
108
+ console.log('waiting for data')
108
109
  return new Promise((resolve, reject) => {
109
110
  const pipeline = chain([
110
111
  response.data, // Axios stream (Node readable)