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

stylus

Package Overview
Dependencies
Maintainers
2
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.39.0 to 0.39.1

42

lib/lexer.js

@@ -151,2 +151,13 @@

/**
* Check if the current token is a part of class selector.
*
* @return {Boolean}
* @api private
*/
isPartOfSelector: function() {
return !!(this.prev && '.' == this.prev.type);
},
/**
* Fetch next token.

@@ -346,6 +357,12 @@ *

null: function() {
var captures;
var captures
, tok;
if (captures = /^(null)\b[ \t]*/.exec(this.str)) {
this.skip(captures);
return new Token('null', nodes.null);
if (this.isPartOfSelector()) {
tok = new Token('ident', new nodes.Ident('null'));
} else {
tok = new Token('null', nodes.null);
}
return tok;
}

@@ -364,7 +381,13 @@ },

keyword: function() {
var captures;
var captures
, tok;
if (captures = /^(return|if|else|unless|for|in)\b[ \t]*/.exec(this.str)) {
var keyword = captures[1];
this.skip(captures);
return new Token(keyword, keyword);
if (this.isPartOfSelector()) {
tok = new Token('ident', new nodes.Ident(keyword));
} else {
tok = new Token(keyword, keyword);
}
return tok;
}

@@ -385,8 +408,13 @@ },

namedop: function() {
var captures;
var captures
, tok;
if (captures = /^(not|and|or|is a|is defined|isnt|is not|is)(?!-)\b([ \t]*)/.exec(this.str)) {
var op = captures[1];
this.skip(captures);
op = alias[op] || op;
var tok = new Token(op, op);
if (this.isPartOfSelector()) {
tok = new Token('ident', new nodes.Ident(op));
} else {
op = alias[op] || op;
tok = new Token(op, op);
}
tok.space = captures[2];

@@ -393,0 +421,0 @@ return tok;

2

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

@@ -6,0 +6,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