New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

directory-import

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directory-import - npm Package Compare versions

Comparing version

to
3.2.0

6

dist/src/prepare-private-options.js

@@ -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",