Socket
Socket
Sign inDemoInstall

nuxt-csurf

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-csurf - npm Package Compare versions

Comparing version 1.3.2 to 1.4.0

1

dist/module.d.ts

@@ -22,2 +22,3 @@ import * as _nuxt_schema from '@nuxt/schema';

encryptAlgorithm?: EncryptAlgorithm;
addCsrfTokenToEventCtx?: boolean;
}

@@ -24,0 +25,0 @@

2

dist/module.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc