react-native-ble-nitro 1.0.0-beta.1 → 1.0.0-beta.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.
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Creates BleManager instances with full react-native-ble-plx compatibility
|
|
5
5
|
* by wrapping the Nitro implementation with compatibility shims
|
|
6
6
|
*/
|
|
7
|
-
import type { BleManagerOptions, UUID, DeviceId, TransactionId, ConnectionPriority, ConnectionOptions, ScanOptions, NativeService, NativeCharacteristic, NativeDescriptor, LogLevel, Subscription } from './specs/types';
|
|
8
|
-
import { DeviceWrapper } from './compatibility/deviceWrapper';
|
|
9
|
-
import { State as PlxState, LogLevel as PlxLogLevel } from './compatibility/enums';
|
|
7
|
+
import type { BleManagerOptions, UUID, DeviceId, TransactionId, ConnectionPriority, ConnectionOptions, ScanOptions, NativeService, NativeCharacteristic, NativeDescriptor, LogLevel, Subscription } from './specs/types.js';
|
|
8
|
+
import { DeviceWrapper } from './compatibility/deviceWrapper.js';
|
|
9
|
+
import { State as PlxState, LogLevel as PlxLogLevel } from './compatibility/enums.js';
|
|
10
10
|
/**
|
|
11
11
|
* BleManager wrapper that provides react-native-ble-plx compatibility
|
|
12
12
|
*/
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Creates BleManager instances with full react-native-ble-plx compatibility
|
|
5
5
|
* by wrapping the Nitro implementation with compatibility shims
|
|
6
6
|
*/
|
|
7
|
-
import { createBleManager } from './BleManagerFactory';
|
|
8
|
-
import { DeviceWrapper } from './compatibility/deviceWrapper';
|
|
9
|
-
import { stateToString, logLevelToString, normalizeLogLevel, normalizeCharacteristicSubscriptionType } from './compatibility/enums';
|
|
7
|
+
import { createBleManager } from './BleManagerFactory.js';
|
|
8
|
+
import { DeviceWrapper } from './compatibility/deviceWrapper.js';
|
|
9
|
+
import { stateToString, logLevelToString, normalizeLogLevel, normalizeCharacteristicSubscriptionType } from './compatibility/enums.js';
|
|
10
10
|
/**
|
|
11
11
|
* BleManager wrapper that provides react-native-ble-plx compatibility
|
|
12
12
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ble-nitro",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
4
|
"description": "High-performance React Native BLE library built on Nitro Modules - drop-in replacement for react-native-ble-plx",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* by wrapping the Nitro implementation with compatibility shims
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { createBleManager } from './BleManagerFactory';
|
|
9
|
-
import type { BleManager as BleManagerInterface } from './specs/BleManager.nitro';
|
|
8
|
+
import { createBleManager } from './BleManagerFactory.js';
|
|
9
|
+
import type { BleManager as BleManagerInterface } from './specs/BleManager.nitro.js';
|
|
10
10
|
import type {
|
|
11
11
|
BleManagerOptions,
|
|
12
12
|
UUID,
|
|
@@ -21,8 +21,8 @@ import type {
|
|
|
21
21
|
NativeDescriptor,
|
|
22
22
|
LogLevel,
|
|
23
23
|
Subscription
|
|
24
|
-
} from './specs/types';
|
|
25
|
-
import { DeviceWrapper } from './compatibility/deviceWrapper';
|
|
24
|
+
} from './specs/types.js';
|
|
25
|
+
import { DeviceWrapper } from './compatibility/deviceWrapper.js';
|
|
26
26
|
import {
|
|
27
27
|
stateToString,
|
|
28
28
|
logLevelToString,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
normalizeCharacteristicSubscriptionType,
|
|
31
31
|
State as PlxState,
|
|
32
32
|
LogLevel as PlxLogLevel
|
|
33
|
-
} from './compatibility/enums';
|
|
33
|
+
} from './compatibility/enums.js';
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
/**
|