autotel-adapters 0.2.3 → 0.2.5
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.
- package/dist/hono.d.cts +2 -3
- package/dist/hono.d.ts +2 -3
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/tanstack.d.cts +2 -3
- package/dist/tanstack.d.ts +2 -3
- package/package.json +2 -2
- package/dist/index.d-DgrxjJLc.d.cts +0 -21
- package/dist/index.d-DgrxjJLc.d.ts +0 -21
package/dist/hono.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AdapterToolkit } from './core.cjs';
|
|
2
|
-
import
|
|
2
|
+
import * as autotel from 'autotel';
|
|
3
3
|
import { Context } from 'hono';
|
|
4
|
-
import 'autotel';
|
|
5
4
|
|
|
6
|
-
declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
|
|
5
|
+
declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
|
|
7
6
|
declare const honoToolkit: AdapterToolkit<Context<any, any, {}>>;
|
|
8
7
|
|
|
9
8
|
export { honoToolkit, useLogger };
|
package/dist/hono.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AdapterToolkit } from './core.js';
|
|
2
|
-
import
|
|
2
|
+
import * as autotel from 'autotel';
|
|
3
3
|
import { Context } from 'hono';
|
|
4
|
-
import 'autotel';
|
|
5
4
|
|
|
6
|
-
declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
|
|
5
|
+
declare const useLogger: (context?: Context<any, any, {}> | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
|
|
7
6
|
declare const honoToolkit: AdapterToolkit<Context<any, any, {}>>;
|
|
8
7
|
|
|
9
8
|
export { honoToolkit, useLogger };
|
package/dist/index.d.cts
CHANGED
|
@@ -5,5 +5,4 @@ export { createCloudflareAdapter, withAutotelFetch } from './cloudflare.cjs';
|
|
|
5
5
|
export { honoToolkit } from './hono.cjs';
|
|
6
6
|
export { tanstackToolkit } from './tanstack.cjs';
|
|
7
7
|
export { DrainPipelineOptions, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, StructuredError, StructuredErrorInput } from 'autotel';
|
|
8
|
-
import './index.d-DgrxjJLc.cjs';
|
|
9
8
|
import 'hono';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,4 @@ export { createCloudflareAdapter, withAutotelFetch } from './cloudflare.js';
|
|
|
5
5
|
export { honoToolkit } from './hono.js';
|
|
6
6
|
export { tanstackToolkit } from './tanstack.js';
|
|
7
7
|
export { DrainPipelineOptions, ParsedError, PipelineDrainFn, RequestLogSnapshot, RequestLogger, RequestLoggerOptions, StructuredError, StructuredErrorInput } from 'autotel';
|
|
8
|
-
import './index.d-DgrxjJLc.js';
|
|
9
8
|
import 'hono';
|
package/dist/tanstack.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AdapterToolkit } from './core.cjs';
|
|
2
|
-
import
|
|
3
|
-
import 'autotel';
|
|
2
|
+
import * as autotel from 'autotel';
|
|
4
3
|
|
|
5
4
|
declare const useLogger: (context?: {
|
|
6
5
|
pathname?: string;
|
|
7
6
|
method?: string;
|
|
8
|
-
} | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
|
|
7
|
+
} | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
|
|
9
8
|
declare const tanstackToolkit: AdapterToolkit<{
|
|
10
9
|
pathname?: string;
|
|
11
10
|
method?: string;
|
package/dist/tanstack.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AdapterToolkit } from './core.js';
|
|
2
|
-
import
|
|
3
|
-
import 'autotel';
|
|
2
|
+
import * as autotel from 'autotel';
|
|
4
3
|
|
|
5
4
|
declare const useLogger: (context?: {
|
|
6
5
|
pathname?: string;
|
|
7
6
|
method?: string;
|
|
8
|
-
} | undefined, requestLoggerOptions?: RequestLoggerOptions) => RequestLogger;
|
|
7
|
+
} | undefined, requestLoggerOptions?: autotel.RequestLoggerOptions) => autotel.RequestLogger;
|
|
9
8
|
declare const tanstackToolkit: AdapterToolkit<{
|
|
10
9
|
pathname?: string;
|
|
11
10
|
method?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel-adapters",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Framework adapters and composable DX helpers for autotel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"README.md"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"autotel": "2.25.
|
|
52
|
+
"autotel": "2.25.5"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"hono": ">=4.12.9",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface RequestLogger {
|
|
2
|
-
set(fields: Record<string, unknown>): void;
|
|
3
|
-
info(message: string, fields?: Record<string, unknown>): void;
|
|
4
|
-
warn(message: string, fields?: Record<string, unknown>): void;
|
|
5
|
-
error(error: Error | string, fields?: Record<string, unknown>): void;
|
|
6
|
-
getContext(): Record<string, unknown>;
|
|
7
|
-
emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
|
|
8
|
-
}
|
|
9
|
-
interface RequestLogSnapshot {
|
|
10
|
-
timestamp: string;
|
|
11
|
-
traceId: string;
|
|
12
|
-
spanId: string;
|
|
13
|
-
correlationId: string;
|
|
14
|
-
context: Record<string, unknown>;
|
|
15
|
-
}
|
|
16
|
-
interface RequestLoggerOptions {
|
|
17
|
-
/** Callback invoked by emitNow() for manual fan-out. */
|
|
18
|
-
onEmit?: (snapshot: RequestLogSnapshot) => void | Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type { RequestLoggerOptions as R, RequestLogger as a };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface RequestLogger {
|
|
2
|
-
set(fields: Record<string, unknown>): void;
|
|
3
|
-
info(message: string, fields?: Record<string, unknown>): void;
|
|
4
|
-
warn(message: string, fields?: Record<string, unknown>): void;
|
|
5
|
-
error(error: Error | string, fields?: Record<string, unknown>): void;
|
|
6
|
-
getContext(): Record<string, unknown>;
|
|
7
|
-
emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
|
|
8
|
-
}
|
|
9
|
-
interface RequestLogSnapshot {
|
|
10
|
-
timestamp: string;
|
|
11
|
-
traceId: string;
|
|
12
|
-
spanId: string;
|
|
13
|
-
correlationId: string;
|
|
14
|
-
context: Record<string, unknown>;
|
|
15
|
-
}
|
|
16
|
-
interface RequestLoggerOptions {
|
|
17
|
-
/** Callback invoked by emitNow() for manual fan-out. */
|
|
18
|
-
onEmit?: (snapshot: RequestLogSnapshot) => void | Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type { RequestLoggerOptions as R, RequestLogger as a };
|