feat: Udate to new NPM package

This commit is contained in:
Philip 2024-01-24 22:09:02 +01:00
parent 9ca3f65e78
commit 7317fc6ddd
5 changed files with 11 additions and 10 deletions

10
package-lock.json generated
View file

@ -10,7 +10,7 @@
"dependencies": {
"@ducanh2912/next-pwa": "^9.7.2",
"@ericblade/quagga2": "^1.8.4",
"@frontendnetwork/vegancheck": "^1.1.45",
"@frontendnetwork/veganify": "^1.1.49",
"@types/node": "20.11.0",
"@types/react-dom": "18.2.18",
"eslint-config-sznm": "^2.0.2",
@ -2008,10 +2008,10 @@
"tslib": "^2.4.0"
}
},
"node_modules/@frontendnetwork/vegancheck": {
"version": "1.1.45",
"resolved": "https://registry.npmjs.org/@frontendnetwork/vegancheck/-/vegancheck-1.1.45.tgz",
"integrity": "sha512-IMkeQcGtjbQrSVM2Q6Qp8af6EvA40z5KoWzJn3Tp80pCXO7gs4ow6KSVQaTRm85Pu737aQXLvmysTO6vBh5qNw=="
"node_modules/@frontendnetwork/veganify": {
"version": "1.1.49",
"resolved": "https://registry.npmjs.org/@frontendnetwork/veganify/-/veganify-1.1.49.tgz",
"integrity": "sha512-vqIM5g5SKPDuFPgSzSz6JWChbgZHMh1JuGtmI5rwGxqdzUy/sLfki541CaW3mabVNVJZFs76T76EaiQ0lOiu3Q=="
},
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.13",

View file

@ -13,7 +13,7 @@
"dependencies": {
"@ducanh2912/next-pwa": "^9.7.2",
"@ericblade/quagga2": "^1.8.4",
"@frontendnetwork/vegancheck": "^1.1.45",
"@frontendnetwork/veganify": "^1.1.49",
"@types/node": "20.11.0",
"@types/react-dom": "18.2.18",
"eslint-config-sznm": "^2.0.2",

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import VeganCheck from "@frontendnetwork/vegancheck";
import Veganify from "@frontendnetwork/veganify";
import Image from "next/image";
import { useTranslations } from "next-intl";
import React, { useState, useEffect, useRef } from "react";
@ -54,7 +54,7 @@ const ProductSearch = () => {
setLoading(true);
try {
const data = await VeganCheck.getProductByBarcode(
const data = await Veganify.getProductByBarcode(
barcode,
process.env.NEXT_PUBLIC_STAGING === "true"
);

View file

@ -1,4 +1,4 @@
import VeganCheck from "@frontendnetwork/vegancheck";
import Veganify from "@frontendnetwork/veganify";
import Image from "next/image";
import { useTranslations } from "next-intl";
import React, { useState, FormEvent } from "react";
@ -23,7 +23,7 @@ const IngredientsCheck = () => {
const checkIngredients = async () => {
setLoading(true);
try {
const data = await VeganCheck.checkIngredientsList(
const data = await Veganify.checkIngredientsList(
ingredients.value,
process.env.NEXT_PUBLIC_STAGING === "true" ? true : false
);