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

tryrequire

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tryrequire - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

14

lib/tryRequire.js

@@ -5,7 +5,7 @@ (function() {

module.exports = function tryRequire(name, options) {
var module,
var result,
o = options || {},
error = tryCatch(function() {
module = require(name);
result = require(name);
});

@@ -15,5 +15,9 @@

if (o.log)
console.error(error.message);
console.error([
module.parent.filename + ':',
error.code,
'\'' + name + '\'',
].join(' '));
else if (o.callback)
module = exec.bind(null, error);
result = exec.bind(null, error);

@@ -24,3 +28,3 @@ if (o.exit)

return module;
return result;
};

@@ -27,0 +31,0 @@

{
"name": "tryrequire",
"version": "1.1.2",
"version": "1.1.3",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "try to require",

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