@sailingnaturali/signalk-dsc 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/lib/markers.js +3 -0
  2. package/package.json +1 -1
package/lib/markers.js CHANGED
@@ -65,6 +65,9 @@ function buildMarkerResourceSets(events, { now, windowHours = 24, nameFor } = {}
65
65
  for (const [category, features] of Object.entries(buckets)) {
66
66
  const color = CATEGORY_COLORS[category] || CATEGORY_COLORS.routine;
67
67
  out[category] = {
68
+ // Freeboard's isResourceSet() requires this exact discriminator, else it
69
+ // filters the resource out and the chart layer renders nothing.
70
+ type: 'ResourceSet',
68
71
  name: `DSC — ${category}`,
69
72
  description: `DSC ${category} calls heard on channel 70`,
70
73
  styles: { default: { width: 2, stroke: color, fill: color } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sailingnaturali/signalk-dsc",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Receive, log, and alert on DSC (VHF digital selective calling) calls — distress, urgency, safety, routine — from NMEA 0183 ($CDDSC/$CDDSE) and NMEA 2000 (PGN 129808).",
5
5
  "main": "index.js",
6
6
  "scripts": {