@salesforce/plugin-deploy-retrieve 1.11.11 → 1.12.0

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.
@@ -11,10 +11,10 @@ const core_1 = require("@salesforce/core");
11
11
  const core_2 = require("@salesforce/core");
12
12
  const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
13
13
  core_2.Messages.importMessagesDirectory(__dirname);
14
- const mdTrasferMessages = core_2.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'metadata.transfer');
14
+ const mdTransferMessages = core_2.Messages.loadMessages('@salesforce/plugin-deploy-retrieve', 'metadata.transfer');
15
15
  class DeployProgress extends sf_plugins_core_1.Progress {
16
16
  constructor(deploy, jsonEnabled = false) {
17
- super(!jsonEnabled && core_1.envVars.getBoolean(core_1.EnvironmentVariable.SF_USE_PROGRESS_BAR, true));
17
+ super(!jsonEnabled);
18
18
  this.deploy = deploy;
19
19
  }
20
20
  start() {
@@ -23,7 +23,7 @@ class DeployProgress extends sf_plugins_core_1.Progress {
23
23
  // any thing else should make one final update, then stop the progress bar
24
24
  this.deploy.onFinish((data) => {
25
25
  this.updateProgress(data.response);
26
- this.finish({ status: mdTrasferMessages.getMessage(data.response.status) });
26
+ this.finish({ status: mdTransferMessages.getMessage(data.response.status) });
27
27
  });
28
28
  this.deploy.onCancel(() => this.stop());
29
29
  this.deploy.onError((error) => {
@@ -33,27 +33,29 @@ class DeployProgress extends sf_plugins_core_1.Progress {
33
33
  }
34
34
  updateProgress(data) {
35
35
  // the numCompTot. isn't computed right away, wait to start until we know how many we have
36
+ const errorCount = data.numberComponentErrors ?? 0;
37
+ const testInfo = `| ${data.numberTestsCompleted ?? 0}/${data.numberTestsTotal ?? 0} Tests (Errors:${data.numberTestErrors})`;
36
38
  if (data.numberComponentsTotal) {
37
- this.setTotal(data.numberComponentsTotal + data.numberTestsTotal);
38
- this.update(data.numberComponentsDeployed + data.numberTestsCompleted, {
39
- status: mdTrasferMessages.getMessage(data.status),
39
+ this.setTotal(data.numberComponentsTotal);
40
+ this.update(data.numberComponentsDeployed, {
41
+ errorCount,
42
+ status: mdTransferMessages.getMessage(data.status),
43
+ testInfo,
40
44
  });
41
45
  }
42
46
  else {
43
- this.update(0, { status: mdTrasferMessages.getMessage(data.status) ?? 'Waiting' });
44
- }
45
- // the numTestsTot. isn't computed until validated as tests by the server, update the PB once we know
46
- if (data.numberTestsTotal && data.numberComponentsTotal) {
47
- this.setTotal(data.numberComponentsTotal + data.numberTestsTotal);
47
+ this.update(0, { errorCount, testInfo, status: mdTransferMessages.getMessage(data.status) ?? 'Waiting' });
48
48
  }
49
49
  }
50
50
  }
51
51
  exports.DeployProgress = DeployProgress;
52
52
  DeployProgress.OPTIONS = {
53
53
  title: 'Status',
54
- format: '%s: {status} | {bar} | {value}/{total} Components',
54
+ format: `%s: {status} ${core_1.envVars.getBoolean(core_1.EnvironmentVariable.SF_USE_PROGRESS_BAR, true) ? '| {bar} ' : ''}| {value}/{total} Components (Errors:{errorCount}) {testInfo}`,
55
55
  barCompleteChar: '\u2588',
56
56
  barIncompleteChar: '\u2591',
57
57
  linewrap: true,
58
+ // only set the value if explicitly set to false, otherwise let the progress bar decide
59
+ noTTYOutput: core_1.envVars.getBoolean(core_1.EnvironmentVariable.SF_USE_PROGRESS_BAR, true) === false ? true : undefined,
58
60
  };
59
61
  //# sourceMappingURL=progressBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"progressBar.js","sourceRoot":"","sources":["../../src/utils/progressBar.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAAuE;AAEvE,2CAA4C;AAC5C,iEAAuD;AAEvD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,iBAAiB,GAAG,eAAQ,CAAC,YAAY,CAAC,oCAAoC,EAAE,mBAAmB,CAAC,CAAC;AAE3G,MAAa,cAAe,SAAQ,0BAAQ;IAS1C,YAA2B,MAAyB,EAAE,WAAW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AAE,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC;SAC3G;IACH,CAAC;;AApDH,wCAqDC;AApDgB,sBAAO,GAAG;IACvB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,gBACN,cAAG,CAAC,UAAU,CAAC,0BAAmB,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAC/E,+DAA+D;IAC/D,eAAe,EAAE,QAAQ;IACzB,iBAAiB,EAAE,QAAQ;IAC3B,QAAQ,EAAE,IAAI;IACd,uFAAuF;IACvF,WAAW,EAAE,cAAG,CAAC,UAAU,CAAC,0BAAmB,CAAC,mBAAmB,EAAE,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CACxG,CAAC"}
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.11.11",
2
+ "version": "1.12.0",
3
3
  "commands": {
4
4
  "deploy": {
5
5
  "id": "deploy",
@@ -204,7 +204,7 @@
204
204
  "char": "d",
205
205
  "summary": "Output directory to store the Metadata API–formatted files in.",
206
206
  "multiple": false,
207
- "default": "metadataPackage_1686585027525",
207
+ "default": "metadataPackage_1686682081054",
208
208
  "deprecateAliases": true,
209
209
  "aliases": [
210
210
  "outputdir"
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-deploy-retrieve",
3
3
  "description": "deploy and retrieve commands for sf",
4
- "version": "1.11.11",
4
+ "version": "1.12.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^2.8.2",
8
+ "@oclif/core": "^2.8.6",
9
9
  "@salesforce/apex-node": "^1.6.2",
10
- "@salesforce/core": "^4.1.2",
10
+ "@salesforce/core": "^4.3.1",
11
11
  "@salesforce/kit": "^3.0.2",
12
- "@salesforce/sf-plugins-core": "^3.0.2",
13
- "@salesforce/source-deploy-retrieve": "^9.1.0",
12
+ "@salesforce/sf-plugins-core": "^3.1.0",
13
+ "@salesforce/source-deploy-retrieve": "^9.2.2",
14
14
  "@salesforce/source-tracking": "^4.1.3",
15
15
  "chalk": "^4.1.2",
16
16
  "fs-extra": "^10.0.1",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@oclif/plugin-command-snapshot": "^4.0.2",
22
- "@salesforce/cli-plugins-testkit": "^4.0.1",
22
+ "@salesforce/cli-plugins-testkit": "^4.1.1",
23
23
  "@salesforce/dev-config": "^4.0.1",
24
24
  "@salesforce/dev-scripts": "^5.4.2",
25
25
  "@salesforce/plugin-command-reference": "^3.0.2",
@@ -28,8 +28,8 @@
28
28
  "@salesforce/plugin-templates": "^55.4.18",
29
29
  "@salesforce/plugin-user": "^2.3.14",
30
30
  "@salesforce/prettier-config": "^0.0.3",
31
- "@salesforce/source-testkit": "^2.0.59",
32
- "@salesforce/ts-sinon": "1.4.7",
31
+ "@salesforce/source-testkit": "^2.1.2",
32
+ "@salesforce/ts-sinon": "1.4.8",
33
33
  "@salesforce/ts-types": "^2.0.2",
34
34
  "@swc/core": "1.3.39",
35
35
  "@types/fs-extra": "^9.0.13",
@@ -269,7 +269,7 @@
269
269
  }
270
270
  },
271
271
  "sfdx": {
272
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.11.11.crt",
273
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.11.11.sig"
272
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.12.0.crt",
273
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-deploy-retrieve/1.12.0.sig"
274
274
  }
275
275
  }