Skip to content

Commit

Permalink
fix(BUN-2440): removing crypto-js dep (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-victor authored May 2, 2024
1 parent 62a36e6 commit 3ffa71d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 34 deletions.
1 change: 0 additions & 1 deletion apps/storefront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"@types/pdfobject": "^2.2.3",
"@types/react-resizable": "^3.0.4",
"copy-to-clipboard": "^3.3.3",
"crypto-js": "4.1.1",
"date-fns": "^2.28.0",
"dayjs": "^1.11.10",
"graphql": "^16.8.1",
Expand Down
5 changes: 2 additions & 3 deletions apps/storefront/src/utils/b3checkout.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { b2bCheckoutLogin } from '@/shared/service/b2b/graphql/checkout'
import { cipherText } from '@/utils/cryptoJs'

const redirect = (url: string, isReplaceCurrentUrl?: boolean) => {
if (isReplaceCurrentUrl) {
Expand Down Expand Up @@ -31,6 +30,6 @@ export const attemptCheckoutLoginAndRedirect = async (

export const setQuoteToStorage = (quoteId: string, date: any) => {
sessionStorage.setItem('isNewStorefront', JSON.stringify(true))
sessionStorage.setItem('quoteCheckoutId', cipherText(quoteId))
sessionStorage.setItem('quoteDate', cipherText(date?.toString() || ''))
sessionStorage.setItem('quoteCheckoutId', quoteId)
sessionStorage.setItem('quoteDate', date?.toString())
}
25 changes: 0 additions & 25 deletions apps/storefront/src/utils/cryptoJs.ts

This file was deleted.

5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3882,11 +3882,6 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"

crypto-js@4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"
integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==

css-vendor@^2.0.8:
version "2.0.8"
resolved "https://registry.yarnpkg.com/css-vendor/-/css-vendor-2.0.8.tgz#e47f91d3bd3117d49180a3c935e62e3d9f7f449d"
Expand Down

0 comments on commit 3ffa71d

Please sign in to comment.