adata-ui 2.0.45 → 2.0.46

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
  <script setup lang="ts">
2
- import * as QRCode from 'qrcode'
2
+ import { toCanvas } from 'qrcode'
3
3
  import { removeTrailingSlash } from '#adata-ui/components/utils/removeTrailingSlash'
4
4
 
5
5
  const props = defineProps<{
@@ -65,7 +65,7 @@ watch(isOpen, async (value) => {
65
65
  const canvas = document.getElementById('kaspiQr') as HTMLCanvasElement | null
66
66
  if (!canvas) return
67
67
 
68
- QRCode.toCanvas(
68
+ toCanvas(
69
69
  canvas,
70
70
  props.requestUrl,
71
71
  {
package/nuxt.config.ts CHANGED
@@ -71,6 +71,9 @@ export default defineNuxtConfig({
71
71
  },
72
72
 
73
73
  vite: {
74
+ optimizeDeps: {
75
+ include: ['qrcode']
76
+ },
74
77
  css: {
75
78
  preprocessorOptions: {
76
79
  scss: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.45",
4
+ "version": "2.0.46",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",