swissqrbill
Advanced tools
Comparing version 4.0.1 to 4.0.2-beta.0
@@ -1,3 +0,3 @@ | ||
export * from "./swissqrbill"; | ||
export * from "./swissqrcode"; | ||
export * from "./table"; | ||
export * from "./swissqrbill.js"; | ||
export * from "./swissqrcode.js"; | ||
export * from "./table.js"; |
/// <reference types="pdfkit" /> | ||
import type { Data, PDFOptions } from '../shared/types'; | ||
import type { Data, PDFOptions } from '../shared/types.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * The SwissQRBill class creates the Payment Part with the QR Code. It can be attached to any PDFKit document instance |
/// <reference types="pdfkit" /> | ||
import type { Data } from "swissqrbill:shared:types"; | ||
import type { Data } from '../shared/types.js'; | ||
export declare class SwissQRCode { | ||
@@ -4,0 +4,0 @@ private size; |
import { cleanData } from "../shared/cleaner.js"; | ||
import { renderQRCode, renderSwissCross } from "../shared/qr-code.js"; | ||
import { validateData } from "../shared/validator.js"; | ||
import { mm2pt } from "../shared/utils.js"; | ||
import { validateData } from "../shared/validator.js"; | ||
class SwissQRCode { | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import type { Data } from "./types"; | ||
import type { Data } from './types.js'; | ||
export declare function cleanData(data: Data): Data; | ||
export declare function removeSpaces(text: string): string; | ||
export declare function removeLineBreaks(text: string): string; |
@@ -1,4 +0,4 @@ | ||
import type { Data } from "./types"; | ||
import type { Data } from "swissqrbill:shared:types.js"; | ||
export declare function generateQRData(data: Data): string; | ||
export declare function renderQRCode(data: Data, size: number, renderBlockFunction: (x: number, y: number, blockSize: number) => void): void; | ||
export declare function renderSwissCross(size: number, renderRectFunction: (x: number, y: number, width: number, height: number, fillColor: string) => void): void; |
import { cleanData } from "./cleaner.js"; | ||
import { qrcodegen } from "./qr-code-generator.js"; | ||
import { validateData } from "./validator.js"; | ||
import { getReferenceType, mm2pt } from "./utils.js"; | ||
import { qrcodegen } from "./qr-code-generator.js"; | ||
function generateQRData(data) { | ||
@@ -6,0 +6,0 @@ var _a, _b, _c, _d, _e, _f, _g; |
@@ -1,2 +0,2 @@ | ||
import type { Data } from "./types"; | ||
import type { Data } from './types.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Validate the provided data. |
@@ -1,2 +0,2 @@ | ||
export * from "./swissqrbill"; | ||
export * from "./swissqrcode"; | ||
export * from "./swissqrbill.js"; | ||
export * from "./swissqrcode.js"; |
import { SVG } from "svg-engine"; | ||
import type { Data, SVGOptions } from '../shared/types'; | ||
import type { Data, SVGOptions } from '../shared/types.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * The SwissQRBill class creates the Payment Part with the QR Code as an SVG. |
@@ -5,5 +5,5 @@ import { SVG, calc } from "svg-engine"; | ||
import { validateData } from "../shared/validator.js"; | ||
import { calculateTextWidth } from "./character-width.js"; | ||
import { SwissQRCode } from "./swissqrcode.js"; | ||
import { formatIBAN, mm2px, formatReference, formatAmount, getReferenceType } from "../shared/utils.js"; | ||
import { calculateTextWidth } from "./character-width.js"; | ||
class SwissQRBill { | ||
@@ -10,0 +10,0 @@ constructor(data, options) { |
import { SVG } from "svg-engine"; | ||
import type { Data } from "swissqrbill:shared:types"; | ||
import type { Data } from '../shared/types.js'; | ||
export declare class SwissQRCode { | ||
@@ -4,0 +4,0 @@ instance: SVG; |
{ | ||
"version": "4.0.1", | ||
"version": "4.0.2-beta.0", | ||
"type": "module", | ||
@@ -4,0 +4,0 @@ "name": "swissqrbill", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
448662
1