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

html-webpack-injector

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-webpack-injector - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

4

index.js

@@ -32,3 +32,3 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");

if(typeof asyncNames === "object" && asyncNames?.length){
if(asyncNames && typeof asyncNames === "object" && asyncNames.length){
tags.forEach(tag => {

@@ -44,3 +44,3 @@ // add async only on script tags.

if(typeof deferNames === "object" && deferNames?.length){
if(deferNames && typeof deferNames === "object" && deferNames.length){
tags.forEach(tag => {

@@ -47,0 +47,0 @@ // add defer only on script tags.

{
"name": "html-webpack-injector",
"version": "1.1.3",
"version": "1.1.4",
"description": "Helps to inject chunks to head and body via HtmlWebpackPlugin with additional options to add async/defer to chunks",

@@ -5,0 +5,0 @@ "main": "index.js",

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