@salesforce/core
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -0,1 +1,8 @@ | ||
# [1.3.0](https://github.com/forcedotcom/sfdx-core/compare/v1.2.3...v1.3.0) (2019-03-19) | ||
### Features | ||
* support wrapping a string ([2445003](https://github.com/forcedotcom/sfdx-core/commit/2445003)) | ||
## [1.2.3](https://github.com/forcedotcom/sfdx-core/compare/v1.2.2...v1.2.3) (2019-03-18) | ||
@@ -2,0 +9,0 @@ |
@@ -112,3 +112,3 @@ import { NamedError } from '@salesforce/kit'; | ||
*/ | ||
static wrap(err: Error): SfdxError; | ||
static wrap(err: Error | string): SfdxError; | ||
/** | ||
@@ -115,0 +115,0 @@ * The message string. Error.message |
@@ -148,2 +148,5 @@ "use strict"; | ||
static wrap(err) { | ||
if (ts_types_1.isString(err)) { | ||
return new SfdxError(err); | ||
} | ||
const sfdxError = new SfdxError(err.message, err.name); | ||
@@ -150,0 +153,0 @@ if (sfdxError.stack) { |
{ | ||
"name": "@salesforce/core", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/exported", |
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
424413
10765