@meri-imperiumi/signalk-mob-notifier 1.1.2 → 1.1.3
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/README.md +2 -0
- package/package.json +1 -1
- package/plugin/index.js +2 -2
package/README.md
CHANGED
|
@@ -11,6 +11,8 @@ Please note that this plugin aims to aid with noticing and locating crew overboa
|
|
|
11
11
|
|
|
12
12
|
## Changes
|
|
13
13
|
|
|
14
|
+
* 1.1.3 (2025-11-02)
|
|
15
|
+
- Fix detection of beacon type (MOB/SART/EPIRB)
|
|
14
16
|
* 1.1.2 (2025-11-01)
|
|
15
17
|
- Better approach at getting MOB coordinates
|
|
16
18
|
* 1.1.1 (2025-09-18)
|
package/package.json
CHANGED
package/plugin/index.js
CHANGED
|
@@ -103,10 +103,10 @@ module.exports = (app) => {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
let message = 'Crew Overboard Beacon detected';
|
|
106
|
-
if (mmsi.indexOf('970') === 0) {
|
|
106
|
+
if (String(mmsi).indexOf('970') === 0) {
|
|
107
107
|
message = 'Search and Rescue Transponder Beacon detected';
|
|
108
108
|
}
|
|
109
|
-
if (mmsi.indexOf('974') === 0) {
|
|
109
|
+
if (String(mmsi).indexOf('974') === 0) {
|
|
110
110
|
message = 'Emergency Position Indicating Beacon detected';
|
|
111
111
|
}
|
|
112
112
|
// For each MOB get direction and range
|