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

har-validator

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

har-validator - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

8

package.json
{
"version": "1.5.0",
"version": "1.5.1",
"name": "har-validator",

@@ -40,2 +40,3 @@ "description": "Extremely fast HTTP Archive (HAR) validator using JSON Schema",

"mocha": "^2.2.1",
"require-directory": "^2.1.0",
"should": "^5.2.0",

@@ -45,10 +46,7 @@ "standard": "^3.2.0"

"dependencies": {
"async": "^0.9.0",
"bluebird": "^2.9.14",
"chalk": "^1.0.0",
"commander": "^2.7.1",
"debug": "^2.1.3",
"is-my-json-valid": "^2.10.0",
"require-directory": "^2.1.0"
"is-my-json-valid": "^2.10.0"
}
}

@@ -50,3 +50,3 @@ # HAR Validator [![version][npm-version]][npm-url] [![License][npm-license]][license-url]

- **data**: `Object` *(Required)*
a [log](http://www.softwareishard.com/blog/har-12-spec/#log) object
a full [HAR](http://www.softwareishard.com/blog/har-12-spec/) object

@@ -67,2 +67,20 @@ - **callback**: `Function`

### Validate.log(data [, callback])
Returns `true` or `false`.
- **data**: `Object` *(Required)*
a [log](http://www.softwareishard.com/blog/har-12-spec/#log) object
- **callback**: `Function`
gets two arguments (err, valid)
```js
var validate = require('har-validator');
validate.log(data, function (e, valid) {
if (e) console.log(e.errors)
});
```
### Validate.cache(data [, callback])

@@ -69,0 +87,0 @@

'use strict'
module.exports = require('require-directory')(module)
module.exports = {
cache: require('./cache.json'),
cacheEntry: require('./cacheEntry.json'),
content: require('./content.json'),
cookie: require('./cookie.json'),
creator: require('./creator.json'),
entry: require('./entry.json'),
har: require('./har.json'),
log: require('./log.json'),
page: require('./page.json'),
pageTimings: require('./pageTimings.json'),
postData: require('./postData.json'),
record: require('./record.json'),
request: require('./request.json'),
response: require('./response.json'),
timings: require('./timings.json')
}
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