Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/types

Package Overview
Dependencies
Maintainers
7
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/types - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

1

index.d.ts

@@ -0,1 +1,2 @@

export * from './logs';
export * from './http';

@@ -2,0 +3,0 @@ export * from './node';

24

logs/index.d.ts

@@ -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;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc