web-resource-inliner
Advanced tools
Comparing version 4.1.1 to 4.2.0
## Release History | ||
### 2017-09-06 *v4.2.0* | ||
Fixes: Skip inlining of srcs that are already data uris | ||
### 2017-09-06 *v4.1.1* | ||
@@ -4,0 +7,0 @@ Fixes: buffer.toString() encoding fix for nodejs 8 |
@@ -8,3 +8,3 @@ { | ||
"description": "Inlines img, script and link tags into the same file.", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"keywords": [ | ||
@@ -41,2 +41,3 @@ "inline", | ||
"request": "^2.78.0", | ||
"valid-data-url": "^0.1.4", | ||
"xtend": "^4.0.0" | ||
@@ -43,0 +44,0 @@ }, |
@@ -9,2 +9,3 @@ "use strict"; | ||
var chalk = require( "chalk" ); | ||
var validDataUrl = require( "valid-data-url" ); | ||
@@ -183,2 +184,6 @@ var util = {}; | ||
} | ||
else if( validDataUrl( src ) ) | ||
{ | ||
callback( null, src ); | ||
} | ||
else | ||
@@ -185,0 +190,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
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
1
31356
8
14
506
+ Addedvalid-data-url@^0.1.4
+ Addedvalid-data-url@0.1.6(transitive)