Socket
Socket
Sign inDemoInstall

@salesforce/core

Package Overview
Dependencies
Maintainers
41
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 2.4.0 to 2.4.1

messages/crypto.json

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [2.4.1](https://github.com/forcedotcom/sfdx-core/compare/v2.4.0...v2.4.1) (2020-05-05)
### Bug Fixes
* don't ship with ts-sinon ([b4005fb](https://github.com/forcedotcom/sfdx-core/commit/b4005fb27b3f85be1297b9cfec0bc7e0de91979d))
* fixed test spy ([c1f4ba4](https://github.com/forcedotcom/sfdx-core/commit/c1f4ba42ba94a03c5e3e77e793558cfea947f78e))
* path.resolve jwt key file path ([86e6957](https://github.com/forcedotcom/sfdx-core/commit/86e695757a68dca1ea659e801ead59e57e6632b9))
# [2.4.0](https://github.com/forcedotcom/sfdx-core/compare/v2.3.1...v2.4.0) (2020-04-23)

@@ -2,0 +11,0 @@

5

lib/authInfo.js

@@ -17,2 +17,3 @@ "use strict";

const jwt = require("jsonwebtoken");
const path_1 = require("path");
const url_1 = require("url");

@@ -524,3 +525,3 @@ const authInfoConfig_1 = require("./config/authInfoConfig");

clientSecret: parentFields.clientSecret,
privateKey: parentFields.privateKey
privateKey: parentFields.privateKey ? path_1.resolve(parentFields.privateKey) : parentFields.privateKey
});

@@ -532,3 +533,3 @@ }

if (!options.privateKey && options.privateKeyFile) {
options.privateKey = options.privateKeyFile;
options.privateKey = path_1.resolve(options.privateKeyFile);
}

@@ -535,0 +536,0 @@ if (options.privateKey) {

8

lib/crypto.js

@@ -117,4 +117,8 @@ "use strict";

catch (e) {
const errMsg = this.messages.getMessage('AuthDecryptError', [e.message]);
throw new sfdxError_1.SfdxError(errMsg, 'AuthDecryptError');
const useGenericUnixKeychain = kit_1.env.getBoolean('SFDX_USE_GENERIC_UNIX_KEYCHAIN') || kit_1.env.getBoolean('USE_GENERIC_UNIX_KEYCHAIN');
if (os.platform() === 'darwin' && !useGenericUnixKeychain) {
e.actions = messages_1.Messages.loadMessages('@salesforce/core', 'crypto').getMessage('MacKeychainOutOfSync');
}
e.message = this.messages.getMessage('AuthDecryptError', [e.message]);
throw sfdxError_1.SfdxError.wrap(e);
}

@@ -121,0 +125,0 @@ return dec;

{
"name": "@salesforce/core",
"version": "2.4.0",
"version": "2.4.1",
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",

@@ -43,3 +43,2 @@ "main": "lib/exported",

"@salesforce/kit": "^1.0.0",
"@salesforce/ts-sinon": "^1.0.0",
"@salesforce/ts-types": "^1.0.0",

@@ -55,2 +54,3 @@ "@types/jsforce": "1.9.2",

"devDependencies": {
"@salesforce/ts-sinon": "^1.0.0",
"@salesforce/dev-scripts": "0.3.14",

@@ -57,0 +57,0 @@ "@types/debug": "0.0.30",

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