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

sass-graph

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sass-graph - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

CHANGELOG.md
# 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

2

package.json
{
"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]);

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