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 1.4.2 to 1.4.3

16

lib/pathcache.js

@@ -98,3 +98,7 @@ var path = require('path');

}
return utils.find(path, options.paths, options.filename);
var found = utils.find(path, options.paths, options.filename)
if (found) {
return normalizePaths(found);
}
},

@@ -109,5 +113,6 @@ // Stylus's normal resolver for node_modules packages. Cannot locate paths

}
var found = utils.lookupIndex(path, options.paths, options.filename);
if (found) {
return {path: found, index: true};
return {path: normalizePaths(found), index: true};
}

@@ -266,1 +271,8 @@ },

}
function normalizePaths(paths) {
for(var i in paths) {
paths[i] = path.normalize(paths[i]);
}
return paths;
}

2

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

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

@@ -71,2 +71,15 @@ # stylus-loader

#### Using nib with stylus
The easiest way of enabling `nib` is to import it in the stylus options:
```js
stylus: {
use: [require('nib')()],
import: ['~nib/lib/nib/index.styl']
}
```
where `~` resolves to `node_modules/`
## Install

@@ -88,2 +101,3 @@

## Release History
* Please see https://github.com/shama/stylus-loader/releases
* 1.3.0 - resolve use() calls (@mzgoddard), manual imports through path cache (@mzgoddard)

@@ -90,0 +104,0 @@ * 1.2.0 - files in package.json (@SimenB), test running with testem (@mzgoddard), and some performance changes (@mzgoddard)

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