caller-path
Advanced tools
Comparing version 3.0.0 to 3.0.1
'use strict'; | ||
const callerCallsite = require('caller-callsite'); | ||
module.exports = ({depth = 0} = {}) => callerCallsite({depth}).getFileName(); | ||
module.exports = ({depth = 0} = {}) => { | ||
const callsite = callerCallsite({depth}); | ||
return callsite && callsite.getFileName(); | ||
}; |
{ | ||
"name": "caller-path", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Get the path of the caller function", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,2 +0,2 @@ | ||
# caller-path [![Build Status](https://travis-ci.org/sindresorhus/caller-path.svg?branch=master)](https://travis-ci.org/sindresorhus/caller-path) | ||
# caller-path | ||
@@ -3,0 +3,0 @@ > Get the path of the caller function |
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
54
5040