Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-csurf

Package Overview
Dependencies
Maintainers
1
Versions
20
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.6.1 to 1.6.2

dist/runtime/composables.js

6

dist/module.json
{
"name": "nuxt-csurf",
"configKey": "csurf",
"version": "1.6.1"
"version": "1.6.2",
"builder": {
"@nuxt/module-builder": "0.8.3",
"unbuild": "2.0.0"
}
}

2

dist/runtime/composables.d.ts

@@ -1,2 +0,1 @@

import { type FetchResult, type UseFetchOptions } from '#app';
import type { Ref } from 'vue';

@@ -6,2 +5,3 @@ import type { FetchError } from 'ofetch';

import type { AsyncData, KeysOf, PickFrom } from 'nuxt/dist/app/composables/asyncData';
import { type FetchResult, type UseFetchOptions } from '#app';
type AvailableRouterMethod<R extends NitroFetchRequest> = _AvailableRouterMethod<R> | Uppercase<_AvailableRouterMethod<R>>;

@@ -8,0 +8,0 @@ export declare function useCsrfFetch<ResT = void, ErrorT = FetchError, ReqT extends NitroFetchRequest = NitroFetchRequest, Method extends AvailableRouterMethod<ReqT> = ResT extends void ? 'get' extends AvailableRouterMethod<ReqT> ? 'get' : AvailableRouterMethod<ReqT> : AvailableRouterMethod<ReqT>, _ResT = ResT extends void ? FetchResult<ReqT, Method> : ResT, DataT = _ResT, PickKeys extends KeysOf<DataT> = KeysOf<DataT>, DefaultT = undefined>(request: Ref<ReqT> | ReqT | (() => ReqT), opts?: UseFetchOptions<_ResT, DataT, PickKeys, DefaultT, ReqT, Method>): AsyncData<PickFrom<DataT, PickKeys> | DefaultT, ErrorT | undefined>;

@@ -8,5 +8,5 @@ import type { FetchOptions, FetchRequest, $Fetch } from 'ofetch';

}
type ResponseType = keyof ResponseMap | "json";
type ResponseType = keyof ResponseMap | 'json';
type MappedType<R extends ResponseType, JsonType = any> = R extends keyof ResponseMap ? ResponseMap[R] : JsonType;
type $CsrfFetch = <T = any, R extends ResponseType = "json">(request: FetchRequest, options?: FetchOptions<R>, fetch?: $Fetch) => Promise<MappedType<R, T>>;
type $CsrfFetch = <T = any, R extends ResponseType = 'json'>(request: FetchRequest, options?: FetchOptions<R>, fetch?: $Fetch) => Promise<MappedType<R, T>>;
declare const _default: any;

@@ -13,0 +13,0 @@ export default _default;

@@ -1,2 +0,2 @@

import type { ModuleOptions } from '../../types';
import type { ModuleOptions } from '../../types.js';
export declare const useSecretKey: (options: ModuleOptions) => Promise<JsonWebKey>;

@@ -5,6 +5,6 @@ export declare const defuReplaceArray: <Source extends {

[x: symbol]: any;
}, Defaults extends ({
}, Defaults extends Array<{
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
} | (number | boolean | any[] | Record<never, any> | null | undefined))[]>(source: Source, ...defaults: Defaults) => import("defu").Defu<Source, Defaults>;
} | (number | boolean | any[] | Record<never, any> | null | undefined)>>(source: Source, ...defaults: Defaults) => import("defu").Defu<Source, Defaults>;

@@ -1,16 +0,1 @@

import type { ModuleOptions } from './module'
declare module '@nuxt/schema' {
interface NuxtConfig { ['csurf']?: Partial<ModuleOptions> }
interface NuxtOptions { ['csurf']?: ModuleOptions }
}
declare module 'nuxt/schema' {
interface NuxtConfig { ['csurf']?: Partial<ModuleOptions> }
interface NuxtOptions { ['csurf']?: ModuleOptions }
}
export type { ModuleOptions, default } from './module'
export { type ModuleOptions, default } from './module'
{
"name": "nuxt-csurf",
"version": "1.6.1",
"version": "1.6.2",
"description": "Nuxt Cross-Site Request Forgery (CSRF) Prevention",

@@ -28,3 +28,3 @@ "keywords": [

"dev": "nuxi dev playground",
"lint": "eslint --ext .js,.ts,.vue .",
"lint": "eslint .",
"dev:build": "nuxi build playground",

@@ -35,3 +35,3 @@ "prepack": "nuxt-module-build build",

"dependencies": {
"@nuxt/kit": "^3.10.2",
"@nuxt/kit": "^3.12.4",
"defu": "^6.1.4",

@@ -41,15 +41,16 @@ "uncsrf": "^1.1.1"

"devDependencies": {
"@nuxt/devtools": "^1.0.8",
"@nuxt/eslint-config": "^0.2.0",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.11.0",
"@types/node": "^20.11.28",
"eslint": "^8.57.0",
"nuxt": "^3.11.0"
"@nuxt/devtools": "^1.3.9",
"@nuxt/eslint-config": "^0.3.13",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/schema": "^3.12.4",
"@types/node": "^20.16.1",
"eslint": "^9.9.0",
"nuxt": "^3.12.4",
"typescript": "^5.5.4"
},
"repository": {
"type": "git",
"url": "https://github.com/morgbn/nuxt-csurf.git"
"url": "https://github.com/Morgbn/nuxt-csurf.git"
},
"packageManager": "yarn@4.1.1"
}

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