@cdot65/prisma-airs-cli 5.8.0 → 5.8.1

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/index.js CHANGED
@@ -9770,11 +9770,13 @@ async function backupDlpResources(api, tsgId, options = {}) {
9770
9770
  profiles2.push(structuredClone(profile));
9771
9771
  } catch (error) {
9772
9772
  const reason = error instanceof Error ? error.message : "unsupported rule";
9773
- if (!options.skipUnsupported)
9774
- throw new Error(`Profile cannot be exported: ${name} ${reason}`);
9775
9773
  skipped.push({ profile: name, reason });
9776
9774
  }
9777
9775
  }
9776
+ if (skipped.length && !options.skipUnsupported)
9777
+ throw new Error(
9778
+ `Profiles cannot be exported: ${skipped.map((item) => `${item.profile} (${item.reason})`).join("; ")}; exclude unsupported profiles explicitly with --skip-unsupported`
9779
+ );
9778
9780
  }
9779
9781
  const byName = (a, b) => (a.name ?? "").localeCompare(b.name ?? "");
9780
9782
  const dictionaryRecords = [...dictionaries.values()].sort(byName);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cdot65/prisma-airs-cli",
3
3
  "packageManager": "pnpm@10.6.5",
4
- "version": "5.8.0",
4
+ "version": "5.8.1",
5
5
  "description": "CLI and library for Palo Alto Prisma AIRS — guardrail refinement, AI red teaming, model security scanning, profile audits",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",