@nodefony/security 10.0.0-alpha.8 → 10.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/decorate.js +1 -1
- package/dist/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/decorateMetadata.js +1 -1
- package/dist/index.js +2 -2
- package/dist/nodefony/command/security-user-add.js +2 -18
- package/dist/nodefony/command/security-user-password.js +2 -2
- package/dist/nodefony/config/config.js +2 -2
- package/dist/nodefony/service/auditService.js +3 -2
- package/dist/nodefony/service/tokenService.js +3 -2
- package/dist/nodefony/service/totp.js +5 -3
- package/dist/nodefony/service/webAuthn.js +3 -2
- package/dist/nodefony/service/webhooks.js +5 -3
- package/dist/nodefony/src/token/MemoryTokenStore.js +18 -5
- package/dist/nodefony/src/totp/MemoryTotpSecretStore.js +15 -3
- package/dist/nodefony/src/webauthn/MemoryWebAuthnCredentialStore.js +24 -6
- package/dist/nodefony/src/webhook/MemoryWebhookStore.js +18 -10
- package/dist/types/nodefony/command/security-user-add.d.ts +0 -16
- package/dist/types/nodefony/contracts/IAuditEvent.d.ts +3 -3
- package/dist/types/nodefony/src/totp/MemoryTotpSecretStore.d.ts +0 -9
- package/dist/types/nodefony/src/webhook/MemoryWebhookStore.d.ts +0 -8
- package/docs/api-keys.md +62 -60
- package/docs/audit.md +77 -77
- package/docs/authenticators.md +55 -43
- package/docs/authorization.md +13 -13
- package/docs/cors.md +29 -29
- package/docs/csrf.md +26 -26
- package/docs/external-jwt.md +4 -4
- package/docs/firewall.md +29 -29
- package/docs/headers.md +26 -26
- package/docs/oauth2.md +60 -60
- package/docs/obtenir-un-jeton.md +2 -2
- package/docs/tokens.md +55 -55
- package/docs/totp.md +73 -72
- package/docs/webauthn.md +81 -81
- package/docs/webhooks.md +43 -37
- package/package.json +15 -12
package/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodefony/security",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.9",
|
|
4
4
|
"description": "Pare-feu applicatif par zones pour Nodefony : authentification, autorisation par rôles, protection CSRF, journal d'audit",
|
|
5
5
|
"author": "Christophe CAMENSULI <ccamensuli@gmail.com>",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"nodefony": {
|
|
9
|
+
"consumesStores": true
|
|
10
|
+
},
|
|
8
11
|
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
14
|
+
"nodefony-source": "./index.ts",
|
|
11
15
|
"types": "./dist/types/index.d.ts",
|
|
12
16
|
"import": "./dist/index.js",
|
|
13
17
|
"default": "./dist/index.js"
|
|
@@ -15,9 +19,9 @@
|
|
|
15
19
|
},
|
|
16
20
|
"scripts": {
|
|
17
21
|
"start": "node dist/index.js",
|
|
18
|
-
"build": "
|
|
22
|
+
"build": "rolldown -c rolldown.config.ts && tsgo -p tsconfig.declarations.json",
|
|
19
23
|
"dev": "rolldown -c rolldown.config.ts --watch",
|
|
20
|
-
"clean": "
|
|
24
|
+
"clean": "node --eval \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
21
25
|
"test": "vitest run",
|
|
22
26
|
"coverage": "vitest run --coverage",
|
|
23
27
|
"typecheck": "tsgo --noEmit -p tsconfig.json && tsgo --noEmit -p tsconfig.tests.json"
|
|
@@ -50,23 +54,22 @@
|
|
|
50
54
|
"zod": "^4.6.5"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"@nodefony/framework": "^10.0.0-alpha.
|
|
54
|
-
"@nodefony/http": "^10.0.0-alpha.
|
|
55
|
-
"@nodefony/user": "^10.0.0-alpha.
|
|
57
|
+
"@nodefony/framework": "^10.0.0-alpha.9",
|
|
58
|
+
"@nodefony/http": "^10.0.0-alpha.9",
|
|
59
|
+
"@nodefony/user": "^10.0.0-alpha.9",
|
|
56
60
|
"@types/node": "26.6.2",
|
|
57
61
|
"@vitest/coverage-v8": "5.0.1",
|
|
58
|
-
"nodefony": "^10.0.0-alpha.
|
|
59
|
-
"rimraf": "6.1.3",
|
|
62
|
+
"nodefony": "^10.0.0-alpha.9",
|
|
60
63
|
"vitest": "5.0.1"
|
|
61
64
|
},
|
|
62
65
|
"license": "Apache-2.0",
|
|
63
66
|
"readmeFilename": "README.md",
|
|
64
67
|
"contributors": [],
|
|
65
68
|
"peerDependencies": {
|
|
66
|
-
"@nodefony/framework": "^10.0.0-alpha.
|
|
67
|
-
"@nodefony/http": "^10.0.0-alpha.
|
|
68
|
-
"@nodefony/user": "^10.0.0-alpha.
|
|
69
|
-
"nodefony": "^10.0.0-alpha.
|
|
69
|
+
"@nodefony/framework": "^10.0.0-alpha.9",
|
|
70
|
+
"@nodefony/http": "^10.0.0-alpha.9",
|
|
71
|
+
"@nodefony/user": "^10.0.0-alpha.9",
|
|
72
|
+
"nodefony": "^10.0.0-alpha.9"
|
|
70
73
|
},
|
|
71
74
|
"files": [
|
|
72
75
|
"dist",
|