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 3.6.1 to 3.7.0

2

index.d.ts

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

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

@@ -20,0 +20,0 @@ *

@@ -1,6 +0,11 @@

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -32,3 +37,3 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;

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

@@ -45,6 +50,9 @@ *

*/
export var NFC = (function (_super) {
var NFC = (function (_super) {
__extends(NFC, _super);
/**
*@{ NFC } class methods
*/
function NFC() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}

@@ -152,143 +160,154 @@ /**

;
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'
}),
__metadata('design:paramtypes', [])
], NFC);
return NFC;
}(IonicNativePlugin));
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'
})
/**
*@{ NFC } class methods
*/
], NFC);
export { NFC };
/**
* @hidden
*/
export var Ndef = (function (_super) {
var Ndef = (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() {
_super.apply(this, arguments);
return _super !== null && _super.apply(this, arguments) || this;
}

@@ -299,41 +318,49 @@ Ndef.prototype.uriRecord = function (uri) { 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'
}),
__metadata('design:paramtypes', [])
], Ndef);
return Ndef;
}(IonicNativePlugin));
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);
export { Ndef };
//# sourceMappingURL=index.js.map
{
"name": "@ionic-native/nfc",
"version": "3.6.1",
"version": "3.7.0",
"description": "Ionic Native - Native plugins for ionic apps",

@@ -5,0 +5,0 @@ "module": "index.js",

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