Socket
Socket
Sign inDemoInstall

loupe

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loupe - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

11

index.js

@@ -154,5 +154,10 @@ /* !

// If it is a class, inspect it like an object but add the constructor name
if ('constructor' in value && value.constructor !== Object) {
return inspectClass(value, options)
if ('constructor' in value) {
// If it is a class, inspect it like an object but add the constructor name
if (value.constructor !== Object) {
return inspectClass(value, options)
}
// If it is an object with an anonymous prototype, display it as an object.
return inspectObject(value, options)
}

@@ -159,0 +164,0 @@

@@ -1180,7 +1180,12 @@ (function (global, factory) {

return inspectHTML(value, options);
} // If it is a class, inspect it like an object but add the constructor name
}
if ('constructor' in value) {
// If it is a class, inspect it like an object but add the constructor name
if (value.constructor !== Object) {
return inspectClass(value, options);
} // If it is an object with an anonymous prototype, display it as an object.
if ('constructor' in value && value.constructor !== Object) {
return inspectClass(value, options);
return inspectObject(value, options);
} // We have run out of options! Just stringify the value

@@ -1187,0 +1192,0 @@

{
"name": "loupe",
"version": "2.2.1",
"version": "2.3.0",
"description": "Inspect utility for Node.js and browsers",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/chaijs/loupe",

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