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

object-inspect

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-inspect - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

example/all.js

10

index.js

@@ -28,2 +28,5 @@ module.exports = function inspect_ (obj, opts, depth, seen) {

}
else if (obj === null) {
return 'null';
}
else if (isElement(obj)) {

@@ -43,6 +46,9 @@ var s = '<' + String(obj.nodeName).toLowerCase();

for (var i = 0; i < obj.length; i++) {
xs[i] = inspect(obj[i], obj);
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
}
return '[ ' + xs.join(', ') + ' ]';
}
else if (typeof obj === 'object' && typeof obj.inspect === 'function') {
return obj.inspect();
}
else if (typeof obj === 'object' && !isDate(obj) && !isRegExp(obj)) {

@@ -79,3 +85,3 @@ var xs = [];

function has (obj, key) {
if (!{}.hasOwnProperty) return true;
if (!{}.hasOwnProperty) return key in obj;
return {}.hasOwnProperty.call(obj, key);

@@ -82,0 +88,0 @@ }

6

package.json
{
"name": "object-inspect",
"version": "0.1.3",
"version": "0.2.0",
"description": "string representations of objects in node and the browser",
"main": "index.js",
"dependencies": {
"tape": "~1.0.4"
"devDependencies": {
"tape": "~2.6.0"
},

@@ -9,0 +9,0 @@ "scripts": {

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