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.4 to 0.5.5

16

lib/parser/parse-selector.js
"use strict"
const { tokensToRaws } = require("./token-utils")
const { tokensToRaws, isSkipToken } = require("./token-utils")

@@ -76,12 +76,10 @@ module.exports = (sourceCode, selectorLocations) => {

linebreak = false
} else if (token.type === "linebreak" && cursor.scopeLevel === 0) {
} else if (
token.type === "linebreak" &&
cursor.scopeLevel === 0 &&
selector.some(t => !isSkipToken(t))
) {
selector.push(token)
linebreak = true
} else if (
linebreak &&
token.type !== "whitespace" &&
token.type !== "linebreak" &&
token.type !== "comment" &&
token.type !== "inline-comment"
) {
} else if (linebreak && !isSkipToken(token)) {
selectors.push(selector)

@@ -88,0 +86,0 @@ selector = []

{
"name": "postcss-styl",
"version": "0.5.4",
"version": "0.5.5",
"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