html-loader
Advanced tools
Comparing version 0.5.1 to 0.5.4
@@ -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 { |
{ | ||
"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 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
20047
174
354
1
1
Updatedes6-templates@^0.2.3
Updatedhtml-minifier@^3.5.8
Updatedloader-utils@^1.1.0
Updatedobject-assign@^4.1.1