minimal-qr-code
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -1,133 +0,6 @@ | ||
declare module "QRBitBuffer" { | ||
export class QRBitBuffer { | ||
buffer: number[]; | ||
private length; | ||
get(index: number): boolean; | ||
put(num: number, length: number): void; | ||
getLengthInBits(): number; | ||
putBit(bit: boolean): void; | ||
} | ||
} | ||
declare module "QRMode" { | ||
export enum QRMode { | ||
MODE_NUMBER = 1, | ||
MODE_ALPHA_NUM = 2, | ||
MODE_8BIT_BYTE = 4, | ||
MODE_KANJI = 8 | ||
} | ||
} | ||
declare module "QR8bitByte" { | ||
import { QRBitBuffer } from "QRBitBuffer"; | ||
import { QRMode } from "QRMode"; | ||
export class QR8bitByte { | ||
mode: QRMode; | ||
data: string; | ||
constructor(data: string); | ||
getLength(): number; | ||
write(buffer: QRBitBuffer): void; | ||
toUTF8(str: string): string; | ||
} | ||
} | ||
declare module "QRErrorCorrectLevel" { | ||
export enum QRErrorCorrectLevel { | ||
L = 1, | ||
M = 0, | ||
Q = 3, | ||
H = 2 | ||
} | ||
} | ||
declare module "QRMath" { | ||
export class QRMath { | ||
private static EXP_TABLE; | ||
private static LOG_TABLE; | ||
static glog(n: number): any; | ||
static gexp(n: number): any; | ||
} | ||
} | ||
declare module "QRPolynomial" { | ||
export class QRPolynomial { | ||
private num; | ||
constructor(num: number[], shift: number); | ||
get(index: number): number; | ||
getLength(): number; | ||
multiply(e: QRPolynomial): QRPolynomial; | ||
mod(e: QRPolynomial): QRPolynomial; | ||
} | ||
} | ||
declare module "QRRSBlock" { | ||
import { QRErrorCorrectLevel } from "QRErrorCorrectLevel"; | ||
export class QRRSBlock { | ||
totalCount: number; | ||
dataCount: number; | ||
constructor(totalCount: number, dataCount: number); | ||
static RS_BLOCK_TABLE: number[][]; | ||
static getRSBlocks(typeNumber: number, errorCorrectLevel: QRErrorCorrectLevel): QRRSBlock[]; | ||
static getRsBlockTable(typeNumber: number, errorCorrectLevel: QRErrorCorrectLevel): number[] | undefined; | ||
} | ||
} | ||
declare module "QRMaskPattern" { | ||
export enum QRMaskPattern { | ||
PATTERN000 = 0, | ||
PATTERN001 = 1, | ||
PATTERN010 = 2, | ||
PATTERN011 = 3, | ||
PATTERN100 = 4, | ||
PATTERN101 = 5, | ||
PATTERN110 = 6, | ||
PATTERN111 = 7 | ||
} | ||
} | ||
declare module "QRUtil" { | ||
import { QRCode } from "QRCode"; | ||
import { QRMaskPattern } from "QRMaskPattern"; | ||
import { QRMode } from "QRMode"; | ||
import { QRPolynomial } from "QRPolynomial"; | ||
export class QRUtil { | ||
static PATTERN_POSITION_TABLE: number[][]; | ||
static G15: number; | ||
static G18: number; | ||
static G15_MASK: number; | ||
static getBCHTypeInfo(data: number): number; | ||
static getBCHTypeNumber(data: number): number; | ||
static getBCHDigit(data: number): number; | ||
static getPatternPosition(typeNumber: number): number[]; | ||
static getMask(maskPattern: QRMaskPattern, i: number, j: number): boolean; | ||
static getErrorCorrectPolynomial(errorCorrectLength: number): QRPolynomial; | ||
static getLengthInBits(mode: QRMode, type: number): 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16; | ||
static getLostPoint(qrCode: QRCode): number; | ||
} | ||
} | ||
declare module "QRCode" { | ||
import { QRErrorCorrectLevel } from "QRErrorCorrectLevel"; | ||
export class QRCode { | ||
private readonly typeNumber; | ||
private readonly errorCorrectLevel; | ||
private modules; | ||
private moduleCount; | ||
private dataCache; | ||
private dataList; | ||
static PAD0: number; | ||
static PAD1: number; | ||
constructor(typeNumber: number, errorCorrectLevel: QRErrorCorrectLevel); | ||
addData(data: string): void; | ||
isDark(row: number, col: number): any; | ||
getModuleCount(): number; | ||
make(): void; | ||
makeImpl(test: boolean, maskPattern: number): void; | ||
setupPositionProbePattern(row: number, col: number): void; | ||
getBestMaskPattern(): number; | ||
setupTimingPattern(): void; | ||
setupPositionAdjustPattern(): void; | ||
setupTypeNumber(test: boolean): void; | ||
setupTypeInfo(test: boolean, maskPattern: number): void; | ||
mapData(data: number[], maskPattern: number): void; | ||
} | ||
} | ||
declare module "index" { | ||
import { QRErrorCorrectLevel } from "QRErrorCorrectLevel"; | ||
export function makeQR(data: string, typeNumber: number, errorCorrectLevel: QRErrorCorrectLevel): { | ||
size: number; | ||
isDark: (row: number, col: number) => any; | ||
}; | ||
export { QRErrorCorrectLevel }; | ||
} | ||
import { QRErrorCorrectLevel } from './QRErrorCorrectLevel'; | ||
export declare function makeQR(data: string, typeNumber: number, errorCorrectLevel: QRErrorCorrectLevel): { | ||
size: number; | ||
isDark: (row: number, col: number) => any; | ||
}; | ||
export { QRErrorCorrectLevel }; |
{ | ||
"name": "minimal-qr-code", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Simple QR code generator library.", | ||
@@ -18,4 +18,4 @@ "author": "Jaedson Barbosa Serafim", | ||
"scripts": { | ||
"build": "npx esbuild src/index.ts --outfile=dist/index.js --bundle --minify --format=esm", | ||
"postbuild": "npx tsc --emitDeclarationOnly --outFile dist/index.d.ts" | ||
"build": "esbuild src/index.ts --outfile=dist/index.js --bundle --minify --format=esm", | ||
"postbuild": "tsc" | ||
}, | ||
@@ -22,0 +22,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14
17996
163
1