@sentry/junior-plugin-api 0.200.0 → 0.201.0
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.d.ts +2 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -802,6 +802,8 @@ declare const resourceEventSchema: z.ZodObject<{
|
|
|
802
802
|
}, z.core.$strict>;
|
|
803
803
|
type ResourceEvent = z.output<typeof resourceEventSchema>;
|
|
804
804
|
interface ResourceEventPublisher {
|
|
805
|
+
/** Return whether an active watch or event task matches this event. */
|
|
806
|
+
hasMatch?(event: ResourceEventInput): Promise<boolean>;
|
|
805
807
|
/** Publish one normalized event under the owning plugin's namespace. */
|
|
806
808
|
publish(event: ResourceEventInput): Promise<void>;
|
|
807
809
|
/**
|
package/dist/index.js
CHANGED
|
@@ -458,7 +458,10 @@ var resourceEventMatchFieldSchema = z6.object({
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
|
-
var resourceEventMatchFieldsSchema = z6.record(
|
|
461
|
+
var resourceEventMatchFieldsSchema = z6.record(
|
|
462
|
+
z6.string().regex(RESOURCE_EVENT_MATCH_FIELD_NAME),
|
|
463
|
+
resourceEventMatchFieldSchema
|
|
464
|
+
).superRefine((fields, context) => {
|
|
462
465
|
if (Object.keys(fields).length > RESOURCE_EVENT_DATA_MAX_KEYS) {
|
|
463
466
|
context.addIssue({
|
|
464
467
|
code: "custom",
|