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

@types/csp-html-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/csp-html-webpack-plugin - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

23

csp-html-webpack-plugin/index.d.ts

@@ -7,5 +7,5 @@ // Type definitions for csp-html-webpack-plugin 3.0

import { Compiler as WebpackCompiler } from 'webpack';
import { AsyncSeriesWaterfallHook } from 'tapable';
import HtmlWebpackPlugin = require('html-webpack-plugin');
import { AsyncSeriesWaterfallHook } from "tapable";
import { Compiler as WebpackCompiler } from "webpack";
import HtmlWebpackPlugin = require("html-webpack-plugin");

@@ -22,3 +22,3 @@ export = CspHtmlWebpackPlugin;

policy?: CspHtmlWebpackPlugin.Policy,
additionalOpts?: CspHtmlWebpackPlugin.AdditionalOptions
additionalOpts?: CspHtmlWebpackPlugin.AdditionalOptions,
);

@@ -51,4 +51,3 @@

// which we're using and infer the generic type variable inside.
type HtmlPluginData
= HtmlWebpackPlugin.Hooks extends HtmlPluginDataHookV3<infer T> ? T
type HtmlPluginData = HtmlWebpackPlugin.Hooks extends HtmlPluginDataHookV3<infer T> ? T
: HtmlWebpackPlugin.Hooks extends HtmlPluginDataHookV4<infer U> ? U

@@ -90,3 +89,3 @@ : any; // Fallback when nothing works.

*/
hashingMethod?: 'sha256' | 'sha384' | 'sha512' | undefined;
hashingMethod?: "sha256" | "sha384" | "sha512" | undefined;
/**

@@ -105,7 +104,9 @@ * A `<string, boolean>` entry for which policy rules are allowed to

declare module 'html-webpack-plugin' {
declare module "html-webpack-plugin" {
interface Options {
cspPlugin?: CspHtmlWebpackPlugin.AdditionalOptions & {
policy?: CspHtmlWebpackPlugin.Policy | undefined
} | undefined;
cspPlugin?:
| CspHtmlWebpackPlugin.AdditionalOptions & {
policy?: CspHtmlWebpackPlugin.Policy | undefined;
}
| undefined;
}

@@ -112,0 +113,0 @@ }

{
"name": "@types/csp-html-webpack-plugin",
"version": "3.0.2",
"version": "3.0.3",
"description": "TypeScript definitions for csp-html-webpack-plugin",

@@ -27,4 +27,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/csp-html-webpack-plugin",

},
"typesPublisherContentHash": "8b3fc0b974e6eca43ce2f59b94d08f1a3aeca017d05332d1e6862a0599c59e18",
"typeScriptVersion": "3.7"
"typesPublisherContentHash": "2093ae5934f6f534eedf2edb5d4db9fb5bda7698ca3707770e6814870e1351c4",
"typeScriptVersion": "4.3"
}

@@ -11,4 +11,4 @@ # Installation

### Additional Details
* Last updated: Thu, 08 Jul 2021 09:08:23 GMT
* Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack), [@types/tapable](https://npmjs.com/package/@types/tapable), [@types/html-webpack-plugin](https://npmjs.com/package/@types/html-webpack-plugin)
* Last updated: Mon, 04 Sep 2023 15:41:29 GMT
* Dependencies: [@types/html-webpack-plugin](https://npmjs.com/package/@types/html-webpack-plugin), [@types/tapable](https://npmjs.com/package/@types/tapable), [@types/webpack](https://npmjs.com/package/@types/webpack)
* Global values: none

@@ -15,0 +15,0 @@

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