Skip to content

Commit

Permalink
fix: svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoaugustin committed May 16, 2024
1 parent 2ee4033 commit 809ab21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"exports": {
".": {
"types": "./dist/index.d.js",
"default": "./dist/index.js"
"svelte": "./dist/index.js"
}
},
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions packages/svelte/src/index.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { getSVGData, type Options } from '@qr-x/core'
import qrXCore from '@qr-x/core'
import type { Options } from '@qr-x/core'
import type { SVGAttributes } from 'svelte/elements'
type Props = SVGAttributes<never> & Options
Expand All @@ -12,7 +13,7 @@
export let gradient: Options['gradient'] = undefined
export let fillImage: Options['fillImage'] = undefined
$: svgData = getSVGData({
$: svgData = qrXCore.getSVGData({
data,
level,
shapes,
Expand Down

0 comments on commit 809ab21

Please sign in to comment.