Socket
Socket
Sign inDemoInstall

html-loader

Package Overview
Dependencies
Maintainers
10
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 0.5.1 to 0.5.4

33

CHANGELOG.md

@@ -5,2 +5,35 @@ # Change Log

<a name="0.5.4"></a>
## [0.5.4](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.4) (2018-01-05)
### Bug Fixes
* ignore attribute if `mailto:` is present ([#145](https://github.com/webpack-contrib/html-loader/issues/145)) ([4b13d4c](https://github.com/webpack-contrib/html-loader/commit/4b13d4c))
* **index:** escape double quotes correctly (`options.interpolate`) ([#154](https://github.com/webpack-contrib/html-loader/issues/154)) ([1ef5de4](https://github.com/webpack-contrib/html-loader/commit/1ef5de4))
<a name="0.5.3"></a>
## [0.5.3](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.3) (2018-01-05)
### Bug Fixes
* ignore attribute if `mailto:` is present ([#145](https://github.com/webpack-contrib/html-loader/issues/145)) ([4b13d4c](https://github.com/webpack-contrib/html-loader/commit/4b13d4c))
* **index:** escape double quotes correctly (`options.interpolate`) ([#154](https://github.com/webpack-contrib/html-loader/issues/154)) ([1ef5de4](https://github.com/webpack-contrib/html-loader/commit/1ef5de4))
<a name="0.5.2"></a>
## [0.5.2](https://github.com/webpack-contrib/html-loader/compare/v0.5.1...v0.5.2) (2018-01-05)
### Bug Fixes
* ignore attribute if `mailto:` is present ([#145](https://github.com/webpack-contrib/html-loader/issues/145)) ([4b13d4c](https://github.com/webpack-contrib/html-loader/commit/4b13d4c))
* **index:** escape double quotes correctly (`options.interpolate`) ([#154](https://github.com/webpack-contrib/html-loader/issues/154)) ([1ef5de4](https://github.com/webpack-contrib/html-loader/commit/1ef5de4))
<a name="0.5.1"></a>

@@ -7,0 +40,0 @@ ## [0.5.1](https://github.com/webpack/html-loader/compare/v0.5.0...v0.5.1) (2017-08-08)

@@ -57,2 +57,4 @@ /*

if (link.value.indexOf('mailto:') > -1 ) return;
var uri = url.parse(link.value);

@@ -131,2 +133,5 @@ if (uri.hash !== null && uri.hash !== undefined) {

if(config.interpolate && config.interpolate !== 'require') {
// Double escape quotes so that they are not unescaped completely in the template string
content = content.replace(/\\"/g, "\\\\\"");
content = content.replace(/\\'/g, "\\\\\'");
content = compile('`' + content + '`').code;

@@ -133,0 +138,0 @@ } else {

32

package.json
{
"name": "html-loader",
"version": "0.5.1",
"version": "0.5.4",
"author": "Tobias Koppers @sokra",
"description": "html loader module for webpack",
"license": "MIT",
"description": "html loader module for webpack",
"main": "index.js",

@@ -12,9 +12,5 @@ "files": [

"scripts": {
"pretest": "npm run lint && npm run beautify-lint",
"lint": "eslint lib test",
"pretest": "npm run lint",
"test": "mocha --harmony --full-trace --check-leaks",
"travis": "npm run cover -- --report lcovonly",
"lint": "eslint lib bin hot",
"beautify-lint": "beautify-lint lib/**/*.js hot/**/*.js bin/**/*.js benchmark/*.js test/*.js",
"beautify": "beautify-rewrite lib/**/*.js hot/**/*.js bin/**/*.js benchmark/*.js test/*.js",
"postcover": "npm run lint && npm run beautify-lint",
"cover": "istanbul cover -x *.runtime.js node_modules/mocha/bin/_mocha",

@@ -24,7 +20,7 @@ "release": "standard-version"

"dependencies": {
"es6-templates": "^0.2.2",
"es6-templates": "^0.2.3",
"fastparse": "^1.1.1",
"html-minifier": "^3.0.1",
"loader-utils": "^1.0.2",
"object-assign": "^4.1.0"
"html-minifier": "^3.5.8",
"loader-utils": "^1.1.0",
"object-assign": "^4.1.1"
},

@@ -35,13 +31,11 @@ "devDependencies": {

"eslint": "^3.1.1",
"istanbul": "^0.4.4",
"istanbul": "^0.4.5",
"js-beautify": "^1.6.3",
"mocha": "^2.5.3",
"should": "^10.0.0",
"standard-version": "^4.2.0"
"standard-version": "^4.3.0"
},
"homepage": "http://github.com/webpack-contrib/html-loader",
"repository": {
"type": "git",
"url": "git@github.com:webpack/html-loader.git"
}
"homepage": "https://github.com/webpack-contrib/html-loader",
"repository": "https://github.com/webpack-contrib/html-loader.git",
"bugs": "https://github.com/webpack-contrib/html-loader/issues"
}

@@ -119,2 +119,4 @@ [![npm][npm]][npm-url]

See [html-minifier](https://github.com/kangax/html-minifier#options-quick-reference)'s documentation for more information on the available options.
The enabled rules for minimizing by default are the following ones:

@@ -133,3 +135,3 @@ - removeComments

- removeStyleTypeAttributes
The rules can be disabled using the following options in your `webpack.conf.js`

@@ -136,0 +138,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