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

inspect-property

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inspect-property - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

5

lib/inspect-property.js

@@ -9,5 +9,8 @@ 'use strict';

const property = o && propertyName ? o[propertyName] : o;
const isClassRegExp = /^\s*class\s+/;
const propertyInspection = {
value: property,
type: typeof(property),
isClass: isClassRegExp.test(o.toString()),
constructor: {

@@ -23,3 +26,3 @@ name: property && property.constructor && property.constructor.name,

if (propertyInspection.type === 'function' && inspectFunction) {
if (propertyInspection.type === 'function' && !propertyInspection.isClass && inspectFunction) {
propertyInspection.functionInspection = _inspectFunction(property);

@@ -26,0 +29,0 @@ }

2

package.json
{
"name": "inspect-property",
"version": "0.0.4",
"version": "0.0.5",
"description": "Inspects a Property and returns useful informations about it (e.g. nested properties, function inspection, property descriptor, value, type, constructor)",

@@ -5,0 +5,0 @@ "main": "lib/inspect-property.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