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

@types/phonegap-nfc

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

@types/phonegap-nfc - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

60

phonegap-nfc/index.d.ts

@@ -17,4 +17,4 @@ interface Document {

interface Tag {
id: Array<number>;
techTypes: Array<string>;
id: number[];
techTypes: string[];
type: string;

@@ -32,11 +32,11 @@ date: string;

*/
type: Array<number>;
type: number[];
/**
* byte array, containing zero to 255 bytes, must not be null
*/
id: Array<number>;
id: number[];
/**
* byte array, containing zero to (2 ** 32 - 1) bytes, must not be null
*/
payload: Array<number>;
payload: number[];
}

@@ -48,3 +48,3 @@

maxSize: number;
ndefMessage: Array<NdefRecord>;
ndefMessage: NdefRecord[];
}

@@ -65,3 +65,3 @@

*/
protocols: Array<string>;
protocols: string[];

@@ -78,3 +78,3 @@ /**

*/
encodePayload(uri: string): Array<number>;
encodePayload(uri: string): number[];
}

@@ -95,3 +95,3 @@

*/
encodePayload(text: string, lang: string, encoding: string): Array<number>;
encodePayload(text: string, lang: string, encoding: string): number[];
}

@@ -112,9 +112,9 @@

RTD_TEXT: Array<number>; // "T"
RTD_URI: Array<number>; // "U"
RTD_SMART_POSTER: Array<number>; // "Sp"
RTD_ALTERNATIVE_CARRIER: Array<number>; // "ac"
RTD_HANDOVER_CARRIER: Array<number>; // "Hc"
RTD_HANDOVER_REQUEST: Array<number>; // "Hr"
RTD_HANDOVER_SELECT: Array<number>; // "Hs"
RTD_TEXT: number[]; // "T"
RTD_URI: number[]; // "U"
RTD_SMART_POSTER: number[]; // "Sp"
RTD_ALTERNATIVE_CARRIER: number[]; // "ac"
RTD_HANDOVER_CARRIER: number[]; // "Hc"
RTD_HANDOVER_REQUEST: number[]; // "Hr"
RTD_HANDOVER_SELECT: number[]; // "Hs"

@@ -135,3 +135,3 @@ uriHelper: UriHelper;

*/
record(tnf: number, type: Array<number>, id: Array<number>, payload: Array<number>): NdefRecord;
record(tnf: number, type: number[], id: number[], payload: number[]): NdefRecord;

@@ -147,3 +147,3 @@ /**

*/
textRecord(text: string, languageCode: string, id: Array<number>): NdefRecord;
textRecord(text: string, languageCode: string, id: number[]): NdefRecord;

@@ -158,3 +158,3 @@ /**

*/
uriRecord(uri: string, id: Array<number>): NdefRecord;
uriRecord(uri: string, id: number[]): NdefRecord;

@@ -186,3 +186,3 @@ /**

*/
absoluteUriRecord(uri: string, payload: Array<number>, id: Array<number>): NdefRecord;
absoluteUriRecord(uri: string, payload: number[], id: number[]): NdefRecord;

@@ -196,3 +196,3 @@ /**

*/
mimeMediaRecord(mimeType: string, payload: Array<number>, id: Array<number>): NdefRecord;
mimeMediaRecord(mimeType: string, payload: number[], id: number[]): NdefRecord;

@@ -207,3 +207,3 @@ /**

*/
smartPoster(ndefRecords: Array<NdefRecord>, id: Array<number>): NdefRecord;
smartPoster(ndefRecords: NdefRecord[], id: number[]): NdefRecord;

@@ -231,3 +231,3 @@ /**

*/
encodeMessage(ndefRecords: Array<NdefRecord>): Array<number>;
encodeMessage(ndefRecords: NdefRecord[]): number[];

@@ -243,3 +243,3 @@ /**

*/
decodeMessage(bytes: Array<number>): Array<NdefRecord>;
decodeMessage(bytes: number[]): NdefRecord[];

@@ -277,3 +277,3 @@ /**

*/
bytesToString(bytes: Array<number>): string;
bytesToString(bytes: number[]): string;

@@ -284,3 +284,3 @@ /**

*/
stringToBytes(string: string): Array<number>;
stringToBytes(string: string): number[];

@@ -291,3 +291,3 @@ /**

*/
bytesToHexString(bytes: Array<number>): string;
bytesToHexString(bytes: number[]): string;
}

@@ -351,3 +351,3 @@

*/
write(ndefMessage: Array<NdefRecord>, win?: () => void, fail?: () => void): void;
write(ndefMessage: NdefRecord[], win?: () => void, fail?: () => void): void;

@@ -370,3 +370,3 @@ /**

*/
share(ndefMessage: Array<NdefRecord>, win?: () => void, fail?: () => void): void;
share(ndefMessage: NdefRecord[], win?: () => void, fail?: () => void): void;

@@ -389,3 +389,3 @@ /**

*/
handover(uris: string | Array<string>, win?: () => void, fail?: () => void): void;
handover(uris: string | string[], win?: () => void, fail?: () => void): void;

@@ -392,0 +392,0 @@ /**

{
"name": "@types/phonegap-nfc",
"version": "0.0.35",
"version": "0.0.36",
"description": "TypeScript definitions for phonegap-nfc",

@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/phonegap-nfc",

"dependencies": {},
"typesPublisherContentHash": "555006dc166e41ba250cc66d0e031b9cfa692302007e3c65f49c77c21bb0efae",
"typesPublisherContentHash": "e7dbe3d4d569fa33eda65027f732bf6ba226b82e0cbaa0ccd258fef3c8bbe3db",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Last updated: Mon, 20 Nov 2023 23:36:24 GMT
* Dependencies: none

@@ -14,0 +14,0 @@

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