Skip to content

Commit

Permalink
chore(languages): use decompression directly
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWook committed Oct 1, 2024
1 parent bc6ba9d commit fdf0d2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/jsonPlugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ const json = () => {
code = `
import { decompress } from '@zxcvbn-ts/dictionary-compression'
export default () => {
const encoded = "${encoded}"
return decompress(encoded)
}`
export default decompress('${encoded}')`
} else {
const data = JSON.stringify(parsed)
code = `export default ${data}`
Expand Down

0 comments on commit fdf0d2c

Please sign in to comment.