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

@asyncapi/converter

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asyncapi/converter - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml

19

lib/index.js

@@ -75,3 +75,3 @@ const yaml = require('js-yaml');

result.id = options.id || `urn:${asyncapi1.info.title.toLowerCase().split(' ').join('.')}`;
if (asyncapi1.servers) {

@@ -81,3 +81,3 @@ const security = asyncapi1.security;

const { scheme, schemeVersion, ...rest } = server;
const out = {

@@ -99,5 +99,6 @@ ...rest,

}
if (asyncapi1.topics) {
result.channels = _.mapKeys(result.topics, (_, topicName) => dotsToSlashes(`${asyncapi1.baseTopic ? `${asyncapi1.baseTopic}.` : ''}${topicName}`));
const baseTopic = asyncapi1.baseTopic ? `${asyncapi1.baseTopic}.` : "";
result.channels = _.mapKeys(result.topics, (__, topicName) => dotsToSlashes(`${baseTopic}${topicName}`));
_.map(result.channels, ch => {

@@ -120,3 +121,3 @@ if (ch.publish) {

}
delete result.topics;

@@ -136,3 +137,3 @@ delete result.stream;

result.id = result.id || options.id;
if (asyncapi2rc1.servers) {

@@ -147,3 +148,3 @@ const serverMap = {};

}
if (result.channels) {

@@ -166,3 +167,3 @@ _.each(result.channels, (channel, channelName) => {

}
if (channel.subscribe && channel.subscribe.message) {

@@ -187,3 +188,3 @@ const message = channel.subscribe.message;

}
});
});
}

@@ -190,0 +191,0 @@

{
"name": "@asyncapi/converter",
"version": "0.6.0",
"version": "0.6.1",
"description": "Convert AsyncAPI documents from older to newer versions.",

@@ -36,14 +36,14 @@ "bin": {

"dependencies": {
"commander": "^2.20.0",
"js-yaml": "^3.13.1",
"lodash": "^4.17.15",
"mocha": "^6.1.4"
"commander": "^8.3.0",
"js-yaml": "^3.14.1",
"lodash": "^4.17.21"
},
"devDependencies": {
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/github": "^7.0.4",
"@semantic-release/npm": "^7.0.3",
"@semantic-release/release-notes-generator": "^9.0.1",
"conventional-changelog-conventionalcommits": "^4.2.3",
"semantic-release": "^17.0.4"
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/github": "^8.0.2",
"@semantic-release/npm": "^8.0.3",
"@semantic-release/release-notes-generator": "^10.0.3",
"conventional-changelog-conventionalcommits": "^4.6.3",
"semantic-release": "^18.0.1",
"mocha": "^9.1.3"
},

@@ -50,0 +50,0 @@ "release": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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