sass-graph
Advanced tools
Comparing version 1.0.2 to 1.0.3
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
## [1.0.3] - 2015-02-02 | ||
### Fixed | ||
- Replace incorrect usage of `for..in` loops with simple `for` loops | ||
## [1.0.2] - 2015-02-02 | ||
@@ -5,0 +9,0 @@ ### Fixed |
{ | ||
"name": "sass-graph", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Parse sass files and extract a graph of imports", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -14,5 +14,5 @@ 'use strict'; | ||
// check all load paths | ||
for(var p in loadPaths) { | ||
if (!loadPaths.hasOwnProperty(p)) continue; | ||
var scssPath = path.normalize(loadPaths[p] + "/" + sassPathName + ".scss"); | ||
var i, length = loadPaths.length; | ||
for(i = 0; i < length; i++) { | ||
var scssPath = path.normalize(loadPaths[i] + "/" + sassPathName + ".scss"); | ||
if (fs.existsSync(scssPath)) { | ||
@@ -56,4 +56,4 @@ return scssPath; | ||
for (var i in imports) { | ||
if (!imports.hasOwnProperty(i)) continue; | ||
var i, length = imports.length; | ||
for (i = 0; i < length; i++) { | ||
[this.dir, cwd].forEach(function (path) { | ||
@@ -114,4 +114,5 @@ if (path && this.loadPaths.indexOf(path) === -1) { | ||
var edges = edgeCallback(null, this.index[filepath]); | ||
for(var i in edges) { | ||
if (!edges.hasOwnProperty(i)) continue; | ||
var i, length = edges.length; | ||
for (i = 0; i < length; i++) { | ||
if(!_.contains(visited, edges[i])) { | ||
@@ -118,0 +119,0 @@ visited.push(edges[i]); |
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
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
15118