signalk-tides 1.2.2 → 1.2.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.
@@ -0,0 +1 @@
1
+ # Contributing
package/dist/index.js CHANGED
@@ -146,8 +146,11 @@ module.exports = function (app) {
146
146
  app.error(e);
147
147
  }
148
148
  }
149
- // Perform initial update on startup
150
- performUpdate();
149
+ // Perform initial update on startup after short delay to allow gnss position to be populated
150
+ delay(4000).then(() => { performUpdate(); });
151
151
  };
152
+ function delay(time) {
153
+ return new Promise((resolve) => setTimeout(resolve, time));
154
+ }
152
155
  return plugin;
153
156
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signalk-tides",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Tidal predictions for the vessel's position from various online sources.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {