amplitude / Amplitude-Node

Server-side Node.js SDK for Amplitude
MIT License
67 stars 20 forks source link

fix: wrap event pre-processing in try/catch loop to catch potential errors #102

Closed kelvin-lu closed 3 years ago

kelvin-lu commented 3 years ago

Summary

Wrap a line of code into the try/catch loop so that it doesn't cause crashes - begins the process to help #99 Adds a Array.isArray check and also changes a forEach to a for...of for slightly more robustness and performance

Checklist