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

postcss-less

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-less - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

15

lib/nodes/inline-comment.js

@@ -0,1 +1,3 @@

/* eslint-disable no-param-reassign */
const tokenizer = require('postcss/lib/tokenize');

@@ -34,3 +36,2 @@ const Input = require('postcss/lib/input');

last = token;
// eslint-disable-next-line no-param-reassign
token = this.tokenizer.nextToken({ ignoreUnclosed: true });

@@ -43,5 +44,17 @@ }

return true;
} else if (token[1] === '/') {
// issue #135
const next = this.tokenizer.nextToken({ ignoreUnclosed: true });
if (next[0] === 'comment' && /^\/\*/.test(next[1])) {
next[0] = 'word';
next[1] = next[1].slice(1);
token[1] = '//';
this.tokenizer.back(next);
return module.exports.isInlineComment.bind(this)(token);
}
}
return false;
}
};

2

package.json
{
"name": "postcss-less",
"version": "3.1.3",
"version": "3.1.4",
"description": "LESS parser for PostCSS",

@@ -5,0 +5,0 @@ "license": "MIT",

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