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

node-sass

Package Overview
Dependencies
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sass - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

test/functions/colorBlue.scss

8

lib/cli.js

@@ -84,4 +84,4 @@ var watch = require('node-watch'),

// make sure it's an array
options.includePaths = argv['include-paths'];
// make sure it's an array.
options.includePaths = argv['include-path'];
if (!Array.isArray(options.includePaths)) {

@@ -108,7 +108,7 @@ options.includePaths = [options.includePaths];

if (watchDir === true) {
watchDir = []
watchDir = [];
} else if (!Array.isArray(watchDir)) {
watchDir = [watchDir];
}
watchDir.push(inFile)
watchDir.push(inFile);

@@ -115,0 +115,0 @@ var throttledRender = throttle(render, options, emitter);

@@ -5,3 +5,3 @@ {

"description": "wrapper around libsass",
"version": "0.6.5",
"version": "0.6.6",
"homepage": "https://github.com/andrew/node-sass",

@@ -8,0 +8,0 @@ "keywords": [

@@ -63,7 +63,11 @@ var path = require('path'),

it('should compile with --include-paths option', function(done){
var emitter = cli(['--include-paths', __dirname + '/lib', __dirname + '/include_path.scss']);
it('should compile with --include-path option', function(done){
var emitter = cli([
'--include-path', __dirname + '/lib',
'--include-path', __dirname + '/functions',
__dirname + '/include_path.scss'
]);
emitter.on('error', done);
emitter.on('render', function(css){
assert.equal(css.trim(), 'body {\n background: red; }');
assert.equal(css.trim(), 'body {\n background: red;\n color: blue; }');
fs.unlink(process.cwd() + '/include_path.css', done);

@@ -70,0 +74,0 @@ });

@@ -112,5 +112,5 @@ /*jshint multistr:true */

file: path.resolve(__dirname, "include_path.scss"),
includePaths: [path.resolve(__dirname, "lib")],
includePaths: [path.resolve(__dirname, "lib"), path.resolve(__dirname, "functions")],
success: function (css) {
done(assert.equal(css, "body {\n background: red; }\n"));
done(assert.equal(css, "body {\n background: red;\n color: blue; }\n"));
},

@@ -117,0 +117,0 @@ error: function (error) {

Sorry, the diff of this file is not supported yet

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