Socket
Socket
Sign inDemoInstall

@salesforce/core

Package Overview
Dependencies
Maintainers
29
Versions
499
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/core - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

10

CHANGELOG.md

@@ -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.

2

lib/util/sfdc.js

@@ -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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc