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

esm-module-paths

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esm-module-paths - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

dist/index.d.ts

@@ -1,3 +0,3 @@

export declare function getFilename(): string;
export declare function getDirname(): string;
export declare function getFileName(): string;
export declare function getDirName(): string;
export declare function getModulePaths(): {

@@ -7,4 +7,4 @@ __filename: string;

};
export declare const __filename: typeof getFilename;
export declare const __dirname: typeof getDirname;
export declare const __filename: typeof getFileName;
export declare const __dirname: typeof getDirName;
//# sourceMappingURL=index.d.ts.map

@@ -10,3 +10,3 @@ import { fileURLToPath } from "url";

}
export function getFilename() {
export function getFileName() {
var _a;

@@ -16,3 +16,3 @@ var url = (_a = callsites()[1]) === null || _a === void 0 ? void 0 : _a.getFileName();

}
export function getDirname() {
export function getDirName() {
var _a;

@@ -32,3 +32,3 @@ // Can't be reused from getFilename because that would change the callstack and make [1] not what we need.

}
export var __filename = getFilename;
export var __dirname = getDirname;
export var __filename = getFileName;
export var __dirname = getDirName;
{
"name": "esm-module-paths",
"version": "1.1.0",
"version": "1.1.1",
"description": "Returns dirname and filename for ESM modules in node",

@@ -5,0 +5,0 @@ "exports": {

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