New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

json-reporter

Package Overview
Dependencies
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-reporter - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

17

lib/config.js

@@ -13,2 +13,14 @@ 'use strict';

const isRequestedType = (name, validationFn, type) => {
return (v) => {
if (!validationFn(v)) {
throw new Error(`"${name}" option must be ${type}, but got ${typeof v}`);
}
};
};
const isBoolean = (name) => isRequestedType(name, _.isBoolean, 'boolean');
const isString = (name) => isRequestedType(name, _.isString, 'string');
const getParser = () => {

@@ -19,7 +31,8 @@ return root(section({

parseEnv: JSON.parse,
validate: _.isBoolean
parseCli: JSON.parse,
validate: isBoolean('enabled')
}),
path: option({
defaultValue: 'json-reporter.json',
validate: _.isString
validate: isString('path')
})

@@ -26,0 +39,0 @@ }), {envPrefix: ENV_PREFIX, cliPrefix: CLI_PREFIX});

2

package.json
{
"name": "json-reporter",
"version": "0.5.0",
"version": "0.5.1",
"description": "Common plugin for gemini and hermione which is intended to aggregate the results of tests running",

@@ -5,0 +5,0 @@ "main": "gemini.js",

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