@nathapp/nestjs-csrf 3.3.0
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/.eslintrc.js +8 -0
- package/.nax/features/nestjs-csrf/.nax-acceptance.test.ts +785 -0
- package/.turbo/turbo-build.log +4 -0
- package/CHANGELOG.md +15 -0
- package/README.md +29 -0
- package/dist/constant/csrf.constants.d.ts +2 -0
- package/dist/constant/csrf.constants.js +6 -0
- package/dist/constant/csrf.constants.js.map +1 -0
- package/dist/constant/index.d.ts +1 -0
- package/dist/constant/index.js +7 -0
- package/dist/constant/index.js.map +1 -0
- package/dist/decorator/index.d.ts +1 -0
- package/dist/decorator/index.js +6 -0
- package/dist/decorator/index.js.map +1 -0
- package/dist/decorator/skip-csrf.decorator.d.ts +1 -0
- package/dist/decorator/skip-csrf.decorator.js +9 -0
- package/dist/decorator/skip-csrf.decorator.js.map +1 -0
- package/dist/guard/csrf.guard.d.ts +13 -0
- package/dist/guard/csrf.guard.js +85 -0
- package/dist/guard/csrf.guard.js.map +1 -0
- package/dist/guard/index.d.ts +1 -0
- package/dist/guard/index.js +6 -0
- package/dist/guard/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/csrf-options.interface.d.ts +27 -0
- package/dist/interface/csrf-options.interface.js +3 -0
- package/dist/interface/csrf-options.interface.js.map +1 -0
- package/dist/interface/index.d.ts +1 -0
- package/dist/interface/index.js +3 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/module/csrf.module.d.ts +15 -0
- package/dist/module/csrf.module.js +64 -0
- package/dist/module/csrf.module.js.map +1 -0
- package/dist/module/index.d.ts +1 -0
- package/dist/module/index.js +6 -0
- package/dist/module/index.js.map +1 -0
- package/dist/service/csrf-token.service.d.ts +4 -0
- package/dist/service/csrf-token.service.js +47 -0
- package/dist/service/csrf-token.service.js.map +1 -0
- package/dist/service/index.d.ts +2 -0
- package/dist/service/index.js +8 -0
- package/dist/service/index.js.map +1 -0
- package/dist/service/resolve-options.d.ts +2 -0
- package/dist/service/resolve-options.js +37 -0
- package/dist/service/resolve-options.js.map +1 -0
- package/lib/constant/csrf.constants.ts +3 -0
- package/lib/constant/index.ts +1 -0
- package/lib/decorator/index.ts +1 -0
- package/lib/decorator/skip-csrf.decorator.ts +6 -0
- package/lib/guard/csrf.guard.ts +98 -0
- package/lib/guard/index.ts +1 -0
- package/lib/index.ts +12 -0
- package/lib/interface/csrf-options.interface.ts +31 -0
- package/lib/interface/index.ts +7 -0
- package/lib/module/csrf.module.ts +74 -0
- package/lib/module/index.ts +1 -0
- package/lib/service/csrf-token.service.ts +34 -0
- package/lib/service/index.ts +2 -0
- package/lib/service/resolve-options.ts +47 -0
- package/package.json +55 -0
- package/test/csrf-token.service.behavior.spec.ts +110 -0
- package/test/csrf-token.service.spec.ts +18 -0
- package/test/csrf.constants.spec.ts +11 -0
- package/test/csrf.module.spec.ts +267 -0
- package/test/guard/csrf.guard.spec.ts +347 -0
- package/test/jest-nax.json +27 -0
- package/test/jest-test.json +28 -0
- package/test/resolve-csrf-options.spec.ts +128 -0
- package/test/skip-csrf.decorator.spec.ts +77 -0
- package/tsconfig.json +9 -0