directory-import
Advanced tools
Comparing version
@@ -17,5 +17,5 @@ "use strict"; | ||
}; | ||
options.callerFilePath = new Error('functional-error').stack | ||
.split('\n')[4] | ||
?.match(/at file:\/\/(.+):\d+|at .+ \((.+):\d+:\d+\)/)?.slice(1).find(Boolean); | ||
options.callerFilePath = | ||
new Error('functional-error').stack.split('\n')[4]?.match(/\((.+):\d+:\d+\)/)?.[1] || | ||
options.callerFilePath; | ||
options.callerDirectoryPath = options.callerFilePath.split('/').slice(0, -1).join('/'); | ||
@@ -22,0 +22,0 @@ options.targetDirectoryPath = options.callerDirectoryPath; |
{ | ||
"name": "directory-import", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "Module will allow you to synchronously or asynchronously import (requires) all modules from the folder you specify", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
36441
-0.05%1
Infinity%