Socket
Socket
Sign inDemoInstall

fn-name

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 2.0.0

2

index.js

@@ -7,3 +7,3 @@ 'use strict';

return fn.name || (/function ([^\(]+)/.exec(fn.toString()) || [])[1] || null;
return fn.displayName || fn.name || (/function ([^\(]+)/.exec(fn.toString()) || [])[1] || null;
};
{
"name": "fn-name",
"version": "1.0.1",
"version": "2.0.0",
"description": "Get the name of a named function",

@@ -5,0 +5,0 @@ "repository": "sindresorhus/fn-name",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc