arc-resolver
Advanced tools
Comparing version 1.0.0 to 1.0.1
12
index.js
@@ -10,3 +10,3 @@ var fs = require('fs'); | ||
module.exports.joinFlags = joinFlags; | ||
module.exports.loadAdaptiveConfig = loadAdaptiveConfig; | ||
module.exports.loadArcConfig = loadArcConfig; | ||
module.exports.resolveFrom = resolveFrom; | ||
@@ -37,3 +37,3 @@ module.exports.getFileMatches = getFileMatches; | ||
function loadAdaptiveConfig(filepath) { | ||
function loadArcConfig(filepath) { | ||
if (configs[filepath]) { | ||
@@ -69,3 +69,3 @@ return configs[filepath]; | ||
pattern = /([\w\d-]+(?:\.[\w\d-]+)*)/; | ||
config = loadAdaptiveConfig(filepath); | ||
config = loadArcConfig(filepath); | ||
defaultName = config && config.default || 'default'; | ||
@@ -82,9 +82,5 @@ } else { | ||
var flags = match[1].split('.'); | ||
if (isIndexAdaptive) { | ||
if (!stat.isDirectory()) return; | ||
fullpath = resolve.sync(fullpath, { | ||
basedir: path.dirname(fullpath), | ||
extensions: extensions || ['.js'] | ||
}); | ||
} else { | ||
@@ -91,0 +87,0 @@ if (!stat.isFile()) return; |
{ | ||
"name": "arc-resolver", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,7 +15,7 @@ var fs = require('fs'); | ||
function requireArc(flags) { | ||
function requireArcComponent(flags) { | ||
return require(adaptResource(filepath, flags)); | ||
} | ||
module.exports = proxy(requireArc, config); | ||
module.exports = proxy(requireArcComponent, config); | ||
}; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
67763
206
1