react-native-ble-nitro 1.0.0-beta.5 → 1.0.0-beta.6

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 (96) hide show
  1. package/lib/BleManagerCompatFactory.d.ts +3 -3
  2. package/lib/BleManagerCompatFactory.js +3 -3
  3. package/lib/BleManagerFactory.d.ts +2 -2
  4. package/lib/commonjs/BleManagerCompatFactory.d.ts +3 -3
  5. package/lib/commonjs/BleManagerCompatFactory.d.ts.map +1 -1
  6. package/lib/commonjs/BleManagerCompatFactory.js +20 -20
  7. package/lib/commonjs/BleManagerCompatFactory.js.map +1 -1
  8. package/lib/commonjs/BleManagerFactory.d.ts +2 -2
  9. package/lib/commonjs/BleManagerFactory.d.ts.map +1 -1
  10. package/lib/commonjs/compatibility/constants.d.ts +1 -1
  11. package/lib/commonjs/compatibility/constants.d.ts.map +1 -1
  12. package/lib/commonjs/compatibility/constants.js +5 -5
  13. package/lib/commonjs/compatibility/constants.js.map +1 -1
  14. package/lib/commonjs/compatibility/deviceWrapper.d.ts +2 -2
  15. package/lib/commonjs/compatibility/deviceWrapper.d.ts.map +1 -1
  16. package/lib/commonjs/compatibility/deviceWrapper.js +4 -4
  17. package/lib/commonjs/compatibility/deviceWrapper.js.map +1 -1
  18. package/lib/commonjs/compatibility/enums.d.ts +1 -1
  19. package/lib/commonjs/compatibility/enums.d.ts.map +1 -1
  20. package/lib/commonjs/compatibility/enums.js +34 -34
  21. package/lib/commonjs/compatibility/enums.js.map +1 -1
  22. package/lib/commonjs/compatibility/index.d.ts +5 -5
  23. package/lib/commonjs/compatibility/index.d.ts.map +1 -1
  24. package/lib/commonjs/compatibility/index.js +15 -15
  25. package/lib/commonjs/compatibility/index.js.map +1 -1
  26. package/lib/commonjs/compatibility/serviceData.d.ts +1 -1
  27. package/lib/commonjs/compatibility/serviceData.d.ts.map +1 -1
  28. package/lib/commonjs/errors/BleError.d.ts +2 -2
  29. package/lib/commonjs/errors/BleError.d.ts.map +1 -1
  30. package/lib/commonjs/errors/BleError.js +41 -41
  31. package/lib/commonjs/errors/BleError.js.map +1 -1
  32. package/lib/commonjs/index.d.ts +10 -10
  33. package/lib/commonjs/index.d.ts.map +1 -1
  34. package/lib/commonjs/index.js +16 -16
  35. package/lib/commonjs/index.js.map +1 -1
  36. package/lib/commonjs/specs/BleManager.nitro.d.ts +1 -1
  37. package/lib/commonjs/specs/BleManager.nitro.d.ts.map +1 -1
  38. package/lib/commonjs/specs/Characteristic.nitro.d.ts +1 -1
  39. package/lib/commonjs/specs/Characteristic.nitro.d.ts.map +1 -1
  40. package/lib/commonjs/specs/Descriptor.nitro.d.ts +1 -1
  41. package/lib/commonjs/specs/Descriptor.nitro.d.ts.map +1 -1
  42. package/lib/commonjs/specs/Device.nitro.d.ts +1 -1
  43. package/lib/commonjs/specs/Device.nitro.d.ts.map +1 -1
  44. package/lib/commonjs/specs/Service.nitro.d.ts +1 -1
  45. package/lib/commonjs/specs/Service.nitro.d.ts.map +1 -1
  46. package/lib/commonjs/utils/base64.d.ts +1 -1
  47. package/lib/commonjs/utils/base64.d.ts.map +1 -1
  48. package/lib/commonjs/utils/index.d.ts +2 -2
  49. package/lib/commonjs/utils/index.d.ts.map +1 -1
  50. package/lib/commonjs/utils/index.js +2 -2
  51. package/lib/commonjs/utils/index.js.map +1 -1
  52. package/lib/commonjs/utils/uuid.d.ts +1 -1
  53. package/lib/commonjs/utils/uuid.d.ts.map +1 -1
  54. package/lib/compatibility/constants.d.ts +1 -1
  55. package/lib/compatibility/constants.js +1 -1
  56. package/lib/compatibility/deviceWrapper.d.ts +2 -2
  57. package/lib/compatibility/deviceWrapper.js +2 -2
  58. package/lib/compatibility/enums.d.ts +1 -1
  59. package/lib/compatibility/enums.js +1 -1
  60. package/lib/compatibility/index.d.ts +5 -5
  61. package/lib/compatibility/index.js +4 -4
  62. package/lib/compatibility/serviceData.d.ts +1 -1
  63. package/lib/errors/BleError.d.ts +2 -2
  64. package/lib/errors/BleError.js +1 -1
  65. package/lib/index.d.ts +10 -10
  66. package/lib/index.js +8 -8
  67. package/lib/specs/BleManager.nitro.d.ts +1 -1
  68. package/lib/specs/Characteristic.nitro.d.ts +1 -1
  69. package/lib/specs/Descriptor.nitro.d.ts +1 -1
  70. package/lib/specs/Device.nitro.d.ts +1 -1
  71. package/lib/specs/Service.nitro.d.ts +1 -1
  72. package/lib/utils/base64.d.ts +1 -1
  73. package/lib/utils/index.d.ts +2 -2
  74. package/lib/utils/index.js +2 -2
  75. package/lib/utils/uuid.d.ts +1 -1
  76. package/package.json +2 -2
  77. package/plugin/build/index.d.ts +1 -1
  78. package/plugin/build/index.js +5 -5
  79. package/src/BleManagerCompatFactory.ts +6 -6
  80. package/src/BleManagerFactory.ts +2 -2
  81. package/src/__tests__/BleManager.test.ts +2 -2
  82. package/src/compatibility/constants.ts +1 -1
  83. package/src/compatibility/deviceWrapper.ts +4 -4
  84. package/src/compatibility/enums.ts +1 -1
  85. package/src/compatibility/index.ts +5 -5
  86. package/src/compatibility/serviceData.ts +1 -1
  87. package/src/errors/BleError.ts +2 -2
  88. package/src/index.ts +10 -10
  89. package/src/specs/BleManager.nitro.ts +1 -1
  90. package/src/specs/Characteristic.nitro.ts +1 -1
  91. package/src/specs/Descriptor.nitro.ts +1 -1
  92. package/src/specs/Device.nitro.ts +1 -1
  93. package/src/specs/Service.nitro.ts +1 -1
  94. package/src/utils/base64.ts +1 -1
  95. package/src/utils/index.ts +2 -2
  96. package/src/utils/uuid.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { BleErrorCode } from '../specs/types.js';
