New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

winston-cloudwatch

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-cloudwatch - npm Package Compare versions

Comparing version

to
2.0.7

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 2.0.7
updated TS definitions
### 2.0.6

@@ -2,0 +6,0 @@

2

package.json
{
"name": "winston-cloudwatch",
"version": "2.0.6",
"version": "2.0.7",
"description": "Send logs to Amazon Cloudwatch using Winston.",

@@ -5,0 +5,0 @@ "keywords": [

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

# winston-cloudwatch [v2.0.6](https://github.com/lazywithclass/winston-cloudwatch/blob/master/CHANGELOG.md#206)
# winston-cloudwatch [v2.0.7](https://github.com/lazywithclass/winston-cloudwatch/blob/master/CHANGELOG.md#207)

@@ -3,0 +3,0 @@ [![Build Status](https://travis-ci.org/lazywithclass/winston-cloudwatch.svg?branch=master)](https://travis-ci.org/lazywithclass/winston-cloudwatch) [![Coverage Status](https://coveralls.io/repos/github/lazywithclass/winston-cloudwatch/badge.svg?branch=master)](https://coveralls.io/github/lazywithclass/winston-cloudwatch?branch=master) [![Dependency Status](https://david-dm.org/lazywithclass/winston-cloudwatch.svg)](https://david-dm.org/lazywithclass/winston-cloudwatch) [![dev dependencies](https://david-dm.org/lazywithclass/winston-cloudwatch/dev-status.svg)](https://david-dm.org/lazywithclass/winston-cloudwatch#info=devDependencies) [![peer dependencies](https://david-dm.org/lazywithclass/winston-cloudwatch/peer-status.svg)](https://david-dm.org/lazywithclass/winston-cloudwatch#info=peerDependencies)

@@ -1,8 +0,7 @@

import Transport = require("winston-transport");
import TransportStream = require("winston-transport");
import { CloudWatch, CloudWatchLogs } from "aws-sdk";
type LogObject = { level: string; msg: string; meta?: any };
class WinstonCloudWatch extends Transport {
// Declare the default WinstonCloudwatch class
declare class WinstonCloudwatch extends TransportStream {
kthxbye(callback: () => void): void;

@@ -40,24 +39,27 @@ upload(

ignoreInProgress(cb: ((err: Error) => void)): void;
constructor (options?: CloudwatchTransportOptions): WinstonCloudWatch;
constructor (options?: WinstonCloudwatch.CloudwatchTransportOptions);
}
// Export the default winston cloudwatch class
export = WinstonCloudwatch;
interface CloudwatchTransportOptions {
level?: string;
logGroupName?: string | (() => string);
logStreamName?: string | (() => string);
awsAccessKeyId?: string;
awsSecretKey?: string;
awsRegion?: string;
awsOptions?: CloudWatch.Types.ClientConfiguration;
jsonMessage?: boolean;
messageFormatter?: (logObject: LogObject) => string;
proxyServer?: string;
uploadRate?: number;
errorHandler?: ((err: Error) => void);
silent?: boolean;
}
// Declare optional exports
declare namespace WinstonCloudwatch {
declare module "winston-cloudwatch" {
export = WinstonCloudWatch;
export type LogObject = { level: string; msg: string; meta?: any };
export interface CloudwatchTransportOptions {
level?: string;
logGroupName?: string | (() => string);
logStreamName?: string | (() => string);
awsAccessKeyId?: string;
awsSecretKey?: string;
awsRegion?: string;
awsOptions?: CloudWatch.Types.ClientConfiguration;
jsonMessage?: boolean;
messageFormatter?: (logObject: LogObject) => string;
proxyServer?: string;
uploadRate?: number;
errorHandler?: ((err: Error) => void);
silent?: boolean;
}
}