Closed martijn-dev closed 2 weeks ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/dmmf.ts | 6 | 7 | 85.71% | ||
src/errors.ts | 1 | 2 | 50.0% | ||
src/hash.ts | 14 | 16 | 87.5% | ||
<!-- | Total: | 27 | 31 | 87.1% | --> |
Totals | |
---|---|
Change from base Build 7807229309: | -0.6% |
Covered Lines: | 269 |
Relevant Lines: | 318 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/dmmf.ts | 6 | 7 | 85.71% | ||
src/errors.ts | 1 | 2 | 50.0% | ||
src/hash.ts | 14 | 16 | 87.5% | ||
<!-- | Total: | 27 | 31 | 87.1% | --> |
Totals | |
---|---|
Change from base Build 7807229309: | -0.6% |
Covered Lines: | 269 |
Relevant Lines: | 318 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/dmmf.ts | 6 | 8 | 75.0% | ||
src/errors.ts | 1 | 3 | 33.33% | ||
src/hash.ts | 14 | 16 | 87.5% | ||
<!-- | Total: | 27 | 33 | 81.82% | --> |
Totals | |
---|---|
Change from base Build 7807229309: | -1.5% |
Covered Lines: | 269 |
Relevant Lines: | 320 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/dmmf.ts | 6 | 8 | 75.0% | ||
src/errors.ts | 1 | 3 | 33.33% | ||
src/hash.ts | 14 | 16 | 87.5% | ||
<!-- | Total: | 27 | 33 | 81.82% | --> |
Totals | |
---|---|
Change from base Build 7807229309: | -1.5% |
Covered Lines: | 269 |
Relevant Lines: | 320 |
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/dmmf.ts | 6 | 8 | 75.0% | ||
src/errors.ts | 1 | 3 | 33.33% | ||
src/hash.ts | 14 | 16 | 87.5% | ||
<!-- | Total: | 27 | 33 | 81.82% | --> |
Totals | |
---|---|
Change from base Build 7807229309: | -1.5% |
Covered Lines: | 269 |
Relevant Lines: | 320 |
This has been released in 1.6.0-beta.1
, if you want to give it a spin.
What's changed:
?normalize
flag on the hash tag in the Prisma model.lowercase
,uppercase
,trim
,spaces
anddiacritics
sanitizing are supported. More could be added quite easy.Potential Risks / Breaking changes
unique
. I've added a disclaimer in the README.Text from the README:
You can normalize a hash before creation and querying. This might be useful in case you would like to find a User with the name of
François
with a query input offrancois
.There are several normalize options:
You can also combine the normalize options:
Questions?
Let me know what you think! Always open to discussion. I hope you see this feature as a catalyst to expand support for searching in encrypted db values. Cheers, Martijn
Fixes #109