@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
|
-
|
|
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 });
|