@pactosigna/trace 0.1.6 → 0.1.7
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 +8 -2
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -111,7 +111,10 @@ var RiskGapCodeSchema = z.enum([
|
|
|
111
111
|
]);
|
|
112
112
|
var RiskGapSeveritySchema = z.enum(["error", "warning"]);
|
|
113
113
|
var MitigationSchema = z.object({
|
|
114
|
-
control: z.string().min(1)
|
|
114
|
+
control: z.string().min(1).regex(
|
|
115
|
+
/^[A-Z][A-Z0-9-]+(#[\w-]+)?$/,
|
|
116
|
+
"control must be a document ID reference (e.g. SRS-DOC-001, SDP-001#4-2-stage-gates), not prose"
|
|
117
|
+
),
|
|
115
118
|
iso_category: IsoCategorySchema,
|
|
116
119
|
reduces: ReducesTargetSchema
|
|
117
120
|
});
|
|
@@ -4129,7 +4132,10 @@ var RiskGapCodeSchema2 = z33.enum([
|
|
|
4129
4132
|
]);
|
|
4130
4133
|
var RiskGapSeveritySchema2 = z33.enum(["error", "warning"]);
|
|
4131
4134
|
var MitigationSchema2 = z33.object({
|
|
4132
|
-
control: z33.string().min(1)
|
|
4135
|
+
control: z33.string().min(1).regex(
|
|
4136
|
+
/^[A-Z][A-Z0-9-]+(#[\w-]+)?$/,
|
|
4137
|
+
"control must be a document ID reference (e.g. SRS-DOC-001, SDP-001#4-2-stage-gates), not prose"
|
|
4138
|
+
),
|
|
4133
4139
|
iso_category: IsoCategorySchema2,
|
|
4134
4140
|
reduces: ReducesTargetSchema2
|
|
4135
4141
|
});
|
package/dist/index.js
CHANGED
|
@@ -1077,7 +1077,10 @@ var RiskGapCodeSchema = z.enum([
|
|
|
1077
1077
|
]);
|
|
1078
1078
|
var RiskGapSeveritySchema = z.enum(["error", "warning"]);
|
|
1079
1079
|
var MitigationSchema = z.object({
|
|
1080
|
-
control: z.string().min(1)
|
|
1080
|
+
control: z.string().min(1).regex(
|
|
1081
|
+
/^[A-Z][A-Z0-9-]+(#[\w-]+)?$/,
|
|
1082
|
+
"control must be a document ID reference (e.g. SRS-DOC-001, SDP-001#4-2-stage-gates), not prose"
|
|
1083
|
+
),
|
|
1081
1084
|
iso_category: IsoCategorySchema,
|
|
1082
1085
|
reduces: ReducesTargetSchema
|
|
1083
1086
|
});
|