Skip to content

Commit

Permalink
feat: Udate to new NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbrembeck committed Jan 24, 2024
1 parent 9ca3f65 commit 7317fc6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions public/workbox-d5a6b829.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/components/check.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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"
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/ingredientscheck.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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
);
Expand Down

0 comments on commit 7317fc6

Please sign in to comment.