Socket
Socket
Sign inDemoInstall

html-loader

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-loader - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

4

dist/plugins/sources-plugin.js

@@ -53,5 +53,5 @@ "use strict";

name = attribute.prefix ? `${attribute.prefix}:${name}` : name;
const handlers = options.sources.list.get(tagName.toLowerCase()) || options.sources.list.get("*");
const handlers = new Map([...(options.sources.list.get("*") || new Map()), ...(options.sources.list.get(tagName.toLowerCase()) || new Map())]);
if (!handlers) {
if (handlers.size === 0) {
return;

@@ -58,0 +58,0 @@ }

@@ -912,3 +912,3 @@ "use strict";

return "";
} // TODO simplif in the next major release
} // TODO simpify in the next major release

@@ -918,3 +918,4 @@

const fileURLToHelper = typeof loaderContext.utils !== "undefined" && typeof loaderContext.utils.contextify === "function" ? loaderContext.utils.contextify(loaderContext.context, getURLRuntime) : contextify(loaderContext.context, getURLRuntime);
const context = loaderContext.context || loaderContext.rootContext;
const fileURLToHelper = typeof loaderContext.utils !== "undefined" && typeof loaderContext.utils.contextify === "function" ? loaderContext.utils.contextify(context, getURLRuntime) : contextify(context, getURLRuntime);
let code = options.esModule ? `import ${GET_SOURCE_FROM_IMPORT_NAME} from "${fileURLToHelper}";\n` : `var ${GET_SOURCE_FROM_IMPORT_NAME} = require("${fileURLToHelper}");\n`;

@@ -921,0 +922,0 @@

{
"name": "html-loader",
"version": "3.0.0",
"version": "3.0.1",
"description": "Html loader module for webpack",

@@ -52,4 +52,4 @@ "license": "MIT",

"@babel/preset-env": "^7.14.7",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@commitlint/cli": "^14.1.0",
"@commitlint/config-conventional": "^14.1.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",

@@ -56,0 +56,0 @@ "babel-jest": "^27.0.5",

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