fleetmap-reports 2.0.367 → 2.0.369

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.
@@ -0,0 +1,47 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - dev
7
+ paths:
8
+ - package.json
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Setup Node
21
+ uses: actions/setup-node@v4
22
+ with:
23
+ node-version: '20'
24
+ registry-url: 'https://registry.npmjs.org'
25
+
26
+ - name: Check if version changed
27
+ id: version-check
28
+ run: |
29
+ LOCAL_VERSION=$(node -p "require('./package.json').version")
30
+ PUBLISHED_VERSION=$(npm view fleetmap-reports version 2>/dev/null || echo "none")
31
+ echo "Local version: $LOCAL_VERSION"
32
+ echo "Published version: $PUBLISHED_VERSION"
33
+ if [ "$LOCAL_VERSION" != "$PUBLISHED_VERSION" ]; then
34
+ echo "changed=true" >> "$GITHUB_OUTPUT"
35
+ else
36
+ echo "changed=false" >> "$GITHUB_OUTPUT"
37
+ fi
38
+
39
+ - name: Install dependencies
40
+ if: steps.version-check.outputs.changed == 'true'
41
+ run: npm ci
42
+
43
+ - name: Publish to npm
44
+ if: steps.version-check.outputs.changed == 'true'
45
+ run: npm publish
46
+ env:
47
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.367",
3
+ "version": "2.0.369",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -211,7 +211,7 @@ async function runServerSideGrid (from, to, userData, deviceIdsByDriver, traccar
211
211
  const url = `https://${getServerHost()}/pinmeapi/reports/driverranking-report`
212
212
  const rawRows = []
213
213
  let completed = 0
214
- const maxConcurrent = 10
214
+ const maxConcurrent = 20
215
215
 
216
216
  for (let i = 0; i < cells.length; i += maxConcurrent) {
217
217
  const batch = cells.slice(i, i + maxConcurrent)