Socket
Socket
Sign inDemoInstall

cosmiconfig

Package Overview
Dependencies
9
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.3 to 5.0.4

4

CHANGELOG.md
# Changelog
## 5.0.4
- Fixed: `rc` files with `.js` extensions included in default `searchPlaces`.
## 5.0.3

@@ -4,0 +8,0 @@

@@ -31,2 +31,3 @@ //

`.${moduleName}rc.yml`,
`.${moduleName}rc.js`,
`${moduleName}.config.js`,

@@ -33,0 +34,0 @@ ],

2

package.json
{
"name": "cosmiconfig",
"version": "5.0.3",
"version": "5.0.4",
"description": "Find and load configuration from a package.json property, rc file, or CommonJS module",

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

@@ -14,3 +14,3 @@ # cosmiconfig

- a JSON or YAML, extensionless "rc file"
- an "rc file" with the extensions `.json`, `.yaml`, or `.yml`.
- an "rc file" with the extensions `.json`, `.yaml`, `.yml`, or `.js`.
- a `.config.js` CommonJS module

@@ -23,3 +23,3 @@

- a `.soursocksrc.json` file
- a `.soursocksrc.yaml` or `.soursocksrc.yml` file
- a `.soursocksrc.yaml`, `.soursocksrc.yml`, or `.soursocksrc.js` file
- a `soursocks.config.js` file exporting a JS object

@@ -142,3 +142,3 @@

3. A `.goldengrahamsrc.json` file.
4. A `.goldengrahamsrc.yaml` or `.goldengrahamsrc.yml` file.
4. A `.goldengrahamsrc.yaml`, `.goldengrahamsrc.yml`, or `.goldengrahamsrc.js` file.
5. A `goldengrahams.config.js` JS file exporting the object.

@@ -235,2 +235,3 @@ - If none of those searches reveal a configuration object, move up one directory level and try again.

`.${moduleName}rc.yml`,
`.${moduleName}rc.js`,
`${moduleName}.config.js`,

@@ -237,0 +238,0 @@ ]

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc