@trebired/logger 2.5.2 → 2.5.4

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/browser/console_transport.d.ts +1 -1
  3. package/dist/browser/console_transport.js +3 -3
  4. package/dist/browser/create_log.d.ts +1 -1
  5. package/dist/browser/create_log.js +5 -5
  6. package/dist/browser/index.d.ts +1 -1
  7. package/dist/browser/react.d.ts +1 -1
  8. package/dist/config/console_visibility.js +3 -3
  9. package/dist/core/create_log/api.d.ts +1 -1
  10. package/dist/core/create_log/api.js +6 -6
  11. package/dist/core/create_log/finalize.d.ts +1 -1
  12. package/dist/core/create_log/finalize.js +3 -3
  13. package/dist/core/create_log/runtime.d.ts +5 -5
  14. package/dist/core/create_log/runtime.js +14 -14
  15. package/dist/core/create_log.d.ts +1 -1
  16. package/dist/core/shared.d.ts +1 -1
  17. package/dist/core/shared.js +4 -4
  18. package/dist/format/console.d.ts +1 -1
  19. package/dist/format/console.js +2 -2
  20. package/dist/format/options.d.ts +1 -1
  21. package/dist/format/options.js +1 -1
  22. package/dist/levels/index.d.ts +1 -1
  23. package/dist/levels/index.js +2 -2
  24. package/dist/metadata/process.d.ts +1 -1
  25. package/dist/metadata/process.js +2 -2
  26. package/dist/middleware/request.d.ts +1 -1
  27. package/dist/middleware/request.js +1 -1
  28. package/dist/storage/backend/js.js +6 -6
  29. package/dist/storage/backend/native.d.ts +1 -1
  30. package/dist/storage/backend/types.d.ts +1 -1
  31. package/dist/storage/export.d.ts +1 -1
  32. package/dist/storage/export.js +1 -1
  33. package/dist/storage/names.d.ts +1 -1
  34. package/dist/storage/names.js +4 -4
  35. package/dist/storage/options.d.ts +1 -1
  36. package/dist/storage/options.js +1 -1
  37. package/dist/storage/partitions/delete.d.ts +1 -1
  38. package/dist/storage/partitions/delete.js +1 -1
  39. package/dist/storage/partitions/files.d.ts +2 -2
  40. package/dist/storage/partitions/files.js +4 -4
  41. package/dist/storage/partitions/internal.d.ts +2 -2
  42. package/dist/storage/partitions/internal.js +1 -1
  43. package/dist/storage/partitions/markers.js +2 -2
  44. package/dist/storage/partitions/public.d.ts +1 -1
  45. package/dist/storage/partitions/public.js +1 -1
  46. package/dist/storage/partitions/records.d.ts +1 -1
  47. package/dist/storage/partitions/records.js +3 -3
  48. package/dist/storage/partitions/rewrite.d.ts +2 -2
  49. package/dist/storage/partitions/rewrite.js +2 -2
  50. package/dist/storage/partitions/transforms.d.ts +1 -1
  51. package/dist/storage/partitions/transforms.js +2 -2
  52. package/dist/storage/query/rows.d.ts +2 -2
  53. package/dist/storage/query/shared.d.ts +2 -2
  54. package/dist/storage/query/shared.js +2 -2
  55. package/dist/storage/query/summary.d.ts +2 -2
  56. package/dist/storage/query/summary.js +2 -2
  57. package/dist/storage/query.d.ts +1 -1
  58. package/dist/storage/query.js +1 -1
  59. package/dist/storage/retention.d.ts +1 -1
  60. package/dist/storage/walk.js +1 -1
  61. package/dist/storage/write.d.ts +1 -1
  62. package/dist/storage/write.js +2 -2
  63. package/package.json +64 -75
package/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ All notable changes to `@trebired/logger` will be documented here.
4
4
 
5
5
  This project follows semantic versioning once published.
6
6
 
7
+ ## 2.5.4
8
+
9
+ - bumped the repository package version forward after the `2.5.3` npm publish so the repo can continue from the next unreleased patch state without republishing the same contents
10
+
11
+ ## 2.5.3
12
+
13
+ - fixed the packed package metadata so runtime alias imports and declaration alias imports resolve to built files that actually exist in the published tarball
14
+ - added a publish-preparation step that rewrites compiled `dist` alias imports to relative built paths and rewrites packed `package.json` imports from source aliases to `./dist/...`
15
+ - strengthened package verification to inspect the real tarball, check expected native binaries, verify TypeScript resolution, and smoke-test Bun imports for `@trebired/logger` and `@trebired/logger/browser`
16
+
7
17
  ## 2.5.2
8
18
 
9
19
  - Enforced the package `tb.code-discipline.ts` policy across `src`, tests, and examples, including synced import aliases and normalized `tsconfig` path metadata.
@@ -1,4 +1,4 @@
1
- import type { BrowserConsoleTransportOptions, BrowserTransport, LogEntry, LogLevelConfig, NormalizedConsoleOptions } from "#tvzweoxg5ahk";
1
+ import type { BrowserConsoleTransportOptions, BrowserTransport, LogEntry, LogLevelConfig, NormalizedConsoleOptions } from "../types.js";
2
2
  declare function formatBrowserConsoleLine(entry: LogEntry, levelConfig: LogLevelConfig, options: NormalizedConsoleOptions, timeZone: string): string;
3
3
  declare function createConsoleTransport(options?: BrowserConsoleTransportOptions): BrowserTransport;
4
4
  export { createConsoleTransport, formatBrowserConsoleLine };
