css-modules-require-hook
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137987
690