@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
package/package.json
CHANGED
|
@@ -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.
|
|
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>
|