Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inline-critical

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-critical - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

projectFilesBackup/.idea/workspace.xml

2

package.json
{
"name": "inline-critical",
"version": "0.0.5",
"version": "0.0.6",
"description": "Inline critical-path css and load the existing stylesheets asynchronously",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -51,6 +51,8 @@ 'use strict';

var expected = read('test/fixtures/cartoon-expected.css');
var expectedHtml = read('test/fixtures/cartoon-expected.html');
inlineCritical(html, css, { extract: true, basePath: 'test/fixtures' });
var out = inlineCritical(html, css, { extract: true, basePath: 'test/fixtures' });
expect(read(reaver.rev('test/fixtures/cartoon.css', expected))).to.be.equal(expected);
expect(read(reaver.rev('test/fixtures/css/cartoon.css', expected))).to.be.equal(expected);
expect(strip(out.toString('utf-8'))).to.be.equal(strip(expectedHtml));

@@ -57,0 +59,0 @@ done();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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