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

nuxt-security

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-security - npm Package Compare versions

Comparing version 2.0.0-beta.5 to 2.0.0-rc.1

dist/shared/nuxt-security.4b14c544.d.mts

27

dist/module.d.ts

@@ -5,18 +5,20 @@ import * as _nuxt_schema from '@nuxt/schema';

import { Options } from 'unplugin-remove/types';
import { S as SecurityHeaders } from './shared/nuxt-security.500fd29f.js';
export { j as CSPSandboxValue, i as CSPSourceValue, C as ContentSecurityPolicyValue, d as CrossOriginEmbedderPolicyValue, c as CrossOriginOpenerPolicyValue, b as CrossOriginResourcePolicyValue, H as HeaderName, O as OptionKey, P as PermissionsPolicyValue, R as ReferrerPolicyValue, a as StrictTransportSecurityValue, X as XContentTypeOptionsValue, e as XDnsPrefetchControlValue, f as XDownloadOptionsValue, g as XFrameOptionsValue, h as XPermittedCrossDomainPoliciesValue } from './shared/nuxt-security.500fd29f.js';
import { CheerioAPI } from 'cheerio';
import { S as SecurityHeaders } from './shared/nuxt-security.4b14c544.js';
export { j as CSPSandboxValue, i as CSPSourceValue, C as ContentSecurityPolicyValue, d as CrossOriginEmbedderPolicyValue, c as CrossOriginOpenerPolicyValue, b as CrossOriginResourcePolicyValue, H as HeaderName, O as OptionKey, P as PermissionsPolicyValue, R as ReferrerPolicyValue, a as StrictTransportSecurityValue, X as XContentTypeOptionsValue, e as XDnsPrefetchControlValue, f as XDownloadOptionsValue, g as XFrameOptionsValue, h as XPermittedCrossDomainPoliciesValue } from './shared/nuxt-security.4b14c544.js';
import { BuiltinDriverName, BuiltinDriverOptions } from 'unstorage';
type RequestSizeLimiter = {
maxRequestSizeInBytes: number;
maxUploadFileRequestInBytes: number;
maxRequestSizeInBytes?: number;
maxUploadFileRequestInBytes?: number;
throwError?: boolean;
};
type RateLimiter = {
tokensPerInterval: number;
interval: string | number;
tokensPerInterval?: number;
interval?: string | number;
driver?: {
name: string;
options?: Record<string, any>;
};
[driverName in BuiltinDriverName]: {
name: driverName;
options?: BuiltinDriverOptions[driverName];
};
}[BuiltinDriverName];
headers?: boolean;

@@ -85,6 +87,8 @@ throwError?: boolean;

}
type NuxtSecurityRouteRules = Partial<Omit<ModuleOptions, 'csrf' | 'basicAuth' | 'rateLimiter' | 'ssg'> & {
type NuxtSecurityRouteRules = Partial<Omit<ModuleOptions, 'csrf' | 'basicAuth' | 'rateLimiter' | 'ssg' | 'requestSizeLimiter'> & {
rateLimiter: Omit<RateLimiter, 'driver'> | false;
} & {
ssg: Omit<Ssg, 'exportToPresets'> | false;
} & {
requestSizeLimiter: RequestSizeLimiter | false;
}>;

@@ -150,3 +154,2 @@ declare module 'nuxt/schema' {

};
cheerios?: Record<Section, CheerioAPI[]>;
};

@@ -153,0 +156,0 @@ }

{
"name": "nuxt-security",
"configKey": "security",
"version": "2.0.0-beta.5",
"version": "2.0.0-rc.1",
"builder": {

@@ -6,0 +6,0 @@ "@nuxt/module-builder": "0.6.0",

@@ -14,2 +14,2 @@ import type { NuxtSecurityRouteRules } from "~/src/types/module";

*/
export declare function resolveSecurityRoute(event: H3Event): any;
export declare function resolveSecurityRoute(event: H3Event): string;
/**
* This plugin recombines the HTML sections from the Cheerio instances in the event context.
* It also adds the Content-Security-Policy header to the HTML meta tag in SSG mode.
* This plugin adds the Content-Security-Policy header to the HTML meta tag in SSG mode.
*/
declare const _default: any;
export default _default;

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

import { O as OptionKey, H as HeaderName, S as SecurityHeaders, C as ContentSecurityPolicyValue, a as StrictTransportSecurityValue, P as PermissionsPolicyValue } from '../shared/nuxt-security.500fd29f.js';
import { O as OptionKey, H as HeaderName, S as SecurityHeaders, C as ContentSecurityPolicyValue, a as StrictTransportSecurityValue, P as PermissionsPolicyValue } from '../shared/nuxt-security.4b14c544.js';

@@ -3,0 +3,0 @@ /**

{
"name": "nuxt-security",
"version": "2.0.0-beta.5",
"version": "2.0.0-rc.1",
"license": "MIT",

@@ -56,3 +56,2 @@ "type": "module",

"basic-auth": "^2.0.1",
"cheerio": "^1.0.0-rc.12",
"defu": "^6.1.1",

@@ -84,4 +83,7 @@ "nuxt-csurf": "^1.5.1",

"src/utils/merge.ts"
],
"externals": [
"unstorage"
]
}
}

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

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

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