New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amend

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amend - npm Package Compare versions

Comparing version

to
0.3.7

9

dist/find-module.js

@@ -27,3 +27,3 @@ // Generated by CoffeeScript 1.10.0

tryFind = function(base, fileName, callers) {
var e, e2, e3, error, error1, error2;
var e, e2, error, error1;
try {

@@ -40,8 +40,3 @@ return {

e2 = error1;
try {
return findModule(base, fileName, callers.slice(-1));
} catch (error2) {
e3 = error2;
throw new CouldNotLoad(base, fileName, callers);
}
throw new CouldNotLoad(base, fileName, callers);
}

@@ -48,0 +43,0 @@ }

@@ -22,7 +22,6 @@ // Generated by CoffeeScript 1.10.0

parentConfigs.forEach(function(p) {
var callers, confFile, parentConf, parentConfPath;
var callers, parentConf, parentConfPath;
callers = childCallers.concat(p.nodeModule);
confFile = normalize([p.nodeModule, p.configFile].join('/'));
parentConf = findMoule(base, confFile, callers);
parentConfPath = findPath(base, confFile, callers);
parentConf = findMoule(base, p.configFile, callers);
parentConfPath = findPath(base, p.configFile, callers);
out.push({

@@ -29,0 +28,0 @@ isConfig: true,

@@ -19,8 +19,7 @@ // Generated by CoffeeScript 1.10.0

module.exports = function(base, path, callers) {
var end, isLocal, out;
isLocal = isLocalFile(path);
if (callers.length === 0 && isLocal) {
var end, out;
if (callers.length === 0 && isLocalFile(path)) {
out = path;
} else {
end = isLocal ? path : prependNodeModules(path);
end = isLocalFile(path) ? path : prependNodeModules(path);
out = callers.map(prependNodeModules).reduceRight(concatRight, end).join('/');

@@ -27,0 +26,0 @@ }

{
"name": "amend",
"version": "0.3.6",
"version": "0.3.7",
"description": "Dependency injection module and IoC container.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet