@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.
package/README.md CHANGED
@@ -130,7 +130,7 @@ const qrCode = new QRCodeStyling({
130
130
  qrOptions: {
131
131
  mode: Mode.kanji
132
132
  },
133
- stringToBytesFuncs,
133
+ stringToBytesFuncs
134
134
  // ...other options
135
135
  });
136
136
  ```
@@ -1,5 +1,5 @@
1
- import { ExtensionFunction, Options, QRCode } from "../types";
2
- import { RequiredOptions } from "./QROptions";
1
+ import { ExtensionFunction, Options, QRCode } from "../types/index.js";
2
+ import { RequiredOptions } from "./QROptions.js";
3
3
  export declare class QRCodeStyling {
4
4
  /** @ignore */
5
5
  _options: RequiredOptions;
@@ -1,4 +1,4 @@
1
- import { CanvasOptions, DotType, ErrorCorrectionLevel, Gradient, Mode, Options, ShapeType, TypeNumber } from "../types";
1
+ import { CanvasOptions, DotType, ErrorCorrectionLevel, Gradient, Mode, Options, ShapeType, TypeNumber } from "../types/index.js";
2
2
  export interface RequiredOptions extends Options {
3
3
  document: Document;
4
4
  shape: ShapeType;
@@ -1,5 +1,5 @@
1
- import { FilterFunction, Gradient, QRCode } from "../types";
2
- import { RequiredOptions } from "./QROptions";
1
+ import { FilterFunction, Gradient, QRCode } from "../types/index.js";
2
+ import { RequiredOptions } from "./QROptions.js";
3
3
  export declare class QRSVG {
4
4
  /** @ignore */
5
5
  _element: SVGElement;
@@ -1,4 +1,4 @@
1
- import { BasicFigureDrawArgs, CornerDotType, DrawArgs, RotateFigureArgs } from "../../types";
1
+ import { BasicFigureDrawArgs, CornerDotType, DrawArgs, RotateFigureArgs } from "../../types/index.js";
2
2
  export declare class QRCornerDot {
3
3
  _element?: SVGElement;
4
4
  _svg: SVGElement;
@@ -1,4 +1,4 @@
1
- import { CornerSquareType, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types";
1
+ import { CornerSquareType, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types/index.js";
2
2
  export declare class QRCornerSquare {
3
3
  _element?: SVGElement;
4
4
  _svg: SVGElement;
@@ -1,4 +1,4 @@
1
- import { DotType, GetNeighbor, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types";
1
+ import { DotType, GetNeighbor, DrawArgs, BasicFigureDrawArgs, RotateFigureArgs } from "../../types/index.js";
2
2
  export declare class QRDot {
3
3
  _element?: SVGElement;
4
4
  _svg: SVGElement;
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents";
2
- import { QRCodeStyling } from "./core/QRCodeStyling";
3
- import * as _browserUtils from "./tools/browserUtils";
1
+ import { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents.js";
2
+ import { QRCodeStyling } from "./core/QRCodeStyling.js";
3
+ import * as _browserUtils from "./tools/browserUtils.js";
4
4
  export declare const browserUtils: typeof _browserUtils | undefined;
5
- export * from "./types";
5
+ export * from "./types/index.js";
6
6
  export { ErrorCorrectionPercents, QRCodeStyling };
package/lib/node.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { RequiredOptions } from "./core/QROptions";
2
- import { QRCodeStyling as _QRCodeStyling } from "./index";
3
- export { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents";
4
- export * from "./types";
5
- import type * as _browserUtils from "./tools/browserUtils";
1
+ import { RequiredOptions } from "./core/QROptions.js";
2
+ import { QRCodeStyling as _QRCodeStyling } from "./index.js";
3
+ export { ErrorCorrectionPercents } from "./constants/errorCorrectionPercents.js";
4
+ export * from "./types/index.js";
5
+ import type * as _browserUtils from "./tools/browserUtils.js";
6
6
  export declare const browserUtils: typeof _browserUtils | undefined;
7
7
  export declare class QRCodeStyling extends _QRCodeStyling {
8
8
  constructor(options: RequiredOptions);