include-all
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30140
441
0