hamlib 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.
package/lib/spectrum.d.ts CHANGED
@@ -60,6 +60,4 @@ export type {
60
60
  SpectrumSupportSummary,
61
61
  };
62
62
 
63
- // @ts-ignore
64
- export = spectrumModule;
65
63
  export default spectrumModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamlib",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Node.js bindings for Hamlib rig control with official spectrum streaming support",
5
5
  "main": "index.js",
6
6
  "module": "lib/index.mjs",
@@ -12,9 +12,16 @@
12
12
  "types": "./index.d.ts"
13
13
  },
14
14
  "./spectrum": {
15
- "import": "./lib/spectrum.mjs",
16
- "require": "./lib/spectrum.js",
17
- "types": "./lib/spectrum.d.ts"
15
+ "import": "./spectrum.mjs",
16
+ "require": "./spectrum.js",
17
+ "types": "./spectrum.d.ts"
18
+ }
19
+ },
20
+ "typesVersions": {
21
+ "*": {
22
+ "spectrum": [
23
+ "spectrum.d.ts"
24
+ ]
18
25
  }
19
26
  },
20
27
  "gypfile": true,
@@ -38,6 +45,9 @@
38
45
  "docs/",
39
46
  "index.js",
40
47
  "index.d.ts",
48
+ "spectrum.js",
49
+ "spectrum.mjs",
50
+ "spectrum.d.ts",
41
51
  "binding.gyp",
42
52
  "COPYING",
43
53
  "README.md"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/spectrum.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './lib/spectrum';
2
+ export { default } from './lib/spectrum';
package/spectrum.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./lib/spectrum.js');
package/spectrum.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export * from './lib/spectrum.mjs';
2
+ export { default } from './lib/spectrum.mjs';