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

css-modules-require-hook

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-modules-require-hook - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

19

dist/index.js

@@ -88,2 +88,12 @@ 'use strict';

var extraExtensions = (0, _utility.get)('extensions', null, 'array', opts);
if (extraExtensions) {
extraExtensions.forEach(function (extension) {
(0, _hook2['default'])(function (filename) {
return fetch(filename, filename);
}, extension);
});
}
// Warning. Options, which aren't affected by plugins, should be processed above.
var customPlugins = (0, _utility.get)('use', ['u'], 'array', opts);

@@ -104,11 +114,2 @@ if (customPlugins) {

plugins.push(generateScopedName ? new _postcssModulesScope2['default']({ generateScopedName: opts.generateScopedName }) : _postcssModulesScope2['default']);
var extraExtensions = (0, _utility.get)('extensions', null, 'array', opts);
if (extraExtensions) {
extraExtensions.forEach(function (extension) {
(0, _hook2['default'])(function (filename) {
return fetch(filename, filename);
}, extension);
});
}
}

@@ -115,0 +116,0 @@

{
"name": "css-modules-require-hook",
"version": "1.0.6",
"version": "1.0.7",
"description": "A require hook to compile CSS Modules on the fly",

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

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