Skip to content

Commit

Permalink
chore: move npm org to @dazn
Browse files Browse the repository at this point in the history
  • Loading branch information
simontabor committed Jul 24, 2019
1 parent ce8664b commit 6148728
Show file tree
Hide file tree
Showing 104 changed files with 452 additions and 468 deletions.
4 changes: 2 additions & 2 deletions example/functions/add.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Log = require('@perform/lambda-powertools-logger')
const wrap = require('@perform/lambda-powertools-pattern-basic')
const Log = require('@dazn/lambda-powertools-logger')
const wrap = require('@dazn/lambda-powertools-pattern-basic')

module.exports.handler = wrap(async ({ x, y }, context) => {
Log.debug(`adding ${x} and ${y}`)
Expand Down
12 changes: 6 additions & 6 deletions example/functions/api-a.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const Log = require('@perform/lambda-powertools-logger')
const CorrelationIds = require('@perform/lambda-powertools-correlation-ids')
const Datadog = require('@perform/dazn-datadog-metrics')
const HTTP = require('@perform/lambda-powertools-http-client')
const Kinesis = require('@perform/lambda-powertools-kinesis-client')
const apiGateway = require('@perform/lambda-powertools-pattern-basic')
const Log = require('@dazn/lambda-powertools-logger')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
const Datadog = require('@dazn/datadog-metrics')
const HTTP = require('@dazn/lambda-powertools-http-client')
const Kinesis = require('@dazn/lambda-powertools-kinesis-client')
const apiGateway = require('@dazn/lambda-powertools-pattern-basic')
const uuid = require('uuid/v4')

module.exports.handler = apiGateway(async (event, context) => {
Expand Down
4 changes: 2 additions & 2 deletions example/functions/api-b.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Log = require('@perform/lambda-powertools-logger')
const apiGateway = require('@perform/lambda-powertools-pattern-basic')
const Log = require('@dazn/lambda-powertools-logger')
const apiGateway = require('@dazn/lambda-powertools-pattern-basic')

module.exports.handler = apiGateway(async (event, context) => {
const host = event.headers.Host
Expand Down
4 changes: 2 additions & 2 deletions example/functions/double.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Log = require('@perform/lambda-powertools-logger')
const wrap = require('@perform/lambda-powertools-pattern-basic')
const Log = require('@dazn/lambda-powertools-logger')
const wrap = require('@dazn/lambda-powertools-pattern-basic')

module.exports.handler = wrap(async ({ z }, context) => {
Log.debug(`doubling ${z}`)
Expand Down
4 changes: 2 additions & 2 deletions example/functions/kinesis.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const SNS = require('@perform/lambda-powertools-sns-client')
const kinesisProcessor = require('@perform/lambda-powertools-pattern-basic')
const SNS = require('@dazn/lambda-powertools-sns-client')
const kinesisProcessor = require('@dazn/lambda-powertools-pattern-basic')

module.exports.handler = kinesisProcessor(async (event, context) => {
const events = context.parsedKinesisEvents
Expand Down
10 changes: 5 additions & 5 deletions example/functions/sns.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const Log = require('@perform/lambda-powertools-logger')
const Lambda = require('@perform/lambda-powertools-lambda-client')
const SFN = require('@perform/lambda-powertools-step-functions-client')
const CorrelationIds = require('@perform/lambda-powertools-correlation-ids')
const snsProcessor = require('@perform/lambda-powertools-pattern-basic')
const Log = require('@dazn/lambda-powertools-logger')
const Lambda = require('@dazn/lambda-powertools-lambda-client')
const SFN = require('@dazn/lambda-powertools-step-functions-client')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')
const snsProcessor = require('@dazn/lambda-powertools-pattern-basic')

module.exports.handler = snsProcessor(async (event, context) => {
CorrelationIds.set('event-source', 'sns')
Expand Down
4 changes: 2 additions & 2 deletions example/functions/stand-alone.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Log = require('@perform/lambda-powertools-logger')
const wrap = require('@perform/lambda-powertools-pattern-basic')
const Log = require('@dazn/lambda-powertools-logger')
const wrap = require('@dazn/lambda-powertools-pattern-basic')

module.exports.handler = wrap(async (event, context) => {
Log.debug('finding the answer to life, the universe and everything...')
Expand Down
72 changes: 36 additions & 36 deletions example/package-lock.json

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

22 changes: 11 additions & 11 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "@perform/lambda-powertools-demo",
"name": "@dazn/lambda-powertools-demo",
"version": "0.1.0",
"description": "Example serverless app to demonstrate the powertools",
"scripts": {},
"author": "Yan Cui",
"dependencies": {
"@perform/dazn-datadog-metrics": "^1.1.0",
"@perform/lambda-powertools-correlation-ids": "^0.6.0",
"@perform/lambda-powertools-http-client": "^0.6.0",
"@perform/lambda-powertools-kinesis-client": "^0.6.0",
"@perform/lambda-powertools-lambda-client": "^0.6.0",
"@perform/lambda-powertools-step-functions-client": "^0.6.0",
"@perform/lambda-powertools-logger": "^0.6.0",
"@perform/lambda-powertools-middleware-correlation-ids": "^0.6.0",
"@perform/lambda-powertools-middleware-sample-logging": "^0.6.0",
"@perform/lambda-powertools-pattern-basic": "^0.6.0",
"@perform/lambda-powertools-sns-client": "^0.6.0",
"@dazn/lambda-powertools-correlation-ids": "^0.6.0",
"@dazn/lambda-powertools-http-client": "^0.6.0",
"@dazn/lambda-powertools-kinesis-client": "^0.6.0",
"@dazn/lambda-powertools-lambda-client": "^0.6.0",
"@dazn/lambda-powertools-step-functions-client": "^0.6.0",
"@dazn/lambda-powertools-logger": "^0.6.0",
"@dazn/lambda-powertools-middleware-correlation-ids": "^0.6.0",
"@dazn/lambda-powertools-middleware-sample-logging": "^0.6.0",
"@dazn/lambda-powertools-pattern-basic": "^0.6.0",
"@dazn/lambda-powertools-sns-client": "^0.6.0",
"uuid": "^3.2.1"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "@dazn/lambda-powertools",
"private": true,
"license": "MIT",
"scripts": {
Expand Down
16 changes: 8 additions & 8 deletions packages/lambda-powertools-correlation-ids/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

# [1.5.0](https://github.com/getndazn/dazn-lambda-powertools/compare/v1.4.2...v1.5.0) (2019-06-20)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids





# [1.3.0](https://github.com/getndazn/dazn-lambda-powertools/compare/v1.2.0...v1.3.0) (2019-06-10)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids





## [1.1.7](https://github.com/getndazn/dazn-lambda-powertools/compare/v1.1.6...v1.1.7) (2019-05-22)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids



Expand All @@ -47,36 +47,36 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

## [0.10.5](https://github.com/getndazn/dazn-lambda-powertools/compare/v0.10.4...v0.10.5) (2019-02-19)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids





## [0.10.4](https://github.com/getndazn/dazn-lambda-powertools/compare/v0.10.3...v0.10.4) (2019-02-18)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids





## [0.10.3](https://github.com/getndazn/dazn-lambda-powertools/compare/v0.10.2...v0.10.3) (2019-02-18)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids





## [0.10.2](https://github.com/getndazn/dazn-lambda-powertools/compare/v0.10.1...v0.10.2) (2019-02-18)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids





## [0.10.1](https://github.com/getndazn/dazn-lambda-powertools/compare/v0.10.0...v0.10.1) (2019-02-18)

**Note:** Version bump only for package @perform/lambda-powertools-correlation-ids
**Note:** Version bump only for package @dazn/lambda-powertools-correlation-ids
18 changes: 9 additions & 9 deletions packages/lambda-powertools-correlation-ids/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Main features:

## Getting Started

Install from NPM: `npm install @perform/lambda-powertools-correlation-ids`
Install from NPM: `npm install @dazn/lambda-powertools-correlation-ids`

## API

```js
const CorrelationIds = require('@perform/lambda-powertools-correlation-ids')
const CorrelationIds = require('@dazn/lambda-powertools-correlation-ids')

// automatically inserts 'x-correlation-' prefix if not provided
CorrelationIds.set('id', '12345678') // records id as x-correlation-id
Expand All @@ -38,7 +38,7 @@ CorrelationIds.replaceAllWith({ // bypasses the 'x-correlation-' convention

In practice, you're likely to only need `set` when you want to record correlation IDs from your function.

The middleware, `@perform/lambda-powertools-middleware-correlation-ids`, would automatically capture the correlation IDs from the invocation event for supported event sources:
The middleware, `@dazn/lambda-powertools-middleware-correlation-ids`, would automatically capture the correlation IDs from the invocation event for supported event sources:

* API Gateway (via HTTP headers)

Expand All @@ -50,14 +50,14 @@ The middleware, `@perform/lambda-powertools-middleware-correlation-ids`, would a

Whilst other power tools would use `get` to make use of the correlation IDs:

* `@perform/lambda-powertools-logger` includes recorded correlation IDs in logs
* `@dazn/lambda-powertools-logger` includes recorded correlation IDs in logs

* `@perform/lambda-powertools-http-client` includes recorded correlation IDs as HTTP headers when you make a HTTP request
* `@dazn/lambda-powertools-http-client` includes recorded correlation IDs as HTTP headers when you make a HTTP request

* `@perform/lambda-powertools-sns-client` includes recorded correlation IDs as SNS message attributes when you publish a message to SNS (ie. `SNS.publish`)
* `@dazn/lambda-powertools-sns-client` includes recorded correlation IDs as SNS message attributes when you publish a message to SNS (ie. `SNS.publish`)

* `@perform/lambda-powertools-kinesis-client` injects recorded correlation IDs as part of the event payload when you publish event(s) to Kinesis (ie. `Kinesis.putRecord` and `Kinesis.putRecords`)
* `@dazn/lambda-powertools-kinesis-client` injects recorded correlation IDs as part of the event payload when you publish event(s) to Kinesis (ie. `Kinesis.putRecord` and `Kinesis.putRecords`)

* `@perform/lambda-powertools-step-functions-client` injects recorded correlation IDs as part of the payload when you start a Step Functions execution (ie. `SFN.startExecution`)
* `@dazn/lambda-powertools-step-functions-client` injects recorded correlation IDs as part of the payload when you start a Step Functions execution (ie. `SFN.startExecution`)

* `@perform/lambda-powertools-lambda-client` injects recorded correlation IDs as part of the invocation payload when you invoke a Lambda function directly (ie. `Lambda.invoke` and `Lambda.invokeAsync`)
* `@dazn/lambda-powertools-lambda-client` injects recorded correlation IDs as part of the invocation payload when you invoke a Lambda function directly (ie. `Lambda.invoke` and `Lambda.invokeAsync`)

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

2 changes: 1 addition & 1 deletion packages/lambda-powertools-correlation-ids/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@perform/lambda-powertools-correlation-ids",
"name": "@dazn/lambda-powertools-correlation-ids",
"version": "1.5.0",
"description": "Module for recording correlation IDs",
"main": "index.js",
Expand Down
Loading

0 comments on commit 6148728

Please sign in to comment.