gulp-html-minifier-terser
Advanced tools
Comparing version 6.0.1 to 7.0.0-beta.0
@@ -14,5 +14,5 @@ 'use strict'; | ||
const minify = (buf, _, cb) => { | ||
const minify = async (buf, _, cb) => { | ||
try { | ||
let contents = Buffer.from(htmlmin.minify(buf.toString(), options)); | ||
let contents = Buffer.from(await htmlmin.minify(buf.toString(), options)); | ||
if (next === cb) { | ||
@@ -19,0 +19,0 @@ file.contents = contents; |
{ | ||
"name": "gulp-html-minifier-terser", | ||
"description": "gulp plugin to minify HTML.", | ||
"version": "6.0.1", | ||
"version": "7.0.0-beta.0", | ||
"homepage": "https://github.com/pioug/gulp-html-minifier-terser", | ||
@@ -42,3 +42,3 @@ "authors": [ | ||
"engines": { | ||
"node": ">= 10.0" | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
@@ -49,4 +49,4 @@ "scripts": { | ||
"dependencies": { | ||
"html-minifier-terser": "^5.1.1", | ||
"plugin-error": "^1.0.1", | ||
"html-minifier-terser": "^7.0.0-beta.0", | ||
"plugin-error": "^2.0.0", | ||
"through2": "^4.0.2" | ||
@@ -57,3 +57,3 @@ }, | ||
"gulp-format-md": "^2.0.0", | ||
"mocha": "^8.1.3", | ||
"mocha": "^10.0.0", | ||
"vinyl": "^2.2.0" | ||
@@ -60,0 +60,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
7665
1
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/source-map@0.3.6(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedclean-css@5.3.3(transitive)
+ Addedcommander@10.0.1(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedhtml-minifier-terser@7.2.0(transitive)
+ Addedplugin-error@2.0.1(transitive)
+ Addedterser@5.36.0(transitive)
- Removedarr-diff@4.0.0(transitive)
- Removedarr-union@3.1.0(transitive)
- Removedassign-symbols@1.0.0(transitive)
- Removedclean-css@4.2.4(transitive)
- Removedcommander@4.1.1(transitive)
- Removedextend-shallow@3.0.2(transitive)
- Removedhe@1.2.0(transitive)
- Removedhtml-minifier-terser@5.1.1(transitive)
- Removedis-extendable@1.0.1(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedisobject@3.0.1(transitive)
- Removedplugin-error@1.0.1(transitive)
- Removedterser@4.8.1(transitive)
Updatedplugin-error@^2.0.0