@salesforce/packaging 4.8.0 → 4.9.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.
@@ -409,7 +409,10 @@ class PackageVersion {
409
409
  label1: packageUtils_1.BY_LABEL.SUBSCRIBER_PACKAGE_VERSION_ID.label,
410
410
  label2: packageUtils_1.BY_LABEL.PACKAGE_VERSION_ID.label,
411
411
  };
412
- const allFields = PackageVersion.getPackage2VersionFields(this.connection).toString();
412
+ let allFieldsArr = PackageVersion.getPackage2VersionFields(this.connection);
413
+ // Remove DeveloperUsePkgZip because the user may not have the DownloadPackageVersionZips user permission
414
+ allFieldsArr = allFieldsArr.filter((field) => field !== 'DeveloperUsePkgZip');
415
+ const allFields = allFieldsArr.toString();
413
416
  const query = `SELECT ${allFields} FROM Package2Version WHERE ${queryConfig.clause} LIMIT 1`;
414
417
  try {
415
418
  this.data = await this.connection.singleRecordQuery(query, { tooling: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/packaging",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "Packaging library for the Salesforce packaging platform",
5
5
  "main": "lib/exported",
6
6
  "types": "lib/exported.d.ts",