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.1.0 to 1.2.0

test/fixtures/compass/_n.scss

15

CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
## [next]
### Features
### Fixed
### Tests
## [1.2.0]
### Features
- Add support for custom imports
## [1.1.0] - 2015-03-18
### Fixed
- Only strip extension for css, scss, sass files
## [1.0.4] - 2015-03-03

@@ -5,0 +20,0 @@ ### Tests

2

package.json
{
"name": "sass-graph",
"version": "1.1.0",
"version": "1.2.0",
"description": "Parse sass files and extract a graph of imports",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -26,4 +26,5 @@ 'use strict';

}
var errMsg = "File to import not found or unreadable: " + sassPath;
throw errMsg;
// File to import not found or unreadable so we assume this is a custom import
return false
}

@@ -64,3 +65,3 @@

var resolved = resolveSassPath(imports[i], _.uniq(this.loadPaths));
if (!resolved) return false;
if (!resolved) continue;

@@ -67,0 +68,0 @@ // recurse into dependencies if not already enumerated

@@ -17,3 +17,6 @@

'j.scss': fixtures + "/j.scss",
'k.l.scss': fixtures + "/components/k.l.scss"
'k.l.scss': fixtures + "/components/k.l.scss",
'm.scss': fixtures + "/m.scss",
'_n.scss': fixtures + "/compass/_n.scss",
'_compass.scss': fixtures + "/components/_compass.scss"
}

@@ -49,2 +52,6 @@

it('should ignore custom imports for m.scss', function() {
assert.deepEqual([files['_compass.scss'] , files['_n.scss']], graph.index[files['m.scss']].imports);
});
it('should traverse ancestors of _c.scss', function() {

@@ -51,0 +58,0 @@ ancestors = [];

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