File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export interface CloudEvent {
82
82
time ?: string ;
83
83
84
84
/**
85
- * Data payload of the event. Objects are strigified with JSON and strings are be passed along as-is.
85
+ * Data payload of the event. Objects are stringified with JSON and strings are be passed along as-is.
86
86
*/
87
87
data ?: object | string ;
88
88
Original file line number Diff line number Diff line change @@ -73,15 +73,14 @@ export class EventarcApiClient {
73
73
}
74
74
75
75
/**
76
- * Publishes provided events to this channel. If channel was created with
77
- * `allowedEventsTypes` and event type is not on that list, the event will
78
- * be ignored.
76
+ * Publishes provided events to this channel. If channel was created with `allowedEventsTypes` and event type
77
+ * is not on that list, the event is ignored.
79
78
*
80
- * The following CloudEvent fields will be auto-populated if not set:
79
+ * The following CloudEvent fields are auto-populated if not set:
81
80
* * specversion - `1.0`
82
81
* * id - uuidv4()
83
- * * source - will be populated with `process.env.EVENTARC_CLOUD_EVENT_SOURCE` and
84
- * if not set an error will be thrown.
82
+ * * source - populated with `process.env.EVENTARC_CLOUD_EVENT_SOURCE` and
83
+ * if not set an error is thrown.
85
84
*
86
85
* @param events - CloudEvent to publish to the channel.
87
86
*/
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export function toCloudEventProtoFormat(ce: CloudEvent): any {
110
110
} else {
111
111
throw new FirebaseEventarcError (
112
112
'invalid-argument' ,
113
- `CloudEvent 'data' must be string or an object (which will be converted to JSON), got '${ typeof ce . data } '.` ) ;
113
+ `CloudEvent 'data' must be string or an object (which are converted to JSON), got '${ typeof ce . data } '.` ) ;
114
114
}
115
115
116
116
for ( const attr in ce ) {
You can’t perform that action at this time.
0 commit comments