From bef0a627654525a1cdafa7961f6df31791cd49ec Mon Sep 17 00:00:00 2001 From: MrWook Date: Fri, 4 Oct 2024 10:12:14 +0200 Subject: [PATCH] chore(script): move compression repo out of monorepo --- package.json | 2 +- packages/languages/ar/package.json | 2 +- packages/languages/common/package.json | 2 +- packages/languages/cs/package.json | 2 +- packages/languages/da-dk/package.json | 2 +- packages/languages/de/package.json | 2 +- packages/languages/en/package.json | 2 +- packages/languages/es-es/package.json | 2 +- packages/languages/fi/package.json | 2 +- packages/languages/fr/package.json | 2 +- packages/languages/id/package.json | 2 +- packages/languages/it/package.json | 2 +- packages/languages/ja/package.json | 2 +- packages/languages/nl-be/package.json | 2 +- packages/languages/pl/package.json | 2 +- packages/languages/pt-br/package.json | 2 +- packages/libraries/main/src/matcher/sequence/matching.ts | 1 - scripts/jsonPlugin.mjs | 5 +++-- yarn.lock | 8 ++++---- 19 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index d5d8d7ac..ed652490 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@vuepress/bundler-vite": "2.0.0-rc.17", "@vuepress/plugin-register-components": "2.0.0-rc.52", "@vuepress/theme-default": "2.0.0-rc.52", - "@zxcvbn-ts/dictionary-compression": "1.0.0", + "@zxcvbn-ts/dictionary-compression": "^2.0.0", "axios": "1.7.7", "byline": "5.0.0", "cross-fetch": "4.0.0", diff --git a/packages/languages/ar/package.json b/packages/languages/ar/package.json index 27caa31c..2e46ca09 100644 --- a/packages/languages/ar/package.json +++ b/packages/languages/ar/package.json @@ -27,6 +27,6 @@ "arabic" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/common/package.json b/packages/languages/common/package.json index 0c626e64..e9a51d02 100644 --- a/packages/languages/common/package.json +++ b/packages/languages/common/package.json @@ -27,6 +27,6 @@ "common" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/cs/package.json b/packages/languages/cs/package.json index d00e76e0..dbcdc69e 100644 --- a/packages/languages/cs/package.json +++ b/packages/languages/cs/package.json @@ -27,6 +27,6 @@ "czech" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/da-dk/package.json b/packages/languages/da-dk/package.json index f8dad7fe..c89994ad 100644 --- a/packages/languages/da-dk/package.json +++ b/packages/languages/da-dk/package.json @@ -27,6 +27,6 @@ "danish" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/de/package.json b/packages/languages/de/package.json index 404b142a..79eafd49 100644 --- a/packages/languages/de/package.json +++ b/packages/languages/de/package.json @@ -27,6 +27,6 @@ "german" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/en/package.json b/packages/languages/en/package.json index 0095a52c..3cf7d1ec 100644 --- a/packages/languages/en/package.json +++ b/packages/languages/en/package.json @@ -27,6 +27,6 @@ "english" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/es-es/package.json b/packages/languages/es-es/package.json index c6bb76e8..13178773 100644 --- a/packages/languages/es-es/package.json +++ b/packages/languages/es-es/package.json @@ -28,6 +28,6 @@ "spain" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/fi/package.json b/packages/languages/fi/package.json index 815caced..f28ee478 100644 --- a/packages/languages/fi/package.json +++ b/packages/languages/fi/package.json @@ -27,6 +27,6 @@ "finnish" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/fr/package.json b/packages/languages/fr/package.json index 96c6ab47..65ed48f5 100644 --- a/packages/languages/fr/package.json +++ b/packages/languages/fr/package.json @@ -27,6 +27,6 @@ "french" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/id/package.json b/packages/languages/id/package.json index 4cfbf7dc..0d1ecdb8 100644 --- a/packages/languages/id/package.json +++ b/packages/languages/id/package.json @@ -27,6 +27,6 @@ "indonesia" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/it/package.json b/packages/languages/it/package.json index 7afc99f5..5b0549ff 100644 --- a/packages/languages/it/package.json +++ b/packages/languages/it/package.json @@ -27,6 +27,6 @@ "italian" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/ja/package.json b/packages/languages/ja/package.json index 22a32f12..10891efa 100644 --- a/packages/languages/ja/package.json +++ b/packages/languages/ja/package.json @@ -27,6 +27,6 @@ "japanese" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/nl-be/package.json b/packages/languages/nl-be/package.json index d338bc22..7bbd490e 100644 --- a/packages/languages/nl-be/package.json +++ b/packages/languages/nl-be/package.json @@ -28,6 +28,6 @@ "belgium" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/pl/package.json b/packages/languages/pl/package.json index f7d142d5..3aba05f8 100644 --- a/packages/languages/pl/package.json +++ b/packages/languages/pl/package.json @@ -29,6 +29,6 @@ "pl" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/languages/pt-br/package.json b/packages/languages/pt-br/package.json index 0611dfa2..ffc8de89 100644 --- a/packages/languages/pt-br/package.json +++ b/packages/languages/pt-br/package.json @@ -31,6 +31,6 @@ "ptbr" ], "dependencies": { - "@zxcvbn-ts/dictionary-compression": "^1.0.0" + "@zxcvbn-ts/dictionary-compression": "^2.0.0" } } diff --git a/packages/libraries/main/src/matcher/sequence/matching.ts b/packages/libraries/main/src/matcher/sequence/matching.ts index 1f636cfb..f5fa7c0b 100644 --- a/packages/libraries/main/src/matcher/sequence/matching.ts +++ b/packages/libraries/main/src/matcher/sequence/matching.ts @@ -69,7 +69,6 @@ class MatchSequence { password, result, }) - console.log(result) return result } diff --git a/scripts/jsonPlugin.mjs b/scripts/jsonPlugin.mjs index 3b91fc9b..e23f04a5 100644 --- a/scripts/jsonPlugin.mjs +++ b/scripts/jsonPlugin.mjs @@ -1,4 +1,5 @@ -import { compress } from '@zxcvbn-ts/dictionary-compression' +// eslint-disable-next-line import/extensions +import compress from '@zxcvbn-ts/dictionary-compression/compress' const json = () => { return { @@ -17,7 +18,7 @@ const json = () => { const encoded = compress(parsed) code = ` -import { decompress } from '@zxcvbn-ts/dictionary-compression' +import decompress from '@zxcvbn-ts/dictionary-compression/decompress' export default decompress('${encoded}')` } else { diff --git a/yarn.lock b/yarn.lock index c9352941..8736c78b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3339,10 +3339,10 @@ dependencies: argparse "^2.0.1" -"@zxcvbn-ts/dictionary-compression@1.0.0", "@zxcvbn-ts/dictionary-compression@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@zxcvbn-ts/dictionary-compression/-/dictionary-compression-1.0.0.tgz#e7aa181a6f3e387a2532f4dec9d78eeec38da9b5" - integrity sha512-K4Ge15UqrDpGX9SMTgZYEhZNVqP4n8GIA7Cjk+URIw52TcaQ3QQde8s0khhGtitD53dBaQN7uY6FOInrD+h+vQ== +"@zxcvbn-ts/dictionary-compression@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@zxcvbn-ts/dictionary-compression/-/dictionary-compression-2.0.0.tgz#6a180a9ecf0fba98d87d58c5955fdab9245b65f5" + integrity sha512-gTUSR73B2IDfg7PccGRbwOm5wurK0D1LobQsUyLPqe7pOZ4iQYMJfJ3F0dyMjFlRsc2hmdM2gyPX8HWq4nl9VQ== dependencies: "@alttiri/base85" "1.8.0" fflate "^0.8.2"