Skip to content

Commit

Permalink
fix husky pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
emiljohansson committed Feb 25, 2023
1 parent 48d5338 commit 18783ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
pnpm lint
12 changes: 6 additions & 6 deletions apps/next/app/encryption/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const Encrypt = () => {
const string = stringRef.current?.value
console.log({
secret,
string
});
string,
})

if (!secret || !string) return
const encrypted = AES.encrypt(string, secret).toString()
setEncryptedValue(encrypted)
Expand Down Expand Up @@ -57,9 +57,9 @@ const Decrypt = () => {
const encryptedValue = stringRef.current?.value
console.log({
secret,
encryptedValue
});
encryptedValue,
})

if (!secret || !encryptedValue) return
const bytes = AES.decrypt(encryptedValue, secret)
setDecryptedValue(bytes.toString(enc.Utf8))
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"license": "MIT",
"scripts": {
"prepare": "husky install",
"build": "turbo run build",
"export": "turbo run export",
"dev": "turbo run dev --parallel",
Expand Down

0 comments on commit 18783ec

Please sign in to comment.