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

@action-badges/core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@action-badges/core - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

CHANGELOG.md
# Changelog
## 📦 0.3.1
- Error handling improvements
## 📦 0.3.0

@@ -4,0 +8,0 @@

8

docs/github-action.md

@@ -19,3 +19,3 @@ # `action-badges/core` Github Action

- name: Make Black Code Style badge
uses: action-badges/core@0.3.0
uses: action-badges/core@0.3.1
with:

@@ -31,3 +31,3 @@ label: code style

- name: Make Latest Commit badge
uses: action-badges/core@0.3.0
uses: action-badges/core@0.3.1
with:

@@ -83,3 +83,3 @@ label: latest commit

- uses: actions/checkout@v3
- uses: action-badges/create-orphan-branch@0.1.0
- uses: action-badges/create-orphan-branch@0.1.1
with:

@@ -89,3 +89,3 @@ branch-name: badges

- name: Make Open Issues badge
uses: action-badges/core@0.3.0
uses: action-badges/core@0.3.1
with:

@@ -92,0 +92,0 @@ label: open issues

{
"name": "@action-badges/core",
"version": "0.3.0",
"version": "0.3.1",
"description": "Create SVG badges with GitHub actions",

@@ -33,3 +33,3 @@ "main": "src/index.js",

"@vercel/ncc": "^0.38.1",
"c8": "^8.0.1",
"c8": "^9.0.0",
"eslint": "^8.0.0",

@@ -36,0 +36,0 @@ "eslint-config-prettier": "^9.0.0",

@@ -64,9 +64,16 @@ import core from "@actions/core";

if (!(Cls.prototype instanceof BaseAction)) {
throw new Error("Action class must extend BaseAction");
}
let obj;
let rendered;
try {
if (!(Cls.prototype instanceof BaseAction)) {
throw new Error("Action class must extend BaseAction");
}
const obj = new Cls();
const rendered = await obj.render();
if (rendered == null) {
obj = new Cls();
rendered = await obj.render();
if (rendered == null) {
return;
}
} catch (e) {
core.setFailed(e.message);
return;

@@ -73,0 +80,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