@salesforce/core
Advanced tools
Comparing version 7.3.10 to 7.3.11
@@ -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 { |
{ | ||
"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", |
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
1035157
166
22064
18
13
+ Addedfast-levenshtein@^3.0.0
+ Addedfast-levenshtein@3.0.0(transitive)
+ Addedfastest-levenshtein@1.0.16(transitive)
Updated@salesforce/kit@^3.1.2