inspect-property
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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 @@ } |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11918
212