Skip to content

Commit

Permalink
chore(npm): update @perform to @dazn references
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurarpit Singh committed Sep 29, 2019
1 parent 1fd5f52 commit 3ddf446
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const _ = require('lodash')
const uuid = require('uuid/v4')
const middy = require('middy')
const dynamoDbClient = require('aws-sdk/clients/dynamodb')
const CorrelationIds = require('@perform/lambda-powertools-correlation-ids')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
const captureCorrelationIds = require('../index')

global.console.log = jest.fn()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const dynamo = require('aws-sdk/clients/dynamodb')
const CorrelationIds = require('@perform/lambda-powertools-correlation-ids')
const Log = require('@perform/lambda-powertools-logger')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
const Log = require('@dazn/lambda-powertools-logger')
const consts = require('../consts')

function isMatch (event) {
Expand Down Expand Up @@ -38,6 +38,7 @@ function captureCorrelationIds ({ Records }, context, sampleDebugLogRate) {

// delete __context__ from old image if any as its no longer relevant
if (event.dynamodb.hasOwnProperty('OldImage') &&
event.dynamodb.hasOwnProperty('NewImage') &&
event.dynamodb.NewImage.hasOwnProperty('__context__')) {
delete event.dynamodb.OldImage.__context__
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"license": "MIT",
"author": "Yan Cui",
"dependencies": {
"@perform/lambda-powertools-correlation-ids": "^1.5.0",
"@perform/lambda-powertools-logger": "^1.8.0",
"@dazn/lambda-powertools-correlation-ids": "^1.5.0",
"@dazn/lambda-powertools-logger": "^1.8.0",
"aws-sdk": "^2.496.0"
},
"devDependencies": {
Expand Down

0 comments on commit 3ddf446

Please sign in to comment.