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

ignore-styles

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignore-styles - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

2

package.json
{
"name": "ignore-styles",
"version": "4.0.0",
"version": "5.0.0",
"description": "Ignore imported style files when running in Node",

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

@@ -58,3 +58,3 @@ # ignore-styles

```js
require('ignore-styles')(['.sass', '.scss'])
require('ignore-styles').default(['.sass', '.scss']);
```

@@ -86,5 +86,8 @@

```js
const _ = require('lodash');
const path = require('path');
register(undefined, (module, filename) => {
if (_.some(['.png', '.jpg'], ext => filename.endsWith(ext))) {
return path.basename(filename)
module.exports = path.basename(filename);
}

@@ -91,0 +94,0 @@ })

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