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

compact-yarn-audit

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compact-yarn-audit - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

14

dist/terse-advisory-log.js

@@ -1,5 +0,1 @@

import { createHash } from "node:crypto";
function hash(pEntry) {
return createHash("md5").update(JSON.stringify(pEntry)).digest("base64");
}
function extractUsefulAttributes(pLogEntry) {

@@ -36,5 +32,5 @@ const lFixable = pLogEntry.data.advisory.patched_versions !== "<0.0.0";

export class TerseAdvisoryLog {
log = new Map();
log = new Set();
constructor() {
this.log = new Map();
this.log = new Set();
}

@@ -44,8 +40,10 @@ add(pEntry) {

const lUsefulAttributes = extractUsefulAttributes(pEntry);
this.log.set(hash(lUsefulAttributes), lUsefulAttributes);
this.log.add(JSON.stringify(lUsefulAttributes));
}
}
get() {
return [...this.log.values()].sort(orderEntry);
return Array.from(this.log)
.map((pStringifiedEntry) => JSON.parse(pStringifiedEntry))
.sort(orderEntry);
}
}
{
"name": "compact-yarn-audit",
"version": "4.0.2",
"version": "4.0.3",
"description": "Presents output from yarn audit in a compact table",

@@ -5,0 +5,0 @@ "engines": {

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