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

@dimerapp/cli-utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dimerapp/cli-utils - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

CHANGELOG.md

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

<a name="1.0.3"></a>
## [1.0.3](https://github.com/dimerapp/cli-utils/compare/v1.0.2...v1.0.3) (2018-08-30)
<a name="1.0.2"></a>

@@ -2,0 +7,0 @@ ## [1.0.2](https://github.com/dimerapp/cli-utils/compare/v1.0.1...v1.0.2) (2018-08-03)

18

index.js

@@ -164,3 +164,3 @@ /*

const lhsNodes = versions.map(({ no }) => `{Version ${no}}`)
const lhsNodes = versions.map(({ no, zoneSlug }) => `{ ${zoneSlug}:${no} }`)

@@ -245,12 +245,12 @@ const largestTotal = Math.max(...versions.map(({ total }) => String(total).length))

const messages = errors.map(({ key, message }) => {
return kleur.red(` "${key.join('/')}": "${message}"`)
const largestMessage = Math.max(...errors.map(({ message }) => `> ${message}`.length))
const errorMessages = errors.map((error) => {
const url = `https://github.com/dimerapp/rules/blob/master/${error.ruleId}.md`
const link = error.ruleId ? terminalLink(kleur.dim(error.ruleId), url) : ''
return `${kleur.red(padString(`> ${error.message}`, largestMessage))} ${link}`
})
console.log(
['', kleur.red('```dimer.json'), kleur.red('{')]
.concat(messages)
.concat([kleur.red('}'), kleur.red('```')])
.join('\n')
)
console.log('')
console.log(kleur.red('Following errors detected in dimer.json file:'))
console.log(errorMessages.join('\n'))
}
{
"name": "@dimerapp/cli-utils",
"version": "1.0.2",
"version": "1.0.3",
"description": "Handy utils for Dimer CLI",

@@ -20,3 +20,3 @@ "main": "index.js",

"devDependencies": {
"@adonisjs/mrm-preset": "^1.0.10",
"@adonisjs/mrm-preset": "^1.0.11",
"commitizen": "^2.10.1",

@@ -28,3 +28,3 @@ "cz-conventional-changelog": "^2.1.0",

"pkg-ok": "^2.2.0",
"standard": "^11.0.1"
"standard": "^12.0.1"
},

@@ -43,3 +43,3 @@ "config": {

"dependencies": {
"kleur": "^2.0.1",
"kleur": "^2.0.2",
"log-symbols": "^2.2.0",

@@ -46,0 +46,0 @@ "log-update": "^2.3.0",

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