@signalk/freeboard-sk 2.2.2 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG: Freeboard
2
2
 
3
+ ### v2.2.3
4
+
5
+ - **Fixed**: Do not make "Fixed Location" mode the default.
6
+
3
7
  ### v2.2.2
4
8
 
5
9
  - **Fixed**: Update Anchor Watch to use `signalk-anchor-alarm` REST API to resolve incorrect state being displayed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalk/freeboard-sk",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "Openlayers chart plotter implementation for Signal K",
5
5
  "keywords": [
6
6
  "signalk-webapp",
@@ -57,6 +57,10 @@ const initApiEndpoints = () => {
57
57
  res.status(r.statusCode).json(r);
58
58
  }
59
59
  catch (e) {
60
+ // fix plugin returned 401 error code when no position is available
61
+ if (e.statusCode === 401 && e.message.indexOf('no position') !== -1) {
62
+ e.statusCode = 400;
63
+ }
60
64
  res.status(e.statusCode).json(e);
61
65
  }
62
66
  });
package/public/index.html CHANGED
@@ -74,5 +74,5 @@
74
74
  </div>
75
75
  </div>
76
76
  </app-root>
77
- <script src="runtime.d3c37bb0c0c8df86.js" type="module"></script><script src="polyfills.61cfd308b28d8fe0.js" type="module"></script><script src="main.b1d3ce26b87acfb4.js" type="module"></script></body>
77
+ <script src="runtime.d3c37bb0c0c8df86.js" type="module"></script><script src="polyfills.61cfd308b28d8fe0.js" type="module"></script><script src="main.2cabdc921657b2e9.js" type="module"></script></body>
78
78
  </html>