Skip to content

1.3.1 no-eval version

Latest
Compare
Choose a tag to compare
@Morglod Morglod released this 26 Sep 07:35
· 3 commits to master since this release
  • 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