@salesforce/plugin-org 2.6.8 → 2.6.10

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.
@@ -12,7 +12,7 @@ export declare class Delete extends SfCommand<DeleteResult> {
12
12
  message: string;
13
13
  };
14
14
  static readonly flags: {
15
- 'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
15
+ 'target-org': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
16
16
  targetdevhubusername: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
17
17
  'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
18
18
  'no-prompt': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
@@ -14,23 +14,35 @@ const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'delete'
14
14
  class Delete extends sf_plugins_core_1.SfCommand {
15
15
  async run() {
16
16
  const { flags } = await this.parse(Delete);
17
- const username = flags['target-org'].getUsername() ?? 'unknown username';
18
- const orgId = flags['target-org'].getOrgId();
19
- // the connection version can be set before using it to isSandbox and delete
20
- flags['target-org'].getConnection(flags['api-version']);
21
- const isSandbox = await flags['target-org'].isSandbox();
17
+ const resolvedUsername =
18
+ // from -o alias -> -o username -> [default username]
19
+ (await core_1.StateAggregator.getInstance()).aliases.getUsername(flags['target-org'] ?? '') ??
20
+ flags['target-org'] ??
21
+ this.configAggregator.getPropertyValue('target-org');
22
+ if (!resolvedUsername) {
23
+ throw messages.createError('missingUsername');
24
+ }
25
+ const orgId = (await core_1.AuthInfo.create({ username: resolvedUsername })).getFields().orgId;
26
+ const isSandbox = await (await core_1.StateAggregator.getInstance()).sandboxes.hasFile(orgId);
22
27
  // read the config file for the org to be deleted, if it has a PROD_ORG_USERNAME entry, it's a sandbox
23
28
  // we either need permission to proceed without a prompt OR get the user to confirm
24
29
  if (flags['no-prompt'] ||
25
- (await this.confirm(messages.getMessage('confirmDelete', [isSandbox ? 'sandbox' : 'scratch', username])))) {
30
+ (await this.confirm(messages.getMessage('confirmDelete', [isSandbox ? 'sandbox' : 'scratch', resolvedUsername])))) {
26
31
  let alreadyDeleted = false;
27
32
  let successMessageKey = 'commandSandboxSuccess';
28
33
  try {
34
+ const org = await core_1.Org.create({ aliasOrUsername: resolvedUsername });
29
35
  // will determine if it's a scratch org or sandbox and will delete from the appropriate parent org (DevHub or Production)
30
- await flags['target-org'].delete();
36
+ await org.delete();
31
37
  }
32
38
  catch (e) {
33
- if (e instanceof Error && e.name === 'ScratchOrgNotFound') {
39
+ if (e instanceof Error && e.name === 'DomainNotFoundError') {
40
+ // the org has expired, so remote operations won't work
41
+ // let's clean up the files locally
42
+ const authRemover = await core_1.AuthRemover.create();
43
+ await authRemover.removeAuth(resolvedUsername);
44
+ }
45
+ else if (e instanceof Error && e.name === 'ScratchOrgNotFound') {
34
46
  alreadyDeleted = true;
35
47
  }
36
48
  else if (e instanceof Error && e.name === 'SandboxNotFound') {
@@ -41,12 +53,12 @@ class Delete extends sf_plugins_core_1.SfCommand {
41
53
  }
42
54
  }
43
55
  this.log(isSandbox
44
- ? messages.getMessage(successMessageKey, [username])
56
+ ? messages.getMessage(successMessageKey, [resolvedUsername])
45
57
  : messages.getMessage(alreadyDeleted ? 'deleteOrgConfigOnlyCommandSuccess' : 'deleteOrgCommandSuccess', [
46
- username,
58
+ resolvedUsername,
47
59
  ]));
48
60
  }
49
- return { username, orgId };
61
+ return { username: resolvedUsername, orgId };
50
62
  }
51
63
  }
52
64
  exports.Delete = Delete;
@@ -58,7 +70,15 @@ Delete.deprecationOptions = {
58
70
  message: messages.getMessage('deprecation'),
59
71
  };
60
72
  Delete.flags = {
61
- 'target-org': sf_plugins_core_1.requiredOrgFlagWithDeprecations,
73
+ 'target-org': sf_plugins_core_1.Flags.string({
74
+ // not required because the user could be assuming the default config
75
+ aliases: ['targetusername', 'u'],
76
+ deprecateAliases: true,
77
+ // we're recreating the flag without all the validation
78
+ // eslint-disable-next-line sf-plugin/dash-o
79
+ char: 'o',
80
+ summary: messages.getMessage('flags.target-org.summary'),
81
+ }),
62
82
  targetdevhubusername: sf_plugins_core_1.Flags.string({
63
83
  summary: messages.getMessage('flags.targetdevhubusername'),
64
84
  char: 'v',
@@ -1 +1 @@
1
- {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../src/commands/force/org/delete.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,iEAMqC;AACrC,2CAA4C;AAE5C,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAO3E,MAAa,MAAO,SAAQ,2BAAuB;IA6B1C,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,QAAQ,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,IAAI,kBAAkB,CAAC;QACzE,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC7C,4EAA4E;QAC5E,KAAK,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QACxD,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,CAAC,SAAS,EAAE,CAAC;QACxD,sGAAsG;QACtG,mFAAmF;QACnF,IACE,KAAK,CAAC,WAAW,CAAC;YAClB,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC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UAAU,EAAE;YACV,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC;SAC3D;KACF,CAAC;IACF,aAAa,EAAE,mDAAiC;IAChD,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC;QAC9C,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,CAAC,UAAU,CAAC;KACtB,CAAC;IACF,QAAQ,EAAR,0BAAQ;CACT,CAAC"}
@@ -10,7 +10,7 @@ export default class EnvDeleteSandbox extends SfCommand<SandboxDeleteResponse> {
10
10
  static readonly aliases: string[];
11
11
  static readonly deprecateAliases = true;
12
12
  static readonly flags: {
13
- 'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
+ 'target-org': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
14
14
  'no-prompt': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
15
  };
16
16
  run(): Promise<SandboxDeleteResponse>;
@@ -13,21 +13,33 @@ const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'delete_
13
13
  class EnvDeleteSandbox extends sf_plugins_core_1.SfCommand {
14
14
  async run() {
15
15
  const flags = (await this.parse(EnvDeleteSandbox)).flags;
16
- const org = flags['target-org'];
17
- const username = org.getUsername();
16
+ const username = // from -o alias -> -o username -> [default username]
17
+ (await core_1.StateAggregator.getInstance()).aliases.getUsername(flags['target-org'] ?? '') ??
18
+ flags['target-org'] ??
19
+ this.configAggregator.getPropertyValue('target-org');
18
20
  if (!username) {
19
21
  throw new core_1.SfError('The org does not have a username.');
20
22
  }
21
- if (!(await org.isSandbox())) {
23
+ const orgId = (await core_1.AuthInfo.create({ username })).getFields().orgId;
24
+ const isSandbox = await (await core_1.StateAggregator.getInstance()).sandboxes.hasFile(orgId);
25
+ if (!isSandbox) {
22
26
  throw messages.createError('error.isNotSandbox', [username]);
23
27
  }
24
28
  if (flags['no-prompt'] || (await this.confirm(messages.getMessage('prompt.confirm', [username])))) {
25
29
  try {
30
+ const org = await core_1.Org.create({ aliasOrUsername: username });
26
31
  await org.delete();
27
32
  this.logSuccess(messages.getMessage('success', [username]));
28
33
  }
29
34
  catch (e) {
30
- if (e instanceof Error && e.name === 'SandboxNotFound') {
35
+ if (e instanceof Error && e.name === 'DomainNotFoundError') {
36
+ // the org has expired, so remote operations won't work
37
+ // let's clean up the files locally
38
+ const authRemover = await core_1.AuthRemover.create();
39
+ await authRemover.removeAuth(username);
40
+ this.logSuccess(messages.getMessage('success.Idempotent', [username]));
41
+ }
42
+ else if (e instanceof Error && e.name === 'SandboxNotFound') {
31
43
  this.logSuccess(messages.getMessage('success.Idempotent', [username]));
32
44
  }
33
45
  else {
@@ -35,7 +47,7 @@ class EnvDeleteSandbox extends sf_plugins_core_1.SfCommand {
35
47
  }
36
48
  }
37
49
  }
38
- return { username, orgId: org.getOrgId() };
50
+ return { username, orgId };
39
51
  }
40
52
  }
41
53
  exports.default = EnvDeleteSandbox;
@@ -45,9 +57,11 @@ EnvDeleteSandbox.examples = messages.getMessages('examples');
45
57
  EnvDeleteSandbox.aliases = ['env:delete:sandbox'];
46
58
  EnvDeleteSandbox.deprecateAliases = true;
47
59
  EnvDeleteSandbox.flags = {
48
- 'target-org': sf_plugins_core_1.Flags.requiredOrg({
49
- summary: messages.getMessage('flags.target-org.summary'),
60
+ 'target-org': sf_plugins_core_1.Flags.string({
61
+ // we're recreating the flag without all the validation
62
+ // eslint-disable-next-line sf-plugin/dash-o
50
63
  char: 'o',
64
+ summary: messages.getMessage('flags.target-org.summary'),
51
65
  required: true,
52
66
  }),
53
67
  'no-prompt': sf_plugins_core_1.Flags.boolean({
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src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 export default class EnvDeleteScratch extends SfCommand<ScratchDeleteResponse> {
10
10
  static readonly aliases: string[];
11
11
  static readonly deprecateAliases = true;
12
12
  static readonly flags: {
13
- 'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
13
+ 'target-org': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
14
14
  'no-prompt': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
15
  };
16
16
  run(): Promise<ScratchDeleteResponse>;
@@ -13,22 +13,36 @@ const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'delete_
13
13
  class EnvDeleteScratch extends sf_plugins_core_1.SfCommand {
14
14
  async run() {
15
15
  const flags = (await this.parse(EnvDeleteScratch)).flags;
16
- const org = flags['target-org'];
17
- if (flags['no-prompt'] || (await this.confirm(messages.getMessage('prompt.confirm', [org.getUsername()])))) {
16
+ const resolvedUsername =
17
+ // from -o alias -> -o username -> [default username]
18
+ (await core_1.StateAggregator.getInstance()).aliases.getUsername(flags['target-org'] ?? '') ??
19
+ flags['target-org'] ??
20
+ this.configAggregator.getPropertyValue('target-org');
21
+ const orgId = (await core_1.AuthInfo.create({ username: resolvedUsername })).getFields().orgId;
22
+ if (flags['no-prompt'] || (await this.confirm(messages.getMessage('prompt.confirm', [resolvedUsername])))) {
18
23
  try {
24
+ const org = await core_1.Org.create({ aliasOrUsername: resolvedUsername });
19
25
  await org.delete();
20
26
  this.logSuccess(messages.getMessage('success', [org.getUsername()]));
27
+ return { username: org.getUsername(), orgId: org.getOrgId() };
21
28
  }
22
29
  catch (e) {
23
- if (e instanceof Error && e.name === 'ScratchOrgNotFound') {
24
- this.logSuccess(messages.getMessage('success.Idempotent', [org.getUsername()]));
30
+ if (e instanceof Error && e.name === 'DomainNotFoundError') {
31
+ // the org has expired, so remote operations won't work
32
+ // let's clean up the files locally
33
+ const authRemover = await core_1.AuthRemover.create();
34
+ await authRemover.removeAuth(resolvedUsername);
35
+ this.logSuccess(messages.getMessage('success', [resolvedUsername]));
36
+ }
37
+ else if (e instanceof Error && e.name === 'ScratchOrgNotFound') {
38
+ this.logSuccess(messages.getMessage('success.Idempotent', [resolvedUsername]));
25
39
  }
26
40
  else {
27
41
  throw e;
28
42
  }
29
43
  }
30
44
  }
31
- return { username: org.getUsername(), orgId: org.getOrgId() };
45
+ return { username: resolvedUsername, orgId };
32
46
  }
33
47
  }
34
48
  exports.default = EnvDeleteScratch;
@@ -38,10 +52,14 @@ EnvDeleteScratch.examples = messages.getMessages('examples');
38
52
  EnvDeleteScratch.aliases = ['env:delete:scratch'];
39
53
  EnvDeleteScratch.deprecateAliases = true;
40
54
  EnvDeleteScratch.flags = {
41
- 'target-org': sf_plugins_core_1.Flags.requiredOrg({
55
+ 'target-org': sf_plugins_core_1.Flags.string({
56
+ // not required because the user could be assuming the default config
57
+ aliases: ['targetusername', 'u'],
58
+ deprecateAliases: true,
59
+ // we're recreating the flag without all the validation
60
+ // eslint-disable-next-line sf-plugin/dash-o
42
61
  char: 'o',
43
62
  summary: messages.getMessage('flags.target-org.summary'),
44
- required: true,
45
63
  }),
46
64
  'no-prompt': sf_plugins_core_1.Flags.boolean({
47
65
  char: 'p',
@@ -1 +1 @@
1
- {"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/delete/scratch.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,2CAA4C;AAC5C,iEAA+D;AAE/D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AAOnF,MAAqB,gBAAiB,SAAQ,2BAAgC;IAkBrE,KAAK,CAAC,GAAG;QACd,MAAM,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,C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U,CAAC,CAAC;AAC5C,wBAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;AACjC,iCAAgB,GAAG,IAAI,CAAC;AACxB,sBAAK,GAAG;IAC7B,YAAY,EAAE,uBAAK,CAAC,MAAM,CAAC;QACzB,qEAAqE;QACrE,OAAO,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC;QAChC,gBAAgB,EAAE,IAAI;QACtB,uDAAuD;QACvD,4CAA4C;QAC5C,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KACzD,CAAC;IACF,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;KACxD,CAAC;CACH,CAAC"}
@@ -8,7 +8,8 @@ The force:org:delete command is deprecated. Use org:delete:scratch or org:delete
8
8
 
9
9
  # description
10
10
 
11
- Salesforce CLI marks the org for deletion in either the Dev Hub org (for scratch orgs) or production org (for sandboxes) and then deletes all local references to the org from your computer.
11
+ Salesforce CLI marks the org for deletion in either the Dev Hub org (for scratch orgs) or production org (for sandboxes)
12
+ and then deletes all local references to the org from your computer.
12
13
 
13
14
  To mark the org for deletion without being prompted to confirm, specify --noprompt.
14
15
 
@@ -22,6 +23,14 @@ To mark the org for deletion without being prompted to confirm, specify --noprom
22
23
 
23
24
  No prompt to confirm deletion.
24
25
 
26
+ # missingUsername
27
+
28
+ Unable to determine the username of the org to delete. Specify the username with the --target-org | -o flag.
29
+
30
+ # flags.target-org.summary
31
+
32
+ Username or alias of the target org.
33
+
25
34
  # flags.targetdevhubusername
26
35
 
27
36
  The targetdevhubusername flag exists only for backwards compatibility. It is not necessary and has no effect.
@@ -48,4 +57,5 @@ Successfully marked scratch org %s for deletion
48
57
 
49
58
  # commandSandboxSuccess
50
59
 
51
- The sandbox org %s has been successfully removed from your list of CLI authorized orgs. If you created the sandbox with one of the force:org commands, it has also been marked for deletion.
60
+ The sandbox org %s has been successfully removed from your list of CLI authorized orgs. If you created the sandbox with
61
+ one of the force:org commands, it has also been marked for deletion.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.6.8",
2
+ "version": "2.6.10",
3
3
  "commands": {
4
4
  "org:display": {
5
5
  "id": "org:display",
@@ -518,7 +518,7 @@
518
518
  "force:org:delete": {
519
519
  "id": "force:org:delete",
520
520
  "summary": "Delete a scratch or sandbox org.",
521
- "description": "Salesforce CLI marks the org for deletion in either the Dev Hub org (for scratch orgs) or production org (for sandboxes) and then deletes all local references to the org from your computer.\n\nTo mark the org for deletion without being prompted to confirm, specify --noprompt.",
521
+ "description": "Salesforce CLI marks the org for deletion in either the Dev Hub org (for scratch orgs) or production org (for sandboxes)\nand then deletes all local references to the org from your computer.\n\nTo mark the org for deletion without being prompted to confirm, specify --noprompt.",
522
522
  "strict": true,
523
523
  "pluginName": "@salesforce/plugin-org",
524
524
  "pluginAlias": "@salesforce/plugin-org",
@@ -545,7 +545,6 @@
545
545
  "type": "option",
546
546
  "char": "o",
547
547
  "summary": "Username or alias of the target org.",
548
- "required": true,
549
548
  "multiple": false,
550
549
  "aliases": [
551
550
  "targetusername",
@@ -593,8 +592,7 @@
593
592
  }
594
593
  }
595
594
  },
596
- "args": {},
597
- "hasDynamicHelp": true
595
+ "args": {}
598
596
  },
599
597
  "force:org:status": {
600
598
  "id": "force:org:status",
@@ -1046,8 +1044,7 @@
1046
1044
  "deprecateAliases": true
1047
1045
  }
1048
1046
  },
1049
- "args": {},
1050
- "hasDynamicHelp": true
1047
+ "args": {}
1051
1048
  },
1052
1049
  "org:delete:scratch": {
1053
1050
  "id": "org:delete:scratch",
@@ -1080,9 +1077,12 @@
1080
1077
  "type": "option",
1081
1078
  "char": "o",
1082
1079
  "summary": "Scratch org alias or login user.",
1083
- "required": true,
1084
1080
  "multiple": false,
1085
- "deprecateAliases": true
1081
+ "deprecateAliases": true,
1082
+ "aliases": [
1083
+ "targetusername",
1084
+ "u"
1085
+ ]
1086
1086
  },
1087
1087
  "no-prompt": {
1088
1088
  "name": "no-prompt",
@@ -1093,8 +1093,7 @@
1093
1093
  "deprecateAliases": true
1094
1094
  }
1095
1095
  },
1096
- "args": {},
1097
- "hasDynamicHelp": true
1096
+ "args": {}
1098
1097
  },
1099
1098
  "org:list:metadata-types": {
1100
1099
  "id": "org:list:metadata-types",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-org",
3
3
  "description": "Commands to interact with Salesforce orgs",
4
- "version": "2.6.8",
4
+ "version": "2.6.10",
5
5
  "author": "Salesforce",
6
6
  "main": "lib/index.js",
7
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
@@ -9,7 +9,7 @@
9
9
  "@oclif/core": "^2.6.3",
10
10
  "@salesforce/core": "^3.34.6",
11
11
  "@salesforce/kit": "^1.9.2",
12
- "@salesforce/sf-plugins-core": "^2.2.5",
12
+ "@salesforce/sf-plugins-core": "^2.2.7",
13
13
  "@salesforce/source-deploy-retrieve": "^7.15.0",
14
14
  "open": "^8.4.2",
15
15
  "tslib": "^2"
@@ -18,7 +18,7 @@
18
18
  "@oclif/plugin-command-snapshot": "^3.3.10",
19
19
  "@salesforce/cli-plugins-testkit": "^3.3.1",
20
20
  "@salesforce/dev-config": "^3.1.0",
21
- "@salesforce/dev-scripts": "^4.1.3",
21
+ "@salesforce/dev-scripts": "^4.3.0",
22
22
  "@salesforce/plugin-command-reference": "^2.2.9",
23
23
  "@salesforce/plugin-source": "^2.8.0",
24
24
  "@salesforce/prettier-config": "^0.0.2",
@@ -30,7 +30,7 @@
30
30
  "@typescript-eslint/parser": "^5.57.1",
31
31
  "chai": "^4.3.7",
32
32
  "chai-as-promised": "^7.1.1",
33
- "eslint": "^8.37.0",
33
+ "eslint": "^8.38.0",
34
34
  "eslint-config-prettier": "^8.6.0",
35
35
  "eslint-config-salesforce": "^1.1.1",
36
36
  "eslint-config-salesforce-license": "^0.2.0",
@@ -44,7 +44,7 @@
44
44
  "moment": "^2.29.1",
45
45
  "nyc": "^15.1.0",
46
46
  "oclif": "^3.7.3",
47
- "prettier": "^2.8.4",
47
+ "prettier": "^2.8.7",
48
48
  "pretty-quick": "^3.1.0",
49
49
  "shelljs": "^0.8.5",
50
50
  "shx": "0.3.4",
@@ -237,7 +237,7 @@
237
237
  }
238
238
  },
239
239
  "sfdx": {
240
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.6.8.crt",
241
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.6.8.sig"
240
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.6.10.crt",
241
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.6.10.sig"
242
242
  }
243
243
  }