@timberio/types
Advanced tools
Comparing version 0.13.0 to 0.14.1
/** | ||
* 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 |
{ | ||
"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
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
5012
107