Comparing version 0.5.3 to 0.5.4
{ | ||
"name": "critical", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Extract & Inline Critical-path CSS from HTML", | ||
@@ -19,2 +19,3 @@ "author": "Addy Osmani", | ||
}, | ||
"preferGlobal": true, | ||
"main": "src/critical.js", | ||
@@ -45,2 +46,3 @@ "keywords": [ | ||
"slash": "^1.0.0", | ||
"tempfile": "^1.1.0", | ||
"tmp": "0.0.24" | ||
@@ -47,0 +49,0 @@ }, |
@@ -20,2 +20,3 @@ /* | ||
var os = require('os'); | ||
var tempfile = require('tempfile'); | ||
@@ -159,9 +160,6 @@ | ||
}, '').then(function (css) { | ||
return tmpfile({dir: opts.base, postfix: '.css'}) | ||
.then(resolveTmp) | ||
.then(function(path){ | ||
return fs.writeFileAsync(path,css).then(function(){ | ||
return path; | ||
}); | ||
}); | ||
var csspath = tempfile('.css'); | ||
return fs.writeFileAsync(csspath,css).then(function(){ | ||
return csspath; | ||
}); | ||
@@ -168,0 +166,0 @@ // let penthouseAsync do the rest |
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
22690
16
320
+ Addedtempfile@^1.1.0
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedtempfile@1.1.1(transitive)
+ Addeduuid@2.0.3(transitive)