1
+ import { BleErrorCode } from '../specs/types';
2
2
  /**
3
3
  * Default error messages for BLE error codes
4
4
  * Maintains compatibility with react-native-ble-plx error messages
package/lib/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from './compatibility/constants.js';
2
- export * from './utils/index.js';
3
- export { BleManagerCompat as BleManager, createBleManagerCompat as createBleManager } from './BleManagerCompatFactory.js';
4
- export { getCustomErrorMessage, getStoredCallbacks } from './BleManagerFactory.js';
5
- export * from './errors/BleError.js';
6
- export { DeviceWrapper as Device } from './compatibility/deviceWrapper.js';
7
- export type { BleManagerOptions, ScanOptions, ConnectionOptions, NativeBleError, NativeDevice, NativeService, NativeCharacteristic, NativeDescriptor, Subscription } from './specs/types.js';
8
- export { State, LogLevel } from './compatibility/enums.js';
9
- export type { CharacteristicSubscriptionType, RefreshGattMoment } from './compatibility/enums.js';
10
- export { fullUUID } from './utils/uuid.js';
1
+ export * from './compatibility/constants';
2
+ export * from './utils/index';
3
+ export { BleManagerCompat as BleManager, createBleManagerCompat as createBleManager } from './BleManagerCompatFactory';
4
+ export { getCustomErrorMessage, getStoredCallbacks } from './BleManagerFactory';
5
+ export * from './errors/BleError';
6
+ export { DeviceWrapper as Device } from './compatibility/deviceWrapper';
7
+ export type { BleManagerOptions, ScanOptions, ConnectionOptions, NativeBleError, NativeDevice, NativeService, NativeCharacteristic, NativeDescriptor, Subscription } from './specs/types';
8
+ export { State, LogLevel } from './compatibility/enums';
9
+ export type { CharacteristicSubscriptionType, RefreshGattMoment } from './compatibility/enums';
10
+ export { fullUUID } from './utils/uuid';
package/lib/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  // Export compatibility layer types and constants
2
- export * from './compatibility/constants.js';
2
+ export * from './compatibility/constants';
3
3
  // Export utility functions
4
- export * from './utils/index.js';
4
+ export * from './utils/index';
5
5
  // Export the main BleManager instance with compatibility wrapper
6
- export { BleManagerCompat as BleManager, createBleManagerCompat as createBleManager } from './BleManagerCompatFactory.js';
6
+ export { BleManagerCompat as BleManager, createBleManagerCompat as createBleManager } from './BleManagerCompatFactory';
7
7
  // Export BleManager factory utilities (for internal use by error handling)
8
- export { getCustomErrorMessage, getStoredCallbacks } from './BleManagerFactory.js';
8
+ export { getCustomErrorMessage, getStoredCallbacks } from './BleManagerFactory';
9
9
  // Export error handling utilities
10
- export * from './errors/BleError.js';
10
+ export * from './errors/BleError';
11
11
  // Export device wrapper for compatibility
12
- export { DeviceWrapper as Device } from './compatibility/deviceWrapper.js';
12
+ export { DeviceWrapper as Device } from './compatibility/deviceWrapper';
13
13
  // Export react-native-ble-plx compatible enum types (drop-in replacement)
14
- export { State, LogLevel } from './compatibility/enums.js';
14
+ export { State, LogLevel } from './compatibility/enums';
15
15
  // Re-export react-native-ble-plx compatible API
16
- export { fullUUID } from './utils/uuid.js';
16
+ export { fullUUID } from './utils/uuid';
@@ -1,5 +1,5 @@
1
1
  import type { HybridObject } from 'react-native-nitro-modules';
2
- import type { State, LogLevel, UUID, DeviceId, TransactionId, ConnectionPriority, ScanOptions, ConnectionOptions, StateListener, DeviceScanListener, DeviceDisconnectedListener, CharacteristicMonitorListener, CharacteristicSubscriptionType, NativeDevice, NativeService, NativeCharacteristic, NativeDescriptor, Base64, Subscription } from './types.js';
2
+ import type { State, LogLevel, UUID, DeviceId, TransactionId, ConnectionPriority, ScanOptions, ConnectionOptions, StateListener, DeviceScanListener, DeviceDisconnectedListener, CharacteristicMonitorListener, CharacteristicSubscriptionType, NativeDevice, NativeService, NativeCharacteristic, NativeDescriptor, Base64, Subscription } from './types';
3
3
  export interface BleManagerNitroOptions {
4
4
  restoreStateIdentifier?: string;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { HybridObject } from 'react-native-nitro-modules';
2
- import type { Identifier, UUID, DeviceId, Base64, TransactionId, CharacteristicSubscriptionType, NativeDescriptor, CharacteristicMonitorListener, Subscription } from './types.js';
2
+ import type { Identifier, UUID, DeviceId, Base64, TransactionId, CharacteristicSubscriptionType, NativeDescriptor, CharacteristicMonitorListener, Subscription } from './types';
3
3
  export interface Characteristic extends HybridObject<{
4
4
  ios: 'swift';
5
5
  android: 'kotlin';
@@ -1,5 +1,5 @@
1
1
  import type { HybridObject } from 'react-native-nitro-modules';
2
- import type { Identifier, UUID, DeviceId, Base64, TransactionId } from './types.js';
2
+ import type { Identifier, UUID, DeviceId, Base64, TransactionId } from './types';
3
3
  export interface Descriptor extends HybridObject<{
4
4
  ios: 'swift';
5
5
  android: 'kotlin';
@@ -1,5 +1,5 @@
1
1
  import type { HybridObject } from 'react-native-nitro-modules';
2
- import type { DeviceId, UUID, Base64, TransactionId, ConnectionPriority, ConnectionOptions, CharacteristicSubscriptionType, ServiceDataEntry, NativeDevice, NativeService, NativeCharacteristic, NativeDescriptor, DeviceDisconnectedListener, CharacteristicMonitorListener, Subscription } from './types.js';
2
+ import type { DeviceId, UUID, Base64, TransactionId, ConnectionPriority, ConnectionOptions, CharacteristicSubscriptionType, ServiceDataEntry, NativeDevice, NativeService, NativeCharacteristic, NativeDescriptor, DeviceDisconnectedListener, CharacteristicMonitorListener, Subscription } from './types';
3
3
  export interface Device extends HybridObject<{
4
4
  ios: 'swift';
5
5
  android: 'kotlin';
@@ -1,5 +1,5 @@
1
1
  import type { HybridObject } from 'react-native-nitro-modules';
2
- import type { Identifier, UUID, DeviceId, Base64, TransactionId, CharacteristicSubscriptionType, NativeCharacteristic, NativeDescriptor, CharacteristicMonitorListener, Subscription } from './types.js';
2
+ import type { Identifier, UUID, DeviceId, Base64, TransactionId, CharacteristicSubscriptionType, NativeCharacteristic, NativeDescriptor, CharacteristicMonitorListener, Subscription } from './types';
3
3
  export interface Service extends HybridObject<{
4
4
  ios: 'swift';
5
5
  android: 'kotlin';
@@ -1,4 +1,4 @@
1
- import type { Base64 } from '../specs/types.js';
1
+ import type { Base64 } from '../specs/types';
2
2
  /**
3
3
  * Utility functions for Base64 encoding/decoding
4
4
  * Maintains compatibility with react-native-ble-plx Base64 operations
@@ -1,2 +1,2 @@
1
- export * from './uuid.js';
2
- export * from './base64.js';
1
+ export * from './uuid';
2
+ export * from './base64';
@@ -1,2 +1,2 @@
1
- export * from './uuid.js';
2
- export * from './base64.js';
1
+ export * from './uuid';
2
+ export * from './base64';
@@ -1,4 +1,4 @@
1
- import type { UUID } from '../specs/types.js';
1
+ import type { UUID } from '../specs/types';
2
2
  /**
3
3
  * Converts UUID to full 128bit, lowercase format which should be used to compare UUID values.
4
4
  * This function maintains 100% compatibility with react-native-ble-plx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ble-nitro",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.6",
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",
@@ -68,13 +68,13 @@
68
68
  "react-native-nitro-modules": "*"
69
69
  },
70
70
  "devDependencies": {
71
+ "@expo/config-plugins": "^10.1.2",
71
72
  "@types/jest": "^29.5.0",
72
73
  "@types/node": "^20.0.0",
73
74
  "@types/react": "^18.2.0",
74
75
  "@typescript-eslint/eslint-plugin": "^6.21.0",
75
76
  "@typescript-eslint/parser": "^6.21.0",
76
77
  "eslint": "^8.0.0",
77
- "expo": "^52.0.47",
78
78
  "expo-module-scripts": "^4.1.9",
79
79
  "jest": "^29.0.0",
80
80
  "nitro-codegen": "^0.26.4",
@@ -1,5 +1,5 @@
1
1
  import { ConfigPlugin } from '@expo/config-plugins';
2
- import withBleNitro, { withBleNitroAndroid, withBleNitroIOS, type BleNitroPluginProps } from './withBleNitro.js';
2
+ import withBleNitro, { withBleNitroAndroid, withBleNitroIOS, type BleNitroPluginProps } from './withBleNitro';
3
3
  /**
4
4
  * Expo Config Plugin for react-native-ble-nitro
5
5
  *
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.withBleNitroIOS = exports.withBleNitroAndroid = exports.withBleNitro = void 0;
37
- const withBleNitro_js_1 = __importStar(require("./withBleNitro.js"));
38
- exports.withBleNitro = withBleNitro_js_1.default;
39
- Object.defineProperty(exports, "withBleNitroAndroid", { enumerable: true, get: function () { return withBleNitro_js_1.withBleNitroAndroid; } });
40
- Object.defineProperty(exports, "withBleNitroIOS", { enumerable: true, get: function () { return withBleNitro_js_1.withBleNitroIOS; } });
37
+ const withBleNitro_1 = __importStar(require("./withBleNitro"));
38
+ exports.withBleNitro = withBleNitro_1.default;
39
+ Object.defineProperty(exports, "withBleNitroAndroid", { enumerable: true, get: function () { return withBleNitro_1.withBleNitroAndroid; } });
40
+ Object.defineProperty(exports, "withBleNitroIOS", { enumerable: true, get: function () { return withBleNitro_1.withBleNitroIOS; } });
41
41
  /**
42
42
  * Expo Config Plugin for react-native-ble-nitro
43
43
  *
@@ -62,6 +62,6 @@ Object.defineProperty(exports, "withBleNitroIOS", { enumerable: true, get: funct
62
62
  * ```
63
63
  */
