require-context.macro
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -38,3 +38,3 @@ function context(basedir, directory, useSubdirectories = false, regExp = /^\.\//) { | ||
function requireContext(key) { | ||
return require(resolve(fullKey)); | ||
return require(resolve(key)); | ||
} | ||
@@ -41,0 +41,0 @@ |
{ | ||
"name": "require-context.macro", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A Babel Macro for the require-context plugin", | ||
@@ -5,0 +5,0 @@ "main": "require-context.macro.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
12459