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

postcss-styl

Package Overview
Dependencies
Maintainers
2
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.11.0 to 0.11.1

23

lib/parser/parse-raw-after.js
"use strict"
const { tokensToRaws, isSkipToken } = require("./token-utils")
const { findLastIndex, findIndex } = require("./util")
const { findLastIndex } = require("./util")

@@ -26,3 +26,3 @@ module.exports = (sourceCode, end, opt = {}) => {

: after
if (options.bodyStartIndex != null || options.maxIndent != null) {
if (options.maxIndent != null) {
// Process for

@@ -32,19 +32,4 @@ // | .a

// | // comment
let maxIndent = options.maxIndent
if (maxIndent == null) {
const firstTokenIndex = findIndex(
sourceCode.text,
(c) => c.trim(),
options.bodyStartIndex,
)
if (firstTokenIndex >= 0) {
// Comments beyond the indentation of the first token are child node comments.
maxIndent = sourceCode.getIndentFromIndex(firstTokenIndex)
}
}
if (maxIndent != null) {
afterTokens = processComment(sourceCode, afterTokens, maxIndent)
}
const maxIndent = options.maxIndent
afterTokens = processComment(sourceCode, afterTokens, maxIndent)
}

@@ -51,0 +36,0 @@

2

package.json
{
"name": "postcss-styl",
"version": "0.11.0",
"version": "0.11.1",
"description": "PostCSS parser plugin for converting Stylus syntax to PostCSS AST.",

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

Sorry, the diff of this file is too big to display

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