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

less-loader

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

less-loader - npm Package Compare versions

Comparing version 0.7.6 to 0.7.7

test/less/error.less

5

index.js

@@ -94,3 +94,5 @@ /*

} catch(e) {
loaderContext.callback(formatLessLoaderError(e, filename));
if(!errored)
loaderContext.callback(formatLessLoaderError(e, filename));
errored = true;
}

@@ -108,2 +110,3 @@ }

}, function(e, result) {
if(errored) return;
if(e) return resultcb(formatLessRenderError(e));

@@ -110,0 +113,0 @@ resultcb(null, result);

2

package.json
{
"name": "less-loader",
"version": "0.7.6",
"version": "0.7.7",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "less loader module for webpack",

@@ -84,2 +84,21 @@ "use strict";

test("should transform urls to files above the sibling directory", "folder2/url-path");
it("should report error correctly", function(done) {
webpack({
entry: path.resolve(__dirname, "../index.js") + "!" +
path.resolve(__dirname, "./less/error.less"),
output: {
path: __dirname + "/output",
filename: "bundle.js"
}
}, function(err, stats) {
if(err) throw err;
var json = stats.toJson();
json.warnings.should.be.eql([]);
json.errors.length.should.be.eql(1);
var theError = json.errors[0];
theError.should.match(/not-existing/);
done();
});
});
});
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