Comparing version 1.0.2 to 1.0.3
import { spread, mergeProps, template } from 'solid-js/web'; | ||
import { createSignal } from 'solid-js'; | ||
import Qr from 'qrcode'; | ||
import { toDataURL } from 'qrcode'; | ||
@@ -23,3 +23,3 @@ // src/index.tsx | ||
const generateQr = (text2) => { | ||
Qr.toDataURL(void 0, text2, options, (error, url) => { | ||
toDataURL(void 0, text2, options, (error, url) => { | ||
if (error) { | ||
@@ -26,0 +26,0 @@ console.error(error); |
// src/index.tsx | ||
import { createSignal } from "solid-js"; | ||
import Qr from "qrcode"; | ||
import { toDataURL } from "qrcode"; | ||
@@ -16,3 +16,3 @@ // src/defaultOptions.ts | ||
const generateQr = (text2) => { | ||
Qr.toDataURL(void 0, text2, options, (error, url) => { | ||
toDataURL(void 0, text2, options, (error, url) => { | ||
if (error) { | ||
@@ -19,0 +19,0 @@ console.error(error); |
import { spread, mergeProps, template } from 'solid-js/web'; | ||
import { createSignal } from 'solid-js'; | ||
import Qr from 'qrcode'; | ||
import { toDataURL } from 'qrcode'; | ||
@@ -23,3 +23,3 @@ // src/index.tsx | ||
const generateQr = (text2) => { | ||
Qr.toDataURL(void 0, text2, options, (error, url) => { | ||
toDataURL(void 0, text2, options, (error, url) => { | ||
if (error) { | ||
@@ -26,0 +26,0 @@ throw error; |
// src/index.tsx | ||
import { createSignal } from "solid-js"; | ||
import Qr from "qrcode"; | ||
import { toDataURL } from "qrcode"; | ||
@@ -16,3 +16,3 @@ // src/defaultOptions.ts | ||
const generateQr = (text2) => { | ||
Qr.toDataURL(void 0, text2, options, (error, url) => { | ||
toDataURL(void 0, text2, options, (error, url) => { | ||
if (error) { | ||
@@ -19,0 +19,0 @@ throw error; |
{ | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"name": "solid-qr", | ||
@@ -4,0 +4,0 @@ "description": "A minimal QR code image generator for SolidJS", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12522