@web/config-loader
Advanced tools
+1
-1
| { | ||
| "name": "@web/config-loader", | ||
| "version": "0.3.2", | ||
| "version": "0.3.3", | ||
| "publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -20,3 +20,2 @@ const getPackageType = require('./getPackageType'); | ||
| async function importOrRequireConfig(configPath, basedir) { | ||
| const packageType = await getPackageType(basedir); | ||
| const ext = path.extname(configPath); | ||
@@ -30,2 +29,3 @@ | ||
| default: | ||
| const packageType = await getPackageType(basedir); | ||
| return packageType === 'module' ? importConfig(configPath) : requireConfig(configPath); | ||
@@ -32,0 +32,0 @@ } |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
11086
0.04%