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.
- package/lib/BleManagerCompatFactory.d.ts +3 -3
- package/lib/BleManagerCompatFactory.js +3 -3
- package/lib/BleManagerFactory.d.ts +2 -2
- package/lib/commonjs/BleManagerCompatFactory.d.ts +3 -3
- package/lib/commonjs/BleManagerCompatFactory.d.ts.map +1 -1
- package/lib/commonjs/BleManagerCompatFactory.js +20 -20
- package/lib/commonjs/BleManagerCompatFactory.js.map +1 -1
- package/lib/commonjs/BleManagerFactory.d.ts +2 -2
- package/lib/commonjs/BleManagerFactory.d.ts.map +1 -1
- package/lib/commonjs/compatibility/constants.d.ts +1 -1
- package/lib/commonjs/compatibility/constants.d.ts.map +1 -1
- package/lib/commonjs/compatibility/constants.js +5 -5
- package/lib/commonjs/compatibility/constants.js.map +1 -1
- package/lib/commonjs/compatibility/deviceWrapper.d.ts +2 -2
- package/lib/commonjs/compatibility/deviceWrapper.d.ts.map +1 -1
- package/lib/commonjs/compatibility/deviceWrapper.js +4 -4
- package/lib/commonjs/compatibility/deviceWrapper.js.map +1 -1
- package/lib/commonjs/compatibility/enums.d.ts +1 -1
- package/lib/commonjs/compatibility/enums.d.ts.map +1 -1
- package/lib/commonjs/compatibility/enums.js +34 -34
- package/lib/commonjs/compatibility/enums.js.map +1 -1
- package/lib/commonjs/compatibility/index.d.ts +5 -5
- package/lib/commonjs/compatibility/index.d.ts.map +1 -1
- package/lib/commonjs/compatibility/index.js +15 -15
- package/lib/commonjs/compatibility/index.js.map +1 -1
- package/lib/commonjs/compatibility/serviceData.d.ts +1 -1
- package/lib/commonjs/compatibility/serviceData.d.ts.map +1 -1
- package/lib/commonjs/errors/BleError.d.ts +2 -2
- package/lib/commonjs/errors/BleError.d.ts.map +1 -1
- package/lib/commonjs/errors/BleError.js +41 -41
- package/lib/commonjs/errors/BleError.js.map +1 -1
- package/lib/commonjs/index.d.ts +10 -10
- package/lib/commonjs/index.d.ts.map +1 -1
- package/lib/commonjs/index.js +16 -16
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/BleManager.nitro.d.ts +1 -1
- package/lib/commonjs/specs/BleManager.nitro.d.ts.map +1 -1
- package/lib/commonjs/specs/Characteristic.nitro.d.ts +1 -1
- package/lib/commonjs/specs/Characteristic.nitro.d.ts.map +1 -1
- package/lib/commonjs/specs/Descriptor.nitro.d.ts +1 -1
- package/lib/commonjs/specs/Descriptor.nitro.d.ts.map +1 -1
- package/lib/commonjs/specs/Device.nitro.d.ts +1 -1
- package/lib/commonjs/specs/Device.nitro.d.ts.map +1 -1
- package/lib/commonjs/specs/Service.nitro.d.ts +1 -1
- package/lib/commonjs/specs/Service.nitro.d.ts.map +1 -1
- package/lib/commonjs/utils/base64.d.ts +1 -1
- package/lib/commonjs/utils/base64.d.ts.map +1 -1
- package/lib/commonjs/utils/index.d.ts +2 -2
- package/lib/commonjs/utils/index.d.ts.map +1 -1
- package/lib/commonjs/utils/index.js +2 -2
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/uuid.d.ts +1 -1
- package/lib/commonjs/utils/uuid.d.ts.map +1 -1
- package/lib/compatibility/constants.d.ts +1 -1
- package/lib/compatibility/constants.js +1 -1
- package/lib/compatibility/deviceWrapper.d.ts +2 -2
- package/lib/compatibility/deviceWrapper.js +2 -2
- package/lib/compatibility/enums.d.ts +1 -1
- package/lib/compatibility/enums.js +1 -1
- package/lib/compatibility/index.d.ts +5 -5
- package/lib/compatibility/index.js +4 -4
- package/lib/compatibility/serviceData.d.ts +1 -1
- package/lib/errors/BleError.d.ts +2 -2
- package/lib/errors/BleError.js +1 -1
- package/lib/index.d.ts +10 -10
- package/lib/index.js +8 -8
- package/lib/specs/BleManager.nitro.d.ts +1 -1
- package/lib/specs/Characteristic.nitro.d.ts +1 -1
- package/lib/specs/Descriptor.nitro.d.ts +1 -1
- package/lib/specs/Device.nitro.d.ts +1 -1
- package/lib/specs/Service.nitro.d.ts +1 -1
- package/lib/utils/base64.d.ts +1 -1
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/index.js +2 -2
- package/lib/utils/uuid.d.ts +1 -1
- package/package.json +2 -2
- package/plugin/build/index.d.ts +1 -1
- package/plugin/build/index.js +5 -5
- package/src/BleManagerCompatFactory.ts +6 -6
- package/src/BleManagerFactory.ts +2 -2
- package/src/__tests__/BleManager.test.ts +2 -2
- package/src/compatibility/constants.ts +1 -1
- package/src/compatibility/deviceWrapper.ts +4 -4
- package/src/compatibility/enums.ts +1 -1
- package/src/compatibility/index.ts +5 -5
- package/src/compatibility/serviceData.ts +1 -1
- package/src/errors/BleError.ts +2 -2
- package/src/index.ts +10 -10
- package/src/specs/BleManager.nitro.ts +1 -1
- package/src/specs/Characteristic.nitro.ts +1 -1
- package/src/specs/Descriptor.nitro.ts +1 -1
- package/src/specs/Device.nitro.ts +1 -1
- package/src/specs/Service.nitro.ts +1 -1
- package/src/utils/base64.ts +1 -1
- package/src/utils/index.ts +2 -2
- package/src/utils/uuid.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/compatibility/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/compatibility/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAG5B,OAAO,EACL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,sCAAsC,EACtC,sCAAsC,EACtC,cAAc,EACd,iBAAiB,EACjB,uCAAuC,EACvC,KAAK,EACL,QAAQ,EACT,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,8BAA8B,EAC9B,iBAAiB,EAClB,MAAM,SAAS,CAAC"}
|
|
@@ -22,20 +22,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.LogLevel = exports.State = exports.normalizeCharacteristicSubscriptionType = exports.normalizeLogLevel = exports.normalizeState = exports.stringToCharacteristicSubscriptionType = exports.characteristicSubscriptionTypeToString = exports.stringToLogLevel = exports.logLevelToString = exports.stringToState = exports.stateToString = void 0;
|
|
25
|
-
__exportStar(require("./serviceData
|
|
26
|
-
__exportStar(require("./deviceWrapper
|
|
27
|
-
__exportStar(require("./constants
|
|
25
|
+
__exportStar(require("./serviceData"), exports);
|
|
26
|
+
__exportStar(require("./deviceWrapper"), exports);
|
|
27
|
+
__exportStar(require("./constants"), exports);
|
|
28
28
|
// Explicitly export enum utilities and enums to avoid conflicts
|
|
29
|
-
var
|
|
30
|
-
Object.defineProperty(exports, "stateToString", { enumerable: true, get: function () { return
|
|
31
|
-
Object.defineProperty(exports, "stringToState", { enumerable: true, get: function () { return
|
|
32
|
-
Object.defineProperty(exports, "logLevelToString", { enumerable: true, get: function () { return
|
|
33
|
-
Object.defineProperty(exports, "stringToLogLevel", { enumerable: true, get: function () { return
|
|
34
|
-
Object.defineProperty(exports, "characteristicSubscriptionTypeToString", { enumerable: true, get: function () { return
|
|
35
|
-
Object.defineProperty(exports, "stringToCharacteristicSubscriptionType", { enumerable: true, get: function () { return
|
|
36
|
-
Object.defineProperty(exports, "normalizeState", { enumerable: true, get: function () { return
|
|
37
|
-
Object.defineProperty(exports, "normalizeLogLevel", { enumerable: true, get: function () { return
|
|
38
|
-
Object.defineProperty(exports, "normalizeCharacteristicSubscriptionType", { enumerable: true, get: function () { return
|
|
39
|
-
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return
|
|
40
|
-
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return
|
|
29
|
+
var enums_1 = require("./enums");
|
|
30
|
+
Object.defineProperty(exports, "stateToString", { enumerable: true, get: function () { return enums_1.stateToString; } });
|
|
31
|
+
Object.defineProperty(exports, "stringToState", { enumerable: true, get: function () { return enums_1.stringToState; } });
|
|
32
|
+
Object.defineProperty(exports, "logLevelToString", { enumerable: true, get: function () { return enums_1.logLevelToString; } });
|
|
33
|
+
Object.defineProperty(exports, "stringToLogLevel", { enumerable: true, get: function () { return enums_1.stringToLogLevel; } });
|
|
34
|
+
Object.defineProperty(exports, "characteristicSubscriptionTypeToString", { enumerable: true, get: function () { return enums_1.characteristicSubscriptionTypeToString; } });
|
|
35
|
+
Object.defineProperty(exports, "stringToCharacteristicSubscriptionType", { enumerable: true, get: function () { return enums_1.stringToCharacteristicSubscriptionType; } });
|
|
36
|
+
Object.defineProperty(exports, "normalizeState", { enumerable: true, get: function () { return enums_1.normalizeState; } });
|
|
37
|
+
Object.defineProperty(exports, "normalizeLogLevel", { enumerable: true, get: function () { return enums_1.normalizeLogLevel; } });
|
|
38
|
+
Object.defineProperty(exports, "normalizeCharacteristicSubscriptionType", { enumerable: true, get: function () { return enums_1.normalizeCharacteristicSubscriptionType; } });
|
|
39
|
+
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return enums_1.State; } });
|
|
40
|
+
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return enums_1.LogLevel; } });
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/compatibility/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/compatibility/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAE5B,gEAAgE;AAChE,iCAYiB;AAXf,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,yGAAA,gBAAgB,OAAA;AAChB,yGAAA,gBAAgB,OAAA;AAChB,+HAAA,sCAAsC,OAAA;AACtC,+HAAA,sCAAsC,OAAA;AACtC,uGAAA,cAAc,OAAA;AACd,0GAAA,iBAAiB,OAAA;AACjB,gIAAA,uCAAuC,OAAA;AACvC,8FAAA,KAAK,OAAA;AACL,iGAAA,QAAQ,OAAA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides conversion between Nitro's structured ServiceDataEntry[] format
|
|
5
5
|
* and the original { [uuid: string]: Base64 } format from react-native-ble-plx
|
|
6
6
|
*/
|
|
7
|
-
import type { ServiceDataEntry, UUID, Base64 } from '../specs/types
|
|
7
|
+
import type { ServiceDataEntry, UUID, Base64 } from '../specs/types';
|
|
8
8
|
/**
|
|
9
9
|
* Convert ServiceDataEntry array to the original index signature format
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceData.d.ts","sourceRoot":"","sources":["../../../src/compatibility/serviceData.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"serviceData.d.ts","sourceRoot":"","sources":["../../../src/compatibility/serviceData.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAErE;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,IAAI,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,CAU3G;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,gBAAgB,EAAE,GAAG,IAAI,CASvG;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,EAC3C,OAAO,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,GACzC;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,CAMnC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,IAAI,EACnC,OAAO,EAAE,gBAAgB,EAAE,GAAG,IAAI,GACjC,gBAAgB,EAAE,GAAG,IAAI,CAK3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAElG;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAExG;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,IAAI,EAAE,CAEtF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types
|
|
2
|
-
import type { NativeBleError, BleErrorCodeMessageMapping } from '../specs/types
|
|
1
|
+
import { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types';
|
|
2
|
+
import type { NativeBleError, BleErrorCodeMessageMapping } from '../specs/types';
|
|
3
3
|
/**
|
|
4
4
|
* Default error messages for BLE error codes
|
|
5
5
|
* Maintains compatibility with react-native-ble-plx error messages
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BleError.d.ts","sourceRoot":"","sources":["../../../src/errors/BleError.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,eAAe,EACf,mBAAmB,EACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"BleError.d.ts","sourceRoot":"","sources":["../../../src/errors/BleError.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,eAAe,EACf,mBAAmB,EACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,cAAc,EACd,0BAA0B,EAC3B,MAAM,gBAAgB,CAAC;AAExB;;;GAGG;AACH,QAAA,MAAM,mBAAmB,EAAE,0BAwC1B,CAAC;AAEF;;;GAGG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAgB,SAAS,EAAE,YAAY,CAAC;IAExC;;OAEG;IACH,SAAgB,YAAY,EAAE,eAAe,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,SAAgB,YAAY,EAAE,eAAe,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,SAAgB,gBAAgB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAE7D;;OAEG;IACH,SAAgB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,SAAgB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,SAAgB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,SAAgB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5C;;OAEG;IACH,SAAgB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExC;;OAEG;IACH,SAAgB,eAAe,CAAC,EAAE,MAAM,CAAC;gBAGvC,cAAc,EAAE,cAAc,GAAG,MAAM,EACvC,mBAAmB,GAAE,0BAAgD;IAiCvE;;OAEG;IACI,QAAQ,IAAI,MAAM;CAwC1B;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BleErrorCodeMessage = exports.BleError = void 0;
|
|
4
|
-
const
|
|
4
|
+
const types_1 = require("../specs/types");
|
|
5
5
|
/**
|
|
6
6
|
* Default error messages for BLE error codes
|
|
7
7
|
* Maintains compatibility with react-native-ble-plx error messages
|
|
8
8
|
*/
|
|
9
9
|
const BleErrorCodeMessage = {
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
45
|
-
[
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[
|
|
10
|
+
[types_1.BleErrorCode.UnknownError]: 'Unknown error occurred',
|
|
11
|
+
[types_1.BleErrorCode.BluetoothManagerDestroyed]: 'BLE Manager was destroyed',
|
|
12
|
+
[types_1.BleErrorCode.OperationCancelled]: 'Operation was cancelled',
|
|
13
|
+
[types_1.BleErrorCode.OperationTimedOut]: 'Operation timed out',
|
|
14
|
+
[types_1.BleErrorCode.OperationStartFailed]: 'Operation could not be started',
|
|
15
|
+
[types_1.BleErrorCode.InvalidIdentifiers]: 'Invalid identifiers provided',
|
|
16
|
+
[types_1.BleErrorCode.BluetoothUnsupported]: 'Bluetooth is not supported on this device',
|
|
17
|
+
[types_1.BleErrorCode.BluetoothUnauthorized]: 'App is not authorized to use Bluetooth',
|
|
18
|
+
[types_1.BleErrorCode.BluetoothPoweredOff]: 'Bluetooth is powered off',
|
|
19
|
+
[types_1.BleErrorCode.BluetoothInUnknownState]: 'Bluetooth is in unknown state',
|
|
20
|
+
[types_1.BleErrorCode.BluetoothResetting]: 'Bluetooth is resetting',
|
|
21
|
+
[types_1.BleErrorCode.BluetoothStateChangeFailed]: 'Bluetooth state change failed',
|
|
22
|
+
[types_1.BleErrorCode.DeviceConnectionFailed]: 'Device connection failed',
|
|
23
|
+
[types_1.BleErrorCode.DeviceDisconnected]: 'Device was disconnected',
|
|
24
|
+
[types_1.BleErrorCode.DeviceRSSIReadFailed]: 'Failed to read RSSI',
|
|
25
|
+
[types_1.BleErrorCode.DeviceAlreadyConnected]: 'Device is already connected',
|
|
26
|
+
[types_1.BleErrorCode.DeviceNotFound]: 'Device not found',
|
|
27
|
+
[types_1.BleErrorCode.DeviceNotConnected]: 'Device is not connected',
|
|
28
|
+
[types_1.BleErrorCode.DeviceMTUChangeFailed]: 'Failed to change MTU',
|
|
29
|
+
[types_1.BleErrorCode.ServicesDiscoveryFailed]: 'Services discovery failed',
|
|
30
|
+
[types_1.BleErrorCode.IncludedServicesDiscoveryFailed]: 'Included services discovery failed',
|
|
31
|
+
[types_1.BleErrorCode.ServiceNotFound]: 'Service not found',
|
|
32
|
+
[types_1.BleErrorCode.ServicesNotDiscovered]: 'Services not discovered',
|
|
33
|
+
[types_1.BleErrorCode.CharacteristicsDiscoveryFailed]: 'Characteristics discovery failed',
|
|
34
|
+
[types_1.BleErrorCode.CharacteristicWriteFailed]: 'Characteristic write failed',
|
|
35
|
+
[types_1.BleErrorCode.CharacteristicReadFailed]: 'Characteristic read failed',
|
|
36
|
+
[types_1.BleErrorCode.CharacteristicNotifyChangeFailed]: 'Failed to change characteristic notification state',
|
|
37
|
+
[types_1.BleErrorCode.CharacteristicNotFound]: 'Characteristic not found',
|
|
38
|
+
[types_1.BleErrorCode.CharacteristicsNotDiscovered]: 'Characteristics not discovered',
|
|
39
|
+
[types_1.BleErrorCode.CharacteristicInvalidDataFormat]: 'Invalid characteristic data format',
|
|
40
|
+
[types_1.BleErrorCode.DescriptorsDiscoveryFailed]: 'Descriptors discovery failed',
|
|
41
|
+
[types_1.BleErrorCode.DescriptorWriteFailed]: 'Descriptor write failed',
|
|
42
|
+
[types_1.BleErrorCode.DescriptorReadFailed]: 'Descriptor read failed',
|
|
43
|
+
[types_1.BleErrorCode.DescriptorNotFound]: 'Descriptor not found',
|
|
44
|
+
[types_1.BleErrorCode.DescriptorsNotDiscovered]: 'Descriptors not discovered',
|
|
45
|
+
[types_1.BleErrorCode.DescriptorInvalidDataFormat]: 'Invalid descriptor data format',
|
|
46
|
+
[types_1.BleErrorCode.DescriptorWriteNotAllowed]: 'Descriptor write not allowed',
|
|
47
|
+
[types_1.BleErrorCode.ScanStartFailed]: 'Failed to start scan',
|
|
48
|
+
[types_1.BleErrorCode.LocationServicesDisabled]: 'Location services are disabled'
|
|
49
49
|
};
|
|
50
50
|
exports.BleErrorCodeMessage = BleErrorCodeMessage;
|
|
51
51
|
/**
|
|
@@ -57,7 +57,7 @@ class BleError extends Error {
|
|
|
57
57
|
if (typeof nativeBleError === 'string') {
|
|
58
58
|
// Simple string error case
|
|
59
59
|
super(nativeBleError);
|
|
60
|
-
this.errorCode =
|
|
60
|
+
this.errorCode = types_1.BleErrorCode.UnknownError;
|
|
61
61
|
this.attErrorCode = null;
|
|
62
62
|
this.iosErrorCode = null;
|
|
63
63
|
this.androidErrorCode = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BleError.js","sourceRoot":"","sources":["../../../src/errors/BleError.ts"],"names":[],"mappings":";;;AAAA,
|
|
1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AAI,CAAC,cAAc,EAAE,CAAC,CAAC;QACxD,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF;AAjID,4BAiIC"}
|
package/lib/commonjs/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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
|
|
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';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAG1C,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,gBAAgB,IAAI,UAAU,EAAE,sBAAsB,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGvH,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAGxE,YAAY,EACV,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,EACL,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAG/B,YAAY,EACV,8BAA8B,EAC9B,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -16,27 +16,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.fullUUID = exports.LogLevel = exports.State = exports.Device = exports.getStoredCallbacks = exports.getCustomErrorMessage = exports.createBleManager = exports.BleManager = void 0;
|
|
18
18
|
// Export compatibility layer types and constants
|
|
19
|
-
__exportStar(require("./compatibility/constants
|
|
19
|
+
__exportStar(require("./compatibility/constants"), exports);
|
|
20
20
|
// Export utility functions
|
|
21
|
-
__exportStar(require("./utils/index
|
|
21
|
+
__exportStar(require("./utils/index"), exports);
|
|
22
22
|
// Export the main BleManager instance with compatibility wrapper
|
|
23
|
-
var
|
|
24
|
-
Object.defineProperty(exports, "BleManager", { enumerable: true, get: function () { return
|
|
25
|
-
Object.defineProperty(exports, "createBleManager", { enumerable: true, get: function () { return
|
|
23
|
+
var BleManagerCompatFactory_1 = require("./BleManagerCompatFactory");
|
|
24
|
+
Object.defineProperty(exports, "BleManager", { enumerable: true, get: function () { return BleManagerCompatFactory_1.BleManagerCompat; } });
|
|
25
|
+
Object.defineProperty(exports, "createBleManager", { enumerable: true, get: function () { return BleManagerCompatFactory_1.createBleManagerCompat; } });
|
|
26
26
|
// Export BleManager factory utilities (for internal use by error handling)
|
|
27
|
-
var
|
|
28
|
-
Object.defineProperty(exports, "getCustomErrorMessage", { enumerable: true, get: function () { return
|
|
29
|
-
Object.defineProperty(exports, "getStoredCallbacks", { enumerable: true, get: function () { return
|
|
27
|
+
var BleManagerFactory_1 = require("./BleManagerFactory");
|
|
28
|
+
Object.defineProperty(exports, "getCustomErrorMessage", { enumerable: true, get: function () { return BleManagerFactory_1.getCustomErrorMessage; } });
|
|
29
|
+
Object.defineProperty(exports, "getStoredCallbacks", { enumerable: true, get: function () { return BleManagerFactory_1.getStoredCallbacks; } });
|
|
30
30
|
// Export error handling utilities
|
|
31
|
-
__exportStar(require("./errors/BleError
|
|
31
|
+
__exportStar(require("./errors/BleError"), exports);
|
|
32
32
|
// Export device wrapper for compatibility
|
|
33
|
-
var
|
|
34
|
-
Object.defineProperty(exports, "Device", { enumerable: true, get: function () { return
|
|
33
|
+
var deviceWrapper_1 = require("./compatibility/deviceWrapper");
|
|
34
|
+
Object.defineProperty(exports, "Device", { enumerable: true, get: function () { return deviceWrapper_1.DeviceWrapper; } });
|
|
35
35
|
// Export react-native-ble-plx compatible enum types (drop-in replacement)
|
|
36
|
-
var
|
|
37
|
-
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return
|
|
38
|
-
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return
|
|
36
|
+
var enums_1 = require("./compatibility/enums");
|
|
37
|
+
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return enums_1.State; } });
|
|
38
|
+
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return enums_1.LogLevel; } });
|
|
39
39
|
// Re-export react-native-ble-plx compatible API
|
|
40
|
-
var
|
|
41
|
-
Object.defineProperty(exports, "fullUUID", { enumerable: true, get: function () { return
|
|
40
|
+
var uuid_1 = require("./utils/uuid");
|
|
41
|
+
Object.defineProperty(exports, "fullUUID", { enumerable: true, get: function () { return uuid_1.fullUUID; } });
|
|
42
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAiD;AACjD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAiD;AACjD,4DAA0C;AAE1C,2BAA2B;AAC3B,gDAA8B;AAE9B,iEAAiE;AACjE,qEAAuH;AAA9G,qHAAA,gBAAgB,OAAc;AAAE,2HAAA,sBAAsB,OAAoB;AAEnF,2EAA2E;AAC3E,yDAAgF;AAAvE,0HAAA,qBAAqB,OAAA;AAAE,uHAAA,kBAAkB,OAAA;AAElD,kCAAkC;AAClC,oDAAkC;AAElC,0CAA0C;AAC1C,+DAAwE;AAA/D,uGAAA,aAAa,OAAU;AAehC,0EAA0E;AAC1E,+CAG+B;AAF7B,8FAAA,KAAK,OAAA;AACL,iGAAA,QAAQ,OAAA;AASV,gDAAgD;AAChD,qCAAwC;AAA/B,gGAAA,QAAQ,OAAA"}
|
|
@@ -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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BleManager.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/BleManager.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,EACN,YAAY,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"BleManager.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/BleManager.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,EACN,YAAY,EACb,MAAM,SAAS,CAAC;AAGjB,MAAM,WAAW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
1
1
|
import type { HybridObject } from 'react-native-nitro-modules';
|
|
2
|
-
import type { Identifier, UUID, DeviceId, Base64, TransactionId, CharacteristicSubscriptionType, NativeDescriptor, CharacteristicMonitorListener, Subscription } from './types
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Characteristic.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Characteristic.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,aAAa,EACb,8BAA8B,EAC9B,gBAAgB,EAChB,6BAA6B,EAC7B,YAAY,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"Characteristic.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Characteristic.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,aAAa,EACb,8BAA8B,EAC9B,gBAAgB,EAChB,6BAA6B,EAC7B,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,cAAe,SAAQ,YAAY,CAAC;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC;IAEvF,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,IA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
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Descriptor.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Descriptor.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,aAAa,EACd,MAAM,
|
|
1
|
+
{"version":3,"file":"Descriptor.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Descriptor.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAW,SAAQ,YAAY,CAAC;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC;IAEnF,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACtC,QAAQ,CAAC,kBAAkB,EAAE,IAAI,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAG9B,IAAI,CAAC,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEzD,KAAK,CACH,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,UAAU,CAAC,CAAC;CACxB"}
|
|
@@ -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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Device.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Device.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,8BAA8B,EAC9B,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC1B,6BAA6B,EAC7B,YAAY,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"Device.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Device.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,8BAA8B,EAC9B,gB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ACjB,kBAAkB,EAAE,IAAI,GACvB,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAE/B,wBAAwB,CACtB,WAAW,EAAE,IAAI,EACjB,kBAAkB,EAAE,IAAI,EACxB,cAAc,EAAE,IAAI,EACpB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B,yBAAyB,CACvB,WAAW,EAAE,IAAI,EACjB,kBAAkB,EAAE,IAAI,EACxB,cAAc,EAAE,IAAI,EACpB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9B"}
|
|
@@ -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
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Service.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Service.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,aAAa,EACb,8BAA8B,EAC9B,oBAAoB,EACpB,gBAAgB,EAChB,6BAA6B,EAC7B,YAAY,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"Service.nitro.d.ts","sourceRoot":"","sources":["../../../src/specs/Service.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA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B,cAAc,EAAE,IAAI,EACpB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B,gCAAgC,CAC9B,kBAAkB,EAAE,IAAI,EACxB,cAAc,EAAE,IAAI,EACpB,WAAW,EAAE,MAAM,EACnB,aAAa,CAAC,EAAE,aAAa,GAC5B,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../src/utils/base64.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../src/utils/base64.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUlD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAUrD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CASjE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAa7D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAOlD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './uuid
|
|
2
|
-
export * from './base64
|
|
1
|
+
export * from './uuid';
|
|
2
|
+
export * from './base64';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./uuid
|
|
18
|
-
__exportStar(require("./base64
|
|
17
|
+
__exportStar(require("./uuid"), exports);
|
|
18
|
+
__exportStar(require("./base64"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../../src/utils/uuid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAmCzC"}
|
|
@@ -46,4 +46,4 @@ export declare const ConnectionPriority: {
|
|
|
46
46
|
readonly High: 1;
|
|
47
47
|
readonly LowPower: 2;
|
|
48
48
|
};
|
|
49
|
-
export { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types
|
|
49
|
+
export { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types';
|
|
@@ -47,4 +47,4 @@ export const ConnectionPriority = {
|
|
|
47
47
|
LowPower: 2,
|
|
48
48
|
};
|
|
49
49
|
// Re-export all BLE error codes
|
|
50
|
-
export { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types
|
|
50
|
+
export { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Wraps Nitro Device objects to provide the original react-native-ble-plx API
|
|
5
5
|
*/
|
|
6
|
-
import type { Device as NitroDevice } from '../specs/Device.nitro
|
|
7
|
-
import type { UUID, Base64, DeviceId, TransactionId, ConnectionPriority, ConnectionOptions, NativeService, NativeCharacteristic, NativeDescriptor, Subscription } from '../specs/types
|
|
6
|
+
import type { Device as NitroDevice } from '../specs/Device.nitro';
|
|
7
|
+
import type { UUID, Base64, DeviceId, TransactionId, ConnectionPriority, ConnectionOptions, NativeService, NativeCharacteristic, NativeDescriptor, Subscription } from '../specs/types';
|
|
8
8
|
/**
|
|
9
9
|
* Device wrapper that provides react-native-ble-plx compatibility
|
|
10
10
|
* Maps Nitro device properties to the expected API surface
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Wraps Nitro Device objects to provide the original react-native-ble-plx API
|
|
5
5
|
*/
|
|
6
|
-
import { serviceDataArrayToMap } from './serviceData
|
|
7
|
-
import { normalizeCharacteristicSubscriptionType } from './enums
|
|
6
|
+
import { serviceDataArrayToMap } from './serviceData';
|
|
7
|
+
import { normalizeCharacteristicSubscriptionType } from './enums';
|
|
8
8
|
/**
|
|
9
9
|
* Device wrapper that provides react-native-ble-plx compatibility
|
|
10
10
|
* Maps Nitro device properties to the expected API surface
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These match the exact types from react-native-ble-plx for drop-in compatibility.
|
|
5
5
|
* This module provides conversion between Nitro's numeric enums and react-native-ble-plx types.
|
|
6
6
|
*/
|
|
7
|
-
import { State as NitroState, LogLevel as NitroLogLevel, CharacteristicSubscriptionType as NitroCharacteristicSubscriptionType, RefreshGattMoment as NitroRefreshGattMoment } from '../specs/types
|
|
7
|
+
import { State as NitroState, LogLevel as NitroLogLevel, CharacteristicSubscriptionType as NitroCharacteristicSubscriptionType, RefreshGattMoment as NitroRefreshGattMoment } from '../specs/types';
|
|
8
8
|
export declare enum State {
|
|
9
9
|
Unknown = "Unknown",
|
|
10
10
|
Resetting = "Resetting",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This module provides conversion between Nitro's numeric enums and react-native-ble-plx types.
|
|
6
6
|
*/
|
|
7
7
|
// Import Nitro's numeric enums with aliases to avoid naming conflicts
|
|
8
|
-
import { State as NitroState, LogLevel as NitroLogLevel, CharacteristicSubscriptionType as NitroCharacteristicSubscriptionType, RefreshGattMoment as NitroRefreshGattMoment, } from '../specs/types
|
|
8
|
+
import { State as NitroState, LogLevel as NitroLogLevel, CharacteristicSubscriptionType as NitroCharacteristicSubscriptionType, RefreshGattMoment as NitroRefreshGattMoment, } from '../specs/types';
|
|
9
9
|
// Define exact string enums and types matching react-native-ble-plx
|
|
10
10
|
export var State;
|
|
11
11
|
(function (State) {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* 100% API compatibility with react-native-ble-plx while working with
|
|
6
6
|
* Nitro's type system constraints.
|
|
7
7
|
*/
|
|
8
|
-
export * from './serviceData
|
|
9
|
-
export * from './deviceWrapper
|
|
10
|
-
export * from './constants
|
|
11
|
-
export { stateToString, stringToState, logLevelToString, stringToLogLevel, characteristicSubscriptionTypeToString, stringToCharacteristicSubscriptionType, normalizeState, normalizeLogLevel, normalizeCharacteristicSubscriptionType, State, LogLevel } from './enums
|
|
12
|
-
export type { CharacteristicSubscriptionType, RefreshGattMoment } from './enums
|
|
8
|
+
export * from './serviceData';
|
|
9
|
+
export * from './deviceWrapper';
|
|
10
|
+
export * from './constants';
|
|
11
|
+
export { stateToString, stringToState, logLevelToString, stringToLogLevel, characteristicSubscriptionTypeToString, stringToCharacteristicSubscriptionType, normalizeState, normalizeLogLevel, normalizeCharacteristicSubscriptionType, State, LogLevel } from './enums';
|
|
12
|
+
export type { CharacteristicSubscriptionType, RefreshGattMoment } from './enums';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* 100% API compatibility with react-native-ble-plx while working with
|
|
6
6
|
* Nitro's type system constraints.
|
|
7
7
|
*/
|
|
8
|
-
export * from './serviceData
|
|
9
|
-
export * from './deviceWrapper
|
|
10
|
-
export * from './constants
|
|
8
|
+
export * from './serviceData';
|
|
9
|
+
export * from './deviceWrapper';
|
|
10
|
+
export * from './constants';
|
|
11
11
|
// Explicitly export enum utilities and enums to avoid conflicts
|
|
12
|
-
export { stateToString, stringToState, logLevelToString, stringToLogLevel, characteristicSubscriptionTypeToString, stringToCharacteristicSubscriptionType, normalizeState, normalizeLogLevel, normalizeCharacteristicSubscriptionType, State, LogLevel } from './enums
|
|
12
|
+
export { stateToString, stringToState, logLevelToString, stringToLogLevel, characteristicSubscriptionTypeToString, stringToCharacteristicSubscriptionType, normalizeState, normalizeLogLevel, normalizeCharacteristicSubscriptionType, State, LogLevel } from './enums';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides conversion between Nitro's structured ServiceDataEntry[] format
|
|
5
5
|
* and the original { [uuid: string]: Base64 } format from react-native-ble-plx
|
|
6
6
|
*/
|
|
7
|
-
import type { ServiceDataEntry, UUID, Base64 } from '../specs/types
|
|
7
|
+
import type { ServiceDataEntry, UUID, Base64 } from '../specs/types';
|
|
8
8
|
/**
|
|
9
9
|
* Convert ServiceDataEntry array to the original index signature format
|
|
10
10
|
*/
|
package/lib/errors/BleError.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types
|
|
2
|
-
import type { NativeBleError, BleErrorCodeMessageMapping } from '../specs/types
|
|
1
|
+
import { BleErrorCode, BleATTErrorCode, BleIOSErrorCode, BleAndroidErrorCode } from '../specs/types';
|
|
2
|
+
import type { NativeBleError, BleErrorCodeMessageMapping } from '../specs/types';
|
|
3
3
|
/**
|
|
4
4
|
* Default error messages for BLE error codes
|
|
5
5
|
* Maintains compatibility with react-native-ble-plx error messages
|