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

less-loader

Package Overview
Dependencies
Maintainers
2
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 2.2.2 to 2.2.3

.idea/shelf/imports_fallback_https___github_com_webpack_less_loader_issues_74.xml

5

CHANGELOG.md
Changelog
---------
### 2.2.3
- Fix missing path information in source map [#73](https://github.com/webpack/less-loader/pull/73)
- Add deprecation warning [#84](https://github.com/webpack/less-loader/issues/84)
### 2.2.2

@@ -5,0 +10,0 @@

16

index.js

@@ -12,2 +12,3 @@ "use strict";

var path = require("path");
var util = require("util");

@@ -63,3 +64,2 @@ var trailingSlash = /[\\\/]$/;

less.render(source, config, function(e, result) {
var parsedMap;
var cb = finalCb;

@@ -72,12 +72,2 @@ // Less is giving us double callbacks sometimes :(

if (result.map) {
parsedMap = JSON.parse(result.map);
parsedMap.sources = parsedMap.sources.map(function(file) {
return path.basename(file);
});
result.map = JSON.stringify(parsedMap);
}
cb(null, result.css, result.map);

@@ -144,3 +134,3 @@ });

WebpackFileManager.prototype.loadFileSync = function(filename, currentDirectory, options, environment) {
WebpackFileManager.prototype.loadFileSync = util.deprecate(function(filename, currentDirectory, options, environment) {
var moduleRequest = loaderUtils.urlToRequest(filename, query.root);

@@ -159,3 +149,3 @@ // Less is giving us trailing slashes, but the context should have no trailing slash

};
};
}, "We are planing to remove enhanced-require support with the next major release of the less-loader: https://github.com/webpack/less-loader/issues/84");

@@ -162,0 +152,0 @@ return WebpackFileManager;

{
"name": "less-loader",
"version": "2.2.2",
"version": "2.2.3",
"author": "Tobias Koppers @sokra",
"description": "less loader module for webpack",
"scripts": {
"test": "mocha -R spec",
"test": "node --no-deprecation node_modules/.bin/_mocha -R spec",
"test-source-map": "webpack --config test/sourceMap/webpack.config.js && open ./test/sourceMap/index.html"

@@ -14,10 +14,10 @@ },

"devDependencies": {
"css-loader": "^0.9.1",
"css-loader": "^0.23.1",
"enhanced-require": "^0.5.0-beta6",
"extract-text-webpack-plugin": "^0.5.0",
"less": "^2.3.1",
"mocha": "^2.0.1",
"extract-text-webpack-plugin": "^1.0.1",
"less": "^2.6.1",
"mocha": "^2.4.5",
"raw-loader": "^0.5.1",
"should": "^5.2.0",
"webpack": "^1.1.8"
"should": "^8.3.0",
"webpack": "^1.12.14"
},

@@ -24,0 +24,0 @@ "repository": {

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