@openfitnessprotocol/ofp 0.2.1 → 0.2.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.
Binary file
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "@openfitnessprotocol/ofp",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Open Fitness Protocol: read fitness devices (heart rate, power, FTMS bikes, rowers, treadmills and more) from any JavaScript app. The core (WebAssembly, or plain JavaScript for React Native), the device tables, and the four hooks an app wires up.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "files": [
10
- "index.js",
11
- "index.d.ts",
10
+ "LICENSE",
11
+ "NOTICE",
12
12
  "adapters",
13
13
  "core",
14
- "registry.js",
14
+ "index.d.ts",
15
+ "index.js",
15
16
  "registry.bundle.json",
16
- "LICENSE",
17
- "NOTICE"
17
+ "registry.d.ts",
18
+ "registry.js"
18
19
  ],
19
20
  "exports": {
20
21
  ".": {
@@ -24,8 +25,14 @@
24
25
  "./adapters/noble": "./adapters/noble.js",
25
26
  "./adapters/react-native-ble-manager": "./adapters/react-native-ble-manager.js",
26
27
  "./core/ofp_core.wasm": "./core/ofp_core.wasm",
27
- "./core/js": "./core/ofp_core.asm.js",
28
- "./registry": "./registry.js",
28
+ "./core/js": {
29
+ "types": "./core/ofp_core.asm.d.ts",
30
+ "default": "./core/ofp_core.asm.js"
31
+ },
32
+ "./registry": {
33
+ "types": "./registry.d.ts",
34
+ "default": "./registry.js"
35
+ },
29
36
  "./registry.bundle.json": "./registry.bundle.json",
30
37
  "./package.json": "./package.json"
31
38
  },
package/registry.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ /** The compiled OFP device tables (registry.bundle.json) as text: pass it as Ofp({ bundle }). */
2
+ declare const bundle: string
3
+ export default bundle