File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bucketco/node-sdk" ,
3
- "version" : " 1.5.0 " ,
3
+ "version" : " 1.5.1 " ,
4
4
"license" : " MIT" ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export default class BatchBuffer<T> {
54
54
if ( this . buffer . length >= this . maxSize ) {
55
55
await this . flush ( ) ;
56
56
} else if ( ! this . timer ) {
57
- this . timer = setTimeout ( ( ) => this . flush ( ) , this . intervalMs ) ;
57
+ this . timer = setTimeout ( ( ) => this . flush ( ) , this . intervalMs ) . unref ( ) ;
58
58
}
59
59
}
60
60
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export default function cache<T>(
43
43
logger ?. error ( "failed to update cached value" , e ) ;
44
44
} finally {
45
45
refreshPromise = undefined ;
46
- timeoutId = setTimeout ( update , ttl ) ;
46
+ timeoutId = setTimeout ( update , ttl ) . unref ( ) ;
47
47
}
48
48
} ;
49
49
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function newRateLimiter(windowSizeMs: number) {
43
43
44
44
function isAllowed ( key : string ) : boolean {
45
45
clearIntervalId =
46
- clearIntervalId || setInterval ( ( ) => clear ( false ) , windowSizeMs ) ;
46
+ clearIntervalId || setInterval ( ( ) => clear ( false ) , windowSizeMs ) . unref ( ) ;
47
47
48
48
const now = Date . now ( ) ;
49
49
You can’t perform that action at this time.
0 commit comments