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

nativescript-nfc-uid

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-nfc-uid - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

18

nfc.ios.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var nfc_common_1 = require("./nfc.common");
var core_1 = require("@nativescript/core");
var Nfc = /** @class */ (function () {

@@ -36,3 +37,3 @@ function Nfc() {

if (!Nfc._available()) {
reject();
reject("NFC Not available!");
return;

@@ -43,3 +44,3 @@ }

_this.invalidateSession();
resolve();
resolve("No callback found");
return;

@@ -59,3 +60,3 @@ }

_this.tagSession.beginSession();
resolve();
resolve("Begin session...");
}

@@ -72,3 +73,3 @@ catch (e) {

if (!Nfc._available()) {
reject();
reject("NFC not available");
return;

@@ -78,3 +79,3 @@ }

_this.invalidateSession();
resolve();
resolve("No callback found!");
return;

@@ -89,3 +90,6 @@ }

// execute on the main thread with this trick, so UI updates are not broken
Promise.resolve().then(function () { return callback(data); });
// Promise.resolve().then(() => callback(data));
core_1.Utils.mainThreadify(function () {
callback(data);
});
}

@@ -98,3 +102,3 @@ }, options);

_this.session.beginSession();
resolve();
resolve("Begin session...");
}

@@ -101,0 +105,0 @@ catch (e) {

{
"name": "nativescript-nfc-uid",
"version": "4.1.0",
"version": "4.1.1",
"description": "NFC plugin for your NativeScript app",

@@ -5,0 +5,0 @@ "main": "nfc",

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