Socket
Socket
Sign inDemoInstall

postcss-scss

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-scss - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

18

lib/scss-parser.js

@@ -8,7 +8,7 @@ let { Comment } = require('postcss')

class ScssParser extends Parser {
createTokenizer () {
createTokenizer() {
this.tokenizer = scssTokenizer(this.input)
}
rule (tokens) {
rule(tokens) {
let withColon = false

@@ -58,4 +58,12 @@ let brackets = 0

}
node.source.start = { line: tokens[0][2], column: tokens[0][3] }
if (tokens[0][2]) {
let pos = this.input.fromOffset(tokens[0][2])
node.source.start = {
offset: tokens[0][2],
line: pos.line,
column: pos.col
}
}
node.prop = ''

@@ -133,3 +141,3 @@ while (tokens.length) {

comment (token) {
comment(token) {
if (token[4] === 'inline') {

@@ -160,3 +168,3 @@ let node = new Comment()

raw (node, prop, tokens) {
raw(node, prop, tokens) {
super.raw(node, prop, tokens)

@@ -163,0 +171,0 @@ if (node.raws[prop]) {

{
"name": "postcss-scss",
"version": "4.0.0",
"version": "4.0.1",
"description": "SCSS parser for PostCSS",

@@ -5,0 +5,0 @@ "keywords": [

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