@ham2k/lib-operation-data 0.4.0 → 0.4.2

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/package.json +1 -1
  2. package/src/lib/modes.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ham2k/lib-operation-data",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/lib/modes.js CHANGED
@@ -23,6 +23,7 @@ export const POPULAR_MODES = [
23
23
  'AM',
24
24
  'FT8',
25
25
  'FT4',
26
+ 'RTTY',
26
27
  'DIGITALVOICE',
27
28
  'C4FM',
28
29
  'DMR',
@@ -122,7 +123,7 @@ Object.keys(ADIF_SUBMODES).forEach(mode => {
122
123
  })
123
124
  })
124
125
 
125
- export const ADIF_MODES_AND_SUBMODES = ADIF_MODES.concat(Object.values(ADIF_SUBMODES)).flat().sort()
126
+ export const ADIF_MODES_AND_SUBMODES = [... new Set(ADIF_MODES.concat(Object.values(ADIF_SUBMODES)).flat())].sort()
126
127
 
127
128
  export function adifModeAndSubmodeForMode(mode) {
128
129
  if (ADIF_MODE_FOR_SUBMODE[mode]) {