Socket
Socket
Sign inDemoInstall

include-all

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

include-all - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

7

lib/help-build-dictionary.js

@@ -115,2 +115,9 @@ /**

if (dictionary[keyName] && !options.allowDuplicateKeys) {
var e = new Error('Duplicate filename detected: `include-all` attempted to load two files named `' + keyName + '` (case-insensitive).');
e.code = 'include-all:DUPLICATE';
e.duplicateIdentity = keyName;
throw e;
}
// >-

@@ -117,0 +124,0 @@ // Now save the module's contents (or `true`, if the `dontLoad` option is set)

6

lib/help-include-all-sync.js

@@ -62,2 +62,6 @@ /**

*
* @optional {Boolean} allowDuplicateKeys
* When set, duplicate keys will override each other. Otherwise, duplicate keys will result in an error.
* @default false
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

@@ -218,3 +222,3 @@ * @return {Dictionary}

else {
if (_modules[grandchildKey]) { throw new Error('Attempting to flatten modules but duplicate key detected (`'+grandchildKey+'`). Enable `keepDirectoryPath: true` to enable namepspacing based on hierarchy.'); }
if (_modules[grandchildKey]) { throw new Error('Attempting to flatten modules but duplicate key detected (`'+grandchildKey+'`). Enable `keepDirectoryPath: true` to enable namespacing based on hierarchy.'); }
_modules[grandchildKey] = rhs;

@@ -221,0 +225,0 @@ }

2

package.json
{
"name": "include-all",
"version": "3.0.1",
"version": "4.0.0",
"description": "An easy way to include all node.js modules within a directory.",

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