@matterbridge/utils 3.10.12-dev-20260927-5bb5023 → 3.10.12-dev-20260929-3d70112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ import { execFileSync } from 'node:child_process';
2
2
  import { existsSync } from 'node:fs';
3
3
  import os from 'node:os';
4
4
  import path from 'node:path';
5
+ import { setTimeout as delay } from 'node:timers/promises';
5
6
  import { logModuleLoaded } from './loader.js';
6
7
  import { isValidObject, isValidString } from './validate.js';
7
8
  logModuleLoaded('RuntimeBun');
@@ -71,7 +72,7 @@ export function nanoseconds() {
71
72
  export async function sleep(ms) {
72
73
  if (HAS_BUN_GLOBAL)
73
74
  return Bun.sleep(ms);
74
- return new Promise((resolve) => setTimeout(resolve, ms));
75
+ return delay(ms);
75
76
  }
76
77
  export function which(command) {
77
78
  return HAS_BUN_GLOBAL ? Bun.which(command) : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/utils",
3
- "version": "3.10.12-dev-20260927-5bb5023",
3
+ "version": "3.10.12-dev-20260929-3d70112",
4
4
  "description": "Matterbridge utils library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",