winston-cloudwatch
Advanced tools
Comparing version 3.2.0 to 4.0.0
@@ -0,1 +1,6 @@ | ||
### 4.0.0 | ||
Remove cloudwatch package from devDependencies, update README accordingly. | ||
This should've been done as part of the previous version publish. | ||
### 3.2.0 | ||
@@ -2,0 +7,0 @@ |
@@ -84,3 +84,3 @@ var LIMITS = { | ||
// for the group being set to null | ||
if (err.name === 'InvalidSequenceTokenException' || err.name === 'ResourceNotFoundException') { | ||
if (err.code === 'InvalidSequenceTokenException' || err.code === 'ResourceNotFoundException') { | ||
debug(err.name + ', retrying', true); | ||
@@ -166,3 +166,3 @@ lib.submitWithAnotherToken(aws, groupName, streamName, payload, retentionInDays, options, cb) | ||
// TODO we should cb(err, false) if there's an error? | ||
if (err && err.name == 'ResourceNotFoundException') { | ||
if (err && err.code == 'ResourceNotFoundException') { | ||
debug('create group'); | ||
@@ -224,4 +224,4 @@ return aws.createLogGroup(params, lib.ignoreInProgress(function(err) { | ||
return function(err, data) { | ||
if (err && (err.name == 'OperationAbortedException' || | ||
err.name == 'ResourceAlreadyExistsException')) { | ||
if (err && (err.code == 'OperationAbortedException' || | ||
err.code == 'ResourceAlreadyExistsException')) { | ||
debug('ignore operation in progress', err.message); | ||
@@ -228,0 +228,0 @@ cb(null, data); |
{ | ||
"name": "winston-cloudwatch", | ||
"version": "3.2.0", | ||
"version": "4.0.0", | ||
"description": "Send logs to Amazon Cloudwatch using Winston.", | ||
@@ -36,3 +36,2 @@ "keywords": [ | ||
"devDependencies": { | ||
"@aws-sdk/client-cloudwatch-logs": "^3.46.0", | ||
"@types/node": "13.11.0", | ||
@@ -39,0 +38,0 @@ "@types/winston": "2.4.4", |
@@ -1,2 +0,2 @@ | ||
# winston-cloudwatch [v3.2.0](https://github.com/lazywithclass/winston-cloudwatch/blob/master/CHANGELOG.md#320) | ||
# winston-cloudwatch [v4.0.0](https://github.com/lazywithclass/winston-cloudwatch/blob/master/CHANGELOG.md#400) | ||
@@ -39,3 +39,3 @@ [![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) | ||
```sh | ||
$ npm install --save winston winston-cloudwatch | ||
$ npm install --save winston winston-cloudwatch @aws-sdk/client-cloudwatch-logs | ||
``` | ||
@@ -42,0 +42,0 @@ |
@@ -39,2 +39,4 @@ describe('index', function() { | ||
mockery.registerAllowable('./lib/utils'); | ||
mockery.registerAllowable('@aws-sdk/client-cloudwatch-logs'); | ||
mockery.registerAllowable('aws-crt'); | ||
@@ -41,0 +43,0 @@ mockery.registerMock('winston', stubbedWinston); |
62997
10
1331