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.3.0 to 0.3.1

4

._History.md

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR���!�!com.macromates.caret{
column = 0;
Mac OS X  2��ATTRtX��"�"com.macromates.caret{
column = 65;
line = 6;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��"�"com.macromates.caret{
Mac OS X  2��ATTRt^��"�"com.macromates.caret{
column = 21;
line = 2;
}

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

Mac OS X  2��ATTR�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTRt`�� � com.macromates.caretx���R������<[k0?'3/«��
0.3.1 / 2011-02-04
==================
* Fixed property disambiguation logic. Closes #117
You no longer need to add a trailing comma when
chaining selectors such as 'td:nth-child(2)\ntd:nth-child(3)'
0.3.0 / 2011-02-04

@@ -3,0 +10,0 @@ ==================

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR��#�#com.macromates.caret{
Mac OS X  2��ATTRtk��#�#com.macromates.caret{
column = 24;
line = 25;
}

@@ -45,2 +45,32 @@

/**
* CSS3 pseudo-selectors.
*/
var pseudoSelectors = [
'root'
, 'nth-child'
, 'nth-last-child'
, 'nth-of-type'
, 'nth-last-of-type'
, 'first-child'
, 'last-child'
, 'first-of-type'
, 'last-of-type'
, 'only-child'
, 'only-of-type'
, 'empty'
, 'link'
, 'visited'
, 'active'
, 'hover'
, 'focus'
, 'target'
, 'lang'
, 'enabled'
, 'disabled'
, 'checked'
, 'not'
];
/**
* Initialize a new `Parser` with the given `str` and `options`.

@@ -197,2 +227,14 @@ *

/**
* Check if the token at `n` is a pseudo selector.
*
* @param {Number} n
* @return {Boolean}
* @api private
*/
isPseudoSelector: function(n){
return ~pseudoSelectors.indexOf(this.lookahead(n).val.name);
},
/**
* Valid selector tokens.

@@ -211,5 +253,12 @@ */

get looksLikeSelector() {
var i = 0;
// Assume pseudo selectors are NOT properties
// as 'td:th-child(1)' may look like a property
// and function call to the parser otherwise
while (this.isSelectorToken(++i)) {
if (':' == this.lookahead(i).type && this.isPseudoSelector(i + 1))
return true;
}
// Trailing comma
var i = 0;
while (this.isSelectorToken(++i)) ;
if (',' == this.lookahead(i).type

@@ -216,0 +265,0 @@ && 'newline' == this.lookahead(i + 1).type)

@@ -26,3 +26,3 @@

exports.version = '0.3.0';
exports.version = '0.3.1';

@@ -29,0 +29,0 @@ /**

{ "name": "stylus"
, "description": "Robust, expressive language which compiles to CSS"
, "version": "0.3.0"
, "version": "0.3.1"
, "author": "TJ Holowaychuk <tj@vision-media.ca>"

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

Sorry, the diff of this file is not supported yet

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