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 0.6.0 to 0.6.1

CHANGELOG.md

15

lib/cloudwatch-integration.js

@@ -42,3 +42,2 @@ var AWS = require('aws-sdk'),

var payload = {
sequenceToken: sequenceToken,
logGroupName: logGroupName,

@@ -48,2 +47,3 @@ logStreamName: logStreamName,

};
if (sequenceToken) payload.sequenceToken = sequenceToken;

@@ -63,6 +63,6 @@ cloudwatchlogs.putLogEvents(payload, function(err, data) {

function findLogStream(logGroupName, logStreamName, cb) {
var next = function(token) {
function next(token) {
var params = {
logGroupName: logGroupName,
logStreamNamePrefix: logStreamName
logStreamNamePrefix: logStreamName,
logGroupName: logGroupName
};

@@ -74,4 +74,4 @@ cloudwatchlogs.describeLogStreams(params, function(err, data) {

});
if (matches.length) {
cb(null, matches[0]);
if (matches) {
cb(null, matches);
} else if (!data.nextToken) {

@@ -92,7 +92,4 @@ cb(new Error('Stream not found'));

}
if (typeof logStream.uploadSequenceToken !== 'string') {
return cb(new Error('Upload sequence token not found'));
}
cb(null, logStream.uploadSequenceToken);
});
}

8

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

@@ -30,7 +30,7 @@ "keywords": [

"coffee-script": "^1.7.1",
"mocha": "^1.18.2",
"should": "^3.3.1",
"mocha": "^2.3.3",
"should": "^7.1.0",
"sinon": "^1.12.1",
"testem": "^0.6.15"
"testem": "^0.9.5"
}
}

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

winston-cloudwatch [![Build Status](https://travis-ci.org/lazywithclass/winston-cloudwatch.svg?branch=master)](https://travis-ci.org/lazywithclass/winston-cloudwatch) [![David Dependency Overview](https://david-dm.org/lazywithclass/winston-cloudwatch.png "David Dependency Overview")](https://david-dm.org/lazywithclass/winston-cloudwatch)
# winston-cloudwatch <br />
[![Build Status](https://travis-ci.org/lazywithclass/winston-cloudwatch.svg?branch=master)](https://travis-ci.org/lazywithclass/winston-cloudwatch)<br />[![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)
==================

@@ -69,48 +70,1 @@

Please refer to [the provided example](https://github.com/lazywithclass/winston-cloudwatch/blob/master/test/example.js) for more hints.
## Release notes
### 0.5.0
Added `jsonMessage` in options for when you want to send the log object as JSON formatted string
### 0.4.0
Introduced winston as peer dependency
### 0.3.1
Fixed region config to allow SDK to pull from IAM role when running on EC2
### 0.3.0
Increase `logEvents` batch upload to 20 items
### 0.2.5
Construct the AWS object, don't update it.
### 0.2.3
Updated winston.
### 0.2.2
Updated dependencies.
### 0.2.1
Checking if logs are empty before splicing them.
Logging if getting an error while fetching the token from AWS.
### 0.2.0
Added a `setInterval` around the uploading function, to avoiding flooding AWS and thus getting rejected.
### 0.1.2
Work around to the AWS time limit for sending events.
### 0.1.1
First release
var winston = require('winston'),
// aws keys are optional
options = {
logGroupName: 'testing',
logStreamName: 'testing',
awsAccessKeyId: 'your-access-key-id',
awsSecretKey: 'your-secret-key'
logGroupName: '/var/log/haproxy.log',
logStreamName: 'test',
awsAccessKeyId: 'AKIAJM2YTLWWVAPGBEBQ',
awsSecretKey: 'Rud6r9jHr1/gXG75owHb++7AqUJacYHCQVpMWja8',
awsRegion: 'us-east-1'
};

@@ -9,0 +9,0 @@ winston.add(require('../index'), options);

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