- no-eval version added with auto fallback
- A bit more optimized
- Fixed bug with listeners that have more than 6 arguments
no-eval version
There is no user code evaluated so its complete safe to use with-eval version.
But in some cases (eg chrome's extensions), you just cant use it.
For this cases there is no-eval version:
import { EventEmitter } from "tseep/lib/ee-safe"; // no-eval version
import { EventEmitter } from "tseep/lib/fallback"; // or with autofallback
// same api
"tseep/lib/fallback" may bundle both versions which may result in bigger app bundle size.
fun fact: brotlied bundled fallback version is less in size than just ee-safe