@stoplight/types
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,2 @@ | ||
export * from './logs'; | ||
export * from './http'; | ||
@@ -2,0 +3,0 @@ export * from './node'; |
@@ -12,18 +12,8 @@ export enum LogLevel { | ||
// https://github.com/pinojs/pino | ||
export interface ILog<T = any> { | ||
level: LogLevel; | ||
msg: string; | ||
time: number; | ||
data?: T; | ||
source?: string; | ||
} | ||
export interface IAddLog { | ||
level?: any; | ||
msg: string; | ||
} | ||
export interface ILogger { | ||
logs: any[]; | ||
add: (opts: IAddLog) => (() => void); | ||
} | ||
// export interface ILog<T = any> { | ||
// level: LogLevel; | ||
// msg: string; | ||
// time: number; | ||
// source?: string; | ||
// data?: T; | ||
// } |
{ | ||
"name": "@stoplight/types", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"author": "Stoplight <support@stoplight.io>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -0,1 +1,2 @@ | ||
import { LogLevel } from '../logs'; | ||
import { IPathPosition } from '../parsers'; | ||
@@ -6,7 +7,8 @@ | ||
level?: LogLevel; | ||
/** Starting line of error */ | ||
line?: number; | ||
column?: number; | ||
location?: IPathPosition; | ||
} |
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
7315
261