Socket
Socket
Sign inDemoInstall

coverbadge

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coverbadge - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

1

bin/coverbadge.js

@@ -52,2 +52,3 @@ #!/usr/bin/env node

outputPath: options.o,
lastBuildNum: options.lastBuild,
});

@@ -54,0 +55,0 @@ }

2

package.json
{
"name": "coverbadge",
"version": "0.4.0",
"version": "0.4.1",
"description": "Create a coverage badge without any service provider.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -62,2 +62,3 @@ const path = require('path');

outputPath,
lastBuildNum,
}) => {

@@ -72,8 +73,3 @@ const payload = {

return getBuildSummary(payload)
.then(summary => (
getBuildArtifacts(Object.assign({}, payload, {
buildNum: get(summary, [0, 'previous_successful_build', 'build_num']),
}))
))
return getBuildArtifacts(Object.assign({}, payload, { buildNum: lastBuildNum }))
.then(artifacts => getLastBadgeURL(artifacts, outputPath))

@@ -80,0 +76,0 @@ .then(url => downloadBadge(url, outputPath))

@@ -171,5 +171,2 @@ import fs from 'fs';

[{
previous_successful_build: { build_num: 10 },
}],
[{
path: `/home/ubuntu/coverbadge/coverage/badge.svg`,

@@ -185,2 +182,3 @@ url: 'url',

outputPath,
lastBuildNum: 10,
});

@@ -187,0 +185,0 @@

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