@contrast/fn-inspect
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -5,2 +5,3 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
file: string; | ||
column: number; | ||
lineNumber: number; | ||
@@ -31,3 +32,3 @@ method: string; | ||
declare const fnInspect: { | ||
/** Retrieves name, type, lineNumber and file from a function reference */ | ||
/** Retrieves name, type, column, lineNumber and file from a function reference */ | ||
funcInfo(fn: Function): FunctionInfo | null; | ||
@@ -34,0 +35,0 @@ |
@@ -11,3 +11,3 @@ 'use strict'; | ||
/** | ||
* Retrieves name, type, lineNumber and file from a function reference | ||
* Retrieves name, type, column, lineNumber and file from a function reference | ||
* | ||
@@ -14,0 +14,0 @@ * @param {Function} fn function reference to obtain info |
{ | ||
"name": "@contrast/fn-inspect", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Retrieve function name and line number from a function reference", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -21,3 +21,3 @@ # @contrast/fn-inspect | ||
const results = funcInfo(testFn); | ||
// => { lineNumber: 2, file: 'example.js', method: 'testFn', type: 'Function' } | ||
// => { lineNumber: 2, column: 15, file: 'example.js', method: 'testFn', type: 'Function' } | ||
``` | ||
@@ -24,0 +24,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 12 instances in 1 package
1389768
89
9