Skip to content

Commit

Permalink
refactor(core): add validators
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Dec 16, 2024
1 parent 7a1aca3 commit a45a0af
Show file tree
Hide file tree
Showing 34 changed files with 515 additions and 357 deletions.
134 changes: 83 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"html-to-text": "^9.0.5",
"http-errors": "^2.0.0",
"ioredis": "^5.4.1",
"is-disposable-email-domain": "^1.0.7",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"moment": "^2.30.1",
Expand All @@ -101,7 +100,7 @@
"qrcode": "^1.5.4",
"rate-limiter-flexible": "^2.4.2",
"tld-extract": "^2.1.0",
"tsx": "^4.17.0",
"tsx": "^4.19.2",
"typescript": "^5.5.4",
"vite": "^5.2.14",
"zod": "^3.23.8",
Expand All @@ -112,28 +111,28 @@
"@changesets/cli": "^2.27.10",
"@simplewebauthn/types": "^10.0.0",
"@sinonjs/fake-timers": "^11.2.2",
"@types/chai": "^5.0.0",
"@types/chai": "^5.0.1",
"@types/chai-as-promised": "^7.1.8",
"@types/html-to-text": "^9.0.4",
"@types/http-errors": "^2.0.4",
"@types/lodash": "^4.17.10",
"@types/lodash-es": "^4.17.12",
"@types/mocha": "^10.0.7",
"@types/node": "^22.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.2",
"@types/nodemailer": "^6.4.16",
"@types/oidc-provider": "^8.5.2",
"@types/qrcode": "^1.5.5",
"@types/sinonjs__fake-timers": "^8.1.5",
"axe-core": "^4.8.4",
"chai": "^5.1.1",
"chai-as-promised": "^8.0.0",
"chai": "^5.1.2",
"chai-as-promised": "^8.0.1",
"concurrently": "^9.0.1",
"copy-and-watch": "^0.1.6",
"csv": "^6.3.9",
"cypress": "^13.15.2",
"cypress-axe": "^1.5.0",
"cypress-maildev": "^1.3.2",
"mocha": "^10.7.3",
"mocha": "^11.0.1",
"nock": "^13.5.4",
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0"
Expand Down
26 changes: 15 additions & 11 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"exports": {
"./*": {
"require": {
"types": "./dist/*",
"default": "./dist/*"
"types": "./dist/*/index.d.ts",
"default": "./dist/*/index.js"
},
"import": {
"types": "./dist/*",
"default": "./dist/*"
"types": "./dist/*/index.d.ts",
"default": "./dist/*/index.js"
},
"types": "./dist/*",
"default": "./dist/*"
"types": "./dist/*/index.d.ts",
"default": "./dist/*/index.js"
}
},
"scripts": {
Expand All @@ -46,14 +46,18 @@
},
"dependencies": {
"@zootools/email-spell-checker": "^1.12.0",
"is-disposable-email-domain": "^1.0.7"
"is-disposable-email-domain": "^1.0.7",
"lodash-es": "^4.17.21",
"tld-extract": "^2.1.0"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.0",
"@types/mocha": "^10.0.7",
"chai": "^5.1.1",
"mocha": "^10.7.3",
"tsx": "^4.17.0"
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.2",
"@types/lodash-es": "^4.17.12",
"chai": "^5.1.2",
"mocha": "^11.0.1",
"tsx": "^4.19.2"
},
"publishConfig": {
"access": "public",
Expand Down
7 changes: 7 additions & 0 deletions packages/core/src/security/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//

export * from "./is-domain-valid.js";
export * from "./is-email-valid.js";
export * from "./is-name-valid.js";
export * from "./is-phone-number-valid.js";
export * from "./is-siret-valid.js";
Loading

0 comments on commit a45a0af

Please sign in to comment.