statsig-io / node-js-server-sdk

Statsig's SDK for server-side Node.js applications.
ISC License
20 stars 15 forks source link

avoid calling unref outside of node #35

Closed dferber90 closed 1 year ago

dferber90 commented 1 year ago

We saw this error appearing when using statsig-node inside of a middleware on Vercel.

I saw that you are already checking whether timer.unref exists before calling it on other places, so I amended this instance which was causing the error.

image
dferber90 commented 1 year ago

Closing as this made its way in through https://github.com/statsig-io/node-js-server-sdk/releases/tag/v5.9.3