@salesforce/core 8.24.1 → 8.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/org/authRemover.js +15 -13
- package/package.json +2 -2
package/lib/org/authRemover.js
CHANGED
|
@@ -141,18 +141,20 @@ class AuthRemover extends kit_1.AsyncOptionalCreatable {
|
|
|
141
141
|
.filter((k) => !!k)
|
|
142
142
|
.reduce((x, y) => x.concat(y), []);
|
|
143
143
|
const allKeys = keysWithUsername.concat(keysWithAlias);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
144
|
+
if (allKeys.length) {
|
|
145
|
+
this.logger.debug(`Found these config keys to remove: ${allKeys.join(',')}`);
|
|
146
|
+
allKeys.forEach((key) => {
|
|
147
|
+
try {
|
|
148
|
+
config.unset(key);
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
this.logger.debug(`Failed to remove ${key}`);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
// prevent ConfigFile collision bug
|
|
155
|
+
// eslint-disable-next-line no-await-in-loop
|
|
156
|
+
await config.write();
|
|
157
|
+
}
|
|
156
158
|
}
|
|
157
159
|
}
|
|
158
160
|
}
|
|
@@ -163,7 +165,7 @@ class AuthRemover extends kit_1.AsyncOptionalCreatable {
|
|
|
163
165
|
*/
|
|
164
166
|
async unsetAliases(username) {
|
|
165
167
|
this.logger.debug(`Clearing aliases for username: ${username}`);
|
|
166
|
-
const existingAliases = this.
|
|
168
|
+
const existingAliases = this.getAliases(username);
|
|
167
169
|
if (existingAliases.length === 0)
|
|
168
170
|
return;
|
|
169
171
|
this.logger.debug(`Found these aliases to remove: ${existingAliases.join(',')}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/core",
|
|
3
|
-
"version": "8.24.
|
|
3
|
+
"version": "8.24.3",
|
|
4
4
|
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"messageTransformer/messageTransformer.ts"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@jsforce/jsforce-node": "^3.10.
|
|
64
|
+
"@jsforce/jsforce-node": "^3.10.13",
|
|
65
65
|
"@salesforce/kit": "^3.2.4",
|
|
66
66
|
"@salesforce/ts-types": "^2.0.12",
|
|
67
67
|
"ajv": "^8.17.1",
|