Socket
Socket
Sign inDemoInstall

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.5.4 to 0.6.0

libsass/.npmignore

2

package.json

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

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

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

var spawn = require('child_process').spawn;
if (process.platform === 'darwin') {
// Only rebuild the binaries if on Mac OS or Linux, as we're assuming that
// the toolchain exists. This is here to not rebuild on windows, as that
// had issues as of https://github.com/andrew/node-sass/issues/123
if (process.platform === 'darwin' || process.platform === 'linux') {
spawn('node-gyp', ['rebuild']);
}

@@ -33,6 +33,6 @@ var binding;

var paths, style;
options = typeof options !== 'object' ? {} : options;
paths = options.include_paths || options.includePaths || [];
style = SASS_OUTPUT_STYLE[options.output_style || options.outputStyle] || 0;
comments = SASS_SOURCE_COMMENTS[options.source_comments || options.sourceComments] || 0;
var options = typeof options !== 'object' ? {} : options;
var paths = options.include_paths || options.includePaths || [];
var style = SASS_OUTPUT_STYLE[options.output_style || options.outputStyle] || 0;
var comments = SASS_SOURCE_COMMENTS[options.source_comments || options.sourceComments] || 0;

@@ -39,0 +39,0 @@ return {

@@ -1,19 +0,19 @@

var util = require('util');
var sass = require('../sass');
var fs = require('fs');
var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'large_test.scss'));
var numTestCases = 1000;
var numCompiled = 0;
console.log(util.inspect(process.memoryUsage()));
for (var i = 0; i < numTestCases; i++) {
sass.render({
data: bigScssStr,
success: function() {
numCompiled++;
if (numCompiled === numTestCases) {
console.log(util.inspect(process.memoryUsage()));
}
}
});
}
// var util = require('util');
// var sass = require('../sass');
// var fs = require('fs');
//
// var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'large_test.scss'));
// var numTestCases = 1000;
// var numCompiled = 0;
// console.log(util.inspect(process.memoryUsage()));
// for (var i = 0; i < numTestCases; i++) {
// sass.render({
// data: bigScssStr,
// success: function() {
// numCompiled++;
// if (numCompiled === numTestCases) {
// console.log(util.inspect(process.memoryUsage()));
// }
// }
// });
// }

@@ -1,12 +0,12 @@

var util = require('util');
var sass = require('../sass');
var fs = require('fs');
var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'./large_test.scss'));
var numTestCases = 1000;
var numCompiled = 0;
console.log(util.inspect(process.memoryUsage()));
for (var i = 0; i < numTestCases; i++) {
sass.renderSync({data: bigScssStr});
}
console.log(util.inspect(process.memoryUsage()));
// var util = require('util');
// var sass = require('../sass');
// var fs = require('fs');
//
// var bigScssStr = fs.readFileSync(require('path').resolve(__dirname,'./large_test.scss'));
// var numTestCases = 1000;
// var numCompiled = 0;
// console.log(util.inspect(process.memoryUsage()));
// for (var i = 0; i < numTestCases; i++) {
// sass.renderSync({data: bigScssStr});
// }
// console.log(util.inspect(process.memoryUsage()));

@@ -68,14 +68,2 @@ /*jshint multistr:true */

});
it("should compile with render and source map outputs", function(done) {
sass.render({
file: sampleFilename,
source_comments: 'map',
success: function (css) {
done(assert.equal(css, expectedDebugScssStr));
},
error: function (error) {
done(error);
}
});
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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