Socket
Socket
Sign inDemoInstall

vitest-github-actions-reporter

Package Overview
Dependencies
519
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.11.0 to 0.11.1

14

dist/index.js

@@ -73,12 +73,8 @@ // src/index.ts

// src/stacktrace/stringify.ts
var _a;
var repository = ((_a = process.env.GITHUB_REPOSITORY) == null ? void 0 : _a.split("/")[1]) ?? "";
var repositoryPrefixes = [
`D:/a/${repository}/`,
`/home/runner/work/${repository}/`
];
var repository = process.env.GITHUB_WORKSPACE;
var repositoryPrefixes = repository ? [repository.replace(/\/?$/, "/")] : [];
var stringifyStacktrace = (stack, trimRepositoryPrefix) => {
return stack.map((s) => {
let file = s.file;
if (trimRepositoryPrefix) {
if (trimRepositoryPrefix && repositoryPrefixes.length > 0) {
file = trimPrefixes(file, repositoryPrefixes);

@@ -142,4 +138,4 @@ }

reportTaskErrors(filename, task) {
var _a2;
for (const err of ((_a2 = task.result) == null ? void 0 : _a2.errors) ?? []) {
var _a;
for (const err of ((_a = task.result) == null ? void 0 : _a.errors) ?? []) {
this.reportTaskError(task.type, filename, err);

@@ -146,0 +142,0 @@ }

{
"name": "vitest-github-actions-reporter",
"version": "0.11.0",
"version": "0.11.1",
"description": "Vitest reporter to create annotations when running tests in GitHub Actions",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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