reykit 1.0.137 → 1.0.138

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/dist/index.js CHANGED
@@ -49436,7 +49436,7 @@ async function bI(a) {
49436
49436
  const i = await cC.toDataURL(a), d = await (await fetch(i)).blob();
49437
49437
  Yj(d);
49438
49438
  }
49439
- async function xI(a, i) {
49439
+ async function xI(a, i = "qrcode.png") {
49440
49440
  const u = await cC.toDataURL(a), m = await (await fetch(u)).blob();
49441
49441
  kj(m, i);
49442
49442
  }
@@ -16,7 +16,7 @@ export declare function openQrcode(text: string): Promise<void>;
16
16
  * @param text - QRCode Text.
17
17
  * @param fileName - File name.
18
18
  */
19
- export declare function downloadQrcode(text: string, fileName: string): Promise<void>;
19
+ export declare function downloadQrcode(text: string, fileName?: string): Promise<void>;
20
20
  /**
21
21
  * Set qrcode URL to element `src` attribute.
22
22
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reykit",
3
- "version": "1.0.137",
3
+ "version": "1.0.138",
4
4
  "description": "Kit method set.",
5
5
  "author": "reyxbo",
6
6
  "keywords": [