Socket
Socket
Sign inDemoInstall

stylus-loader

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylus-loader - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

10

index.js

@@ -28,3 +28,5 @@ var loaderUtils = require('loader-utils');

options.import = options.import || stylusOptions.import || [];
options.define = options.define || stylusOptions.define || [];
options.include = options.include || stylusOptions.include || [];
options.set = options.set || stylusOptions.set || {};
options.define = options.define || stylusOptions.define || {};

@@ -62,2 +64,6 @@ if (options.sourceMap != null) {

});
} else if (key === 'set') {
for (var name in value) {
styl.set(name, value[name]);
}
} else if (key === 'define') {

@@ -67,2 +73,4 @@ for (var defineName in value) {

}
} else if (key === 'include') {
needsArray(value).forEach(styl.include);
} else if (key === 'import') {

@@ -69,0 +77,0 @@ needsArray(value).forEach(function(stylusModule) {

2

package.json
{
"name": "stylus-loader",
"version": "2.0.1",
"version": "2.1.0",
"description": "Stylus loader for webpack",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -105,2 +105,3 @@ # stylus-loader

* Please see https://github.com/shama/stylus-loader/releases
* 2.1.0 - Add support for stylus's include and set (@michaek)
* 2.0.1 - Add peer dependency on stylus (@jchitel), fix PathCache for webpack 2 (@Unhelpful)

@@ -107,0 +108,0 @@ * 2.0.0 - Remove dependency on stylus (@kossnocorps)

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