@salesforce/core
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -0,1 +1,10 @@ | ||
## [2.5.1](https://github.com/forcedotcom/sfdx-core/compare/v2.5.0...v2.5.1) (2020-06-11) | ||
### Bug Fixes | ||
* fix child logger unit test ([93da343](https://github.com/forcedotcom/sfdx-core/commit/93da3432e83e4db0f2642b54f618521ea53bc414)) | ||
* log uncaught exception in root logger only ([7a80662](https://github.com/forcedotcom/sfdx-core/commit/7a806622e1007d363f317f90a392328f6b6d40e7)) | ||
* mock audience url for unit test ([963b696](https://github.com/forcedotcom/sfdx-core/commit/963b6960e971adaafd43c31581ffc07686fc8378)) | ||
# [2.5.0](https://github.com/forcedotcom/sfdx-core/compare/v2.4.1...v2.5.0) (2020-06-08) | ||
@@ -2,0 +11,0 @@ |
@@ -66,3 +66,3 @@ import { Stats as fsStats } from 'fs'; | ||
* @param [throwOnNotFound = false] Optionally indicate if a throw should occur on file read. | ||
* @param [force = false] Optionally force the file to be read from disk even when already read within the process. | ||
* @param [force = true] Optionally force the file to be read from disk even when already read within the process. | ||
*/ | ||
@@ -69,0 +69,0 @@ read(throwOnNotFound?: boolean, force?: boolean): Promise<ConfigContents>; |
@@ -104,5 +104,5 @@ "use strict"; | ||
* @param [throwOnNotFound = false] Optionally indicate if a throw should occur on file read. | ||
* @param [force = false] Optionally force the file to be read from disk even when already read within the process. | ||
* @param [force = true] Optionally force the file to be read from disk even when already read within the process. | ||
*/ | ||
async read(throwOnNotFound = false, force = false) { | ||
async read(throwOnNotFound = false, force = true) { | ||
try { | ||
@@ -109,0 +109,0 @@ // Only need to read config files once. They are kept up to date |
@@ -68,7 +68,11 @@ "use strict"; | ||
this.uncaughtExceptionHandler = (err) => { | ||
// log the exception | ||
// FIXME: good chance this won't be logged because | ||
// process.exit was called before this is logged | ||
// https://github.com/trentm/node-bunyan/issues/95 | ||
this.fatal(err); | ||
// W-7558552 | ||
// Only log uncaught exceptions in root logger | ||
if (this === Logger.rootLogger) { | ||
// log the exception | ||
// FIXME: good chance this won't be logged because | ||
// process.exit was called before this is logged | ||
// https://github.com/trentm/node-bunyan/issues/95 | ||
this.fatal(err); | ||
} | ||
}; | ||
@@ -75,0 +79,0 @@ this.exitHandler = () => { |
{ | ||
"name": "@salesforce/core", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/exported", |
@@ -6,3 +6,3 @@ [![NPM](https://img.shields.io/npm/v/@salesforce/core.svg)](https://www.npmjs.com/package/@salesforce/core) | ||
The @salesforce/core library provides client-side management of Salesforce DX projects, org authentication, connections to Salesforce APIs, and other utilities. Much of the core functionality that powers the Salesforcedx plug-ins comes from this library. You can use this functionality in your plug-ins, too. | ||
The @salesforce/core library provides client-side management of Salesforce DX projects, org authentication, connections to Salesforce APIs, and other utilities. Much of the core functionality that powers the Salesforcedx plug-ins comes from this library. You can use this functionality in your plug-ins too. | ||
@@ -9,0 +9,0 @@ # Usage |
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
463045
11534