ffc-pay-etl-framework 1.3.0-alpha.3 → 1.3.0-alpha.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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -66,12 +66,13 @@ etl
66
66
  })
67
67
  )
68
68
  .pump()
69
- .on("finish", () => {
70
- //Update spinner
71
- spinner.succeed("ETL Pipeline - succeeded");
69
+ .on("error", () => {
70
+ // Log simple error message
71
+ console.error('ETL Error:', error.message)
72
72
  })
73
73
  .on("result", (data) => {
74
74
  console.log(data); // emits the last row with error information
75
+ spinner.succeed("ETL Pipeline - succeeded");
75
76
  });
76
77
  ```
77
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ffc-pay-etl-framework",
3
- "version": "1.3.0-alpha.3",
3
+ "version": "1.3.0-alpha.4",
4
4
  "publisher": "Defra",
5
5
  "main": "dist/cjs/index.js",
6
6
  "private": false,