64
64
  const plugin = (config, props) => {
65
- return (0, withBleNitro_js_1.default)(config, props || {});
65
+ return (0, withBleNitro_1.default)(config, props || {});
66
66
  };
67
67
  exports.default = plugin;
@@ -5,8 +5,8 @@
5
5
  * by wrapping the Nitro implementation with compatibility shims
6
6
  */
7
7
 
8
- import { createBleManager } from './BleManagerFactory.js';
9
- import type { BleManager as BleManagerInterface } from './specs/BleManager.nitro.js';
8
+ import { createBleManager } from './BleManagerFactory';
9
+ import type { BleManager as BleManagerInterface } from './specs/BleManager.nitro';
10
10
  import type {
11
11
  BleManagerOptions,
12
12
  UUID,
@@ -21,16 +21,16 @@ import type {
21
21
  NativeDescriptor,
22
22
  LogLevel,
23
23
  Subscription
24
- } from './specs/types.js';
25
- import { DeviceWrapper } from './compatibility/deviceWrapper.js';
24
+ } from './specs/types';
25
+ import { DeviceWrapper } from './compatibility/deviceWrapper';
26
26
  import {
27
- stateToString,
27
+ stateToString,
28
28
  logLevelToString,
29
29
  normalizeLogLevel,
30
30
  normalizeCharacteristicSubscriptionType,
31
31
  State as PlxState,
32
32
  LogLevel as PlxLogLevel
33
- } from './compatibility/enums.js';
33
+ } from './compatibility/enums';
34
34
 
35
35
 
36
36
  /**
@@ -1,6 +1,6 @@
1
1
  import { NitroModules } from 'react-native-nitro-modules';
2
- import type { BleManager as BleManagerInterface, BleManagerNitroOptions } from './specs/BleManager.nitro.js';
3
- import type { BleManagerOptions } from './specs/types.js';
2
+ import type { BleManager as BleManagerInterface, BleManagerNitroOptions } from './specs/BleManager.nitro';
3
+ import type { BleManagerOptions } from './specs/types';
4
4
 
5
5
  // Store callbacks that can't be passed to Nitro
6
6
  const storedCallbacks = new WeakMap<BleManagerInterface, {
@@ -4,8 +4,8 @@
4
4
  * Copyright © 2025 Zyke (https://zyke.co)
5
5
  */
6
6
 
7
- import { BleManager } from '../index.js';
8
- import { State, LogLevel } from '../specs/types.js';
7
+ import { BleManager } from '../index';
8
+ import { State, LogLevel } from '../specs/types';
9
9
 
10
10
  // Create a mock Nitro manager
11
11
  const mockNitroManager = {
@@ -68,4 +68,4 @@ export {
68
68
  BleATTErrorCode,
69
69
  BleIOSErrorCode,
70
70
  BleAndroidErrorCode
71
- } from '../specs/types.js';
71
+ } from '../specs/types';
@@ -4,7 +4,7 @@
4
4
  * Wraps Nitro Device objects to provide the original react-native-ble-plx API
