Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

import-folder

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-folder - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

index.js

@@ -8,11 +8,6 @@ "use strict";

const fs_1 = __importDefault(require("fs"));
function getPathFromCallerFunction() {
}
const importFolder = (folder) => {
let modules = {};
Error.prepareStackTrace;
// @ts-ignore
const caller = new Error().stack[1].receiver;
console.log(caller);
let folderPath = path_1.default.join(folder);
let folderPath = path_1.default.join(module.parent.filename, '..', folder);
console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', folderPath);
fs_1.default.readdirSync(folderPath).forEach((file) => {

@@ -19,0 +14,0 @@ let filePath = path_1.default.join(folderPath, file);

{
"name": "import-folder",
"version": "0.0.3",
"version": "0.0.4",
"description": "Import all exported modules from files in folder at once",

@@ -41,3 +41,3 @@ "main": "index.js",

"dependencies": {
"import-folder": "^0.0.2"
"import-folder": "^0.0.3"
},

@@ -44,0 +44,0 @@ "devDependencies": {

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