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

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 1.0.2 to 1.0.3

10

lib/help-include-all-sync.js

@@ -51,6 +51,6 @@ /**

* See README
* Note that flattenDirectories must also be set to `true` for this to work.
* Note that `flatten` must also be set to `true` for this to work.
* @default false
*
* @optional {Boolean} flattenDirectories
* @optional {Boolean} flatten
* See README

@@ -113,3 +113,3 @@ * @default false

// Assertions
// Assertions about usage
if (typeof options.dirname === 'undefined') {

@@ -127,2 +127,6 @@ throw new Error('`dirname` is required');

}
// Deprecations:
if (typeof options.flattenDirectories !== 'undefined') {
throw new Error('As of include-all v1.0.1, `flattenDirectories` was replaced with `flatten`. See https://github.com/balderdashy/include-all#options for more information.');
}

@@ -129,0 +133,0 @@

{
"name": "include-all",
"version": "1.0.2",
"version": "1.0.3",
"description": "An easy way to include all node.js modules within a directory.",

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

@@ -296,4 +296,4 @@ # include-all

| dontLoad | if `dontLoad` is set to true, don't run the module w/ V8 or load it into memory-- instead, return a tree representing the directory structure (all extant file leaves are included as keys, with their value = `true`)
| flattenDirectories | if enabled, ALL modules appear as top-level keys in the dictionary-- even those from within nested directories.
| keepDirectoryPath | Only relevant if `flattenDictionaries` is `true`. If enabled, this option causes include-all to include the directory path in the key names.
| flatten | if enabled, ALL modules appear as top-level keys in the dictionary-- even those from within nested directories.
| keepDirectoryPath | Only relevant if `flatten` is `true`. If enabled, this option causes include-all to include the relative paths in the key names (for nested modules from subdirectories path in the key names).

@@ -300,0 +300,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