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

@logtail/types

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logtail/types - npm Package Compare versions

Comparing version 0.4.6 to 0.4.9

12

dist/cjs/types.d.ts

@@ -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 @@ /**

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