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

express-compiless

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-compiless - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

lib/flattenLessText.js

@@ -14,3 +14,3 @@ var Path = require('path'),

return '/*' + commentBody.replace(/@/g, ' ') + '*/';
}).replace(/\/\/[^\r\n]*/g, function ($0, commentBody) {
}).replace(/\/\/([^\r\n]*)/g, function ($0, commentBody) {
return '//' + commentBody.replace(/@/g, ' ');

@@ -17,0 +17,0 @@ });

{
"name": "express-compiless",
"version": "0.2.0",
"version": "0.2.1",
"description": "Express middleware that compiles less files to css on the way out.",

@@ -5,0 +5,0 @@ "main": "lib/compiless.js",

@@ -36,3 +36,3 @@ var express = require('express'),

request(baseUrl + '/stylesheet.less', passError(done, function (response, body) {
expect(body).to.equal('.compilessinclude {background-image: url(imports/a.less); display: none;}\nbody {\n width: 100%;\n}\n#foo #bar {\n color: red;\n}\n');
expect(body).to.equal('.compilessinclude {background-image: url(imports/a.less); display: none;}\nbody {\n width: 100%;\n}\n#foo #bar {\n color: red;\n}\n/* multi-line\n comment\n*/\n');
expect(response.headers['content-type']).to.equal('text/css');

@@ -39,0 +39,0 @@ done();

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