Socket
Socket
Sign inDemoInstall

node-sass

Package Overview
Dependencies
Maintainers
4
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.9.5-rc1 to 0.9.5

test/sass-spec.js

2

lib/cli.js

@@ -165,3 +165,3 @@ var watch = require('node-watch'),

if (!options.dest) {
if (!options.dest && (process.stdout.isTTY || process.env.isTTY)) {
var suffix = '.css';

@@ -168,0 +168,0 @@ if (/\.css$/.test(options.src)) {

@@ -31,3 +31,3 @@ var sass = require('../sass'),

if (options.stdout || (!process.stdout.isTTY && !process.env.isTTY)) {
if (options.stdout || (!options.dest && (!process.stdout.isTTY || !process.env.isTTY))) {
emitter.emit('log', css);

@@ -34,0 +34,0 @@ return done();

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

"description": "wrapper around libsass",
"version": "0.9.5-rc1",
"version": "0.9.5",
"homepage": "https://github.com/sass/node-sass",

@@ -42,11 +42,11 @@ "keywords": [

"dependencies": {
"chalk": "~0.4.0",
"mkdirp": "~0.3.5",
"mocha": "~1.18.2",
"chalk": "~0.5.1",
"mkdirp": "~0.5.0",
"mocha": "~1.21.4",
"nan": "~1.3.0",
"node-watch": "~0.3.4",
"object-assign": "^0.3.1",
"shelljs": "~0.2.6",
"sinon": "~1.9.1",
"node-sass-middleware": "~0.2.0",
"object-assign": "~1.0.0",
"shelljs": "~0.3.0",
"sinon": "~1.10.3",
"node-sass-middleware": "~0.3.0",
"yargs": "~1.3.1",

@@ -61,4 +61,4 @@ "get-stdin": "~3.0.0"

"mocha-lcov-reporter": "^0.0.1",
"object-assign": "^0.3.1"
"object-assign": "^1.0.0"
}
}

@@ -9,4 +9,3 @@ # node-sass

[![devDependency Status](https://david-dm.org/sass/node-sass/dev-status.svg?theme=shields.io)](https://david-dm.org/sass/node-sass#info=devDependencies)
[![Coverage Status](http://img.shields.io/coveralls/sass/node-sass.svg)](https://coveralls.io/r/sass/node-sass)
[![Gitter chat](https://badges.gitter.im/sass/node-sass.png)](https://gitter.im/sass/node-sass)
[![Gitter chat](http://img.shields.io/badge/gitter-sass/node--sass-brightgreen.svg)](https://gitter.im/sass/node-sass)

@@ -37,2 +36,4 @@ Node-sass is a library that provides binding for Node.js to [libsass], the C version of the popular stylesheet preprocessor, Sass.

Compiling versions 0.9.4 and above on Windows machines requires [Visual Studio 2013 WD](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop). If you have multiple VS versions, use ```npm install``` with the ```--msvs_version=2013``` flag.
## Usage

@@ -39,0 +40,0 @@

@@ -73,2 +73,6 @@ var path = require('path');

if (options.imagePath && typeof options.imagePath !== 'string') {
throw new Error('imagePath needs to be a string');
}
return {

@@ -75,0 +79,0 @@ file: options.file || null,

@@ -37,2 +37,3 @@ var path = require('path'),

it('should read data from stdin', function(done) {
this.timeout(6000);
var src = fs.createReadStream(sampleScssPath);

@@ -50,2 +51,19 @@ var emitter = spawn(cliPath, ['--stdout']);

it('should write to disk when using --output', function(done) {
this.timeout(6000);
var src = fs.createReadStream(sampleScssPath);
var emitter = spawn(cliPath, ['--output', sampleCssOutputPath], {
stdio: [null, 'ignore', null]
});
emitter.on('close', function() {
fs.exists(sampleCssOutputPath, function(exists) {
assert(exists);
fs.unlink(sampleCssOutputPath, done);
});
});
src.pipe(emitter.stdin);
});
it('should print help when run with no arguments', function(done) {

@@ -61,2 +79,3 @@ var env = assign(process.env, { isTTY: true });

it('should compile sample.scss as sample.css', function(done) {
this.timeout(6000);
var env = assign(process.env, { isTTY: true });

@@ -79,2 +98,3 @@ var resultPath = path.join(__dirname, 'sample.css');

it('should compile sample.scss to ../out.css', function(done) {
this.timeout(6000);
var env = assign(process.env, { isTTY: true });

@@ -81,0 +101,0 @@ var resultPath = path.resolve(__dirname, '../out.css');

@@ -138,2 +138,17 @@ var sass = process.env.NODESASS_COVERAGE ? require('../sass-coverage') : require('../sass');

});
it('should throw on non-string path', function(done) {
try {
sass.render({
file: path.resolve(__dirname, 'image_path.scss'),
imagePath: ['/path/to/images'],
success: function () {},
error: function () {}
});
} catch(err) {
assert(err);
return done();
}
done(new Error('did not throw'));
});
});

@@ -140,0 +155,0 @@

Sorry, the diff of this file is not supported yet

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