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

postcss-html

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-html - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

19

lib/parser.js

@@ -33,3 +33,3 @@ 'use strict';

index = style.startIndex + style.content.length;
document.push(root);
document.nodes.push(root);
});

@@ -45,2 +45,19 @@ document.raws.afterEnd = source.slice(index);

document.each = callback => {
let wasBreak, lastResult;
document.nodes.forEach(node => {
const result = node.each(callback);
if ( result === false ) {
wasBreak = true;
} else {
lastResult = result;
}
});
if (wasBreak) {
return false;
} else {
return lastResult;
}
};
return document;

@@ -47,0 +64,0 @@ }

2

package.json
{
"name": "postcss-html",
"version": "0.5.0",
"version": "0.6.0",
"description": "PostCSS Syntax for parsing HTML / Markdown / Vue Component",

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

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