5
5
  */
6
6
 
7
- import type { Device as NitroDevice } from '../specs/Device.nitro.js';
7
+ import type { Device as NitroDevice } from '../specs/Device.nitro';
8
8
  import type {
9
9
  NativeDevice,
10
10
  UUID,
@@ -19,13 +19,13 @@ import type {
19
19
  NativeDescriptor,
20
20
  CharacteristicSubscriptionType,
21
21
  Subscription
22
- } from '../specs/types.js';
23
- import { serviceDataArrayToMap } from './serviceData.js';
22
+ } from '../specs/types';
23
+ import { serviceDataArrayToMap } from './serviceData';
24
24
  import {
25
25
  normalizeCharacteristicSubscriptionType,
26
26
  stateToString,
27
27
  characteristicSubscriptionTypeToString
28
- } from './enums.js';
28
+ } from './enums';
29
29
 
30
30
  /**
31
31
  * Device wrapper that provides react-native-ble-plx compatibility
@@ -11,7 +11,7 @@ import {
11
11
  LogLevel as NitroLogLevel,
12
12
  CharacteristicSubscriptionType as NitroCharacteristicSubscriptionType,
13
13
  RefreshGattMoment as NitroRefreshGattMoment,
14
- } from '../specs/types.js';
14
+ } from '../specs/types';
15
15
 
16
16
  // Define exact string enums and types matching react-native-ble-plx
17
17
  export enum State {
@@ -6,9 +6,9 @@
6
6
  * Nitro's type system constraints.
7
7
  */
