Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor-community/bluetooth-le

Package Overview
Dependencies
Maintainers
42
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor-community/bluetooth-le - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

13

dist/esm/bleClient.d.ts

@@ -16,6 +16,10 @@ import type { DisplayStrings } from './config';

/**
* Request enabling Bluetooth. Show a system activity that allows the user to turn on Bluetooth. See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#ACTION_REQUEST_ENABLE
* Only available on **Android**.*/
requestEnable(): Promise<void>;
/**
* Enable Bluetooth.
* Only available on **Android**.
* *deprecated* See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable()
* @deprecated See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable()
* **Deprecated** Will fail on Android SDK >= 33. Use `requestEnable` instead. See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable()
* @deprecated Will fail on Android SDK >= 33. Use `requestEnable` instead. See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable()
*/

@@ -26,4 +30,4 @@ enable(): Promise<void>;

* Only available on **Android**.
* *deprecated* See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#disable()
* @deprecated See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#disable()
* **Deprecated** Will fail on Android SDK >= 33. See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#disable()
* @deprecated Will fail on Android SDK >= 33. See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#disable()
*/

@@ -232,2 +236,3 @@ disable(): Promise<void>;

isEnabled(): Promise<boolean>;
requestEnable(): Promise<void>;
enable(): Promise<void>;

@@ -234,0 +239,0 @@ disable(): Promise<void>;

@@ -30,2 +30,7 @@ import { Capacitor } from '@capacitor/core';

}
async requestEnable() {
await this.queue(async () => {
await BluetoothLe.requestEnable();
});
}
async enable() {

@@ -32,0 +37,0 @@ await this.queue(async () => {

@@ -257,2 +257,3 @@ import type { PluginListenerHandle } from '@capacitor/core';

isEnabled(): Promise<BooleanResult>;
requestEnable(): Promise<void>;
enable(): Promise<void>;

@@ -259,0 +260,0 @@ disable(): Promise<void>;

@@ -11,2 +11,3 @@ import { WebPlugin } from '@capacitor/core';

isEnabled(): Promise<BooleanResult>;
requestEnable(): Promise<void>;
enable(): Promise<void>;

@@ -13,0 +14,0 @@ disable(): Promise<void>;

@@ -28,2 +28,5 @@ import { WebPlugin } from '@capacitor/core';

}
async requestEnable() {
throw this.unavailable('requestEnable is not available on web.');
}
async enable() {

@@ -30,0 +33,0 @@ throw this.unavailable('enable is not available on web.');

@@ -181,2 +181,7 @@ 'use strict';

}
async requestEnable() {
await this.queue(async () => {
await BluetoothLe.requestEnable();
});
}
async enable() {

@@ -526,2 +531,5 @@ await this.queue(async () => {

}
async requestEnable() {
throw this.unavailable('requestEnable is not available on web.');
}
async enable() {

@@ -528,0 +536,0 @@ throw this.unavailable('enable is not available on web.');

@@ -178,2 +178,7 @@ var capacitorCommunityBluetoothLe = (function (exports, core) {

}
async requestEnable() {
await this.queue(async () => {
await BluetoothLe.requestEnable();
});
}
async enable() {

@@ -523,2 +528,5 @@ await this.queue(async () => {

}
async requestEnable() {
throw this.unavailable('requestEnable is not available on web.');
}
async enable() {

@@ -525,0 +533,0 @@ throw this.unavailable('enable is not available on web.');

{
"name": "@capacitor-community/bluetooth-le",
"version": "3.0.2",
"version": "3.1.0",
"description": "Capacitor plugin for Bluetooth Low Energy ",

@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc