ffc-pay-event-publisher 1.1.0 → 1.1.2
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.
|
@@ -8,8 +8,8 @@ class PublishEventBatch {
|
|
|
8
8
|
this.config = config
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
async sendEvents (eventMessages) {
|
|
12
|
-
if (validateEvent(
|
|
11
|
+
async sendEvents (eventMessages) {
|
|
12
|
+
if (eventMessages.every(eventMessage => validateEvent(eventMessage)) {
|
|
13
13
|
await publishEventBatchRequest(eventMessages, this.config)
|
|
14
14
|
trackEvents(eventMessages)
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ffc-pay-event-publisher",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Event sending npm module for FFC pay services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"author": "Defra DDTS",
|
|
11
11
|
"contributors": [
|
|
12
12
|
"Simon Dunn simon.dunn1@rpa.gov.uk",
|
|
13
|
-
"Steve Dickinson steve.dickinson@defra.gov.uk"
|
|
13
|
+
"Steve Dickinson steve.dickinson@defra.gov.uk",
|
|
14
|
+
"John Watson john.watson2@rpa.gov.uk"
|
|
14
15
|
],
|
|
15
16
|
"license": "OGL-UK-3.0",
|
|
16
17
|
"bugs": {
|