@gasket/resolve
Advanced tools
Comparing version 6.38.5 to 6.38.6
const path = require('path'); | ||
const { readdir } = require('fs').promises; | ||
const defaultsDeep = require('lodash.defaultsdeep'); | ||
const { applyConfigOverrides, tryRequire } = require('@gasket/utils'); | ||
const { applyConfigOverrides, tryResolve } = require('@gasket/utils'); | ||
const { flattenPresets } = require('./preset-utils'); | ||
@@ -21,3 +21,6 @@ const jsExtension = /\.(js|cjs)$/i; | ||
const absolutePath = !path.isAbsolute(configFile) ? path.join(root, configFile) : configFile; | ||
return tryRequire(absolutePath); | ||
const resolvedPath = tryResolve(absolutePath); | ||
if (resolvedPath) { | ||
return require(resolvedPath); | ||
} | ||
} | ||
@@ -24,0 +27,0 @@ |
{ | ||
"name": "@gasket/resolve", | ||
"version": "6.38.5", | ||
"version": "6.38.6", | ||
"description": "Essential module resolution & configuration management for gasket plugins & presets.", | ||
@@ -50,3 +50,3 @@ "main": "lib", | ||
"devDependencies": { | ||
"@gasket/engine": "^6.38.5", | ||
"@gasket/engine": "^6.38.6", | ||
"@godaddy/dmd": "^1.0.0", | ||
@@ -74,6 +74,9 @@ "eslint": "^8.7.0", | ||
}, | ||
"eslintIgnore": [ | ||
"test/fixtures" | ||
], | ||
"jest": { | ||
"testEnvironment": "node" | ||
}, | ||
"gitHead": "e440984a7bdbd12ee13052dad690fee6a60cc360" | ||
"gitHead": "cc8c019699952d22567b85fd742fac81414b84a2" | ||
} |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
64281
1257
3