@logtail/types
Advanced tools
Comparing version 0.4.6 to 0.4.9
@@ -68,3 +68,3 @@ /** | ||
} | ||
export declare type ILogLevel = LogLevel | string; | ||
export type ILogLevel = LogLevel | string; | ||
export declare enum LogLevel { | ||
@@ -84,7 +84,7 @@ Error = "error", | ||
*/ | ||
export declare type ContextKey = any; | ||
export declare type Context = { | ||
export type ContextKey = any; | ||
export type Context = { | ||
[key: string]: ContextKey; | ||
}; | ||
export declare type StackContextHint = { | ||
export type StackContextHint = { | ||
fileName: string; | ||
@@ -105,6 +105,6 @@ methodNames: [string]; | ||
*/ | ||
export declare type Middleware = (log: ILogtailLog) => Promise<ILogtailLog>; | ||
export type Middleware = (log: ILogtailLog) => Promise<ILogtailLog>; | ||
/** | ||
* Sync type, which takes a array of logs, and resolves the logs | ||
*/ | ||
export declare type Sync = (logs: ILogtailLog[]) => Promise<ILogtailLog[]>; | ||
export type Sync = (logs: ILogtailLog[]) => Promise<ILogtailLog[]>; |
@@ -1,9 +0,9 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
describe("context", () => { | ||
const contextCallback = (context) => context; | ||
it("should accept object with optional fields", () => { | ||
const addressCallback = (address) => contextCallback(address); | ||
}); | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
describe('context', () => { | ||
const contextCallback = context => context; | ||
it('should accept object with optional fields', () => { | ||
const addressCallback = address => contextCallback(address); | ||
}); | ||
}); | ||
//# sourceMappingURL=types.test.js.map | ||
//# sourceMappingURL=types.test.js.map |
@@ -68,3 +68,3 @@ /** | ||
} | ||
export declare type ILogLevel = LogLevel | string; | ||
export type ILogLevel = LogLevel | string; | ||
export declare enum LogLevel { | ||
@@ -84,7 +84,7 @@ Error = "error", | ||
*/ | ||
export declare type ContextKey = any; | ||
export declare type Context = { | ||
export type ContextKey = any; | ||
export type Context = { | ||
[key: string]: ContextKey; | ||
}; | ||
export declare type StackContextHint = { | ||
export type StackContextHint = { | ||
fileName: string; | ||
@@ -105,6 +105,6 @@ methodNames: [string]; | ||
*/ | ||
export declare type Middleware = (log: ILogtailLog) => Promise<ILogtailLog>; | ||
export type Middleware = (log: ILogtailLog) => Promise<ILogtailLog>; | ||
/** | ||
* Sync type, which takes a array of logs, and resolves the logs | ||
*/ | ||
export declare type Sync = (logs: ILogtailLog[]) => Promise<ILogtailLog[]>; | ||
export type Sync = (logs: ILogtailLog[]) => Promise<ILogtailLog[]>; |
@@ -1,7 +0,7 @@ | ||
describe("context", () => { | ||
const contextCallback = (context) => context; | ||
it("should accept object with optional fields", () => { | ||
const addressCallback = (address) => contextCallback(address); | ||
}); | ||
describe('context', () => { | ||
const contextCallback = context => context; | ||
it('should accept object with optional fields', () => { | ||
const addressCallback = address => contextCallback(address); | ||
}); | ||
}); | ||
//# sourceMappingURL=types.test.js.map | ||
//# sourceMappingURL=types.test.js.map |
{ | ||
"name": "@logtail/types", | ||
"version": "0.4.6", | ||
"version": "0.4.9", | ||
"description": "Logtail.com - Typescript types", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "7c2faf339a1ea766cd986896739ee4c47788a06e" | ||
"gitHead": "47b6c44046d9d9d7789f385381afbf33d9431d57" | ||
} |
@@ -137,3 +137,3 @@ # [Better Stack](https://betterstack.com/logs) JavaScript client: TypeScript types | ||
export type ContextKey = any; | ||
export type Context = { [key: string]: ContextKey }; | ||
export type Context = { [key: string]: ContextKey }; | ||
``` | ||
@@ -140,0 +140,0 @@ |
@@ -105,3 +105,3 @@ /** | ||
export type Context = { [key: string]: ContextKey }; | ||
export type StackContextHint = { fileName: string, methodNames: [string] }; | ||
export type StackContextHint = { fileName: string; methodNames: [string] }; | ||
@@ -108,0 +108,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
373
18792