@onexapis/cli 1.1.47 → 1.1.49

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.
package/dist/cli.js CHANGED
@@ -4872,6 +4872,8 @@ Or use the --bump flag:
4872
4872
  if (!pubResponse.ok || !pubBody.bundleUploadUrl) {
4873
4873
  logger.stopSpinner(false, "Failed to get upload URLs");
4874
4874
  logger.error(pubBody.error || "Server error");
4875
+ logger.error(`Status: ${pubResponse.status} ${pubResponse.statusText}`);
4876
+ logger.error(`Response: ${JSON.stringify(pubBody).slice(0, 500)}`);
4875
4877
  process.exit(1);
4876
4878
  }
4877
4879
  bundleUploadUrl = pubBody.bundleUploadUrl;
@@ -5005,13 +5007,21 @@ Or use the --bump flag:
5005
5007
  const confirmBody = confirmData.statusCode ? confirmData.body : confirmData;
5006
5008
  if (!confirmResponse.ok || !confirmBody.success) {
5007
5009
  logger.stopSpinner(false, "Publishing failed");
5008
- if (confirmBody.violations) {
5010
+ const violations = confirmBody.violations || confirmData.violations;
5011
+ if (violations && violations.length > 0) {
5009
5012
  logger.error("Theme rejected \u2014 security violations found:");
5010
- for (const v of confirmBody.violations) {
5011
- logger.log(` \u274C ${v.file}: ${v.violation}`);
5013
+ for (const v of violations) {
5014
+ logger.log(
5015
+ ` \u274C ${v.file || v.path || "?"}: ${v.violation || v.message || JSON.stringify(v)}`
5016
+ );
5012
5017
  }
5013
5018
  } else {
5014
5019
  logger.error(confirmBody.error || "Unknown error");
5020
+ logger.error(confirmBody.message || "");
5021
+ logger.error(
5022
+ `Status: ${confirmResponse.status} ${confirmResponse.statusText}`
5023
+ );
5024
+ logger.error(`Response: ${JSON.stringify(confirmBody).slice(0, 2e3)}`);
5015
5025
  }
5016
5026
  if (confirmBody.warnings?.length) {
5017
5027
  logger.newLine();