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

amend

Package Overview
Dependencies
Maintainers
1
Versions
59
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 0.2.3 to 0.2.4

15

dist/load-config.js

@@ -11,6 +11,8 @@ // Generated by CoffeeScript 1.8.0

getFullPath = function(path, basePath) {
if ((typeof window !== "undefined" && window !== null) || !isRelative(path)) {
if (typeof window !== "undefined" && window !== null) {
return path;
} else if (isRelative(path)) {
return [basePath, path].join('/');
} else {
return [basePath, path].join('/');
return [basePath, 'node_modules', path].join('/');
}

@@ -51,7 +53,12 @@ };

Object.keys(modules).forEach(function(key) {
var fullPath, module, moduleConfig, path, type;
var e, fullPath, module, moduleConfig, path, type;
moduleConfig = modules[key];
path = getPath(moduleConfig);
fullPath = getFullPath(path, basePath);
module = require(fullPath);
try {
module = require(fullPath);
} catch (_error) {
e = _error;
module = require(path);
}
type = evaluateType(moduleConfig, module);

@@ -58,0 +65,0 @@ if (type === 'factory') {

{
"name": "amend",
"version": "0.2.3",
"version": "0.2.4",
"description": "Dependency injection module and IoC container.",

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

Sorry, the diff of this file is not supported yet

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