Socket
Socket
Sign inDemoInstall

swissqrbill

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swissqrbill - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2-beta.0

6

lib/pdf/index.d.ts

@@ -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

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