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

ajv-keywords

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajv-keywords - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.eslintrc.yml

5

index.js

@@ -15,5 +15,4 @@ 'use strict';

if (Array.isArray(keyword)) {
for (var i=0; i<keyword.length; i++) {
for (var i=0; i<keyword.length; i++)
defineKeywords(ajv, keyword[i]);
}
return;

@@ -32,2 +31,2 @@ }

return def;
};
}

2

keywords/instanceof.js

@@ -25,5 +25,5 @@ 'use strict';

return data instanceof Constructor;
}
};
},
CONSTRUCTORS: CONSTRUCTORS
};

@@ -12,4 +12,4 @@ 'use strict';

return typeof data == schema;
}
};
}
};
{
"name": "ajv-keywords",
"version": "0.1.0",
"version": "0.1.1",
"description": "Custom JSON-Schema keywords for ajv validator",
"main": "index.js",
"scripts": {
"test": "npm run test-cov",
"test": "npm run eslint && npm run test-cov",
"eslint": "eslint index.js keywords/*.js",
"test-spec": "mocha spec/*.spec.js -R spec",

@@ -29,2 +30,4 @@ "test-cov": "istanbul cover -x 'spec/**' node_modules/mocha/bin/_mocha -- spec/*.spec.js -R spec"

"chai": "^3.5.0",
"coveralls": "^2.11.9",
"eslint": "^2.11.1",
"istanbul": "^0.4.3",

@@ -31,0 +34,0 @@ "mocha": "^2.5.3"

# ajv-keywords
Custom JSON-Schema keywords for ajv validator
[![Build Status](https://travis-ci.org/epoberezkin/ajv-keywords.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv-keywords)
[![npm version](https://badge.fury.io/js/ajv-keywords.svg)](https://www.npmjs.com/package/ajv-keywords)
## Install

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

```javascript
var Ajv = require("ajv');
var Ajv = require('ajv');
var defineKeywords = require('ajv-keywords');

@@ -18,0 +22,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