@liquid-js/qr-code-styling 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { Options } from "../types";
2
+ import { Options } from "../types/index.js";
3
3
  export declare const browserImageTools: {
4
4
  toDataURL(url: string | Buffer | Blob): Promise<string>;
5
5
  getSize(options: Options): Promise<{
@@ -1,5 +1,5 @@
1
- import { QRCodeStyling } from "../core/QRCodeStyling";
2
- import { CanvasOptions, FileExtension } from "../types";
1
+ import { QRCodeStyling } from "../core/QRCodeStyling.js";
2
+ import { CanvasOptions, FileExtension } from "../types/index.js";
3
3
  export declare function drawToCanvas(qrCode: QRCodeStyling, options?: CanvasOptions): {
4
4
  canvas: HTMLCanvasElement;
5
5
  canvasDrawingPromise: Promise<void> | undefined;
@@ -1,2 +1,2 @@
1
- import { Mode } from "../types";
1
+ import { Mode } from "../types/index.js";
2
2
  export declare function getMode(data: string): Mode;
@@ -1,2 +1,2 @@
1
- import { UnknownObject } from "../types";
1
+ import { UnknownObject } from "../types/index.js";
2
2
  export declare function mergeDeep(target: UnknownObject, ...sources: UnknownObject[]): UnknownObject;
@@ -1,3 +1,3 @@
1
- import { RequiredCanvasOptions, RequiredOptions } from "../core/QROptions";
1
+ import { RequiredCanvasOptions, RequiredOptions } from "../core/QROptions.js";
2
2
  export declare function sanitizeOptions(options: RequiredOptions): RequiredOptions;
3
3
  export declare function sanitizeCanvasOptions(options: RequiredCanvasOptions): RequiredCanvasOptions;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { browserImageTools } from "../tools/browserImageTools";
2
+ import { browserImageTools } from "../tools/browserImageTools.js";
3
3
  export interface UnknownObject {
4
4
  [key: string]: any;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liquid-js/qr-code-styling",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Add a style and an image to your QR code",
5
5
  "type": "module",
6
6
  "main": "./lib/qr-code-styling-node.js",