Comparing version 4.0.0 to 4.0.1
# 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 @@ |
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51650
1277