@jeffusion/bungee-types 6.11.3 → 6.13.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/dist/menus.js CHANGED
@@ -17,7 +17,6 @@ export const BUILTIN_MENU_PAGES = [
17
17
  { id: 'builtin:dashboard', label: 'nav.dashboard', href: '/#/', source: 'builtin', defaultIcon: 'lucide:layout-dashboard', available: true },
18
18
  { id: 'builtin:routes', label: 'nav.routes', href: '/#/routes', source: 'builtin', defaultIcon: 'lucide:route', available: true },
19
19
  { id: 'builtin:services', label: 'nav.services', href: '/#/services', source: 'builtin', defaultIcon: 'lucide:server', available: true },
20
- { id: 'builtin:logs', label: 'nav.logs', href: '/#/logs', source: 'builtin', defaultIcon: 'lucide:file-text', available: true },
21
20
  { id: 'builtin:configuration', label: 'nav.configuration', href: '/#/config', source: 'builtin', defaultIcon: 'lucide:sliders-horizontal', available: true },
22
21
  { id: 'builtin:plugins', label: 'nav.plugins', href: '/#/plugins', source: 'builtin', defaultIcon: 'lucide:blocks', available: true },
23
22
  { id: MENU_MANAGEMENT_ID, label: 'nav.menus', href: '/#/menus', source: 'builtin', defaultIcon: 'lucide:list-tree', available: true },
@@ -32,7 +31,7 @@ export function createDefaultMenuLayout(catalog) {
32
31
  group('group:gateway'),
33
32
  group('group:usage'),
34
33
  group('group:access'),
35
- page('builtin:logs'),
34
+ page('plugin:request-logs:%2Flogs'),
36
35
  group(SYSTEM_MENU_GROUP_ID),
37
36
  ];
38
37
  const seen = new Set(layout.flatMap(node => node.kind === 'page' ? [node.pageId] : node.children.map(child => child.pageId)));
package/dist/types.d.ts CHANGED
@@ -250,6 +250,7 @@ export interface RouteConfig extends DirectionalModificationRules {
250
250
  redirect?: RedirectConfig;
251
251
  retry?: RetryConfig;
252
252
  }
253
+ export declare const DEFAULT_BODY_LOG_MAX_BYTES: number;
253
254
  export interface LoggingConfig {
254
255
  body?: {
255
256
  enabled: boolean;
package/dist/types.js CHANGED
@@ -1,3 +1,4 @@
1
+ export const DEFAULT_BODY_LOG_MAX_BYTES = 64 * 1024;
1
2
  export const DEFAULT_WEBSOCKET_MAX_CONNECTIONS = 512;
2
3
  export const DEFAULT_WEBSOCKET_MAX_MESSAGE_BYTES = 16 * 1024 * 1024;
3
4
  // The ws parser coerces maxPayload to a signed 32-bit integer.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeffusion/bungee-types",
3
- "version": "6.11.3",
3
+ "version": "6.13.0",
4
4
  "description": "TypeScript type definitions for Bungee",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",