You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When using the SQLite Node.js prints warnings about the experimental feature
4
+
// This is workaround to surpass the SQLite warning
5
+
// Inspired by Yarn https://github.com/yarnpkg/berry/blob/182046546379f3b4e111c374946b32d92be5d933/packages/yarnpkg-pnp/sources/loader/applyPatch.ts#L307-L328
6
+
constoriginalEmit=process.emit
7
+
// @ts-expect-error - TS complains about the return type of originalEmit.apply
8
+
process.emit=function(...args){
9
+
constname=args[0]
10
+
constdata=args[1]as{name: string,message: string}
11
+
if(
12
+
name===`warning`
13
+
&&typeofdata===`object`
14
+
&&data.name===`ExperimentalWarning`
15
+
&&data.message.includes(`SQLite is an experimental feature`)
0 commit comments