@salesforce/core
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -0,1 +1,11 @@ | ||
## [1.2.3](https://github.com/forcedotcom/sfdx-core/compare/v1.2.2...v1.2.3) (2019-03-18) | ||
### Bug Fixes | ||
* @W-5907580@ respect code if it exist ([5263fe2](https://github.com/forcedotcom/sfdx-core/commit/5263fe2)) | ||
* do not let name and code get out-of-date is name is set ([3e5914e](https://github.com/forcedotcom/sfdx-core/commit/3e5914e)) | ||
* security update and patch to allow colons in filepaths for windows ([a385b40](https://github.com/forcedotcom/sfdx-core/commit/a385b40)) | ||
* use name by default for code ([c5283d3](https://github.com/forcedotcom/sfdx-core/commit/c5283d3)) | ||
## [1.2.2](https://github.com/forcedotcom/sfdx-core/compare/v1.2.1...v1.2.2) (2019-02-11) | ||
@@ -2,0 +12,0 @@ |
@@ -131,2 +131,6 @@ import { NamedError } from '@salesforce/kit'; | ||
/** | ||
* Some errors support `error.code` instead of `error.name`. This keeps backwards compatability. | ||
*/ | ||
private _code?; | ||
/** | ||
* Create an SfdxError. | ||
@@ -140,2 +144,3 @@ * @param message The error message. | ||
constructor(message: string, name?: string, actions?: string[], exitCode?: number, cause?: Error); | ||
code: string; | ||
/** | ||
@@ -142,0 +147,0 @@ * Sets the name of the command. For convenience `this` object is returned. |
@@ -153,2 +153,6 @@ "use strict"; | ||
} | ||
// If the original error has a code, use that instead of name. | ||
if (ts_types_1.hasString(err, 'code')) { | ||
sfdxError.code = err.code; | ||
} | ||
return sfdxError; | ||
@@ -169,2 +173,8 @@ } | ||
} | ||
get code() { | ||
return this._code || this.name; | ||
} | ||
set code(code) { | ||
this._code = code; | ||
} | ||
/** | ||
@@ -171,0 +181,0 @@ * Sets the name of the command. For convenience `this` object is returned. |
@@ -78,3 +78,3 @@ "use strict"; | ||
validatePathDoesNotContainInvalidChars: (value) => { | ||
return !/[\[:"\?<>\|\]]+/.test(value); | ||
return !/[\["\?<>\|\]]+/.test(value); | ||
}, | ||
@@ -81,0 +81,0 @@ /** |
{ | ||
"name": "@salesforce/core", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.", | ||
@@ -49,3 +49,3 @@ "main": "lib/exported", | ||
"jsforce": "1.8.5", | ||
"jsonwebtoken": "7.0.0", | ||
"jsonwebtoken": "8.5.0", | ||
"mkdirp": "0.5.1", | ||
@@ -58,3 +58,3 @@ "sfdx-faye": "^1.0.9" | ||
"@types/jsen": "0.0.19", | ||
"@types/jsonwebtoken": "7.2.8", | ||
"@types/jsonwebtoken": "8.3.2", | ||
"@types/mkdirp": "0.5.2", | ||
@@ -61,0 +61,0 @@ "@types/shelljs": "0.7.8", |
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
424112
10762
+ Addedjsonwebtoken@8.5.0(transitive)
+ Addedlodash.includes@4.3.0(transitive)
+ Addedlodash.isboolean@3.0.3(transitive)
+ Addedlodash.isinteger@4.0.4(transitive)
+ Addedlodash.isnumber@3.0.3(transitive)
+ Addedlodash.isplainobject@4.0.6(transitive)
+ Addedlodash.isstring@4.0.1(transitive)
+ Addedlodash.once@4.1.1(transitive)
+ Addedsemver@5.7.2(transitive)
- Removedhoek@2.16.3(transitive)
- Removedisemail@1.2.0(transitive)
- Removedjoi@6.10.1(transitive)
- Removedjsonwebtoken@7.0.0(transitive)
- Removedms@0.7.3(transitive)
- Removedtopo@1.1.0(transitive)
- Removedxtend@4.0.2(transitive)
Updatedjsonwebtoken@8.5.0