@@ -1,6 +1,6 @@
1
- import { formatDisplayTimestamp } from "#0c4ri7nq63zi";
2
- import { normalizeConsoleOptions } from "#b2k4pfb67duj";
3
- import { normalizeLevels } from "#g4tupkl7rvk4";
1
+ import { formatDisplayTimestamp } from "../utils/datetime.js";
2
+ import { normalizeConsoleOptions } from "../format/options.js";
3
+ import { normalizeLevels } from "../levels/index.js";
4
4
  function consoleMethodName(level, levelConfig) {
5
5
  if (level === "debug")
6
6
  return "debug";
@@ -1,4 +1,4 @@
1
- import type { BrowserLogInstance, BrowserLogOptions } from "#tvzweoxg5ahk";
1
+ import type { BrowserLogInstance, BrowserLogOptions } from "../types.js";
2
2
  declare function createBrowserLog(options?: BrowserLogOptions): BrowserLogInstance;
3
3
  export { createBrowserLog };
4
4
  //# sourceMappingURL=create_log.d.ts.map
@@ -1,8 +1,8 @@
1
- import { createCommonLogger } from "#ubetf5s0pfc2";
2
- import { normalizeLevels } from "#g4tupkl7rvk4";
3
- import { logStream } from "#iaj6xqns4o0s";
4
- import { normalizeTimeZone } from "#0c4ri7nq63zi";
5
- import { asObject, toString } from "#ycytzc4gr3f7";
1
+ import { createCommonLogger } from "../core/shared.js";
2
+ import { normalizeLevels } from "../levels/index.js";
3
+ import { logStream } from "../stream/index.js";
4
+ import { normalizeTimeZone } from "../utils/datetime.js";
5
+ import { asObject, toString } from "../utils/values.js";
6
6
  import { createConsoleTransport } from "./console_transport.js";
7
7
  function normalizeBatchOptions(input) {
8
8
  const cfg = input && typeof input === "object" ? input : {};
@@ -1,4 +1,4 @@
1
1
  export { createBrowserLog } from "./create_log.js";
2
2
  export { createConsoleTransport } from "./console_transport.js";
3
- export type { BrowserBatchOptions, BrowserConsoleTransportOptions, BrowserLogInstance, BrowserLogOptions, BrowserLogStats, BrowserTransport, BrowserTransportContext, } from "#tvzweoxg5ahk";
3
+ export type { BrowserBatchOptions, BrowserConsoleTransportOptions, BrowserLogInstance, BrowserLogOptions, BrowserLogStats, BrowserTransport, BrowserTransportContext, } from "../types.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from "react";
2
- import type { BrowserLogInstance } from "#tvzweoxg5ahk";
2
+ import type { BrowserLogInstance } from "../types.js";
3
3
  type LogProviderProps = {
4
4
  log: BrowserLogInstance;
5
5
  children?: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { normGroup } from "#8xmnu037caa7";
4
- import { resolveNativeConsoleVisibilityConfig } from "#ho6lw68jfenw";
5
- import { isPlainObject } from "#ycytzc4gr3f7";
3
+ import { normGroup } from "../groups.js";
4
+ import { resolveNativeConsoleVisibilityConfig } from "../storage/backend/native.js";
5
+ import { isPlainObject } from "../utils/values.js";
6
6
  const CONFIG_FILE_NAME = "tb.logger.json";
7
7
  function warningForInvalidShape(filePath) {
8
8
  return `[trebired.logger] invalid ${CONFIG_FILE_NAME} at ${filePath}: expected an object with a hideConsoleGroups string array`;
@@ -1,4 +1,4 @@
1
- import type { LogInstance } from "#tvzweoxg5ahk";
1
+ import type { LogInstance } from "../../types.js";
2
2
  import type { CreateLogRuntime, CreateLogSharedState } from "./runtime.js";
3
3
  declare function attachLogApi(api: LogInstance, runtime: CreateLogRuntime): void;
4
4
  declare function maybeShowInitializationNotices(api: LogInstance, runtime: CreateLogRuntime, sharedState: CreateLogSharedState): void;
@@ -1,9 +1,9 @@
1
- import { buildRequestMiddleware } from "#8y9zkb2bigg2";
2
- import { activeStorageBackendNotice } from "#1qrb8ldbr5aj";
3
- import { exportPartition as exportStoredPartition, exportPartitions as exportStoredPartitions, } from "#uobjnphrxi2c";
4
- import { sanitizePartitionName } from "#x2qkmwodgsce";
5
- import { getPartitionInfo as getStoredPartitionInfo, listPartitions as listStoredPartitions, } from "#76iooq23kphm";
6
- import { getLogsForDir } from "#zgjmhffod2k1";
1
+ import { buildRequestMiddleware } from "../../middleware/request.js";
2
+ import { activeStorageBackendNotice } from "../../storage/backend/index.js";
3
+ import { exportPartition as exportStoredPartition, exportPartitions as exportStoredPartitions, } from "../../storage/export.js";
4
+ import { sanitizePartitionName } from "../../storage/names.js";
5
+ import { getPartitionInfo as getStoredPartitionInfo, listPartitions as listStoredPartitions, } from "../../storage/partitions.js";
6
+ import { getLogsForDir } from "../../storage/query.js";
7
7
  import { finalizeActivePartition } from "./finalize.js";
8
8
  function createFinalizeDependencies(runtime) {
9
9
  return {
@@ -1,4 +1,4 @@
1
- import type { FinalizePartitionOptions, FinalizePartitionResult, PartitionExistsPolicy, PromotePartitionOptions } from "#tvzweoxg5ahk";
1
+ import type { FinalizePartitionOptions, FinalizePartitionResult, PartitionExistsPolicy, PromotePartitionOptions } from "../../types.js";
2
2
  type FinalizePartitionDependencies = {
3
3
  cleanupTemporaryPartitions: () => Promise<void>;
4
4
  getDir: () => string;
@@ -1,6 +1,6 @@
1
- import { createPartitionError, isPartitionError } from "#h0uexrz2k072";
2
- import { getPartitionInfo as getStoredPartitionInfo, mergePartition, renamePartition, touchPartitionMarkerSync, } from "#76iooq23kphm";
3
- import { sanitizePartitionName } from "#x2qkmwodgsce";
1
+ import { createPartitionError, isPartitionError } from "../../storage/partitions/errors.js";
2
+ import { getPartitionInfo as getStoredPartitionInfo, mergePartition, renamePartition, touchPartitionMarkerSync, } from "../../storage/partitions.js";
3
+ import { sanitizePartitionName } from "../../storage/names.js";
4
4
  function resolvePartitionExistsPolicy(options, fallback) {
5
5
  if (options && typeof options === "object" && options.ifExists) {
6
6
  return options.ifExists;
@@ -1,8 +1,8 @@
1
- import { resolveConsoleVisibilityPolicy } from "#jp65xdmizety";
2
- import { normalizeConsoleOptions } from "#b2k4pfb67duj";
3
- import { normalizeLevels } from "#g4tupkl7rvk4";
4
- import { FileWriter } from "#w1cc3mztq3ng";
5
- import type { CreateLogOptions, LogInstance } from "#tvzweoxg5ahk";
1
+ import { resolveConsoleVisibilityPolicy } from "../../config/console_visibility.js";
2
+ import { normalizeConsoleOptions } from "../../format/options.js";
3
+ import { normalizeLevels } from "../../levels/index.js";
4
+ import { FileWriter } from "../../storage/write.js";
5
+ import type { CreateLogOptions, LogInstance } from "../../types.js";
6
6
  type TemporaryPartitionRegistration = {
7
7
  dir: string;
8
8
  partition: string;
@@ -1,18 +1,18 @@
1
1
  import path from "node:path";
2
- import { resolveConsoleVisibilityPolicy } from "#jp65xdmizety";
3
- import { createCommonLogger } from "#ubetf5s0pfc2";
4
- import { formatConsole, writeConsole } from "#va6txcqwm0gh";
5
- import { normalizeConsoleOptions } from "#b2k4pfb67duj";
6
- import { normalizeLevels } from "#g4tupkl7rvk4";
7
- import { logStream } from "#iaj6xqns4o0s";
8
- import { normalizePartitionKey } from "#x2qkmwodgsce";
9
- import { deleteNonCurrentTemporaryPartitions } from "#qqlp8cyr3105";
10
- import { touchPartitionMarkerSync } from "#76iooq23kphm";
11
- import { normalizeRetentionOptions, normalizeWriteOptions } from "#pngx4lcsdjmx";
12
- import { FileWriter } from "#w1cc3mztq3ng";
13
- import { normalizeTimeZone } from "#0c4ri7nq63zi";
14
- import { maybeShowNodeRuntimeNotice, writePackageNotice } from "#nmfh3v2le5vp";
15
- import { toString } from "#ycytzc4gr3f7";
2
+ import { resolveConsoleVisibilityPolicy } from "../../config/console_visibility.js";
3
+ import { createCommonLogger } from "../shared.js";
4
+ import { formatConsole, writeConsole } from "../../format/console.js";
5
+ import { normalizeConsoleOptions } from "../../format/options.js";
6
+ import { normalizeLevels } from "../../levels/index.js";
7
+ import { logStream } from "../../stream/index.js";
8
+ import { normalizePartitionKey } from "../../storage/names.js";
9
+ import { deleteNonCurrentTemporaryPartitions } from "../../storage/partitions/delete.js";
10
+ import { touchPartitionMarkerSync } from "../../storage/partitions.js";
11
+ import { normalizeRetentionOptions, normalizeWriteOptions } from "../../storage/options.js";
12
+ import { FileWriter } from "../../storage/write.js";
13
+ import { normalizeTimeZone } from "../../utils/datetime.js";
14
+ import { maybeShowNodeRuntimeNotice, writePackageNotice } from "../../utils/runtime.js";
15
+ import { toString } from "../../utils/values.js";
16
16
  function safeResolveDir(value) {
17
17
  const raw = toString(value);
18
18
  return raw ? path.resolve(raw) : "";
@@ -1,4 +1,4 @@
1
- import type { CreateLogOptions, LogInstance } from "#tvzweoxg5ahk";
1
+ import type { CreateLogOptions, LogInstance } from "../types.js";
2
2
  declare function resetCreateLogStateForTests(): void;
3
3
  declare function createLog(options?: CreateLogOptions): LogInstance;
4
4
  export { createLog, resetCreateLogStateForTests };
@@ -1,4 +1,4 @@
1
- import type { LogEntry, LogLevelConfig, LogOrigin, RedactOptions } from "#tvzweoxg5ahk";
1
+ import type { LogEntry, LogLevelConfig, LogOrigin, RedactOptions } from "../types.js";
2
2
  declare const DEFAULT_GROUP = "default";
3
3
  type CommonLoggerOptions<TStats> = {
4
4
  levels: Record<string, LogLevelConfig>;
@@ -1,7 +1,7 @@
1
- import { normGroup } from "#8xmnu037caa7";
2
- import { minLevelWeight, normalizeLevel } from "#g4tupkl7rvk4";
3
- import { prepareMetadata } from "#kzmqayr84v3x";
4
- import { asObject, toString } from "#ycytzc4gr3f7";
1
+ import { normGroup } from "../groups.js";
2
+ import { minLevelWeight, normalizeLevel } from "../levels/index.js";
3
+ import { prepareMetadata } from "../metadata/process.js";
4
+ import { asObject, toString } from "../utils/values.js";
5
5
  const DEFAULT_GROUP = "default";
6
6
  function buildOrigin(source, instance = null) {
7
7
  const src = toString(source) || "app";
@@ -1,4 +1,4 @@
1
- import type { LogEntry, LogLevelConfig, LogStreamName, NormalizedConsoleOptions } from "#tvzweoxg5ahk";
1
+ import type { LogEntry, LogLevelConfig, LogStreamName, NormalizedConsoleOptions } from "../types.js";
2
2
  import { normalizeConsoleOptions } from "./options.js";
3
3
  declare function formatConsole(entry: LogEntry, levelConfig: LogLevelConfig, options: NormalizedConsoleOptions, timeZone: string): string;
4
4
  declare function writeConsole(streamName: LogStreamName | undefined, line: string): void;
@@ -1,5 +1,5 @@
1
- import { formatDisplayTimestamp } from "#0c4ri7nq63zi";
2
- import { toString } from "#ycytzc4gr3f7";
1
+ import { formatDisplayTimestamp } from "../utils/datetime.js";
2
+ import { toString } from "../utils/values.js";
3
3
  import { normalizeConsoleOptions } from "./options.js";
4
4
  function hexToAnsi(hex, bold = false) {
5
5
  const raw = toString(hex).replace(/^#/, "");
@@ -1,4 +1,4 @@
1
- import type { ConsoleOptions, NormalizedConsoleOptions } from "#tvzweoxg5ahk";
1
+ import type { ConsoleOptions, NormalizedConsoleOptions } from "../types.js";
2
2
  declare function normalizeConsoleOptions(input: boolean | ConsoleOptions | undefined): NormalizedConsoleOptions;
3
3
  export { normalizeConsoleOptions };
4
4
  //# sourceMappingURL=options.d.ts.map
@@ -1,4 +1,4 @@
1
- import { normalizeLocale } from "#0c4ri7nq63zi";
1
+ import { normalizeLocale } from "../utils/datetime.js";
2
2
  function normalizeConsoleOptions(input) {
3
3
  if (input === false) {
4
4
  return { enabled: false, colors: true, timestamp: true, group: true, metadata: true, locale: normalizeLocale() };
@@ -1,4 +1,4 @@
1
- import type { LogLevelConfig } from "#tvzweoxg5ahk";
1
+ import type { LogLevelConfig } from "../types.js";
2
2
  declare function assertLevelName(name: string): void;
3
3
  declare function normalizeLevels(input?: Record<string, LogLevelConfig>): Record<string, LogLevelConfig>;
4
4
  declare function minLevelWeight(minLevel: string | number | undefined, levels: Record<string, LogLevelConfig>): number;
@@ -1,5 +1,5 @@
1
- import { DEFAULT_LEVELS } from "#cuh2x5snaefd";
2
- import { toString } from "#ycytzc4gr3f7";
1
+ import { DEFAULT_LEVELS } from "../constants.js";
2
+ import { toString } from "../utils/values.js";
3
3
  function assertLevelName(name) {
4
4
  if (!/^[a-z0-9_-]+$/.test(name))
5
5
  throw new Error(`invalid-log-level-name: ${name}`);
@@ -1,4 +1,4 @@
1
- import type { RedactOptions } from "#tvzweoxg5ahk";
1
+ import type { RedactOptions } from "../types.js";
2
2
  declare function sanitizeMetadata(input: unknown): Record<string, unknown>;
3
3
  declare function applySerializers(input: Record<string, unknown>, serializers?: Record<string, (value: unknown) => unknown>): Record<string, unknown>;
4
4
  declare function redactMetadata(input: Record<string, unknown>, options?: RedactOptions): Record<string, unknown>;
@@ -1,5 +1,5 @@
1
- import { DEFAULT_SENSITIVE_KEYS, RESERVED_METADATA_KEYS } from "#cuh2x5snaefd";
2
- import { asObject, clonePlain, isPlainObject, toString } from "#ycytzc4gr3f7";
1
+ import { DEFAULT_SENSITIVE_KEYS, RESERVED_METADATA_KEYS } from "../constants.js";
2
+ import { asObject, clonePlain, isPlainObject, toString } from "../utils/values.js";
3
3
  function sanitizeMetadata(input) {
4
4
  const src = asObject(input);
5
5
  const out = {};
@@ -1,4 +1,4 @@
1
- import type { RequestLoggerOptions } from "#tvzweoxg5ahk";
1
+ import type { RequestLoggerOptions } from "../types.js";
2
2
  declare function buildRequestMiddleware(log: any, defaults?: RequestLoggerOptions): (options?: RequestLoggerOptions) => (req: any, res: any, next: () => void) => void;
3
3
  export { buildRequestMiddleware };
4
4
  //# sourceMappingURL=request.d.ts.map
@@ -1,4 +1,4 @@
1
- import { toString } from "#ycytzc4gr3f7";
1
+ import { toString } from "../utils/values.js";
2
2
  function requestId() {
3
3
  return `${Date.now().toString(36)}${Math.random().toString(36).slice(2, 10)}`;
4
4
  }
@@ -4,12 +4,12 @@ import { finished } from "node:stream/promises";
4
4
  import zlib from "node:zlib";
5
5
  import { zipSync, strToU8 } from "fflate";
6
6
  import tar from "tar-stream";
7
- import { PARTITION_MARKER_FILE } from "#cuh2x5snaefd";
8
- import { bytesToMegabytes } from "#unnkpg8o07bp";
9
- import { walkedFileFromPath } from "#x2qkmwodgsce";
10
- import { readPartitionMarkerFromRoot } from "#60bftlbj9ito";
11
- import { resolveDir } from "#08atyj8ixt0i";
12
- import { rewritePartitionFiles as rewritePartitionFilesToTarget } from "#nal3wuve8edd";
7
+ import { PARTITION_MARKER_FILE } from "../../constants.js";
8
+ import { bytesToMegabytes } from "../../utils/size.js";
9
+ import { walkedFileFromPath } from "../names.js";
10
+ import { readPartitionMarkerFromRoot } from "../partitions/markers.js";
11
+ import { resolveDir } from "../partitions/internal.js";
12
+ import { rewritePartitionFiles as rewritePartitionFilesToTarget } from "../partitions/rewrite.js";
13
13
  function countRows(text) {
14
14
  if (!text.trim())
15
15
  return 0;
@@ -1,5 +1,5 @@
1
1
  import type { StorageBackend } from "./types.js";
2
- import type { ResolvedConsoleVisibilityPayload } from "#jp65xdmizety";
2
+ import type { ResolvedConsoleVisibilityPayload } from "../../config/console_visibility.js";
3
3
  declare function nativeBinaryBasenameForCurrentPlatform(): string | null;
4
4
  declare function nativeAddonCandidatePathsForCurrentPlatform(): string[];
5
5
  declare function resetNativeBindingForTests(): void;
@@ -1,4 +1,4 @@
1
- import type { ExportFormat } from "#tvzweoxg5ahk";
1
+ import type { ExportFormat } from "../../types.js";
2
2
  type StorageBackendName = "native" | "js";
3
3
  type StorageScanFile = {
4
4
  absPath: string;
@@ -1,4 +1,4 @@
1
- import type { ExportPartitionOptions, ExportPartitionsOptions, ExportResult } from "#tvzweoxg5ahk";
1
+ import type { ExportPartitionOptions, ExportPartitionsOptions, ExportResult } from "../types.js";
2
2
  declare function exportPartitions(dir: string, options: ExportPartitionsOptions): Promise<ExportResult>;
3
3
  declare function exportPartition(dir: string, partition: string, options: ExportPartitionOptions): Promise<ExportResult>;
4
4
  export { exportPartition, exportPartitions };
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { toString } from "#ycytzc4gr3f7";
3
+ import { toString } from "../utils/values.js";
4
4
  import { getStorageBackend } from "./backend/index.js";
5
5
  import { collectPartitionRecords } from "./partitions/records.js";
6
6
  import { resolveDir } from "./partitions/internal.js";
@@ -1,4 +1,4 @@
1
- import type { LogEntry, PartitionNameOptions, PartitionSanitizeOptions } from "#tvzweoxg5ahk";
1
+ import type { LogEntry, PartitionNameOptions, PartitionSanitizeOptions } from "../types.js";
2
2
  type ParsedLogFile = {
3
3
  day: string;
4
4
  hour: string;
@@ -1,9 +1,9 @@
1
1
  import crypto from "node:crypto";
2
2
  import path from "node:path";
3
- import { TOP_LEVEL } from "#cuh2x5snaefd";
4
- import { groupKeyFromRelDir } from "#8xmnu037caa7";
5
- import { getLocalDateTimeParts, normalizeTimeZone } from "#0c4ri7nq63zi";
6
- import { toString } from "#ycytzc4gr3f7";
3
+ import { TOP_LEVEL } from "../constants.js";
4
+ import { groupKeyFromRelDir } from "../groups.js";
5
+ import { getLocalDateTimeParts, normalizeTimeZone } from "../utils/datetime.js";
6
+ import { toString } from "../utils/values.js";
7
7
  function sanitizePartitionFragment(input) {
8
8
  return toString(input)
9
9
  .trim()
@@ -1,4 +1,4 @@
1
- import type { NormalizedRetentionOptions, NormalizedWriteOptions, RetentionOptions, WriteOptions } from "#tvzweoxg5ahk";
1
+ import type { NormalizedRetentionOptions, NormalizedWriteOptions, RetentionOptions, WriteOptions } from "../types.js";
2
2
  declare function normalizeWriteOptions(input?: WriteOptions): NormalizedWriteOptions;
3
3
  declare function normalizeRetentionOptions(input?: RetentionOptions): NormalizedRetentionOptions;
4
4
  export { normalizeRetentionOptions, normalizeWriteOptions };
@@ -1,4 +1,4 @@
1
- import { parseSize } from "#unnkpg8o07bp";
1
+ import { parseSize } from "../utils/size.js";
2
2
  function normalizeWriteOptions(input) {
3
3
  const cfg = input || {};
4
4
  const maxQueue = Number(cfg.maxQueue);
@@ -1,4 +1,4 @@
1
- import type { DeleteLogsOptions, DeleteLogsResult, DeletePartitionResult, DeletePartitionsOptions } from "#tvzweoxg5ahk";
1
+ import type { DeleteLogsOptions, DeleteLogsResult, DeletePartitionResult, DeletePartitionsOptions } from "../../types.js";
2
2
  declare function deletePartitions(dir: string, options?: DeletePartitionsOptions): Promise<DeletePartitionResult>;
3
3
  declare function deleteNonCurrentTemporaryPartitions(dir: string, currentPartitions?: string[]): Promise<string[]>;
4
4
  declare function deleteLogs(dir: string, options?: DeleteLogsOptions): Promise<DeleteLogsResult>;
@@ -1,5 +1,5 @@
1
1
  import fs from "node:fs";
2
- import { sanitizePartitionName } from "#x2qkmwodgsce";
2
+ import { sanitizePartitionName } from "../names.js";
3
3
  import { fileMatchesDeleteFilters, listTopLevelFiles, readLogRows } from "./files.js";
4
4
  import { collectPartitionRecords, partitionInfoFromRecord, partitionMarkerMap } from "./records.js";
5
5
  import { cutoffMsForDays, partitionAgeReferenceMs, resolveDir } from "./internal.js";
@@ -1,5 +1,5 @@
1
- import type { DeleteLogsOptions } from "#tvzweoxg5ahk";
2
- import { type WalkedLogFile } from "#x2qkmwodgsce";
1
+ import type { DeleteLogsOptions } from "../../types.js";
2
+ import { type WalkedLogFile } from "../names.js";
3
3
  import { collectPartitionFiles, findAvailableTargetPath, readLogRows, writeLogRows, writePartitionFiles } from "./rewrite.js";
4
4
  declare function fileMatchesDeleteFilters(file: WalkedLogFile, options: DeleteLogsOptions): boolean;
5
5
  declare function listTopLevelFiles(baseDir: string): Promise<WalkedLogFile[]>;
@@ -1,9 +1,9 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { PARTITION_MARKER_FILE } from "#cuh2x5snaefd";
4
- import { normGroup } from "#8xmnu037caa7";
5
- import { toString } from "#ycytzc4gr3f7";
6
- import { walkedFileFromPath } from "#x2qkmwodgsce";
3
+ import { PARTITION_MARKER_FILE } from "../../constants.js";
4
+ import { normGroup } from "../../groups.js";
5
+ import { toString } from "../../utils/values.js";
6
+ import { walkedFileFromPath } from "../names.js";
7
7
  import { partitionMarkerMap } from "./records.js";
8
8
  import { collectPartitionFiles, findAvailableTargetPath, readLogRows, writeLogRows, writePartitionFiles } from "./rewrite.js";
9
9
  function fileMatchesDeleteFilters(file, options) {
@@ -1,5 +1,5 @@
1
- import type { PartitionInfo } from "#tvzweoxg5ahk";
2
- import type { WalkedLogFile } from "#x2qkmwodgsce";
1
+ import type { PartitionInfo } from "../../types.js";
2
+ import type { WalkedLogFile } from "../names.js";
3
3
  type PartitionMarker = {
4
4
  name: string;
5
5
  temporary: boolean;
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { toString } from "#ycytzc4gr3f7";
3
+ import { toString } from "../../utils/values.js";
4
4
  function resolveDir(input) {
5
5
  const raw = toString(input).trim();
6
6
  return raw ? path.resolve(raw) : "";
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { PARTITION_MARKER_FILE } from "#cuh2x5snaefd";
4
- import { sanitizePartitionName } from "#x2qkmwodgsce";
3
+ import { PARTITION_MARKER_FILE } from "../../constants.js";
4
+ import { sanitizePartitionName } from "../names.js";
5
5
  import { partitionRootPath, resolveDir } from "./internal.js";
6
6
  function isValidMarker(value, expectedName) {
7
7
  if (!value || typeof value !== "object")
@@ -1,4 +1,4 @@
1
- import type { CopyPartitionOptions, CreatePartitionOptions, DeletePartitionResult, MergePartitionOptions, MovePartitionOptions, PartitionInfo, PartitionListResult, RenamePartitionOptions } from "#tvzweoxg5ahk";
1
+ import type { CopyPartitionOptions, CreatePartitionOptions, DeletePartitionResult, MergePartitionOptions, MovePartitionOptions, PartitionInfo, PartitionListResult, RenamePartitionOptions } from "../../types.js";
2
2
  declare function createPartition(dir: string, partition: string, options?: CreatePartitionOptions): Promise<PartitionInfo>;
3
3
  declare function listPartitions(dir: string): Promise<PartitionListResult>;
4
4
  declare function getPartitionInfo(dir: string, partition: string): Promise<PartitionInfo | null>;
@@ -1,4 +1,4 @@
1
- import { sanitizePartitionName } from "#x2qkmwodgsce";
1
+ import { sanitizePartitionName } from "../names.js";
2
2
  import { createPartitionError } from "./errors.js";
3
3
  import { deletePartitions } from "./delete.js";
4
4
  import { writePartitionMarker } from "./markers.js";
@@ -1,4 +1,4 @@
1
- import type { PartitionInfo, PartitionListResult } from "#tvzweoxg5ahk";
1
+ import type { PartitionInfo, PartitionListResult } from "../../types.js";
2
2
  import { type PartitionMarker, type PartitionRecord } from "./internal.js";
3
3
  declare function collectPartitionRecords(dir: string): Promise<PartitionRecord[]>;
4
4
  declare function getPartitionRecord(dir: string, partition: string): Promise<PartitionRecord | null>;
@@ -1,8 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { bytesToMegabytes } from "#unnkpg8o07bp";
4
- import { getStorageBackend } from "#1qrb8ldbr5aj";
5
- import { sanitizePartitionName } from "#x2qkmwodgsce";
3
+ import { bytesToMegabytes } from "../../utils/size.js";
4
+ import { getStorageBackend } from "../backend/index.js";
5
+ import { sanitizePartitionName } from "../names.js";
6
6
  import { readPartitionMarkerFromRoot } from "./markers.js";
7
7
  import { partitionRootPath, resolveDir } from "./internal.js";
8
8
  async function collectPartitionRecords(dir) {
@@ -1,5 +1,5 @@
1
- import type { LogEntry } from "#tvzweoxg5ahk";
2
- import { type WalkedLogFile } from "#x2qkmwodgsce";
1
+ import type { LogEntry } from "../../types.js";
2
+ import { type WalkedLogFile } from "../names.js";
3
3
  import { type PartitionRecord } from "./internal.js";
4
4
  declare function readLogRows(filePath: string, compressed: boolean): Promise<LogEntry[]>;
5
5
  declare function writeLogRows(filePath: string, rows: LogEntry[], compressed: boolean): Promise<void>;
@@ -1,8 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import zlib from "node:zlib";
4
- import { PARTITION_MARKER_FILE } from "#cuh2x5snaefd";
5
- import { makeLogFileName, walkedFileFromPath } from "#x2qkmwodgsce";
4
+ import { PARTITION_MARKER_FILE } from "../../constants.js";
5
+ import { makeLogFileName, walkedFileFromPath } from "../names.js";
6
6
  import { fileStamp, pathExists } from "./internal.js";
7
7
  async function readLogRows(filePath, compressed) {
8
8
  try {
@@ -1,4 +1,4 @@
1
- import type { PartitionInfo } from "#tvzweoxg5ahk";
1
+ import type { PartitionInfo } from "../../types.js";
2
2
  import { type PartitionRecord, type PartitionTransformOptions } from "./internal.js";
3
3
  declare function transformPartition(options: PartitionTransformOptions): Promise<PartitionInfo>;
4
4
  declare function mergePartitionRecord(source: PartitionRecord, target: PartitionRecord, temporary: boolean): Promise<PartitionInfo>;
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { getStorageBackend } from "#1qrb8ldbr5aj";
4
- import { sanitizePartitionName } from "#x2qkmwodgsce";
3
+ import { getStorageBackend } from "../backend/index.js";
4
+ import { sanitizePartitionName } from "../names.js";
5
5
  import { createPartitionError } from "./errors.js";
6
6
  import { writePartitionMarker } from "./markers.js";
7
7
  import { getPartitionInfo } from "./public.js";
@@ -1,5 +1,5 @@
1
- import type { LogEntry } from "#tvzweoxg5ahk";
2
- import type { WalkedLogFile } from "#x2qkmwodgsce";
1
+ import type { LogEntry } from "../../types.js";
2
+ import type { WalkedLogFile } from "../names.js";
3
3
  declare function readLogRows(filePath: string, compressed: boolean): Promise<LogEntry[]>;
4
4
  declare function sortByRecordedAtAsc(entries: LogEntry[]): LogEntry[];
5
5
  declare function hydrateRows(file: WalkedLogFile): Promise<LogEntry[]>;
@@ -1,5 +1,5 @@
1
- import type { LogQueryOptions, LogQueryTotals } from "#tvzweoxg5ahk";
2
- import { type WalkedLogFile } from "#x2qkmwodgsce";
1
+ import type { LogQueryOptions, LogQueryTotals } from "../../types.js";
2
+ import { type WalkedLogFile } from "../names.js";
3
3
  type PartitionSummaryState = {
4
4
  partition: string | null;
5
5
  total: LogQueryTotals;
@@ -1,5 +1,5 @@
1
- import { toString } from "#ycytzc4gr3f7";
2
- import { sanitizePartitionName } from "#x2qkmwodgsce";
1
+ import { toString } from "../../utils/values.js";
2
+ import { sanitizePartitionName } from "../names.js";
3
3
  function partitionKey(partition) {
4
4
  return partition || "__unpartitioned__";
5
5
  }
@@ -1,5 +1,5 @@
1
- import type { LogEntry, LogQueryOptions, LogQueryResult, LogQueryTotals } from "#tvzweoxg5ahk";
2
- import type { WalkedLogFile } from "#x2qkmwodgsce";
1
+ import type { LogEntry, LogQueryOptions, LogQueryResult, LogQueryTotals } from "../../types.js";
2
+ import type { WalkedLogFile } from "../names.js";
3
3
  import { type PartitionSummaryState } from "./shared.js";
4
4
  declare function buildQueryResult(dir: string, logs: LogEntry[], options: LogQueryOptions | undefined, partition: string | null, hasExplicitPartition: boolean, total: LogQueryTotals, items: Map<string, PartitionSummaryState>, counts: Map<string, number>): LogQueryResult;
5
5
  declare function summarizeFiles(files: WalkedLogFile[]): Promise<Map<string, PartitionSummaryState>>;
@@ -1,5 +1,5 @@
1
- import { normalizeLevels } from "#g4tupkl7rvk4";
2
- import { toString } from "#ycytzc4gr3f7";
1
+ import { normalizeLevels } from "../../levels/index.js";
2
+ import { toString } from "../../utils/values.js";
3
3
  import { fileMatchesFilters, partitionKey } from "./shared.js";
4
4
  import { hydrateRows, sortByRecordedAtAsc } from "./rows.js";
5
5
  function buildAggregateTotals(items) {
@@ -1,4 +1,4 @@
1
- import type { LogQueryOptions, LogQueryResult } from "#tvzweoxg5ahk";
1
+ import type { LogQueryOptions, LogQueryResult } from "../types.js";
2
2
  import { readLogRows, sortByRecordedAtAsc } from "./query/rows.js";
3
3
  import { buildQueryResult } from "./query/summary.js";
4
4
  declare function getLogsForDir(dir: string, options?: LogQueryOptions): Promise<LogQueryResult>;
@@ -1,4 +1,4 @@
1
- import { toString } from "#ycytzc4gr3f7";
1
+ import { toString } from "../utils/values.js";
2
2
  import { walkLogFiles } from "./walk.js";
3
3
  import { normalizePartitionFilter, scopeMatches } from "./query/shared.js";
4
4
  import { readLogRows, sortByRecordedAtAsc } from "./query/rows.js";
@@ -1,4 +1,4 @@
1
- import type { NormalizedRetentionOptions } from "#tvzweoxg5ahk";
1
+ import type { NormalizedRetentionOptions } from "../types.js";
2
2
  declare function compressFile(filePath: string): Promise<void>;
3
3
  declare function cleanupLogs(dir: string, options: NormalizedRetentionOptions): Promise<void>;
4
4
  export { cleanupLogs, compressFile };
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { PARTITION_MARKER_FILE } from "#cuh2x5snaefd";
3
+ import { PARTITION_MARKER_FILE } from "../constants.js";
4
4
  import { readPartitionMarkerFromRoot, readPartitionMarkerFromRootSync } from "./partitions.js";
5
5
  import { walkedFileFromPath } from "./names.js";
6
6
  async function walkTree(baseDir, startDir, rootDir, partition, out) {
@@ -1,4 +1,4 @@
1
- import type { LogEntry, LogStats, NormalizedRetentionOptions, NormalizedWriteOptions } from "#tvzweoxg5ahk";
1
+ import type { LogEntry, LogStats, NormalizedRetentionOptions, NormalizedWriteOptions } from "../types.js";
2
2
  type WriterOptions = {
3
3
  dir: string;
4
4
  save: boolean;
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- import { normGroup } from "#8xmnu037caa7";
4
- import { toString } from "#ycytzc4gr3f7";
3
+ import { normGroup } from "../groups.js";
4
+ import { toString } from "../utils/values.js";
5
5
  import { cleanupLogs } from "./retention.js";
6
6
  import { fileStampForEntry, makeLogFileName } from "./names.js";
7
7
  import { touchPartitionMarkerSync } from "./partitions.js";
package/package.json CHANGED
@@ -45,78 +45,65 @@
45
45
  ],
46
46
  "homepage": "https://github.com/Trebired/logger#readme",
47
47
  "imports": {
48
- "#05gqzg490sdf": "./test/specs/runtime.spec.ts",
49
- "#08atyj8ixt0i": "./src/storage/partitions/internal.ts",
50
- "#0c4ri7nq63zi": "./src/utils/datetime.ts",
51
- "#0ns6umc1i7ld": "./src/types/common.ts",
52
- "#1qrb8ldbr5aj": "./src/storage/backend/index.ts",
53
- "#2qi0ju8pcrs2": "./src/backend/utils/object.ts",
54
- "#4gn2x99lawde": "./src/core/create_log.ts",
55
- "#4riod1305goy": "./src/types/server.ts",
56
- "#51dxqj3cwnrj": "./src/storage/retention.ts",
57
- "#5b2ar2e6zs0u": "./src/types/query.ts",
58
- "#5df776pxoxh5": "./src/storage/partitions/public.ts",
59
- "#60bftlbj9ito": "./src/storage/partitions/markers.ts",
60
- "#6ps29jch1ctx": "./test/specs/partition_core.spec.ts",
61
- "#76iooq23kphm": "./src/storage/partitions.ts",
62
- "#84wm1krbmyck": "./src/storage/backend/types.ts",
63
- "#8607cs1qtyle": "./test/specs/helpers.ts",
64
- "#8ky9lhu2jb5d": "./src/storage/query/rows.ts",
65
- "#8xmnu037caa7": "./src/groups.ts",
66
- "#8y9zkb2bigg2": "./src/middleware/request.ts",
67
- "#91t1cde9d892": "./src/storage/partitions/files.ts",
68
- "#a505p6xv4tf1": "./src/frontend/js/utils/text.ts",
69
- "#a65l0o2g0gzz": "./src/storage/query/summary.ts",
70
- "#b2k4pfb67duj": "./src/format/options.ts",
71
- "#b5whz9hbbjxl": "./src/storage/partitions/transforms.ts",
72
- "#ba7ifj8hgxox": "./test/specs/console_visibility.spec.ts",
73
- "#cpmz8lycnjch": "./src/storage/partitions/records.ts",
74
- "#cuh2x5snaefd": "./src/constants.ts",
75
- "#e1h3ay0cyhgl": "./src/types/index.ts",
76
- "#ee9snkkshbj2": "./src/index.ts",
77
- "#el1ku1tpilhr": "./test/browser.spec.ts",
78
- "#es1u80ni3c9a": "./test/specs/time_retention.spec.ts",
79
- "#g4tupkl7rvk4": "./src/levels/index.ts",
80
- "#g50wuco0huop": "./src/core/create_log/api.ts",
81
- "#ge4ag9cokool": "./test/specs/export.spec.ts",
82
- "#gvcc9893bkqo": "./src/browser/index.ts",
83
- "#h0uexrz2k072": "./src/storage/partitions/errors.ts",
84
- "#ho6lw68jfenw": "./src/storage/backend/native.ts",
85
- "#iaj6xqns4o0s": "./src/stream/index.ts",
86
- "#j80q3vhqp4d3": "./test/specs/advanced.spec.ts",
87
- "#jaal40numbzs": "./src/storage/backend/js.ts",
88
- "#jp65xdmizety": "./src/config/console_visibility.ts",
89
- "#koef894lepm1": "./src/types/browser.ts",
90
- "#kwdf5u88q9g4": "./src/backend/utils/time.ts",
91
- "#kzmqayr84v3x": "./src/metadata/process.ts",
92
- "#m4kuwvprq8wl": "./src/types/export.ts",
93
- "#nal3wuve8edd": "./src/storage/partitions/rewrite.ts",
94
- "#nmfh3v2le5vp": "./src/utils/runtime.ts",
95
- "#o3jnvqp377lh": "./src/storage/walk.ts",
96
- "#o520iruia9te": "./src/core/create_log/runtime.ts",
97
- "#oceupfj37qp3": "./src/browser/react.ts",
98
- "#p4vw6ektylr3": "./test/browser_react.spec.ts",
99
- "#pngx4lcsdjmx": "./src/storage/options.ts",
100
- "#qkc6be246w9i": "./src/browser/create_log.ts",
101
- "#qqlp8cyr3105": "./src/storage/partitions/delete.ts",
102
- "#r7zemzf5h80g": "./tb.code-discipline.ts",
103
- "#ta83t616a09f": "./test/specs/partition_ops.spec.ts",
104
- "#tvzweoxg5ahk": "./src/types.ts",
105
- "#u5wfll4tzofn": "./examples/dummy.ts",
106
- "#ubetf5s0pfc2": "./src/core/shared.ts",
107
- "#udhxjfygntkt": "./src/types/partitions.ts",
108
- "#unnkpg8o07bp": "./src/utils/size.ts",
109
- "#uobjnphrxi2c": "./src/storage/export.ts",
110
- "#va6txcqwm0gh": "./src/format/console.ts",
111
- "#vpn8n9wiu1x0": "./src/backend/utils/normalize.ts",
112
- "#w1cc3mztq3ng": "./src/storage/write.ts",
113
- "#wvgdqe7mlqch": "./test/specs/native_loader.spec.ts",
114
- "#x2qkmwodgsce": "./src/storage/names.ts",
115
- "#xcylcir2d1qf": "./src/browser/console_transport.ts",
116
- "#xtaoa1f0kt5w": "./src/core/create_log/finalize.ts",
117
- "#ycytzc4gr3f7": "./src/utils/values.ts",
118
- "#yrpchhxv9iak": "./src/storage/query/shared.ts",
119
- "#zgjmhffod2k1": "./src/storage/query.ts"
48
+ "#08atyj8ixt0i": "./dist/storage/partitions/internal.js",
49
+ "#0c4ri7nq63zi": "./dist/utils/datetime.js",
50
+ "#0ns6umc1i7ld": "./dist/types/common.js",
51
+ "#1qrb8ldbr5aj": "./dist/storage/backend/index.js",
52
+ "#2qi0ju8pcrs2": "./dist/backend/utils/object.js",
53
+ "#4gn2x99lawde": "./dist/core/create_log.js",
54
+ "#4riod1305goy": "./dist/types/server.js",
55
+ "#51dxqj3cwnrj": "./dist/storage/retention.js",
56
+ "#5b2ar2e6zs0u": "./dist/types/query.js",
57
+ "#5df776pxoxh5": "./dist/storage/partitions/public.js",
58
+ "#60bftlbj9ito": "./dist/storage/partitions/markers.js",
59
+ "#76iooq23kphm": "./dist/storage/partitions.js",
60
+ "#84wm1krbmyck": "./dist/storage/backend/types.js",
61
+ "#8ky9lhu2jb5d": "./dist/storage/query/rows.js",
62
+ "#8xmnu037caa7": "./dist/groups.js",
63
+ "#8y9zkb2bigg2": "./dist/middleware/request.js",
64
+ "#91t1cde9d892": "./dist/storage/partitions/files.js",
65
+ "#a505p6xv4tf1": "./dist/frontend/js/utils/text.js",
66
+ "#a65l0o2g0gzz": "./dist/storage/query/summary.js",
67
+ "#b2k4pfb67duj": "./dist/format/options.js",
68
+ "#b5whz9hbbjxl": "./dist/storage/partitions/transforms.js",
69
+ "#cpmz8lycnjch": "./dist/storage/partitions/records.js",
70
+ "#cuh2x5snaefd": "./dist/constants.js",
71
+ "#e1h3ay0cyhgl": "./dist/types/index.js",
72
+ "#ee9snkkshbj2": "./dist/index.js",
73
+ "#g4tupkl7rvk4": "./dist/levels/index.js",
74
+ "#g50wuco0huop": "./dist/core/create_log/api.js",
75
+ "#gvcc9893bkqo": "./dist/browser/index.js",
76
+ "#h0uexrz2k072": "./dist/storage/partitions/errors.js",
77
+ "#ho6lw68jfenw": "./dist/storage/backend/native.js",
78
+ "#iaj6xqns4o0s": "./dist/stream/index.js",
79
+ "#jaal40numbzs": "./dist/storage/backend/js.js",
80
+ "#jp65xdmizety": "./dist/config/console_visibility.js",
81
+ "#koef894lepm1": "./dist/types/browser.js",
82
+ "#kwdf5u88q9g4": "./dist/backend/utils/time.js",
83
+ "#kzmqayr84v3x": "./dist/metadata/process.js",
84
+ "#m4kuwvprq8wl": "./dist/types/export.js",
85
+ "#nal3wuve8edd": "./dist/storage/partitions/rewrite.js",
86
+ "#nmfh3v2le5vp": "./dist/utils/runtime.js",
87
+ "#o3jnvqp377lh": "./dist/storage/walk.js",
88
+ "#o520iruia9te": "./dist/core/create_log/runtime.js",
89
+ "#oceupfj37qp3": "./dist/browser/react.js",
90
+ "#pngx4lcsdjmx": "./dist/storage/options.js",
91
+ "#qkc6be246w9i": "./dist/browser/create_log.js",
92
+ "#qqlp8cyr3105": "./dist/storage/partitions/delete.js",
93
+ "#tvzweoxg5ahk": "./dist/types.js",
94
+ "#ubetf5s0pfc2": "./dist/core/shared.js",
95
+ "#udhxjfygntkt": "./dist/types/partitions.js",
96
+ "#unnkpg8o07bp": "./dist/utils/size.js",
97
+ "#uobjnphrxi2c": "./dist/storage/export.js",
98
+ "#va6txcqwm0gh": "./dist/format/console.js",
99
+ "#vpn8n9wiu1x0": "./dist/backend/utils/normalize.js",
100
+ "#w1cc3mztq3ng": "./dist/storage/write.js",
101
+ "#x2qkmwodgsce": "./dist/storage/names.js",
102
+ "#xcylcir2d1qf": "./dist/browser/console_transport.js",
103
+ "#xtaoa1f0kt5w": "./dist/core/create_log/finalize.js",
104
+ "#ycytzc4gr3f7": "./dist/utils/values.js",
105
+ "#yrpchhxv9iak": "./dist/storage/query/shared.js",
106
+ "#zgjmhffod2k1": "./dist/storage/query.js"
120
107
  },
121
108
  "keywords": [
122
109
  "logger",
@@ -150,11 +137,13 @@
150
137
  "url": "https://github.com/Trebired/logger"
151
138
  },
152
139
  "scripts": {
153
- "build": "rm -rf dist && tsc -p tsconfig.build.json",
140
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && node ./scripts/prepare-dist.mjs prepare-dist",
154
141
  "build:native": "node ./scripts/build-native.mjs",
155
142
  "build:native:matrix": "node ./scripts/build-native-matrix.mjs",
156
143
  "demo": "bun run examples/dummy.ts",
157
- "prepublishOnly": "bun run typecheck && bun test && bun run build && node ./scripts/verify-publish.mjs",
144
+ "postpack": "node ./scripts/prepare-dist.mjs postpack",
145
+ "prepack": "bun run build && node ./scripts/prepare-dist.mjs prepack",
146
+ "prepublishOnly": "bun run typecheck && bun test && node ./scripts/verify-publish.mjs",
158
147
  "publish:npm": "bun run build:native:matrix && npm publish",
159
148
  "publish:npm:host": "bun run build:native && TB_LOGGER_ALLOW_HOST_ONLY_PUBLISH=1 npm publish",
160
149
  "test": "bun test",
@@ -163,5 +152,5 @@
163
152
  },
164
153
  "type": "module",
165
154
  "types": "./dist/index.d.ts",
166
- "version": "2.5.2"
155
+ "version": "2.5.4"
167
156
  }