@ham2k/lib-operation-data 0.4.0 → 0.4.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/package.json +1 -1
  2. package/src/lib/modes.js +1 -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.1",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/lib/modes.js CHANGED
@@ -122,7 +122,7 @@ Object.keys(ADIF_SUBMODES).forEach(mode => {
122
122
  })
123
123
  })
124
124
 
125
- export const ADIF_MODES_AND_SUBMODES = ADIF_MODES.concat(Object.values(ADIF_SUBMODES)).flat().sort()
125
+ export const ADIF_MODES_AND_SUBMODES = [... new Set(ADIF_MODES.concat(Object.values(ADIF_SUBMODES)).flat())].sort()
126
126
 
127
127
  export function adifModeAndSubmodeForMode(mode) {
128
128
  if (ADIF_MODE_FOR_SUBMODE[mode]) {