@salesforce/packaging 2.4.7 → 2.4.9

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.
@@ -135,6 +135,9 @@ async function waitForPublish(connection, subscriberPackageVersionId, frequency,
135
135
  getLogger().debug(`Error during waitForPublish polling:\n${e.stack}`);
136
136
  // append the original stack to this new error
137
137
  error.stack += `\nDUE TO:\n${e.stack}`;
138
+ if (e.message) {
139
+ error.actions = (error.actions ?? []).concat([e.message]);
140
+ }
138
141
  }
139
142
  throw error;
140
143
  }
@@ -173,6 +176,9 @@ async function pollStatus(connection, installRequestId, options = { pollingFrequ
173
176
  if (error.stack && e instanceof Error && e.stack) {
174
177
  // add the original stack to this new error
175
178
  error.stack += `\nDUE TO:\n${e.stack}`;
179
+ if (e.message) {
180
+ error.actions = (error.actions ?? []).concat([e.message]);
181
+ }
176
182
  }
177
183
  throw error;
178
184
  }
@@ -36,7 +36,7 @@ Can’t retrieve package version metadata. The specified directory must be relat
36
36
 
37
37
  # unableToAccessMetadataZip
38
38
 
39
- Can’t retrieve package version metadata. Ensure that youre using API version 59.0 or higher, and that you have the user permissions needed to access fields on the MetadataPackageVersion object.
39
+ The sf package version retrieve command has been removed. This feature isnt quite ready for prime time, so we’re removing it for now while we make improvements. We’ll let you know after it’s back up.
40
40
 
41
41
  # errorDownloadingMetadataZip
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/packaging",
3
- "version": "2.4.7",
3
+ "version": "2.4.9",
4
4
  "description": "Packaging library for the Salesforce packaging platform",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",
@@ -60,12 +60,12 @@
60
60
  "@salesforce/dev-config": "^4.0.1",
61
61
  "@salesforce/dev-scripts": "^5.10.0",
62
62
  "@salesforce/prettier-config": "^0.0.3",
63
- "@salesforce/ts-sinon": "^1.4.15",
63
+ "@salesforce/ts-sinon": "^1.4.16",
64
64
  "@types/globby": "^9.1.0",
65
65
  "@types/jszip": "^3.4.1",
66
66
  "@typescript-eslint/eslint-plugin": "^5.62.0",
67
67
  "@typescript-eslint/parser": "^5.62.0",
68
- "chai": "^4.3.8",
68
+ "chai": "^4.3.10",
69
69
  "eslint": "^8.50.0",
70
70
  "eslint-config-prettier": "^8.10.0",
71
71
  "eslint-config-salesforce": "^2.0.2",
@@ -74,7 +74,7 @@
74
74
  "eslint-plugin-header": "3.1.1",
75
75
  "eslint-plugin-import": "^2.28.1",
76
76
  "eslint-plugin-jsdoc": "^44.2.7",
77
- "eslint-plugin-sf-plugin": "^1.16.5",
77
+ "eslint-plugin-sf-plugin": "^1.16.7",
78
78
  "husky": "^8.0.3",
79
79
  "mocha": "^10.2.0",
80
80
  "nyc": "^15.1.0",