Socket
Socket
Sign inDemoInstall

standard-changelog

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

standard-changelog - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

figures.js

26

index.js

@@ -1,9 +0,6 @@

'use strict'
const fs = require('fs/promises')
const pc = require('picocolors')
const conventionalChangelogCore = require('conventional-changelog-core')
const angular = require('conventional-changelog-angular')
const fs = require('fs')
const pc = require('picocolors')
const figures = require('figures')
const sprintf = require('sprintf-js').sprintf
const { tick } = require('./figures')

@@ -13,12 +10,13 @@ function conventionalChangelog (options, context, gitRawCommitsOpts, parserOpts, writerOpts) {

options.config = angular
return conventionalChangelogCore(options, context, gitRawCommitsOpts, parserOpts, writerOpts)
}
conventionalChangelog.createIfMissing = function (infile) {
async function createIfMissing (infile) {
try {
fs.accessSync(infile, fs.F_OK)
await fs.access(infile, fs.F_OK)
} catch (err) {
if (err.code === 'ENOENT') {
conventionalChangelog.checkpoint('created %s', [infile])
fs.writeFileSync(infile, '\n', 'utf-8')
checkpoint('created %s', [infile])
await fs.writeFile(infile, '\n', 'utf-8')
}

@@ -28,8 +26,8 @@ }

conventionalChangelog.checkpoint = function (msg, args) {
console.info(pc.green(figures.tick) + ' ' + sprintf(msg, args.map(function (arg) {
return pc.bold(arg)
})))
function checkpoint (msg, args) {
console.info(`${pc.green(tick)} ${msg}`, ...args.map(arg => pc.bold(arg)))
}
module.exports = conventionalChangelog
module.exports.createIfMissing = createIfMissing
module.exports.checkpoint = checkpoint
{
"name": "standard-changelog",
"version": "4.0.0",
"version": "5.0.0",
"description": "Generate a changelog from git metadata with Angular commit convention",

@@ -26,15 +26,12 @@ "bugs": {

"index.js",
"figures.js",
"cli.mjs"
],
"dependencies": {
"add-stream": "^1.0.0",
"figures": "^3.2.0",
"meow": "^12.0.1",
"picocolors": "^1.0.0",
"sprintf-js": "^1.1.2",
"tempfile": "^5.0.0",
"conventional-changelog-core": "^6.0.0",
"conventional-changelog-angular": "^7.0.0"
"conventional-changelog-angular": "^7.0.0",
"conventional-changelog-core": "^7.0.0"
},
"bin": "cli.mjs"
}

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