fleetmap-reports 1.0.608 → 1.0.609
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 +5 -5
- package/src/trip-report.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetmap-reports",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.609",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@turf/distance": "^6.5.0",
|
|
15
15
|
"@turf/helpers": "^6.5.0",
|
|
16
16
|
"@turf/point-to-line-distance": "^6.5.0",
|
|
17
|
-
"axios": "^0.
|
|
17
|
+
"axios": "^0.22.0",
|
|
18
18
|
"axios-cookiejar-support": "^1.0.1",
|
|
19
19
|
"docx": "^7.3.0",
|
|
20
20
|
"file-saver": "^2.0.5",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"json-as-xlsx": "^1.2.1",
|
|
23
23
|
"jspdf": "^2.3.1",
|
|
24
24
|
"jspdf-autotable": "^3.5.14",
|
|
25
|
-
"moment": "^2.29.
|
|
25
|
+
"moment": "^2.29.4",
|
|
26
26
|
"tough-cookie": "^4.0.0",
|
|
27
27
|
"traccar-api": "^1.0.5",
|
|
28
28
|
"wkt": "^0.1.1"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"eslint-plugin-import": "^2.26.0",
|
|
35
35
|
"eslint-plugin-node": "^11.1.0",
|
|
36
36
|
"eslint-plugin-promise": "^6.0.0",
|
|
37
|
-
"jest": "^
|
|
38
|
-
"mocha": "^
|
|
37
|
+
"jest": "^29.4.3",
|
|
38
|
+
"mocha": "^10.2.0",
|
|
39
39
|
"webpack": "^5.24.3",
|
|
40
40
|
"webpack-cli": "^4.5.0"
|
|
41
41
|
}
|
package/src/trip-report.js
CHANGED
|
@@ -293,7 +293,7 @@ async function exportTripReportToPDF (userData, reportData) {
|
|
|
293
293
|
tripsData.forEach(function (d, index) {
|
|
294
294
|
const data = []
|
|
295
295
|
const name = userData.byDriver
|
|
296
|
-
? d.driver.name + ((d.driver.attributes && d.driver.attributes.notes) || '')
|
|
296
|
+
? d.driver.name + ' ' + ((d.driver.attributes && d.driver.attributes.notes) || '')
|
|
297
297
|
: deviceName(d.device)
|
|
298
298
|
const group = userData.byDriver ? userData.groups.find(g => g.drivers && g.drivers.includes(d.id)) : userData.groups.find(g => d.device.groupId === g.id)
|
|
299
299
|
|