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

@types/qrcode

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/qrcode - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

70

qrcode/index.d.ts

@@ -133,2 +133,6 @@ // Type definitions for qrcode 0.8.2

*/
export function toCanvas(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[]): Promise<any>;
/**
* Draws qr code symbol to canvas.
*/
export function toCanvas(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[], callback: (error: Error) => void): void;

@@ -138,2 +142,6 @@ /**

*/
export function toCanvas(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[], options: QRCodeOptions): Promise<any>;
/**
* Draws qr code symbol to canvas.
*/
export function toCanvas(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[], options: QRCodeOptions, callback: (error: Error) => void): void;

@@ -143,2 +151,6 @@ /**

*/
export function toCanvas(text: string | QRCodeSegment[]): Promise<any>;
/**
* Draws qr code symbol to canvas.
*/
export function toCanvas(text: string | QRCodeSegment[], callback: (error: Error, canvas: HTMLCanvasElement) => void): void;

@@ -148,2 +160,6 @@ /**

*/
export function toCanvas(text: string | QRCodeSegment[], options: QRCodeOptions): Promise<any>;
/**
* Draws qr code symbol to canvas.
*/
export function toCanvas(text: string | QRCodeSegment[], options: QRCodeOptions, callback: (error: Error, canvas: HTMLCanvasElement) => void): void;

@@ -153,2 +169,6 @@ /**

*/
export function toCanvas(canvas: any, text: string | QRCodeSegment[]): Promise<any>;
/**
* Draws qr code symbol to node canvas.
*/
export function toCanvas(canvas: any, text: string | QRCodeSegment[], callback: (error: Error) => void): void;

@@ -158,2 +178,6 @@ /**

*/
export function toCanvas(canvas: any, text: string | QRCodeSegment[], options: QRCodeOptions): Promise<any>;
/**
* Draws qr code symbol to node canvas.
*/
export function toCanvas(canvas: any, text: string | QRCodeSegment[], options: QRCodeOptions, callback: (error: Error) => void): void;

@@ -164,2 +188,6 @@

*/
export function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[]): Promise<any>;
/**
* Returns a Data URI containing a representation of the QR Code image.
*/
export function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[], callback: (error: Error, url: string) => void): void;

@@ -169,2 +197,6 @@ /**

*/
export function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[], options: QRCodeToDataURLOptions): Promise<any>;
/**
* Returns a Data URI containing a representation of the QR Code image.
*/
export function toDataURL(canvasElement: HTMLCanvasElement, text: string | QRCodeSegment[], options: QRCodeToDataURLOptions, callback: (error: Error, url: string) => void): void;

@@ -174,2 +206,6 @@ /**

*/
export function toDataURL(text: string | QRCodeSegment[]): Promise<any>;
/**
* Returns a Data URI containing a representation of the QR Code image.
*/
export function toDataURL(text: string | QRCodeSegment[], callback: (error: Error, url: string) => void): void;

@@ -179,2 +215,6 @@ /**

*/
export function toDataURL(text: string | QRCodeSegment[], options: QRCodeToDataURLOptions): Promise<any>;
/**
* Returns a Data URI containing a representation of the QR Code image.
*/
export function toDataURL(text: string | QRCodeSegment[], options: QRCodeToDataURLOptions, callback: (error: Error, url: string) => void): void;

@@ -186,2 +226,7 @@

*/
export function toString(text: string | QRCodeSegment[]): Promise<any>;
/**
* Returns a string representation of the QR Code.
* If choosen output format is svg it will returns a string containing xml code.
*/
export function toString(text: string | QRCodeSegment[], callback: (error: Error, string: string) => void): void;

@@ -192,2 +237,7 @@ /**

*/
export function toString(text: string | QRCodeSegment[], options: QRCodeToStringOptions): Promise<any>;
/**
* Returns a string representation of the QR Code.
* If choosen output format is svg it will returns a string containing xml code.
*/
export function toString(text: string | QRCodeSegment[], options: QRCodeToStringOptions, callback: (error: Error, string: string) => void): void;

@@ -200,2 +250,8 @@

*/
export function toFile(path: string, text: string | QRCodeSegment[]): Promise<any>;
/**
* Saves QR Code to image file.
* If options.type is not specified, the format will be guessed from file extension.
* Recognized extensions are png, svg, txt.
*/
export function toFile(path: string, text: string | QRCodeSegment[], callback: (error: Error) => void): void;

@@ -207,2 +263,8 @@ /**

*/
export function toFile(path: string, text: string | QRCodeSegment[], options: QRCodeToFileOptions): Promise<any>;
/**
* Saves QR Code to image file.
* If options.type is not specified, the format will be guessed from file extension.
* Recognized extensions are png, svg, txt.
*/
export function toFile(path: string, text: string | QRCodeSegment[], options: QRCodeToFileOptions, callback: (error: Error) => void): void;

@@ -213,2 +275,6 @@

*/
export function toFileStream(stream: stream.Writable, text: string | QRCodeSegment[]): Promise<any>;
/**
* Writes QR Code image to stream. Only works with png format for now.
*/
export function toFileStream(stream: stream.Writable, text: string | QRCodeSegment[], callback: (error: Error) => void): void;

@@ -218,2 +284,6 @@ /**

*/
export function toFileStream(stream: stream.Writable, text: string | QRCodeSegment[], options: QRCodeOptions): Promise<any>;
/**
* Writes QR Code image to stream. Only works with png format for now.
*/
export function toFileStream(stream: stream.Writable, text: string | QRCodeSegment[], options: QRCodeOptions, callback: (error: Error) => void): void;

5

qrcode/package.json
{
"name": "@types/qrcode",
"version": "0.8.0",
"version": "0.8.1",
"description": "TypeScript definitions for qrcode",

@@ -21,5 +21,4 @@ "license": "MIT",

},
"peerDependencies": {},
"typesPublisherContentHash": "cb526b27eb19d1d21c233c98f2ffed1847deb44bdcde33d34f1943ef49318a12",
"typesPublisherContentHash": "b4ccf41988bd6c44b2027b62842d8f7b22731b46b653de810b270e003f19bf9b",
"typeScriptVersion": "2.0"
}

2

qrcode/README.md

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

Additional Details
* Last updated: Fri, 02 Jun 2017 13:25:33 GMT
* Last updated: Wed, 31 Jan 2018 21:25:50 GMT
* Dependencies: stream, node

@@ -14,0 +14,0 @@ * Global values: none

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