Skip to content

Commit

Permalink
Remove lodash.find
Browse files Browse the repository at this point in the history
  • Loading branch information
timdp committed Dec 17, 2017
1 parent 4d18fa5 commit ccdac44
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"babel-runtime": "^6.23.0",
"bottleneck": "^1.15.1",
"debug": "^3.1.0",
"lodash.find": "^4.4.0",
"lodash.isempty": "^4.2.1"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/cloudwatch-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import _debug from 'debug'
import AWS from 'aws-sdk'
import find from 'lodash.find'
import CloudWatchEventFormatter from './cloudwatch-event-formatter'

const debug = _debug('winston-aws-cloudwatch:CloudWatchClient')
Expand Down Expand Up @@ -134,7 +133,7 @@ export default class CloudWatchClient {
}
return this._client.describeLogStreams(params).promise()
.then(({logStreams, nextToken}) => {
const match = find(logStreams,
const match = logStreams.find(
({logStreamName}) => (logStreamName === this._logStreamName))
if (match) {
return match
Expand Down
4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2184,10 +2184,6 @@ lodash.cond@^4.3.0:
version "4.5.2"
resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5"

lodash.find@^4.4.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.find/-/lodash.find-4.6.0.tgz#cb0704d47ab71789ffa0de8b97dd926fb88b13b1"

lodash.get@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
Expand Down

0 comments on commit ccdac44

Please sign in to comment.