New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-dkcloudid-uart-nfc

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-dkcloudid-uart-nfc - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

package.json
{
"name": "cordova-plugin-dkcloudid-uart-nfc",
"version": "0.1.4",
"version": "0.1.5",
"description": "Plugin for handling NFC UART communication in Android using DKCloudID SDK",

@@ -5,0 +5,0 @@ "main": "www/UARTPlugin.js",

var exec = require('cordova/exec');
// Exportar el plugin como un objeto global para acceder desde JavaScript
module.exports = {
var UARTPlugin = {
/**
* Inicializa el dispositivo NFC.
* @param {Function} successCallback - Callback para éxito.
* @param {Function} errorCallback - Callback para error.
*/
initialize: function(successCallback, errorCallback) {
exec(successCallback, errorCallback, 'UARTPlugin', 'initialize', []);
},
/**
* Abre el puerto UART para la comunicación.
* @param {Function} successCallback - Callback para éxito.
* @param {Function} errorCallback - Callback para error.
*/
openPort: function(successCallback, errorCallback) {
exec(successCallback, errorCallback, 'UARTPlugin', 'openPort', []);
},
readFromPort: function(successCallback, errorCallback) {
exec(successCallback, errorCallback, 'UARTPlugin', 'readFromPort', []);
},
writeToPort: function(data, successCallback, errorCallback) {
exec(successCallback, errorCallback, 'UARTPlugin', 'writeToPort', [data]);
/**
* Escucha eventos de NFC.
* @param {Function} successCallback - Callback cuando se detecta una tarjeta.
* @param {Function} errorCallback - Callback para errores.
*/
listenNFC: function(successCallback, errorCallback) {
exec(successCallback, errorCallback, 'UARTPlugin', 'listenNFC', []);
}
};
module.exports = UARTPlugin;

Sorry, the diff of this file is not supported yet

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