Comparing version 0.54.0 to 0.54.2
@@ -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. |
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
407913
4