har-validator
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"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') | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20809
4
527
342
0
6
- Removedasync@^0.9.0
- Removeddebug@^2.1.3
- Removedrequire-directory@^2.1.0
- Removedasync@0.9.2(transitive)
- Removeddebug@2.6.9(transitive)
- Removedms@2.0.0(transitive)
- Removedrequire-directory@2.1.1(transitive)