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

stylus

Package Overview
Dependencies
Maintainers
3
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.54.0 to 0.54.2

6

History.md

@@ -0,2 +1,8 @@

0.54.1 / 2016-03-11
===================
* Fix: False-positive import loop with empty imported file.
0.54.0 / 2016-03-05
===================

@@ -3,0 +9,0 @@ * Feature: Added initial reference selector.

18

lib/visitor/evaluator.js

@@ -44,2 +44,11 @@

// Avoid overflows from importing the same file over again
if (~importStack.indexOf(file))
throw new Error('import loop has been found');
var str = fs.readFileSync(file, 'utf8');
// shortcut for empty files
if (!str.trim()) return nodes.null;
// Expose imports

@@ -53,6 +62,2 @@ node.path = file;

// Avoid overflows from importing the same file over again
if (~importStack.indexOf(file))
throw new Error('import loop has been found');
if (this.options._imports) this.options._imports.push(node.clone());

@@ -64,7 +69,2 @@

var str = fs.readFileSync(file, 'utf8');
// shortcut for empty files
if (!str.trim()) return nodes.null;
if (literal) {

@@ -71,0 +71,0 @@ literal = new nodes.Literal(str.replace(/\r\n?/g, '\n'));

{
"name": "stylus",
"description": "Robust, expressive, and feature-rich CSS superset",
"version": "0.54.0",
"version": "0.54.2",
"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