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

@ionic-native/nfc

Package Overview
Dependencies
Maintainers
2
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 3.0.0 to 3.1.0-alpha.1

index.metadata.json

42

index.d.ts

@@ -17,3 +17,3 @@ import { Observable } from 'rxjs/Observable';

* ```
* import {NFC, Ndef} from 'ionic-native';
* import {NFC, Ndef} from '@ionic-native/nfc';
*

@@ -32,3 +32,3 @@ * let message = Ndef.textRecord('Hello world');

*/
static addNdefListener(onSuccess?: Function, onFailure?: Function): Observable<any>;
addNdefListener(onSuccess?: Function, onFailure?: Function): Observable<any>;
/**

@@ -40,3 +40,3 @@ * Registers an event listener for tags matching any tag type.

*/
static addTagDiscoveredListener(onSuccess?: Function, onFailure?: Function): Observable<any>;
addTagDiscoveredListener(onSuccess?: Function, onFailure?: Function): Observable<any>;
/**

@@ -49,3 +49,3 @@ * Registers an event listener for NDEF tags matching a specified MIME type.

*/
static addMimeTypeListener(mimeType: string, onSuccess?: Function, onFailure?: Function): Observable<any>;
addMimeTypeListener(mimeType: string, onSuccess?: Function, onFailure?: Function): Observable<any>;
/**

@@ -57,3 +57,3 @@ * Registers an event listener for formatable NDEF tags.

*/
static addNdefFormatableListener(onSuccess?: Function, onFailure?: Function): Observable<any>;
addNdefFormatableListener(onSuccess?: Function, onFailure?: Function): Observable<any>;
/**

@@ -64,3 +64,3 @@ * Qrites an NdefMessage to a NFC tag.

*/
static write(message: any[]): Promise<any>;
write(message: any[]): Promise<any>;
/**

@@ -70,3 +70,3 @@ * Makes a NFC tag read only. **Warning** this is permanent.

*/
static makeReadyOnly(): Promise<any>;
makeReadyOnly(): Promise<any>;
/**

@@ -77,3 +77,3 @@ * Shares an NDEF Message via peer-to-peer.

*/
static share(message: any[]): Promise<any>;
share(message: any[]): Promise<any>;
/**

@@ -83,7 +83,7 @@ * Stop sharing NDEF data via peer-to-peer.

*/
static unshare(): Promise<any>;
unshare(): Promise<any>;
/**
* Erase a NDEF tag
*/
static erase(): Promise<any>;
erase(): Promise<any>;
/**

@@ -94,3 +94,3 @@ * Send a file to another device via NFC handover.

*/
static handover(uris: string[]): Promise<any>;
handover(uris: string[]): Promise<any>;
/**

@@ -100,3 +100,3 @@ * Stop sharing NDEF data via NFC handover.

*/
static stopHandover(): Promise<any>;
stopHandover(): Promise<any>;
/**

@@ -106,3 +106,3 @@ * Show the NFC settings on the device.

*/
static showSettings(): Promise<any>;
showSettings(): Promise<any>;
/**

@@ -112,3 +112,3 @@ * Check if NFC is available and enabled on this device.

*/
static enabled(): Promise<any>;
enabled(): Promise<any>;
/**

@@ -119,3 +119,3 @@ * Convert bytes to string

*/
static bytesToString(bytes: number[]): string;
bytesToString(bytes: number[]): string;
/**

@@ -126,3 +126,3 @@ * Convert string to bytes

*/
static stringToBytes(str: string): number[];
stringToBytes(str: string): number[];
/**

@@ -133,3 +133,3 @@ * Convert bytes to hex string

*/
static bytesToHexString(bytes: number[]): string;
bytesToHexString(bytes: number[]): string;
}

@@ -152,6 +152,6 @@ /**

static pluginRef: string;
static uriRecord(uri: string): any;
static textRecord(text: string): any;
static mimeMediaRecord(mimeType: string, payload: string): any;
static androidApplicationRecord(packageName: string): any;
uriRecord(uri: string): any;
textRecord(text: string): any;
mimeMediaRecord(mimeType: string, payload: string): any;
androidApplicationRecord(packageName: string): any;
}

@@ -7,2 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

};
import { Injectable } from '@angular/core';
import { Plugin, Cordova } from '@ionic-native/core';

@@ -24,3 +25,3 @@ /**

* ```
* import {NFC, Ndef} from 'ionic-native';
* import {NFC, Ndef} from '@ionic-native/nfc';
*

