Socket
Socket
Sign inDemoInstall

@applitools/bongo

Package Overview
Dependencies
105
Maintainers
45
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.6.1 to 5.7.0

4

package.json
{
"name": "@applitools/bongo",
"version": "5.6.1",
"version": "5.7.0",
"description": "Release Kit for Applitools SDKs",

@@ -25,3 +25,3 @@ "author": "Applitools team <team@applitools.com>",

"dependencies": {
"@applitools/utils": "1.5.0",
"@applitools/utils": "1.6.1",
"chalk": "3.0.0",

@@ -28,0 +28,0 @@ "inquirer": "^9.2.8",

@@ -35,2 +35,7 @@ const fs = require('fs')

},
level: {
type: 'number',
description: 'level of the heading of the output',
default: 1,
},
edit: {

@@ -148,3 +153,3 @@ type: 'boolean',

const formattedChangelog = formatChangelog(changelog)
const formattedChangelog = formatChangelog(changelog, options)

@@ -227,9 +232,12 @@ if (options.file) {

function formatChangelog(changelog) {
function formatChangelog(changelog, {level = 1} = {}) {
const formatter = new Intl.DateTimeFormat('en-US', {year: 'numeric', month: 'short', day: 'numeric'})
return Object.entries(changelog).reduce((changelog, [package, releases], _index, {length}) => {
if (length > 1) changelog += `# ${package}\n\n`
if (length > 1) changelog += `${''.padStart(level, '#')} ${package}\n\n`
Object.values(releases).forEach(({header, sections}) => {
changelog += `## ${header.version} (${header.date})\n\n`
changelog += `${''.padStart(level + 1, '#')} ${header.version} (${formatter.format(new Date(header.date))})\n\n`
changelog += Object.entries(sections)
.map(([name, items]) => `### ${name}\n\n${items.map(item => `* ${item}`).join('\n')}`)
.map(([name, items]) => {
return `${''.padStart(level + 2, '#')} ${name}\n\n${items.map(item => `* ${item}`).join('\n')}`
})
.join('\n\n')

@@ -236,0 +244,0 @@ changelog += '\n\n'

@@ -13,3 +13,3 @@ const utils = require('@applitools/utils')

'js/eyes-puppeteer',
'js/eyes-browser-extension',
// 'js/eyes-browser-extension',
'js/eyes-storybook',

@@ -16,0 +16,0 @@ 'js/eyes-cypress',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡ī¸ by Socket Inc