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

v8r

Package Overview
Dependencies
Maintainers
1
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 2.1.0 to 3.0.0

5

CHANGELOG.md
# Changelog
## 📦 [3.0.0](https://www.npmjs.com/package/v8r/v/3.0.0) - 2024-01-25
* Drop compatibility with node 16
* Add ability to validate Toml documents
## 📦 [2.1.0](https://www.npmjs.com/package/v8r/v/2.1.0) - 2023-10-23

@@ -4,0 +9,0 @@

13

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

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

"chalk": "^5.0.0",
"cosmiconfig": "^8.0.0",
"cosmiconfig": "^9.0.0",
"decamelize": "^6.0.0",
"flat-cache": "^3.0.4",
"flat-cache": "^4.0.0",
"glob": "^10.1.0",

@@ -45,8 +45,7 @@ "got": "^13.0.0",

"minimatch": "^9.0.0",
"smol-toml": "^1.0.1",
"yargs": "^17.0.1"
},
"devDependencies": {
"c8": "^8.0.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"c8": "^9.1.0",
"eslint": "^8.0.1",

@@ -62,3 +61,3 @@ "eslint-config-prettier": "^9.0.0",

"engines": {
"node": ">=16"
"node": ">=18"
},

@@ -65,0 +64,0 @@ "type": "module",

@@ -5,5 +5,3 @@ #!/usr/bin/env node

(async () => {
const exitCode = await cli();
process.exit(exitCode);
})();
const exitCode = await cli();
process.exit(exitCode);
import JSON5 from "json5";
import yaml from "js-yaml";
import { parse } from "smol-toml";

@@ -16,2 +17,4 @@ function parseDocument(contents, format) {

return yaml.load(contents);
case ".toml":
return parse(contents);
default:

@@ -18,0 +21,0 @@ throw new Error(`Unsupported format ${format}`);

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

import chai from "chai";
import chaiAsPromised from "chai-as-promised";
import flatCache from "flat-cache";
import logger from "./logger.js";
chai.use(chaiAsPromised);
const origWriteOut = logger.writeOut;

@@ -51,3 +47,2 @@ const origWriteErr = logger.writeErr;

export {
chai,
testCacheName,

@@ -54,0 +49,0 @@ setUp,

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