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

@timberio/types

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@timberio/types - npm Package Compare versions

Comparing version 0.13.0 to 0.14.1

26

dist/cjs/types.d.ts
/**
* Timber library options
*/
export interface ITimberOptions {
/**
* Maximum number of logs to sync in a single request to Timber.io
*/
batchSize: number;
/**
* Max interval (in milliseconds) before a batch of logs proceeds to syncing
*/
batchInterval: number;
/**
* Maximum number of sync requests to make concurrently (useful to limit
* network I/O)
*/
syncMax: number;
}
/**
* Interface representing a Timber log

@@ -9,4 +27,8 @@ */

/**
* Pipeline function type, which takes a log, and returns Promise<ITimberLog>
* Middleware type, which takes a log, and returns Promise<ITimberLog>
*/
export declare type Pipeline = (log: ITimberLog) => Promise<ITimberLog>;
export declare type Middleware = (log: ITimberLog) => Promise<ITimberLog>;
/**
* Sync type, which takes a array of logs, and resolves the logs
*/
export declare type Sync = (logs: ITimberLog[]) => Promise<ITimberLog[]>;
"use strict";
/**
* Timber library options
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=types.js.map
/**
* Timber library options
*/
export interface ITimberOptions {
/**
* Maximum number of logs to sync in a single request to Timber.io
*/
batchSize: number;
/**
* Max interval (in milliseconds) before a batch of logs proceeds to syncing
*/
batchInterval: number;
/**
* Maximum number of sync requests to make concurrently (useful to limit
* network I/O)
*/
syncMax: number;
}
/**
* Interface representing a Timber log

@@ -9,4 +27,8 @@ */

/**
* Pipeline function type, which takes a log, and returns Promise<ITimberLog>
* Middleware type, which takes a log, and returns Promise<ITimberLog>
*/
export declare type Pipeline = (log: ITimberLog) => Promise<ITimberLog>;
export declare type Middleware = (log: ITimberLog) => Promise<ITimberLog>;
/**
* Sync type, which takes a array of logs, and resolves the logs
*/
export declare type Sync = (logs: ITimberLog[]) => Promise<ITimberLog[]>;

@@ -0,1 +1,4 @@

/**
* Timber library options
*/
//# sourceMappingURL=types.js.map

4

package.json
{
"name": "@timberio/types",
"version": "0.13.0",
"version": "0.14.1",
"description": "Timber.io - Typescript types",

@@ -40,3 +40,3 @@ "keywords": [

},
"gitHead": "9643811061b3c12daf7b094931bee1994c850b0b",
"gitHead": "a358ed0c3567f31d00dc96258b73bc9062d59c17",
"dependencies": {

@@ -43,0 +43,0 @@ "js": "^0.1.0"

/**
* Timber library options
*/
export interface ITimberOptions {
/**
* Maximum number of logs to sync in a single request to Timber.io
*/
batchSize: number;
/**
* Max interval (in milliseconds) before a batch of logs proceeds to syncing
*/
batchInterval: number;
/**
* Maximum number of sync requests to make concurrently (useful to limit
* network I/O)
*/
syncMax: number;
}
/**
* Interface representing a Timber log

@@ -10,4 +32,9 @@ */

/**
* Pipeline function type, which takes a log, and returns Promise<ITimberLog>
* Middleware type, which takes a log, and returns Promise<ITimberLog>
*/
export type Pipeline = (log: ITimberLog) => Promise<ITimberLog>;
export type Middleware = (log: ITimberLog) => Promise<ITimberLog>;
/**
* Sync type, which takes a array of logs, and resolves the logs
*/
export type Sync = (logs: ITimberLog[]) => Promise<ITimberLog[]>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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