Skip to content
Snippets Groups Projects
Unverified Commit 56e2734f authored by Zdravko Iliev's avatar Zdravko Iliev
Browse files

fix: remove /index in easyqrcode-nodejs as it is fixed it 4.5.1

parent f05f25c2
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ const generateQrCode = (text, qrCodeOptions, templateOptions) => {
* @returns
*/
const generateNodeJSQrCode = (defaultOptions, qrCodeOptions, templateOptions) => __awaiter(void 0, void 0, void 0, function* () {
const QRCodeNodeJS = yield Promise.resolve().then(() => __importStar(require("easyqrcodejs-nodejs/index.js")));
const QRCodeNodeJS = yield Promise.resolve().then(() => __importStar(require("easyqrcodejs-nodejs")));
defaultOptions["correctLevel"] =
QRCodeNodeJS.CorrectLevel[qrCodeOptions.correctionLevel]; // L, M, Q, H
const qrcode = new QRCodeNodeJS.default(defaultOptions);
......
......@@ -210,7 +210,7 @@ const generateNodeJSQrCode = async (
qrCodeOptions: QrCodeOptions,
templateOptions: TemplateOptions
): Promise<string> => {
const QRCodeNodeJS = await import("easyqrcodejs-nodejs/index.js");
const QRCodeNodeJS = await import("easyqrcodejs-nodejs");
defaultOptions["correctLevel"] =
QRCodeNodeJS.CorrectLevel[qrCodeOptions.correctionLevel]; // L, M, Q, H
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment