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

caller-path

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caller-path - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

5

index.js
'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();
};

2

package.json
{
"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

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