Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arc-resolver

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-resolver - npm Package Compare versions

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);
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc