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

@commercelayer/cli-dev

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/cli-dev - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

7

lib/commands/readme.js

@@ -62,3 +62,4 @@ "use strict";

// return readme.replace(`<!-- ${tag} -->`, `<!-- ${tag} -->\n${body}\n<!-- ${tag}stop -->`)
return readme.replace(`<!-- ${tag} -->`, `<!-- ${tag} -->\n\n${body}\n<!-- ${tag}stop -->`);
const fixedBody = (body.trim().length === 0) ? body : `\n${body}\n`;
return readme.replace(`<!-- ${tag} -->`, `<!-- ${tag} -->\n${fixedBody}<!-- ${tag}stop -->`);
}

@@ -114,3 +115,3 @@ toc(__, readme) {

}),
].join('\n').trim();
].join('\n').trim() + '\n';
}

@@ -126,3 +127,3 @@ createTopicFile(file, config, topic, commands) {

this.commands(config, commands),
].join('\n').trim();
].join('\n').trim() + '\n';
fs.outputFileSync(file, doc);

@@ -129,0 +130,0 @@ }

{
"version": "2.0.3",
"version": "2.0.4",
"commands": {

@@ -4,0 +4,0 @@ "readme": {

{
"name": "@commercelayer/cli-dev",
"description": "Commerce Layer CLI development tools and helpers",
"version": "2.0.3",
"version": "2.0.4",
"author": "Pierluigi Viti <pierluigi@commercelayer.io>",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/commercelayer/commercelayer-cli-dev/issues",

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