New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stylus

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylus - npm Package Compare versions

Comparing version 0.30.1 to 0.31.0

2

lib/lexer.js

@@ -459,3 +459,3 @@

var captures;
if (captures = /^@media[ \t]*([^\/{\n]+)/.exec(this.str)) {
if (captures = /^@media[ \t]*(.+?)(?=\/\/|[\n{])/.exec(this.str)) {
this.skip(captures);

@@ -462,0 +462,0 @@ return new Token('media', captures[1].trim());

@@ -95,2 +95,3 @@

if (this.shouldCoerce(op)) {
right = right.first;
// percentages

@@ -100,3 +101,3 @@ if (('-' == op || '+' == op) && '%' == right.type) {

} else {
right = this.coerce(right.first);
right = this.coerce(right);
}

@@ -103,0 +104,0 @@

@@ -27,3 +27,3 @@

exports.version = '0.30.1';
exports.version = '0.31.0';

@@ -30,0 +30,0 @@ /**

@@ -17,5 +17,5 @@

, 'Hz', 'kHz' // frequencies
, 'dpi', 'dpcm', 'dppx' // resolutions
, 'dpi', 'dpcm', 'dppx', 'x' // resolutions
, '%' // percentage type
, 'fr' // grid-layout (http://www.w3.org/TR/css3-grid-layout/)
];

@@ -457,2 +457,16 @@ /*!

function interpolateParent(selector, buf) {
var str = selector.val.trim();
if (buf.length) {
for (var i = 0, len = buf.length; i < len; ++i) {
if (~buf[i].indexOf('&')) {
str = buf[i].replace(/&/g, str).trim();
} else {
str += ' ' + buf[i].trim();
}
}
}
return str;
}
function compile(arr, i) {

@@ -466,3 +480,3 @@ if (i) {

} else {
selectors.push(selector.val);
selectors.push(interpolateParent(selector, buf));
}

@@ -472,12 +486,3 @@ });

arr[0].forEach(function(selector){
var str = selector.val.trim();
if (buf.length) {
for (var i = 0, len = buf.length; i < len; ++i) {
if (~buf[i].indexOf('&')) {
str = buf[i].replace(/&/g, str).trim();
} else {
str += ' ' + buf[i].trim();
}
}
}
var str = interpolateParent(selector, buf);
selectors.push(self.indent + str.trimRight());

@@ -484,0 +489,0 @@ });

@@ -652,3 +652,3 @@

// Literal
if (~path.indexOf('.css')) {
if (~path.indexOf('.css') && !~path.indexOf('.css.')) {
literal = true;

@@ -659,3 +659,3 @@ if (!includeCSS) return imported;

// support optional .styl
if (!literal && !~path.indexOf('.styl')) path += '.styl';
if (!literal && !/\.styl$/i.test(path)) path += '.styl';

@@ -1012,2 +1012,3 @@ // Lookup

case 'function':
case 'media':
return block;

@@ -1014,0 +1015,0 @@ }

@@ -218,4 +218,6 @@

groups.forEach(function(group){
self.extend(group, selectors);
group.push(node);
if (!group.nodes.some(function(n){ return n.val == selector })) {
self.extend(group, selectors);
group.push(node);
}
});

@@ -222,0 +224,0 @@ });

{ "name": "stylus"
, "description": "Robust, expressive, and feature-rich CSS superset"
, "version": "0.30.1"
, "version": "0.31.0"
, "author": "TJ Holowaychuk <tj@vision-media.ca>"

@@ -5,0 +5,0 @@ , "keywords": ["css", "parser", "style", "stylesheets", "jade", "language"]

@@ -120,2 +120,3 @@ # Stylus

- [DocPad](https://github.com/bevry/docpad)
- [Punch](https://github.com/laktek/punch-stylus-compiler)

@@ -122,0 +123,0 @@ ### Screencasts

Sorry, the diff of this file is not supported yet

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