Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rio-cloud/cdk-v2-constructs

Package Overview
Dependencies
Maintainers
3
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rio-cloud/cdk-v2-constructs - npm Package Compare versions

Comparing version 2.5.6 to 2.5.7

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [2.5.7](https://collaboration.msi.audi.com/stash/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv2.5.6&sourceBranch=refs%2Ftags%2Fv2.5.7) (2022-08-22)
### Bug Fixes
* :bug: Fix issue with construct failing when more than 1 topic is created in the same stack ([34cbcaa](https://collaboration.msi.audi.com/stash/projects/RIODEV/repos/cdk-v2-constructs/commits/34cbcaa5cc4513a7353a9035e5df7a93993ba8bb))
### [2.5.6](https://collaboration.msi.audi.com/stash/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv2.5.5&sourceBranch=refs%2Ftags%2Fv2.5.6) (2022-08-02)

@@ -7,0 +14,0 @@

14

lib/kafka/kafka-topic.js

@@ -17,3 +17,13 @@ "use strict";

super(scope, id);
const teamEmail = ssm.StringParameter.fromStringParameterName(scope, 'TeamEmail', '/config/team/mail').stringValue;
/**
SSM Parameter references dont generate logical names by appending IDs of the caller constructs. Instead simply use ID passed during function call 'fromStringParameterName'.
This means that if this construct is called more than once in the same stack, it would fail with error 'Construct name already used'.
Checking for existing SSM Parameter used to avoid this error
*/
const teamEmailSSMCDKIdentifier = 'TeamEmail';
const teamEmail = aws_cdk_lib_1.Stack.of(this).node.tryFindChild(teamEmailSSMCDKIdentifier)
?
aws_cdk_lib_1.Stack.of(this).node.findChild(teamEmailSSMCDKIdentifier).stringValue
:
ssm.StringParameter.fromStringParameterName(scope, teamEmailSSMCDKIdentifier, '/config/team/mail').stringValue;
const events = props.metadata.events.map(source => {

@@ -71,2 +81,2 @@ new kafka_event_spec_1.KafkaEventSpec(this, `${source.eventName.replace(/\./g, '_')}-EventSpec`, { source });

KafkaTopic[_a] = { fqn: "@rio-cloud/cdk-v2-constructs.KafkaTopic", version: "0.0.0" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2Fma2EtdG9waWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMva2Fma2Eva2Fma2EtdG9waWMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2Q0FBb0Q7QUFDcEQsMkNBQTJDO0FBQzNDLDJDQUF1QztBQUV2Qyx5REFBMEU7QUE2RzFFOztHQUVHO0FBQ0gsTUFBYSxVQUFXLFNBQVEsc0JBQVM7SUFFdkMsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFzQjs7UUFDOUQsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixNQUFNLFNBQVMsR0FBRyxHQUFHLENBQUMsZUFBZSxDQUFDLHVCQUF1QixDQUMzRCxLQUFLLEVBQ0wsV0FBVyxFQUNYLG1CQUFtQixDQUNwQixDQUFDLFdBQVcsQ0FBQztRQUVkLE1BQU0sTUFBTSxHQUFHLEtBQUssQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsRUFBRTtZQUNoRCxJQUFJLGlDQUFjLENBQUMsSUFBSSxFQUFFLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLEdBQUcsQ0FBQyxZQUFZLEVBQUUsRUFBRSxNQUFNLEVBQUUsQ0FBQyxDQUFDO1lBQzFGLE9BQU8sTUFBTSxDQUFDLFNBQVMsQ0FBQztRQUMxQixDQUFDLENBQUMsQ0FBQztRQUVILElBQUkseUJBQVcsQ0FBQyxJQUFJLE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UGFydGl0aW9uc30uYCk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAocHJvcHMucmVwbGljYXRpb25GYWN0b3IgIT09IHVuZGVmaW5lZCAmJlxuICAgICAgICAgICAgKCFOdW1iZXIuaXNJbnRlZ2VyKHByb3BzLnJlcGxpY2F0aW9uRmFjdG9yKSB8fCBwcm9wcy5yZXBsaWNhdGlvbkZhY3RvciA8IDEgfHwgcHJvcHMucmVwbGljYXRpb25GYWN0b3IgPiAzKSkge1xuICAgICAgICAgIHJlc3VsdC5wdXNoKCdJbnZhbGlkIFtyZXBsaWNhdGlvbkZhY3Rvcl06IGV4cGVjdGluZyBhbiBpbnRlZ2VyIGJldHdlZW4gMSBhbmQgMy4nKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChwcm9wcy5tZXRhZGF0YS5ldmVudHMubGVuZ3RoID09PSAwKSB7XG4gICAgICAgICAgcmVzdWx0LnB1c2goJ0ludmFsaWQgW21ldGFkYXRhXTogZXhwZWN0aW5nIFtldmVudHNdIHRvIGhhdmUgYXQgbGVhc3Qgb24gZWxlbWVudC4nKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghcHJvcHMuaXNMb2dDb21wYWN0ZWQgJiYgcHJvcHMubG9nQ29tcGFjdGlvblByb3BlcnRpZXMpIHtcbiAgICAgICAgICByZXN1bHQucHVzaCgnSW52YWxpZCBbbG9nQ29tcGFjdGlvblByb3BlcnRpZXNdOiBsb2cgY29tcGFjdGlvbiBpcyBkaXNhYmxlZCBzbyBwcm9wZXJ0aWVzIG11c3QgYmUgdW5kZWZpbmVkLicpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==

2

package.json

@@ -18,3 +18,3 @@ {

"license": "Apache-2.0",
"version": "2.5.6",
"version": "2.5.7",
"types": "lib/index.d.ts",

@@ -21,0 +21,0 @@ "stability": "stable",

{
"version": "2.5.6"
"version": "2.5.7"
}
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