@bbearai/core 0.4.3 → 0.4.4
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/index.js +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -975,6 +975,10 @@ var BugBearClient = class {
|
|
|
975
975
|
if (report.severity && !validSeverities.includes(report.severity)) {
|
|
976
976
|
return `Invalid severity: ${report.severity}. Must be one of: ${validSeverities.join(", ")}`;
|
|
977
977
|
}
|
|
978
|
+
const validCategories = ["ui_ux", "functional", "crash", "security", "other"];
|
|
979
|
+
if (report.category && !validCategories.includes(report.category)) {
|
|
980
|
+
return `Invalid category: ${report.category}. Must be one of: ${validCategories.join(", ")}`;
|
|
981
|
+
}
|
|
978
982
|
if (report.title && report.title.length > 500) {
|
|
979
983
|
return "Title must be 500 characters or less";
|
|
980
984
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -946,6 +946,10 @@ var BugBearClient = class {
|
|
|
946
946
|
if (report.severity && !validSeverities.includes(report.severity)) {
|
|
947
947
|
return `Invalid severity: ${report.severity}. Must be one of: ${validSeverities.join(", ")}`;
|
|
948
948
|
}
|
|
949
|
+
const validCategories = ["ui_ux", "functional", "crash", "security", "other"];
|
|
950
|
+
if (report.category && !validCategories.includes(report.category)) {
|
|
951
|
+
return `Invalid category: ${report.category}. Must be one of: ${validCategories.join(", ")}`;
|
|
952
|
+
}
|
|
949
953
|
if (report.title && report.title.length > 500) {
|
|
950
954
|
return "Title must be 500 characters or less";
|
|
951
955
|
}
|