Comparing version 1.3.1 to 1.4.0
@@ -24,4 +24,5 @@ 'use strict'; | ||
opts = Object.assign({ | ||
// If the package.json was not found, avoid breaking with `require(null)` | ||
projectName: pkgPath && require(pkgPath).name | ||
// Can't use `require` because of Webpack being annoying: | ||
// https://github.com/webpack/webpack/issues/196 | ||
projectName: pkgPath && JSON.parse(fs.readFileSync(pkgPath, 'utf8')).name | ||
}, opts); | ||
@@ -28,0 +29,0 @@ |
{ | ||
"name": "conf", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Simple config handling for your app or module", | ||
@@ -51,5 +51,5 @@ "license": "MIT", | ||
"del": "^3.0.0", | ||
"tempy": "^0.1.0", | ||
"tempy": "^0.2.1", | ||
"xo": "*" | ||
} | ||
} |
@@ -106,2 +106,4 @@ # conf [![Build Status: Linux and macOS](https://travis-ci.org/sindresorhus/conf.svg?branch=master)](https://travis-ci.org/sindresorhus/conf) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/n88jwh3aju39i0p2/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/conf/branch/master) | ||
The `value` must be JSON serializable. | ||
#### .set(object) | ||
@@ -108,0 +110,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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
11241
130
170
2