Socket
Socket
Sign inDemoInstall

@hapi/hoek

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/hoek - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

26

lib/index.js

@@ -595,16 +595,20 @@ 'use strict';

if (args.length === 1 && args[0] instanceof Error) {
throw args[0];
}
throw new exports.Error(args);
};
const msgs = args
.filter((arg) => arg !== '')
.map((arg) => {
return typeof arg === 'string' ? arg : arg instanceof Error ? arg.message : exports.stringify(arg);
});
exports.Error = class extends Error {
const error = new Error(msgs.join(' ') || 'Unknown error');
Error.captureStackTrace(error, exports.assert);
throw error;
constructor(args) {
const msgs = args
.filter((arg) => arg !== '')
.map((arg) => {
return typeof arg === 'string' ? arg : arg instanceof Error ? arg.message : exports.stringify(arg);
});
super(msgs.join(' ') || 'Unknown error');
Error.captureStackTrace(this, exports.assert);
}
};

@@ -611,0 +615,0 @@

{
"name": "@hapi/hoek",
"description": "General purpose node utilities",
"version": "8.0.0",
"version": "8.0.1",
"repository": "git://github.com/hapijs/hoek",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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