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.10 to 0.5.11

lib/parser/parse-media-params.js

25

lib/parser/index.js

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

const parseExpression = require("./parse-expression")
const parseMediaParams = require("./parse-media-params")
const getSelectorEndIndex = require("./get-selector-end-index")

@@ -410,3 +411,3 @@ const getCssLiteralIndices = require("./get-css-literal-indices")

media(node, parent, info) {
this.atruleImpl(
const atRule = this.atruleImpl(
node,

@@ -419,2 +420,24 @@ {

)
const startIndex =
this.sourceCode.getIndex(atRule.source.start) +
6 /* @media */ +
atRule.raws.afterName.length
const paramsText =
(atRule.raws.params &&
(atRule.raws.params.stylus || atRule.raws.params.raw)) ||
atRule.params
const mediaParams = parseMediaParams(
this.sourceCode,
startIndex,
startIndex + paramsText.length - 1
)
if (
mediaParams.raw.stylus !== mediaParams.raw.raw &&
mediaParams.params !== atRule.params
) {
atRule.raws.params = mediaParams.raw
atRule.params = mediaParams.params
}
}

@@ -421,0 +444,0 @@

2

package.json
{
"name": "postcss-styl",
"version": "0.5.10",
"version": "0.5.11",
"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