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

web-bluetooth

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-bluetooth - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

30

lib/errorHandler.js

@@ -11,4 +11,4 @@ /** errorHandler - Consolodates error message configuration and logic

const errorMessages = {
add_characteristic_exists_error: `Characteristic ${alternateParam} already exists.`,
characteristic_error: `Characteristic ${alternateParam} not found. Add ${alternateParam} to device using addCharacteristic or try another characteristic.`,
add_characteristic_exists_error: `Characteristic ${alternate} already exists.`,
characteristic_error: `Characteristic ${alternate} not found. Add ${alternate} to device using addCharacteristic or try another characteristic.`,
connect_gatt: `Could not connect to GATT. Device might be out of range. Also check to see if filters are vaild.`,

@@ -19,23 +19,23 @@ connect_server: `Could not connect to server on device.`,

disconnect_error: `Could not disconnect from device.`,
improper_characteristic_format: `${alternateParam} is not a properly formatted characteristic.`,
improper_properties_format: `${alternateParam} is not a properly formatted properties array.`,
improper_service_format: `${alternateParam} is not a properly formatted service.`,
improper_characteristic_format: `${alternate} is not a properly formatted characteristic.`,
improper_properties_format: `${alternate} is not a properly formatted properties array.`,
improper_service_format: `${alternate} is not a properly formatted service.`,
issue_disconnecting: `Issue disconnecting with device.`,
new_characteristic_missing_params: `${alternateParam} is not a fully supported characteristic. Please provide an associated primary service and at least one property.`,
new_characteristic_missing_params: `${alternate} is not a fully supported characteristic. Please provide an associated primary service and at least one property.`,
no_device: `No instance of device found.`,
no_filters: `No filters found on instance of Device. For more information, please visit http://sabertooth.io/#method-newdevice`,
no_read_property: `No read property on characteristic: ${alternateParam}.`,
no_read_property: `No read property on characteristic: ${alternate}.`,
no_write_property: `No write property on this characteristic.`,
not_connected: `Could not disconnect. Device not connected.`,
parsing_not_supported: `Parsing not supported for characterstic: ${alternateParam}.`,
parsing_not_supported: `Parsing not supported for characterstic: ${alternate}.`,
read_error: `Cannot read value on the characteristic.`,
_returnCharacteristic_error: `Error accessing characteristic ${alternateParam}.`,
start_notifications_error: `Not able to read stream of data from characteristic: ${alternateParam}.`,
start_notifications_no_notify: `No notify property found on this characteristic: ${alternateParam}.`,
stop_notifications_not_notifying: `Notifications not established for characteristic: ${alternateParam} or you have not started notifications.`,
stop_notifications_error: `Issue stopping notifications for characteristic: ${alternateParam} or you have not started notifications.`,
_returnCharacteristic_error: `Error accessing characteristic ${alternate}.`,
start_notifications_error: `Not able to read stream of data from characteristic: ${alternate}.`,
start_notifications_no_notify: `No notify property found on this characteristic: ${alternate}.`,
stop_notifications_not_notifying: `Notifications not established for characteristic: ${alternate} or you have not started notifications.`,
stop_notifications_error: `Issue stopping notifications for characteristic: ${alternate} or you have not started notifications.`,
user_cancelled: `User cancelled the permission request.`,
uuid_error: `Invalid UUID. For more information on proper formatting of UUIDs, visit https://webbluetoothcg.github.io/web-bluetooth/#uuids`,
write_error: `Could not change value of characteristic: ${alternateParam}.`,
write_permissions: `${alternateParam} characteristic does not have a write property.`
write_error: `Could not change value of characteristic: ${alternate}.`,
write_permissions: `${alternate} characteristic does not have a write property.`
}

@@ -42,0 +42,0 @@

{
"name": "web-bluetooth",
"version": "0.0.13",
"version": "0.0.14",
"description": "Library for interacting with Bluetooth devices through the browser. Currently in Alpha.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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