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 3.1.0 to 3.1.1

3

dist/src/import-modules.js

@@ -58,2 +58,3 @@ "use strict";

const isValidModuleExtension = VALID_IMPORT_EXTENSIONS.has(fileExtension);
const isDeclarationFile = filePath.endsWith('.d.ts');
const isValidFilePath = options.importPattern ? options.importPattern.test(filePath) : true;

@@ -64,2 +65,4 @@ if (!isValidModuleExtension)

return false;
if (isDeclarationFile)
return false;
const relativeModulePath = filePath.slice(options.targetDirectoryPath.length + 1);

@@ -66,0 +69,0 @@ // eslint-disable-next-line security/detect-non-literal-require, @typescript-eslint/no-var-requires, unicorn/prefer-module

2

package.json
{
"name": "directory-import",
"version": "3.1.0",
"version": "3.1.1",
"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",

@@ -338,2 +338,12 @@ <!--suppress HtmlDeprecatedAttribute -->

### [3.1.1] - 2023-11-17
#### Added
- .mjs files are supported now.
#### Fixed
- options.callerFilePath now returns the correct path to the file from which the function was called.
- Declaration files are no longer imported.
- Other minor fixes.
### [3.0.0] - 2023-07-29

@@ -340,0 +350,0 @@

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