Socket
Socket
Sign inDemoInstall

req-all

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

req-all - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

6

index.js

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

// prevent caching of this module so module.parent is always accurate
// Prevent caching of this module so module.parent is always accurate
delete require.cache[__filename];

@@ -26,3 +26,3 @@ const parentFile = module.parent.filename;

// adhere to the Node.js require algorithm by trying each extension in order
// Adhere to the Node.js require algorithm by trying each extension in order
for (const ext of Object.keys(require.extensions)) {

@@ -43,3 +43,3 @@ for (const file of files) {

ret[exportKey] = require(fullPath);
ret[exportKey] = require(fullPath); // eslint-disable-line import/no-dynamic-require
done.add(stem);

@@ -46,0 +46,0 @@ }

{
"name": "req-all",
"version": "0.1.0",
"version": "1.0.0",
"description": "Require all files in a directory",

@@ -37,6 +37,3 @@ "license": "MIT",

"xo": "*"
},
"xo": {
"esnext": true
}
}
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