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

@ionic-native/nfc

Package Overview
Dependencies
Maintainers
3
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic-native/nfc - npm Package Compare versions

Comparing version 4.4.2 to 5.0.0-alpha.3

ngx/index.js

7

index.d.ts

@@ -38,3 +38,3 @@ import { IonicNativePlugin } from '@ionic-native/core';

*/
export declare class NFC extends IonicNativePlugin {
export declare class NFCOriginal extends IonicNativePlugin {
/**

@@ -143,3 +143,3 @@ * Registers an event listener for any NDEF tag.

*/
export declare class Ndef extends IonicNativePlugin {
export declare class NdefOriginal extends IonicNativePlugin {
uriRecord(uri: string): any;

@@ -150,1 +150,4 @@ textRecord(text: string): any;

}
export declare const NFC: NFCOriginal;
export declare const Ndef: NdefOriginal;

@@ -11,363 +11,52 @@ var __extends = (this && this.__extends) || (function () {

})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { IonicNativePlugin, cordova, injectable } from '@ionic-native/core';
import { Observable } from 'rxjs/Observable';
/**
* @name NFC
* @description
* The NFC plugin allows you to read and write NFC tags. You can also beam to, and receive from, other NFC enabled devices.
*
* Use to
* - read data from NFC tags
* - write data to NFC tags
* - send data to other NFC enabled devices
* - receive data from NFC devices
*
* This plugin uses NDEF (NFC Data Exchange Format) for maximum compatibilty between NFC devices, tag types, and operating systems.
*
* @usage
* ```typescript
* import { NFC, Ndef } from '@ionic-native/nfc';
*
* constructor(private nfc: NFC, private ndef: Ndef) { }
*
* ...
*
* this.nfc.addNdefListener(() => {
* console.log('successfully attached ndef listener');
* }, (err) => {
* console.log('error attaching ndef listener', err);
* }).subscribe((event) => {
* console.log('received ndef message. the tag contains: ', event.tag);
* console.log('decoded tag id', this.nfc.bytesToHexString(event.tag.id));
*
* let message = this.ndef.textRecord('Hello world');
* this.nfc.share([message]).then(onSuccess).catch(onError);
* });
*
* ```
*/
var NFC = (function (_super) {
var NFCOriginal = /** @class */ (function (_super) {
__extends(NFC, _super);
/**
*@{ NFC } class methods
*/
function NFC() {
function NFCOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* Registers an event listener for any NDEF tag.
* @param onSuccess
* @param onFailure
* @returns {Observable<any>}
*/
NFC.prototype.addNdefListener = function (onSuccess, onFailure) { return; };
/**
* Registers an event listener for tags matching any tag type.
* @param onSuccess
* @param onFailure
* @returns {Observable<any>}
*/
NFC.prototype.addTagDiscoveredListener = function (onSuccess, onFailure) { return; };
/**
* Registers an event listener for NDEF tags matching a specified MIME type.
* @param mimeType
* @param onSuccess
* @param onFailure
* @returns {Observable<any>}
*/
NFC.prototype.addMimeTypeListener = function (mimeType, onSuccess, onFailure) { return; };
/**
* Registers an event listener for formatable NDEF tags.
* @param onSuccess
* @param onFailure
* @returns {Observable<any>}
*/
NFC.prototype.addNdefFormatableListener = function (onSuccess, onFailure) { return; };
/**
* Writes an NdefMessage(array of ndef records) to a NFC tag.
* @param message {any[]}
* @returns {Promise<any>}
*/
NFC.prototype.write = function (message) { return; };
/**
* Makes a NFC tag read only. **Warning** this is permanent.
* @returns {Promise<any>}
*/
NFC.prototype.makeReadyOnly = function () { return; };
/**
* Shares an NDEF Message(array of ndef records) via peer-to-peer.
* @param message An array of NDEF Records.
* @returns {Promise<any>}
*/
NFC.prototype.share = function (message) { return; };
/**
* Stop sharing NDEF data via peer-to-peer.
* @returns {Promise<any>}
*/
NFC.prototype.unshare = function () { return; };
/**
* Erase a NDEF tag
*/
NFC.prototype.erase = function () { return; };
/**
* Send a file to another device via NFC handover.
* @param uris A URI as a String, or an array of URIs.
* @returns {Promise<any>}
*/
NFC.prototype.handover = function (uris) { return; };
/**
* Stop sharing NDEF data via NFC handover.
* @returns {Promise<any>}
*/
NFC.prototype.stopHandover = function () { return; };
/**
* Opens the device's NFC settings.
* @returns {Promise<any>}
*/
NFC.prototype.showSettings = function () { return; };
/**
* Check if NFC is available and enabled on this device.
* @returns {Promise<any>}
*/
NFC.prototype.enabled = function () { return; };
/**
* @{ NFC } class utility methods
* for use with
*/
/**
* Convert byte array to string
* @param bytes {number[]}
* @returns {string}
*/
NFC.prototype.bytesToString = function (bytes) { return; };
/**
* Convert string to byte array.
* @param str {string}
* @returns {number[]}
*/
NFC.prototype.stringToBytes = function (str) { return; };
NFCOriginal.prototype.addNdefListener = function (onSuccess, onFailure) { return cordova(this, "addNdefListener", { "observable": true, "successIndex": 0, "errorIndex": 3, "clearFunction": "removeNdefListener", "clearWithArgs": true }, arguments); };
NFCOriginal.prototype.addTagDiscoveredListener = function (onSuccess, onFailure) { return cordova(this, "addTagDiscoveredListener", { "observable": true, "successIndex": 0, "errorIndex": 3, "clearFunction": "removeTagDiscoveredListener", "clearWithArgs": true }, arguments); };
NFCOriginal.prototype.addMimeTypeListener = function (mimeType, onSuccess, onFailure) { return cordova(this, "addMimeTypeListener", { "observable": true, "successIndex": 1, "errorIndex": 4, "clearFunction": "removeMimeTypeListener", "clearWithArgs": true }, arguments); };
NFCOriginal.prototype.addNdefFormatableListener = function (onSuccess, onFailure) { return cordova(this, "addNdefFormatableListener", { "observable": true, "successIndex": 0, "errorIndex": 3 }, arguments); };
NFCOriginal.prototype.write = function (message) { return cordova(this, "write", {}, arguments); };
NFCOriginal.prototype.makeReadyOnly = function () { return cordova(this, "makeReadyOnly", {}, arguments); };
NFCOriginal.prototype.share = function (message) { return cordova(this, "share", {}, arguments); };
NFCOriginal.prototype.unshare = function () { return cordova(this, "unshare", {}, arguments); };
NFCOriginal.prototype.erase = function () { return cordova(this, "erase", {}, arguments); };
NFCOriginal.prototype.handover = function (uris) { return cordova(this, "handover", {}, arguments); };
NFCOriginal.prototype.stopHandover = function () { return cordova(this, "stopHandover", {}, arguments); };
NFCOriginal.prototype.showSettings = function () { return cordova(this, "showSettings", {}, arguments); };
NFCOriginal.prototype.enabled = function () { return cordova(this, "enabled", {}, arguments); };
NFCOriginal.prototype.bytesToString = function (bytes) { return cordova(this, "bytesToString", { "sync": true }, arguments); };
NFCOriginal.prototype.stringToBytes = function (str) { return cordova(this, "stringToBytes", { "sync": true }, arguments); };
;
/**
* Convert byte array to hex string
*
* @param bytes {number[]}
* @returns {string}
*/
NFC.prototype.bytesToHexString = function (bytes) { return; };
NFCOriginal.prototype.bytesToHexString = function (bytes) { return cordova(this, "bytesToHexString", { "sync": true }, arguments); };
;
NFC.decorators = [
{ type: Injectable },
];
/** @nocollapse */
NFC.ctorParameters = function () { return []; };
__decorate([
Cordova({
observable: true,
successIndex: 0,
errorIndex: 3,
clearFunction: 'removeNdefListener',
clearWithArgs: true
}),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Function, Function]),
__metadata("design:returntype", Observable)
], NFC.prototype, "addNdefListener", null);
__decorate([
Cordova({
observable: true,
successIndex: 0,
errorIndex: 3,
clearFunction: 'removeTagDiscoveredListener',
clearWithArgs: true
}),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Function, Function]),
__metadata("design:returntype", Observable)
], NFC.prototype, "addTagDiscoveredListener", null);
__decorate([
Cordova({
observable: true,
successIndex: 1,
errorIndex: 4,
clearFunction: 'removeMimeTypeListener',
clearWithArgs: true
}),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Function, Function]),
__metadata("design:returntype", Observable)
], NFC.prototype, "addMimeTypeListener", null);
__decorate([
Cordova({
observable: true,
successIndex: 0,
errorIndex: 3
}),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Function, Function]),
__metadata("design:returntype", Observable)
], NFC.prototype, "addNdefFormatableListener", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Array]),
__metadata("design:returntype", Promise)
], NFC.prototype, "write", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], NFC.prototype, "makeReadyOnly", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Array]),
__metadata("design:returntype", Promise)
], NFC.prototype, "share", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], NFC.prototype, "unshare", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], NFC.prototype, "erase", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Array]),
__metadata("design:returntype", Promise)
], NFC.prototype, "handover", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], NFC.prototype, "stopHandover", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], NFC.prototype, "showSettings", null);
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], NFC.prototype, "enabled", null);
__decorate([
Cordova({ sync: true }),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Array]),
__metadata("design:returntype", String)
], NFC.prototype, "bytesToString", null);
__decorate([
Cordova({ sync: true }),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Array)
], NFC.prototype, "stringToBytes", null);
__decorate([
Cordova({ sync: true }),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Array]),
__metadata("design:returntype", String)
], NFC.prototype, "bytesToHexString", null);
NFC = __decorate([
Plugin({
pluginName: 'NFC',
plugin: 'phonegap-nfc',
pluginRef: 'nfc',
repo: 'https://github.com/chariotsolutions/phonegap-nfc',
platforms: ['Android', 'BlackBerry 10', 'Windows', 'Windows Phone 8']
})
/**
*@{ NFC } class methods
*/
], NFC);
return NFC;
NFCOriginal.pluginName = "NFC";
NFCOriginal.plugin = "phonegap-nfc";
NFCOriginal.pluginRef = "nfc";
NFCOriginal.repo = "https://github.com/chariotsolutions/phonegap-nfc";
NFCOriginal.platforms = ["Android", "BlackBerry 10", "Windows", "Windows Phone 8"];
return NFCOriginal;
}(IonicNativePlugin));
var NFC = new NFCOriginal();
export { NFC };
/**
* @hidden
*/
var Ndef = (function (_super) {
var NdefOriginal = /** @class */ (function (_super) {
__extends(Ndef, _super);
/**
*@{ Ndef } class methods
*@description
* Utility methods for creating ndef records for the ndef tag format.
* Move records into array before usage. Then pass an array to methods as parameters.
* Do not pass bytes as parameters for these methods, conversion is built in.
* For usage with nfc.write() and nfc.share()
*/
function Ndef() {
function NdefOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
Ndef.prototype.uriRecord = function (uri) { return; };
Ndef.prototype.textRecord = function (text) { return; };
Ndef.prototype.mimeMediaRecord = function (mimeType, payload) { return; };
Ndef.prototype.androidApplicationRecord = function (packageName) { return; };
Ndef.decorators = [
{ type: Injectable },
];
/** @nocollapse */
Ndef.ctorParameters = function () { return []; };
__decorate([
Cordova({ sync: true }),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Object)
], Ndef.prototype, "uriRecord", null);
__decorate([
Cordova({ sync: true }),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Object)
], Ndef.prototype, "textRecord", null);
__decorate([
Cordova({ sync: true }),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String]),
__metadata("design:returntype", Object)
], Ndef.prototype, "mimeMediaRecord", null);
__decorate([
Cordova({ sync: true }),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Object)
], Ndef.prototype, "androidApplicationRecord", null);
Ndef = __decorate([
Plugin({
pluginName: 'NFC',
plugin: 'phonegap-nfc',
pluginRef: 'ndef'
})
/**
*@{ Ndef } class methods
*@description
* Utility methods for creating ndef records for the ndef tag format.
* Move records into array before usage. Then pass an array to methods as parameters.
* Do not pass bytes as parameters for these methods, conversion is built in.
* For usage with nfc.write() and nfc.share()
*/
], Ndef);
return Ndef;
NdefOriginal.prototype.uriRecord = function (uri) { return cordova(this, "uriRecord", { "sync": true }, arguments); };
NdefOriginal.prototype.textRecord = function (text) { return cordova(this, "textRecord", { "sync": true }, arguments); };
NdefOriginal.prototype.mimeMediaRecord = function (mimeType, payload) { return cordova(this, "mimeMediaRecord", { "sync": true }, arguments); };
NdefOriginal.prototype.androidApplicationRecord = function (packageName) { return cordova(this, "androidApplicationRecord", { "sync": true }, arguments); };
NdefOriginal.pluginName = "NFC";
NdefOriginal.plugin = "phonegap-nfc";
NdefOriginal.pluginRef = "ndef";
return NdefOriginal;
}(IonicNativePlugin));
var Ndef = new NdefOriginal();
export { Ndef };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGx1Z2lucy9uZmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUNBLE9BQU8sMENBQXNDLE1BQU0sb0JBQW9CLENBQUM7QUFDeEUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlCQUFpQixDQUFDOztJQWdEcEIsdUJBQWlCOzs7O0lBY3hDLDZCQUFlLGFBQUMsU0FBb0IsRUFBRSxTQUFvQjtJQWUxRCxzQ0FBd0IsYUFBQyxTQUFvQixFQUFFLFNBQW9CO0lBZ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HJpbmcpOiBhbnkgeyByZXR1cm47IH1cblxuICBAQ29yZG92YSh7IHN5bmM6IHRydWUgfSlcbiAgdGV4dFJlY29yZCh0ZXh0OiBzdHJpbmcpOiBhbnkgeyByZXR1cm47IH1cblxuICBAQ29yZG92YSh7IHN5bmM6IHRydWUgfSlcbiAgbWltZU1lZGlhUmVjb3JkKG1pbWVUeXBlOiBzdHJpbmcsIHBheWxvYWQ6IHN0cmluZyk6IGFueSB7IHJldHVybjsgfVxuXG4gIEBDb3Jkb3ZhKHsgc3luYzogdHJ1ZSB9KVxuICBhbmRyb2lkQXBwbGljYXRpb25SZWNvcmQocGFja2FnZU5hbWU6IHN0cmluZyk6IGFueSB7IHJldHVybjsgfVxufVxuIl19

@@ -1,18 +0,1 @@

{
"name": "@ionic-native/nfc",
"version": "4.4.2",
"description": "Ionic Native - Native plugins for ionic apps",
"module": "index.js",
"typings": "index.d.ts",
"author": "ionic",
"license": "MIT",
"peerDependencies": {
"@ionic-native/core": "^4.2.0",
"@angular/core": "*",
"rxjs": "^5.0.1"
},
"repository": {
"type": "git",
"url": "https://github.com/ionic-team/ionic-native.git"
}
}
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/nfc","peerDependencies":{"rxjs":"^5.0.1","@ionic-native/core":"5.0.0-alpha.3"},"version":"5.0.0-alpha.3"}
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