@ham2k/lib-cqmag-data 0.1.1 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ham2k/lib-cqmag-data",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "exports": {
package/src/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import cqZones from '../data/cqzones.json' assert { type: 'json' }
2
- import stateZones from '../data/cqz-for-states.json' assert { type: 'json' }
3
- import cqww from './data/cqwwByPrefix.json' assert { type: 'json' }
1
+ import { createRequire } from "node:module"
2
+ const require = createRequire(import.meta.url)
3
+
4
+ export const CQZONES = require('../data/cqzones.json')
5
+ export const CQZONES_FOR_STATES = require('../data/cqz-for-states.json')
6
+ export const CQWW_ENTITIES = require('./data/cqwwByPrefix.json')
4
7
 
5
- export const CQZONES = cqZones
6
- export const CQZONES_FOR_STATES = stateZones
7
- export const CQWW_ENTITIES = cqww
8
8
 
@@ -1,7 +1,9 @@
1
1
  // const { parse } = require("csv/dist/cjs/sync.cjs") // Use this line when running tests
2
+ import { CTYData } from '@ham2k/lib-country-files'
2
3
 
3
- import { CTYData } from '@ham2k/lib-country-files/builtinData'
4
- import WAE from '../../data/wae.json' assert { type: 'json' }
4
+ import { createRequire } from "node:module"
5
+ const require = createRequire(import.meta.url)
6
+ const WAE = require('../../data/wae.json')
5
7
 
6
8
  export function preprocessCQWWData (dxcc) {
7
9
  const cqww = {}