nuxt-security
Advanced tools
Comparing version 2.0.0-beta.5 to 2.0.0-rc.1
@@ -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
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
87922
7
1604
57
- Removedcheerio@^1.0.0-rc.12
- Removedboolbase@1.0.0(transitive)
- Removedcheerio@1.0.0(transitive)
- Removedcheerio-select@2.1.0(transitive)
- Removedcss-select@5.1.0(transitive)
- Removedcss-what@6.1.0(transitive)
- Removeddom-serializer@2.0.0(transitive)
- Removeddomelementtype@2.3.0(transitive)
- Removeddomhandler@5.0.3(transitive)
- Removeddomutils@3.1.0(transitive)
- Removedencoding-sniffer@0.2.0(transitive)
- Removedentities@4.5.0(transitive)
- Removedhtmlparser2@9.1.0(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removednth-check@2.1.1(transitive)
- Removedparse5@7.2.1(transitive)
- Removedparse5-htmlparser2-tree-adapter@7.1.0(transitive)
- Removedparse5-parser-stream@7.1.2(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedundici@6.20.1(transitive)
- Removedwhatwg-encoding@3.1.1(transitive)
- Removedwhatwg-mimetype@4.0.0(transitive)