nuxt-csurf
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -22,2 +22,3 @@ import * as _nuxt_schema from '@nuxt/schema'; | ||
encryptAlgorithm?: EncryptAlgorithm; | ||
addCsrfTokenToEventCtx?: boolean; | ||
} | ||
@@ -24,0 +25,0 @@ |
{ | ||
"name": "nuxt-csurf", | ||
"configKey": "csurf", | ||
"version": "1.3.2" | ||
"version": "1.4.0" | ||
} |
@@ -11,3 +11,3 @@ import { type FetchResult, type UseFetchOptions } from '#app'; | ||
export declare function useCsrf(): { | ||
csrf: string | null | undefined; | ||
csrf: any; | ||
}; |
{ | ||
"name": "nuxt-csurf", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "Nuxt Cross-Site Request Forgery (CSRF) Prevention", | ||
@@ -25,7 +25,8 @@ "keywords": [ | ||
"scripts": { | ||
"build": "nuxt-module-build", | ||
"build": "nuxt-module-build build", | ||
"dev": "nuxi dev playground", | ||
"lint": "eslint --ext .js,.ts,.vue .", | ||
"dev:build": "nuxi build playground", | ||
"prepack": "yarn build", | ||
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground" | ||
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground" | ||
}, | ||
@@ -32,0 +33,0 @@ "dependencies": { |
@@ -44,3 +44,4 @@ ![nuxt-oa-social-card](https://github.com/Morgbn/nuxt-csurf/assets/25689856/7f49b654-c682-4f15-9e40-6ba9644e28ac) | ||
encryptSecret: /** a 32 bits secret */, // only for non serverless runtime, random bytes by default | ||
encryptAlgorithm: 'aes-256-cbc' // by default 'aes-256-cbc' (node), 'AES-CBC' (serverless) | ||
encryptAlgorithm: 'aes-256-cbc', // by default 'aes-256-cbc' (node), 'AES-CBC' (serverless) | ||
addCsrfTokenToEventCtx: true // default false, to run useCsrfFetch on server set it to true | ||
} | ||
@@ -47,0 +48,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17377
226
90