Open Czino opened 2 months ago
Quickfix is moving to eventemitter3 library (for now). I haven't tested if it is fully compatible but the functionality I need works so far.
...
"overrides": {
"@nostr-dev-kit/ndk": {
"tseep": "npm:eventemitter3@5.0.1"
}
}
...
I will add fallback for this case in nearest time
As a workaround for now it could be sandboxed or unsafe-eval in manifest
Just added fallback and no-eval version in tseep
Change is pretty simple (fallback may take more bundle size, but safe version is still very fast):
// from
import { EventEmitter } from "tseep";
// to
import { EventEmitter } from "tseep/lib/ee-safe"; // no-eval version
import { EventEmitter } from "tseep/lib/fallback"; // auto switch if eval is restricted
As mentioned in https://github.com/Morglod/tseep/issues/23 I encounter a runtime error which comes from the
tseep
library