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

conventional-changelog-beemo

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-changelog-beemo - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

.github/FUNDING.yml

12

CHANGELOG.md

@@ -0,1 +1,13 @@

### 1.5.2 - 2019-11-10
#### 🐞 Fixes
- Will not autolink `@username` tokens that are wrapped in backticks.
- Will properly link commits and issues within monorepos, or projects that define invalid
`package.json` repository URLs.
#### 📦 Dependencies
- Updated all to latest.
### 1.5.1 - 2019-10-02

@@ -2,0 +14,0 @@

33

lib/writerOpts.js

@@ -29,20 +29,4 @@ "use strict";

};
function createLink(paths, context, reference = {}) {
const owner = reference.owner || context.owner;
const repository = reference.repository || context.repository;
const url = [];
if (repository) {
if (context.host) {
url.push(context.host);
}
if (owner) {
url.push(owner);
}
url.push(repository);
}
else {
url.push(context.repoUrl);
}
url.push(...paths);
return url.join('/');
function createLink(paths, context) {
return [context.host, context.owner, context.repository, ...paths].filter(Boolean).join('/');
}

@@ -97,3 +81,3 @@ const options = {

// eslint-disable-next-line no-magic-numbers
commit.hash = commit.hash.substring(0, 7);
commit.hash = commit.hash.slice(0, 7);
}

@@ -103,3 +87,3 @@ // Pre-generate links instead of doing it in handlebars

commit.references.forEach(reference => {
reference.issueLink = createLink([context.issue, reference.issue], context, reference);
reference.issueLink = createLink([context.issue, reference.issue], context);
let source = `${reference.repository || ''}#${reference.issue}`;

@@ -113,5 +97,8 @@ if (reference.owner) {

if (context.host) {
commit.message = commit.message.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/gu, (_, username) => {
if (username.includes('/')) {
return `@${username}`;
commit.message = commit.message.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/gu, (match, username, index) => {
if (username.includes('/') ||
// Avoid when wrapped in backticks (inline code)
commit.message.charAt(index - 1) === '`' ||
commit.message.charAt(index + match.length + 1) === '`') {
return match;
}

@@ -118,0 +105,0 @@ return `[@${username}](${context.host}/${username})`;

{
"name": "conventional-changelog-beemo",
"version": "1.5.1",
"version": "1.5.2",
"description": "Conventional changelog preset for Beemo and associated projects.",

@@ -32,8 +32,7 @@ "keywords": [

"devDependencies": {
"@milesj/build-tools": "^0.57.0",
"@types/node": "^12.7.9",
"@types/shelljs": "^0.8.5",
"conventional-changelog-core": "^4.0.0",
"conventional-recommended-bump": "^6.0.0",
"git-dummy-commit": "^1.3.0",
"@milesj/build-tools": "^0.59.2",
"@types/node": "^12.12.7",
"@types/shelljs": "^0.8.6",
"conventional-changelog-core": "^4.1.0",
"conventional-recommended-bump": "^6.0.4",
"shelljs": "^0.8.3"

@@ -53,3 +52,7 @@ },

}
},
"funding": {
"type": "ko-fi",
"url": "https://ko-fi.com/milesjohnson"
}
}
# conventional-changelog-beemo
[![Build Status](https://travis-ci.org/beemojs/conventional-changelog-beemo.svg?branch=master)](https://travis-ci.org/beemojs/conventional-changelog-beemo)
[![npm version](https://badge.fury.io/js/conventional-changelog-beemo.svg)](https://www.npmjs.com/package/conventional-changelog-beemo)

@@ -5,0 +4,0 @@ [![npm deps](https://david-dm.org/beemojs/conventional-changelog-beemo.svg)](https://www.npmjs.com/package/conventional-changelog-beemo)

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