mirror of
https://github.com/frontendnetwork/vegancheck.me
synced 2024-11-10 06:24:13 +00:00
feat: Udate to new NPM package
This commit is contained in:
parent
9ca3f65e78
commit
7317fc6ddd
5 changed files with 11 additions and 10 deletions
10
package-lock.json
generated
10
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
1
public/workbox-d5a6b829.js.map
Normal file
1
public/workbox-d5a6b829.js.map
Normal file
File diff suppressed because one or more lines are too long
|
@ -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"
|
||||
);
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue