Socket
Socket
Sign inDemoInstall

critical

Package Overview
Dependencies
Maintainers
2
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

critical - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

4

package.json
{
"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

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