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

v8r

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v8r - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

4

CHANGELOG.md
# Changelog
## 📦 [4.0.1](https://www.npmjs.com/package/v8r/v/4.0.1) - 2024-08-19
* De-duplicate and sort files before validating
## 📦 [4.0.0](https://www.npmjs.com/package/v8r/v/4.0.0) - 2024-08-19

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

2

package.json
{
"name": "v8r",
"version": "4.0.0",
"version": "4.0.1",
"description": "A command-line JSON, YAML and TOML validator that's on your wavelength",

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

@@ -116,2 +116,6 @@ import flatCache from "flat-cache";

// de-dupe and sort
filenames = [...new Set(filenames)];
filenames.sort((a, b) => a.localeCompare(b));
const ttl = secondsToMilliseconds(config.cacheTtl || 0);

@@ -118,0 +122,0 @@ const cache = new Cache(getFlatCache(), ttl);

@@ -6,5 +6,3 @@ import { glob } from "glob";

try {
let matches = await glob(pattern, { dot: true, dotRelative: true });
matches.sort((a, b) => a.localeCompare(b));
return matches;
return await glob(pattern, { dot: true, dotRelative: true });
} catch (e) {

@@ -11,0 +9,0 @@ logger.error(e.message);

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