@jeffusion/bungee-types 6.11.2 → 6.12.0

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.
@@ -471,7 +471,7 @@ export function formatDaemonFileAclError(error) {
471
471
  + ` target_kind=${targetKind} exit_code=${exitCode}`;
472
472
  }
473
473
  function boundedElapsed(startedAt, deadlineMs) {
474
- return Math.min(deadlineMs, Math.max(0, Date.now() - startedAt));
474
+ return Math.min(deadlineMs, Math.max(0, Math.round(performance.now() - startedAt)));
475
475
  }
476
476
  function selectWindowsAclExecutable(environment) {
477
477
  const programFiles = environment.ProgramFiles;
@@ -506,7 +506,7 @@ function processDiagnostic(operation, startedAt, phase, environment, deadlineMs,
506
506
  };
507
507
  }
508
508
  async function runPowerShell(operation, script, environment, deadlineMs) {
509
- const startedAt = Date.now();
509
+ const startedAt = performance.now();
510
510
  let phase = null;
511
511
  let child;
512
512
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeffusion/bungee-types",
3
- "version": "6.11.2",
3
+ "version": "6.12.0",
4
4
  "description": "TypeScript type definitions for Bungee",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",