@onexapis/cli 1.1.48 → 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.mjs CHANGED
@@ -4829,6 +4829,8 @@ Or use the --bump flag:
4829
4829
  if (!pubResponse.ok || !pubBody.bundleUploadUrl) {
4830
4830
  logger.stopSpinner(false, "Failed to get upload URLs");
4831
4831
  logger.error(pubBody.error || "Server error");
4832
+ logger.error(`Status: ${pubResponse.status} ${pubResponse.statusText}`);
4833
+ logger.error(`Response: ${JSON.stringify(pubBody).slice(0, 500)}`);
4832
4834
  process.exit(1);
4833
4835
  }
4834
4836
  bundleUploadUrl = pubBody.bundleUploadUrl;
@@ -4962,13 +4964,21 @@ Or use the --bump flag:
4962
4964
  const confirmBody = confirmData.statusCode ? confirmData.body : confirmData;
4963
4965
  if (!confirmResponse.ok || !confirmBody.success) {
4964
4966
  logger.stopSpinner(false, "Publishing failed");
4965
- if (confirmBody.violations) {
4967
+ const violations = confirmBody.violations || confirmData.violations;
4968
+ if (violations && violations.length > 0) {
4966
4969
  logger.error("Theme rejected \u2014 security violations found:");
4967
- for (const v of confirmBody.violations) {
4968
- logger.log(` \u274C ${v.file}: ${v.violation}`);
4970
+ for (const v of violations) {
4971
+ logger.log(
4972
+ ` \u274C ${v.file || v.path || "?"}: ${v.violation || v.message || JSON.stringify(v)}`
4973
+ );
4969
4974
  }
4970
4975
  } else {
4971
4976
  logger.error(confirmBody.error || "Unknown error");
4977
+ logger.error(confirmBody.message || "");
4978
+ logger.error(
4979
+ `Status: ${confirmResponse.status} ${confirmResponse.statusText}`
4980
+ );
4981
+ logger.error(`Response: ${JSON.stringify(confirmBody).slice(0, 2e3)}`);
4972
4982
  }
4973
4983
  if (confirmBody.warnings?.length) {
4974
4984
  logger.newLine();