Skip to content

Commit adaf8ab

Browse files
authored
Merge pull request #359 from salesforcecli/phale/W-11507149
fix: org list now lists all scratch orgs properly
2 parents 2f64aa1 + eed29b8 commit adaf8ab

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dependencies": {
99
"@oclif/core": "^1.7.0",
1010
"@salesforce/command": "^5.2.0",
11-
"@salesforce/core": "^3.24.0",
11+
"@salesforce/core": "^3.24.3",
1212
"@salesforce/kit": "^1.5.17",
1313
"open": "8.4.0",
1414
"tslib": "^2"

src/shared/orgListUtil.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ export class OrgListUtil {
132132
}
133133
// Theory: within <orgId>.json, if the userId is the first entry, that's the primary username.
134134
if (orgFileNames.includes(orgFileName)) {
135-
const orgFileContent = JSON.parse(
136-
await fs.readFile(join(Global.SFDX_STATE_FOLDER, orgFileName), 'utf8')
137-
) as { usernames: string[] };
135+
const orgFileContent = JSON.parse(await fs.readFile(join(Global.SFDX_DIR, orgFileName), 'utf8')) as {
136+
usernames: string[];
137+
};
138138
const usernames = orgFileContent.usernames;
139139
if (usernames && usernames[0] === auth.getFields().username) {
140140
return auth;

yarn.lock

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,10 +1104,10 @@
11041104
semver "^7.3.5"
11051105
ts-retry-promise "^0.6.0"
11061106

1107-
"@salesforce/core@^3.20.1", "@salesforce/core@^3.24.0":
1108-
version "3.24.0"
1109-
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-3.24.0.tgz#ecfa4ae3c23dab37b7431e5d8e7b623db2ba4f12"
1110-
integrity sha512-PiiJAfCIw0Gj9CUm0Y9C211JXgyJASoywHPmWKe6RY4Ul+WuHkFBDGmdRkuxHLA23P0PVZaclT0Av3CbWwmPSg==
1107+
"@salesforce/core@^3.20.1", "@salesforce/core@^3.24.3":
1108+
version "3.24.3"
1109+
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-3.24.3.tgz#670da803fe14303c1b40a25c6e7fc8979c436011"
1110+
integrity sha512-EGWZaroNv6GN8IiYGQRoUHgGrEpn7AgOg7RaXATOUzpdFrHKqfrmnFhkI/2ocTgM1wQydgN5oewnussDQ/WTOA==
11111111
dependencies:
11121112
"@salesforce/bunyan" "^2.0.0"
11131113
"@salesforce/kit" "^1.5.41"
@@ -1124,7 +1124,7 @@
11241124
form-data "^4.0.0"
11251125
graceful-fs "^4.2.9"
11261126
js2xmlparser "^4.0.1"
1127-
jsforce beta
1127+
jsforce "^2.0.0-beta.16"
11281128
jsonwebtoken "8.5.1"
11291129
mkdirp "1.0.4"
11301130
ts-retry-promise "^0.6.0"
@@ -4835,6 +4835,32 @@ jsforce@^1.11.0:
48354835
request "^2.72.0"
48364836
xml2js "^0.4.16"
48374837

4838+
jsforce@^2.0.0-beta.16:
4839+
version "2.0.0-beta.16"
4840+
resolved "https://registry.yarnpkg.com/jsforce/-/jsforce-2.0.0-beta.16.tgz#3e5bdbe660d3be2be80fa144456380345011584b"
4841+
integrity sha512-oeeOYiRI/1nkUT7YK3irIhyc+J12Ti2sKkGELmeJkPRvcbR2txIenVsV9zW+Q/Ie2uUulhl3pWXk38IyqySSpA==
4842+
dependencies:
4843+
"@babel/runtime" "^7.12.5"
4844+
"@babel/runtime-corejs3" "^7.12.5"
4845+
"@types/node" "^12.19.9"
4846+
abort-controller "^3.0.0"
4847+
base64url "^3.0.1"
4848+
commander "^4.0.1"
4849+
core-js "^3.6.4"
4850+
csv-parse "^4.8.2"
4851+
csv-stringify "^5.3.4"
4852+
faye "^1.4.0"
4853+
form-data "^4.0.0"
4854+
fs-extra "^8.1.0"
4855+
https-proxy-agent "^5.0.0"
4856+
inquirer "^7.0.0"
4857+
multistream "^3.1.0"
4858+
node-fetch "^2.6.1"
4859+
open "^7.0.0"
4860+
regenerator-runtime "^0.13.3"
4861+
strip-ansi "^6.0.0"
4862+
xml2js "^0.4.22"
4863+
48384864
jsforce@beta:
48394865
version "2.0.0-beta.15"
48404866
resolved "https://registry.yarnpkg.com/jsforce/-/jsforce-2.0.0-beta.15.tgz#05255f3b54a001421c973b1a7b4dbb4468ded2a3"

0 commit comments

Comments
 (0)