@@ -41,3 +42,3 @@ * let message = Ndef.textRecord('Hello world');

*/
NFC.addNdefListener = function (onSuccess, onFailure) { return; };
NFC.prototype.addNdefListener = function (onSuccess, onFailure) { return; };
/**

@@ -49,3 +50,3 @@ * Registers an event listener for tags matching any tag type.

*/
NFC.addTagDiscoveredListener = function (onSuccess, onFailure) { return; };
NFC.prototype.addTagDiscoveredListener = function (onSuccess, onFailure) { return; };
/**

@@ -58,3 +59,3 @@ * Registers an event listener for NDEF tags matching a specified MIME type.

*/
NFC.addMimeTypeListener = function (mimeType, onSuccess, onFailure) { return; };
NFC.prototype.addMimeTypeListener = function (mimeType, onSuccess, onFailure) { return; };
/**

@@ -66,3 +67,3 @@ * Registers an event listener for formatable NDEF tags.

*/
NFC.addNdefFormatableListener = function (onSuccess, onFailure) { return; };
NFC.prototype.addNdefFormatableListener = function (onSuccess, onFailure) { return; };
/**

@@ -73,3 +74,3 @@ * Qrites an NdefMessage to a NFC tag.

*/
NFC.write = function (message) { return; };
NFC.prototype.write = function (message) { return; };
/**

@@ -79,3 +80,3 @@ * Makes a NFC tag read only. **Warning** this is permanent.

*/
NFC.makeReadyOnly = function () { return; };
NFC.prototype.makeReadyOnly = function () { return; };
/**

@@ -86,3 +87,3 @@ * Shares an NDEF Message via peer-to-peer.

*/
NFC.share = function (message) { return; };
NFC.prototype.share = function (message) { return; };
/**

@@ -92,7 +93,7 @@ * Stop sharing NDEF data via peer-to-peer.

*/
NFC.unshare = function () { return; };
NFC.prototype.unshare = function () { return; };
/**
* Erase a NDEF tag
*/
NFC.erase = function () { return; };
NFC.prototype.erase = function () { return; };
/**

@@ -103,3 +104,3 @@ * Send a file to another device via NFC handover.

*/
NFC.handover = function (uris) { return; };
NFC.prototype.handover = function (uris) { return; };
/**

@@ -109,3 +110,3 @@ * Stop sharing NDEF data via NFC handover.

*/
NFC.stopHandover = function () { return; };
NFC.prototype.stopHandover = function () { return; };
/**

@@ -115,3 +116,3 @@ * Show the NFC settings on the device.

*/
NFC.showSettings = function () { return; };
NFC.prototype.showSettings = function () { return; };
/**

@@ -121,3 +122,3 @@ * Check if NFC is available and enabled on this device.

*/
NFC.enabled = function () { return; };
NFC.prototype.enabled = function () { return; };
/**

@@ -128,3 +129,3 @@ * Convert bytes to string

*/
NFC.bytesToString = function (bytes) { return; };
NFC.prototype.bytesToString = function (bytes) { return; };
/**

@@ -135,3 +136,3 @@ * Convert string to bytes

*/
NFC.stringToBytes = function (str) { return; };
NFC.prototype.stringToBytes = function (str) { return; };
;

