esm-module-paths
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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": { |
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