Socket
Socket
Sign inDemoInstall

@salesforce/core

Package Overview
Dependencies
Maintainers
48
Versions
490
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.3.10 to 7.3.11

lib/util/findSuggestion.d.ts

13

lib/org/authInfo.js

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

const sfdcUrl_1 = require("../util/sfdcUrl");
const findSuggestion_1 = require("../util/findSuggestion");
const connection_1 = require("./connection");

@@ -628,3 +629,13 @@ const orgConfigProperties_1 = require("./orgConfigProperties");

else if (username && !authOptions && !(await this.stateAggregator.orgs.exists(username))) {
throw messages.createError('namedOrgNotFound', [username]);
const likeName = (0, findSuggestion_1.findSuggestion)(username, [
...(await this.stateAggregator.orgs.list()).map((f) => f.split('.json')[0]),
...Object.keys(this.stateAggregator.aliases.getAll()),
]);
throw sfError_1.SfError.create({
name: 'NamedOrgNotFoundError',
message: messages.getMessage('namedOrgNotFound', [username]),
actions: likeName === ''
? undefined
: [`It looks like you mistyped the username or alias. Did you mean "${likeName}"?`],
});
}

@@ -631,0 +642,0 @@ else {

6

package.json
{
"name": "@salesforce/core",
"version": "7.3.10",
"version": "7.3.11",
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",

@@ -56,3 +56,3 @@ "main": "lib/index",

"@jsforce/jsforce-node": "^3.2.0",
"@salesforce/kit": "^3.1.1",
"@salesforce/kit": "^3.1.2",
"@salesforce/schemas": "^1.9.0",

@@ -62,2 +62,3 @@ "@salesforce/ts-types": "^2.0.9",

"change-case": "^4.1.2",
"fast-levenshtein": "^3.0.0",
"faye": "^1.4.0",

@@ -80,2 +81,3 @@ "form-data": "^4.0.0",

"@types/chai-string": "^1.4.5",
"@types/fast-levenshtein": "^0.0.4",
"@types/jsonwebtoken": "9.0.6",

@@ -82,0 +84,0 @@ "@types/proper-lockfile": "^4.1.4",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc