Socket
Socket
Sign inDemoInstall

grunt-tv4

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-tv4 - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

12

lib/runner.js

@@ -112,2 +112,14 @@ // Bulk validation core: composites with tv4, miniwrite, ministyle and loaders

if (typeof context.options.root === 'function') {
context.options.root = context.options.root();
}
if (typeof context.options.schemas === 'function') {
context.options.schemas = context.options.schemas();
}
if (typeof context.options.add === 'function') {
context.options.add = context.options.add();
}
// main validation method

@@ -114,0 +126,0 @@ context.validate = function (objects, callback) {

13

package.json
{
"name": "grunt-tv4",
"description": "Validate values against json-schema v4",
"version": "0.3.1",
"version": "0.4.0",
"homepage": "https://github.com/Bartvds/grunt-tv4",

@@ -26,3 +26,5 @@ "author": {

"validate",
"validator",
"json",
"schema",
"json-schema",

@@ -33,3 +35,3 @@ "tv4"

"engines": {
"node": ">= 0.8.0"
"node": ">= 0.10.0"
},

@@ -42,6 +44,6 @@ "scripts": {

"request": "2.25.0",
"tv4": "~1.0.11",
"tv4": "~1.0.14",
"ministyle": "~0.1.0",
"miniwrite": "~0.1.0",
"tv4-reporter": "0.0.2"
"tv4-reporter": "~0.0.3"
},

@@ -54,3 +56,4 @@ "devDependencies": {

"grunt-contrib-jshint": "~0.7.2",
"jshint-path-reporter": "~0.1.3"
"jshint-path-reporter": "~0.1.3",
"package.json-schema": "~0.1.2"
},

@@ -57,0 +60,0 @@ "peerDependencies": {

@@ -91,2 +91,3 @@ # grunt-tv4

// - schema object
// - callback that returns one of the above
root: grunt.file.readJSON('schema/main.json'),

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

// add schemas in bulk (each required to have an 'id' property)
// add schemas in bulk (each required to have an 'id' property) (can be a callback)
add: [

@@ -107,3 +108,3 @@ grunt.file.readJSON('schema/apple.json'),

// set schemas by URI
// set schemas by URI (can be a callback)
schemas: {

@@ -171,2 +172,3 @@ 'http://example.com/schema/apple': grunt.file.readJSON('schema/apple.json'),

* 0.4.0 - Updated some depedencies. `root`, `add` and `schemas` can be a callback function (for lazy init).
* 0.3.0 - Big internal rewrite:

@@ -188,1 +190,5 @@ * Added `.values` option.

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/Bartvds/grunt-tv4/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
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