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 1.1.0 to 1.2.0

4

index.js

@@ -37,3 +37,5 @@ 'use strict';

if (notIgnoredExt) {
const func = require(`${process.cwd()}/${path}`);
const func = path.startsWith(process.cwd())
? require(path)
: require(`${process.cwd()}/${path}`);

@@ -40,0 +42,0 @@ modules[path] = func;

{
"name": "directory-import",
"version": "1.1.0",
"version": "1.2.0",
"description": "Module sync or async import(requires) all modules from the folder you specify.",

@@ -5,0 +5,0 @@ "main": "index.js",

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