fxa/libs/vendored/common-password-list
Reino Muhl f47d120d71
feat(libs): convert libs/* to esbuild and swc/jest
Because:

- ts-jest is consuming too much memory during unit test execution

This commit:

- Replace ts-jest with @swc/jest, which has better memory utilization
- Replace Nx TSC build executor with Nx esbuild build executor, for better performance.
- Reduce size of unit-test job instance size from large back to medium+

Closes #FXA-9879
2024-06-27 15:28:55 -04:00
..
source_data
src
.eslintrc.json
.swcrc feat(libs): convert libs/* to esbuild and swc/jest 2024-06-27 15:28:55 -04:00
README.md
jest.config.ts feat(libs): convert libs/* to esbuild and swc/jest 2024-06-27 15:28:55 -04:00
package.json
project.json feat(libs): convert libs/* to esbuild and swc/jest 2024-06-27 15:28:55 -04:00
tsconfig.json
tsconfig.lib.json
tsconfig.spec.json

README.md

common-password-list

Imported from the original repo, updated for TypeScript, and restructured for vendoring.

Using

Usage:

import passwordCheck from '@fxa/vendored/common-password-list';

// returns true
passwordCheck('password');

// returns false
passwordCheck('@!#^GDSAQ@#^Q#@^$YAESFDAS');

Building

Run nx build common-password-list to build the library.

Running unit tests

Run nx test common-password-list to execute the unit tests via Jest.