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

@fingerprintjs/changesets-changelog-format

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fingerprintjs/changesets-changelog-format - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

11

dist/index.js

@@ -26,3 +26,9 @@ "use strict";

module.exports = __toCommonJS(changesets_changelog_format_exports);
async function getReleaseLine(changeset) {
function getCommitLink(sha, repo) {
return `[${sha.slice(0, 7)}](https://github.com/${repo}/commit/${sha})`;
}
async function getReleaseLine(changeset, _versionType, options) {
if (!options?.repo) {
throw new TypeError("Missing `options.repo`");
}
const [firstLine, ...futureLines] = changeset.summary.split("\n").map((l) => l.trimEnd());

@@ -35,3 +41,4 @@ let returnVal = `- ${firstLine}`;

if (changeset.commit) {
returnVal += ` (${changeset.commit.slice(0, 7)})`;
const link = getCommitLink(changeset.commit, options.repo);
returnVal += ` (${link})`;
}

@@ -38,0 +45,0 @@ return returnVal;

2

package.json
{
"name": "@fingerprintjs/changesets-changelog-format",
"version": "0.1.0",
"version": "0.2.0",
"description": "Custom changelog format for changesets",

@@ -5,0 +5,0 @@ "repository": {

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