signalk-flags 1.0.0 → 1.0.1

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,7 +1,11 @@
1
1
  # CHANGELOG: Signal K Flag Resources - Signal K plugin
2
2
 
3
- ## v1.0.0-beta.1
3
+ ## v1.0.1
4
4
 
5
- - Initial beta release.
5
+ - **Fix**: Issue where test for MMSI throwing errors.
6
+
7
+ ## v1.0.0
8
+
9
+ - Initial release.
6
10
 
7
11
 
package/package.json CHANGED
@@ -1,18 +1,13 @@
1
1
  {
2
2
  "name": "signalk-flags",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Country Flags plugin for Signal K server.",
5
5
  "main": "plugin/index.js",
6
6
  "keywords": [
7
7
  "signalk-node-server-plugin"
8
8
  ],
9
- "repository": "https://github.com/panaaj/signalk-icons",
9
+ "repository": "https://github.com/panaaj/signalk-flags",
10
10
  "author": "AdrianP",
11
- "contributors": [
12
- {
13
- "name": "panaaj@hotmail.com"
14
- }
15
- ],
16
11
  "license": "Apache-20",
17
12
  "scripts": {
18
13
  "build": "tsc",
package/plugin/index.js CHANGED
@@ -132,7 +132,7 @@ module.exports = (server) => {
132
132
  return;
133
133
  }
134
134
  u.values.forEach((v) => {
135
- if (v.path === '' && 'mmsi' in v.value) {
135
+ if (v.path === '' && v.value && 'mmsi' in v.value) {
136
136
  const country = countryFromMmsi(v.value.mmsi);
137
137
  if (country) {
138
138
  server.handleMessage(plugin.id, {
Binary file