8
8
 
9
- export * from './serviceData.js';
10
- export * from './deviceWrapper.js';
11
- export * from './constants.js';
9
+ export * from './serviceData';
10
+ export * from './deviceWrapper';
11
+ export * from './constants';
12
12
 
13
13
  // Explicitly export enum utilities and enums to avoid conflicts
14
14
  export {
@@ -23,10 +23,10 @@ export {
23
23
  normalizeCharacteristicSubscriptionType,
24
24
  State,
25
25
  LogLevel
26
- } from './enums.js';
26
+ } from './enums';
27
27
 
28
28
  // Export type literals (not enums) for exact react-native-ble-plx compatibility
29
29
  export type {
30
30
  CharacteristicSubscriptionType,
31
31
  RefreshGattMoment
32
- } from './enums.js';
32
+ } from './enums';
@@ -5,7 +5,7 @@
5
5
  * and the original { [uuid: string]: Base64 } format from react-native-ble-plx
6
6
  */
7
7
 
8
- import type { ServiceDataEntry, UUID, Base64 } from '../specs/types.js';
8
+ import type { ServiceDataEntry, UUID, Base64 } from '../specs/types';
9
9
 
10
10
  /**
11
11
  * Convert ServiceDataEntry array to the original index signature format
@@ -3,11 +3,11 @@ import {
3
3
  BleATTErrorCode,
4
4
  BleIOSErrorCode,
5
5
  BleAndroidErrorCode
6
- } from '../specs/types.js';
6
+ } from '../specs/types';
7
7
  import type {
8
8
  NativeBleError,
9
9
  BleErrorCodeMessageMapping
10
- } from '../specs/types.js';
10
+ } from '../specs/types';
11
11
 
12
12
  /**
13
13
  * Default error messages for BLE error codes
package/src/index.ts CHANGED
@@ -1,20 +1,20 @@
1
1
  // Export compatibility layer types and constants
2
- export * from './compatibility/constants.js';
2
+ export * from './compatibility/constants';
3
3
 
4
4
  // Export utility functions
5
- export * from './utils/index.js';
5
+ export * from './utils/index';
6
6
 
7
7
  // Export the main BleManager instance with compatibility wrapper
8
- export { BleManagerCompat as BleManager, createBleManagerCompat as createBleManager } from './BleManagerCompatFactory.js';
8
+ export { BleManagerCompat as BleManager, createBleManagerCompat as createBleManager } from './BleManagerCompatFactory';
9
9
 
10
10
  // Export BleManager factory utilities (for internal use by error handling)
11
- export { getCustomErrorMessage, getStoredCallbacks } from './BleManagerFactory.js';
11
+ export { getCustomErrorMessage, getStoredCallbacks } from './BleManagerFactory';
12
12
 
13
13
  // Export error handling utilities
14
- export * from './errors/BleError.js';
14
+ export * from './errors/BleError';
15
15
 
16
16
  // Export device wrapper for compatibility
17
- export { DeviceWrapper as Device } from './compatibility/deviceWrapper.js';
17
+ export { DeviceWrapper as Device } from './compatibility/deviceWrapper';
18
18
 
19
19
  // Export interfaces for TypeScript (but not runtime values)
20
20
  export type {
@@ -27,19 +27,19 @@ export type {
27
27
  NativeCharacteristic,
28
28
  NativeDescriptor,
29
29
  Subscription
30
- } from './specs/types.js';
30
+ } from './specs/types';
31
31
 
32
32
  // Export react-native-ble-plx compatible enum types (drop-in replacement)
33
33
  export {
34
34
  State,
35
35
  LogLevel
36
- } from './compatibility/enums.js';
36
+ } from './compatibility/enums';
37
37
 
38
38
  // Export react-native-ble-plx compatible type literals (drop-in replacement)
39
39
  export type {
40
40
  CharacteristicSubscriptionType,
41
41
  RefreshGattMoment
42
- } from './compatibility/enums.js';
42
+ } from './compatibility/enums';
43
43
 
44
44
  // Re-export react-native-ble-plx compatible API
45
- export { fullUUID } from './utils/uuid.js';
45
+ export { fullUUID } from './utils/uuid';
@@ -19,7 +19,7 @@ import type {
19
19
  NativeDescriptor,
20
20
  Base64,
21
21
  Subscription
22
- } from './types.js';
22
+ } from './types';
23
23
 
24
24
  // Nitro-compatible options interface (simplified without functions)
25
25
  export interface BleManagerNitroOptions {
@@ -9,7 +9,7 @@ import type {
9
9
  NativeDescriptor,
10
10
  CharacteristicMonitorListener,
11
11
  Subscription
12
- } from './types.js';
12
+ } from './types';
13
13
 
14
14
  export interface Characteristic extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> {
15
15
  // Characteristic properties
@@ -5,7 +5,7 @@ import type {
5
5
  DeviceId,
6
6
  Base64,
7
7
  TransactionId
8
- } from './types.js';
8
+ } from './types';
9
9
 
10
10
  export interface Descriptor extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> {
11
11
  // Descriptor properties
@@ -15,7 +15,7 @@ import type {
15
15
  DeviceDisconnectedListener,
16
16
  CharacteristicMonitorListener,
17
17
  Subscription
18
- } from './types.js';
18
+ } from './types';
19
19
 
20
20
  export interface Device extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> {
21
21
  // Device properties
@@ -10,7 +10,7 @@ import type {
10
10
  NativeDescriptor,
11
11
  CharacteristicMonitorListener,
12
12
  Subscription
13
- } from './types.js';
13
+ } from './types';
14
14
 
15
15
  export interface Service extends HybridObject<{ ios: 'swift'; android: 'kotlin' }> {
16
16
  // Service properties
@@ -1,4 +1,4 @@
1
- import type { Base64 } from '../specs/types.js';
1
+ import type { Base64 } from '../specs/types';
2
2
 
3
3
  /**
4
4
  * Utility functions for Base64 encoding/decoding
@@ -1,2 +1,2 @@
1
- export * from './uuid.js';
2
- export * from './base64.js';
1
+ export * from './uuid';
2
+ export * from './base64';
package/src/utils/uuid.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { UUID } from '../specs/types.js';
1
+ import type { UUID } from '../specs/types';
2
2
 
3
3
  /**
4
4
  * Converts UUID to full 128bit, lowercase format which should be used to compare UUID values.