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

hadron-package-manager

Package Overview
Dependencies
Maintainers
22
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hadron-package-manager - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

22

lib/package.js

@@ -35,2 +35,3 @@ 'use strict';

this.packagePath = packagePath;
this.isActivated = false;
try {

@@ -55,12 +56,5 @@ this.metadata = require(path.resolve(this.packagePath, PACKAGE_FILENAME));

}
try {
const module = require(path.resolve(this.packagePath, this.metadata.main));
Cache[this.packagePath] = module;
return module;
} catch (e) {
debug(e.message);
const module = { activate: () => {}, deactivate: () => {}};
Cache[this.packagePath] = module;
return module;
}
const module = require(path.resolve(this.packagePath, this.metadata.main));
Cache[this.packagePath] = module;
return module;
}

@@ -77,3 +71,9 @@

activate(appRegistry) {
return this.load().activate(appRegistry);
try {
const value = this.load().activate(appRegistry);
this.isActivated = true;
return value;
} catch (e) {
this.error = e;
}
}

@@ -80,0 +80,0 @@ }

@@ -7,3 +7,3 @@ {

"homepage": "https://github.com/mongodb-js/hadron-package-manager",
"version": "3.0.1",
"version": "4.0.0",
"repository": {

@@ -10,0 +10,0 @@ "type": "git",

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