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 2.0.2 to 2.0.3

7

dist/index.js

@@ -32,4 +32,2 @@ 'use strict';

var _utility = require('./utility');
var _validate = require('./validate');

@@ -89,8 +87,7 @@

/**
* @param {string} _to Absolute or relative path. Also can be path to the Node.JS module.
* @param {string} to Absolute or relative path. Also can be path to the Node.JS module.
* @param {string} from Absolute path.
* @return {object}
*/
function fetch(_to, from) {
var to = (0, _utility.removeQuotes)(_to);
function fetch(to, from) {
// getting absolute path to the processing file

@@ -97,0 +94,0 @@ var filename = /\w/i.test(to[0]) ? require.resolve(to) : (0, _path.resolve)((0, _path.dirname)(from), to);

@@ -7,3 +7,2 @@ 'use strict';

exports.is = is;
exports.removeQuotes = removeQuotes;

@@ -38,11 +37,2 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

return check[type](value);
}
/**
* @param {string} str
* @return {string}
*/
function removeQuotes(str) {
return str.replace(/^["']|["']$/g, '');
}
{
"name": "css-modules-require-hook",
"version": "2.0.2",
"version": "2.0.3",
"description": "A require hook to compile CSS Modules on the fly",

@@ -18,3 +18,3 @@ "main": "index.js",

"lodash.isstring": "^3.0.1",
"postcss-modules-parser": "^1.0.1"
"postcss-modules-parser": "^1.1.0"
},

@@ -21,0 +21,0 @@ "devDependencies": {

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