Socket
Socket
Sign inDemoInstall

stylus

Package Overview
Dependencies
Maintainers
0
Versions
182
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.12.0 to 0.12.1

6

History.md
0.12.1 / 2011-04-29
==================
* Fixed spaces around line-height shorthand. Closes #228
* Fixed `-{foo}` interpolation support. Closes #235
0.12.0 / 2011-04-29

@@ -3,0 +9,0 @@ ==================

3

lib/parser.js

@@ -521,2 +521,5 @@

return this.property();
case '-':
if ('{' == this.lookahead(2).type)
return this.property();
}

@@ -523,0 +526,0 @@ }

2

lib/stylus.js

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

exports.version = '0.12.0';
exports.version = '0.12.1';

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

@@ -355,7 +355,18 @@

Compiler.prototype.visitExpression = function(expr){
return expr.nodes.map(function(node){
return this.visit(node);
}, this).join(expr.isList
? (this.compress ? ',' : ', ')
: (this.isURL ? '' : ' '));
var buf = []
, self = this
, len = expr.nodes.length
, nodes = expr.nodes.map(function(node){ return self.visit(node); });
nodes.forEach(function(node, i){
var last = i == len - 1;
buf.push(node);
if ('/' == nodes[i + 1] || '/' == node) return;
if (last) return;
buf.push(expr.isList
? (self.compress ? ',' : ', ')
: (self.isURL ? '' : ' '));
});
return buf.join('');
};

@@ -362,0 +373,0 @@

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

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

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