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

gulp-jsonlint

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jsonlint - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

10

index.js
'use strict';
var mapStream = require('map-stream');
var gutil = require('gulp-util');
var c = gutil.colors;
var colors = require('ansi-colors');
var jsonlint = require('jsonlint');
var through = require('through2');
var PluginError = require('gulp-util').PluginError;
var PluginError = require('plugin-error')
var log = require('fancy-log')

@@ -39,4 +39,4 @@ var formatOutput = function (msg) {

var defaultReporter = function (file) {
gutil.log(c.yellow('Error on file ') + c.magenta(file.path));
gutil.log(c.red(file.jsonlint.message));
log(colors.yellow('Error on file ') + colors.magenta(file.path));
log(colors.red(file.jsonlint.message));
};

@@ -43,0 +43,0 @@

{
"name": "gulp-jsonlint",
"version": "1.2.0",
"version": "1.2.1",
"description": "A jsonlint plugin for Gulp",

@@ -30,10 +30,13 @@ "keywords": [

"dependencies": {
"gulp-util": "3.0.7",
"ansi-colors": "^1.0.1",
"fancy-log": "^1.3.2",
"jsonlint": "1.6.2",
"map-stream": "^0.1.0",
"through2": "2.0.3"
"plugin-error": "^0.1.2",
"through2": "^2.0.3"
},
"devDependencies": {
"mocha": "3.2.0",
"should": "11.1.2"
"mocha": "3.4.1",
"should": "11.2.1",
"vinyl": "^2.1.0"
},

@@ -40,0 +43,0 @@ "engines": {

@@ -27,6 +27,6 @@ # gulp-jsonlint [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]

var jsonlint = require('gulp-jsonlint');
var gutil = require('gulp-util');
var log = require('fancy-log');
var myCustomReporter = function (file) {
gutil.log('File ' + file.path + ' is not valid JSON.');
log('File ' + file.path + ' is not valid JSON.');
};

@@ -33,0 +33,0 @@

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