@@ -143,4 +144,9 @@ /**

*/
NFC.bytesToHexString = function (bytes) { return; };
NFC.prototype.bytesToHexString = function (bytes) { return; };
;
NFC.decorators = [
{ type: Injectable },
];
/** @nocollapse */
NFC.ctorParameters = function () { return []; };
__decorate([

@@ -154,3 +160,3 @@ Cordova({

})
], NFC, "addNdefListener", null);
], NFC.prototype, "addNdefListener", null);
__decorate([

@@ -164,3 +170,3 @@ Cordova({

})
], NFC, "addTagDiscoveredListener", null);
], NFC.prototype, "addTagDiscoveredListener", null);
__decorate([

@@ -174,3 +180,3 @@ Cordova({

})
], NFC, "addMimeTypeListener", null);
], NFC.prototype, "addMimeTypeListener", null);
__decorate([

@@ -182,39 +188,39 @@ Cordova({

})
], NFC, "addNdefFormatableListener", null);
], NFC.prototype, "addNdefFormatableListener", null);
__decorate([
Cordova()
], NFC, "write", null);
], NFC.prototype, "write", null);
__decorate([
Cordova()
], NFC, "makeReadyOnly", null);
], NFC.prototype, "makeReadyOnly", null);
__decorate([
Cordova()
], NFC, "share", null);
], NFC.prototype, "share", null);
__decorate([
Cordova()
], NFC, "unshare", null);
], NFC.prototype, "unshare", null);
__decorate([
Cordova()
], NFC, "erase", null);
], NFC.prototype, "erase", null);
__decorate([
Cordova()
], NFC, "handover", null);
], NFC.prototype, "handover", null);
__decorate([
Cordova()
], NFC, "stopHandover", null);
], NFC.prototype, "stopHandover", null);
__decorate([
Cordova()
], NFC, "showSettings", null);
], NFC.prototype, "showSettings", null);
__decorate([
Cordova()
], NFC, "enabled", null);
], NFC.prototype, "enabled", null);
__decorate([
Cordova({ sync: true })
], NFC, "bytesToString", null);
], NFC.prototype, "bytesToString", null);
__decorate([
Cordova({ sync: true })
], NFC, "stringToBytes", null);
], NFC.prototype, "stringToBytes", null);
__decorate([
Cordova({ sync: true })
], NFC, "bytesToHexString", null);
], NFC.prototype, "bytesToHexString", null);
NFC = __decorate([

@@ -236,6 +242,6 @@ Plugin({

}
Ndef.uriRecord = function (uri) { return; };
Ndef.textRecord = function (text) { return; };
Ndef.mimeMediaRecord = function (mimeType, payload) { return; };
Ndef.androidApplicationRecord = function (packageName) { return; };
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; };
/**

@@ -253,16 +259,20 @@ * @private

Ndef.pluginRef = 'ndef';
Ndef.decorators = [
{ type: Injectable },
];
/** @nocollapse */
Ndef.ctorParameters = function () { return []; };
__decorate([
Cordova({ sync: true })
], Ndef, "uriRecord", null);
], Ndef.prototype, "uriRecord", null);
__decorate([
Cordova({ sync: true })
], Ndef, "textRecord", null);
], Ndef.prototype, "textRecord", null);
__decorate([
Cordova({ sync: true })
], Ndef, "mimeMediaRecord", null);
], Ndef.prototype, "mimeMediaRecord", null);
__decorate([
Cordova({ sync: true })
], Ndef, "androidApplicationRecord", null);
], Ndef.prototype, "androidApplicationRecord", null);
return Ndef;
}());
//# sourceMappingURL=index.js.map
{
"name": "@ionic-native/nfc",
"version": "3.0.0",
"version": "3.1.0-alpha.1",
"description": "Ionic Native - Native plugins for ionic apps",

@@ -9,6 +9,6 @@ "module": "index.js",

"license": "MIT",
"dependencies": {
"@ionic-native/core": "3.0.0"
},
"peerDependencies": {
"@angular/core": "2.2.1",
"@ionic-native/core": "3.1.0-alpha.1",
"@ionic-native/utils": "3.1.0-alpha.1",
"rxjs": "5.0.0-beta.12"

@@ -19,3 +19,6 @@ },

"url": "https://github.com/driftyco/ionic-native.git"
},
"scripts": {
"postinstall": "node -e \"require('@ionic-native/utils').install(require('./plugin-config.json'))\""
}
}
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