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

postcss-styl

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-styl - npm Package Compare versions

Comparing version 0.5.8 to 0.5.9

1

lib/parser/index.js

@@ -1233,2 +1233,3 @@ "use strict"

atRule.raws = atRuleRaws
atRule.cssLiteral = true

@@ -1235,0 +1236,0 @@ parent.nodes.push(atRule)

5

lib/parser/parse-raw-after.js

@@ -19,3 +19,6 @@ "use strict"

const afterTokens =
token && token.value !== ";" && token.value !== "}"
token &&
token.value !== ";" &&
token.value !== "}" &&
token.value !== "{"
? stripStartLineComments(after)

@@ -22,0 +25,0 @@ : after

@@ -12,3 +12,3 @@ "use strict"

function isCssLiteral(node) {
return node.type === "atrule" && node.name === "css"
return node.type === "atrule" && node.name === "css" && node.cssLiteral
}

@@ -24,3 +24,6 @@

}
if (!node.nodes || !node.nodes.length) {
if (
!node.nodes ||
!node.nodes.some(n => n.type !== "comment" || !n.raws.inline)
) {
// empty

@@ -27,0 +30,0 @@ return false

{
"name": "postcss-styl",
"version": "0.5.8",
"version": "0.5.9",
"description": "PostCSS parser plugin for converting Stylus syntax to PostCSS AST.",

@@ -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