Socket
Socket
Sign inDemoInstall

@humanwhocodes/config-array

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@humanwhocodes/config-array - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

7

CHANGELOG.md
# Changelog
## [0.7.0](https://www.github.com/humanwhocodes/config-array/compare/v0.6.0...v0.7.0) (2021-09-24)
### Features
* Only object configs by default ([5645f24](https://www.github.com/humanwhocodes/config-array/commit/5645f241b2412a3263a02ef9e3a9bd19cc86035d))
## [0.6.0](https://www.github.com/humanwhocodes/config-array/compare/v0.5.0...v0.6.0) (2021-04-20)

@@ -4,0 +11,0 @@

4

package.json
{
"name": "@humanwhocodes/config-array",
"version": "0.6.0",
"version": "0.7.0",
"description": "Glob-based configuration matching.",

@@ -56,3 +56,3 @@ "author": "Nicholas C. Zakas",

"lint-staged": "^10.2.8",
"mocha": "^6.1.4",
"mocha": "^6.2.3",
"nyc": "^14.1.1",

@@ -59,0 +59,0 @@ "rollup": "^1.12.3",

@@ -109,4 +109,7 @@ # Config Array

// additional items in each config
schema: mySchema
// additional item schemas in each config
schema: mySchema,
// additional config types supported (default: [])
extraConfigTypes: ["array", "function"];
});

@@ -117,3 +120,3 @@ ```

Config arrays can be multidimensional, so it's possible for a config array to contain another config array, such as:
Config arrays can be multidimensional, so it's possible for a config array to contain another config array when `extraConfigTypes` contains `"array"`, such as:

@@ -180,3 +183,3 @@ ```js

Config arrays can also include config functions. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example:
Config arrays can also include config functions when `extraConfigTypes` contains `"function"`. A config function accepts a single parameter, `context` (defined by you), and must return either a config object or a config array (it cannot return another function). Config functions allow end users to execute code in the creation of appropriate config objects. Here's an example:

@@ -183,0 +186,0 @@ ```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