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.0.6 to 0.0.7

13

lib/parser/parse-atrule-name-and-condition.js

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

while (token && !token.value.trim()) {
endIndex = token.range[1] - 1
token = cursor.next()

@@ -19,12 +20,17 @@ }

if (/^[^a-zA-Z0-9-"'([{]/u.test(token.value)) {
endIndex = token.range[1] - 1
name = token.value.slice(1)
identifier = token.value[0]
} else {
token = cursor.next()
} else if (/^[a-zA-Z0-9-]/u.test(token.value)) {
endIndex = token.range[1] - 1
name = token.value
identifier = ""
token = cursor.next()
} else {
name = ""
identifier = ""
}
endIndex = token.range[1] - 1
const afterName = []
token = cursor.next()
while (isSkipToken(token) && !isEndOfLineToken(token)) {

@@ -46,3 +52,2 @@ afterName.push(token)

if (token.type === "linebreak") {
// between.push(token)
endIndex = token.range[0] - 1

@@ -49,0 +54,0 @@ } else {

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