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

vfile-reporter-json

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vfile-reporter-json - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

16

index.js

@@ -8,3 +8,3 @@ 'use strict'

var subset = applicableFiles('length' in files ? files : [files], settings)
var data = filesToJSON(subset, settings)
var data = filesToJson(subset, settings)
var pretty = settings.pretty || 0

@@ -19,3 +19,3 @@

function filesToJSON(files, options) {
function filesToJson(files, options) {
var length = files.length

@@ -26,3 +26,3 @@ var index = -1

while (++index < length) {
result[index] = fileToJSON(files[index], options)
result[index] = fileToJson(files[index], options)
}

@@ -33,3 +33,3 @@

function fileToJSON(file, options) {
function fileToJson(file, options) {
return {

@@ -39,7 +39,7 @@ path: file.path,

history: file.history,
messages: messagesToJSON(applicableMessages(file.messages, options))
messages: messagesToJson(applicableMessages(file.messages, options))
}
}
function messagesToJSON(messages) {
function messagesToJson(messages) {
var length = messages.length

@@ -50,3 +50,3 @@ var index = -1

while (++index < length) {
result[index] = messageToJSON(messages[index])
result[index] = messageToJson(messages[index])
}

@@ -57,3 +57,3 @@

function messageToJSON(message) {
function messageToJson(message) {
return {

@@ -60,0 +60,0 @@ reason: message.reason,

{
"name": "vfile-reporter-json",
"version": "2.0.0",
"description": "JSON reporter for virtual files",
"version": "2.0.1",
"description": "vfile utility to create a JSON report for a file",
"license": "MIT",
"keywords": [
"vfile",
"vfile-util",
"vfile-reporter",
"util",
"utility",
"reporter",
"virtual",
"file",
"formatter",
"reporter",
"format",
"report",
"json"

@@ -15,2 +22,6 @@ ],

"bugs": "https://github.com/vfile/vfile-reporter-json/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",

@@ -26,10 +37,10 @@ "contributors": [

"browserify": "^16.0.0",
"nyc": "^14.0.0",
"nyc": "^15.0.0",
"prettier": "^1.0.0",
"remark-cli": "^6.0.0",
"remark-preset-wooorm": "^5.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"vfile": "^4.0.0",
"xo": "^0.24.0"
"xo": "^0.27.0"
},

@@ -36,0 +47,0 @@ "scripts": {

@@ -20,3 +20,3 @@ # vfile-reporter-json

## Usage
## Use

@@ -51,3 +51,3 @@ ```js

default: `false`).
The default behaviour is to show a success message.
The default behavior is to show a success message.

@@ -72,4 +72,4 @@ ###### `options.silent`

This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

@@ -101,3 +101,3 @@

[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg

@@ -104,0 +104,0 @@ [chat]: https://spectrum.chat/unified/vfile

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