Socket
Socket
Sign inDemoInstall

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 2.0.3 to 2.0.4

2

package.json
{
"version": "2.0.3",
"version": "2.0.4",
"name": "har-validator",

@@ -4,0 +4,0 @@ "description": "Extremely fast HTTP Archive (HAR) validator using JSON Schema",

@@ -55,12 +55,5 @@ # HAR Validator [![version][npm-version]][npm-url] [![License][npm-license]][license-url]

```js
var HAR = require('./har.json')
var validate = require('har-validator')
validate(HAR)
.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -76,10 +69,5 @@

```js
var validate = require('har-validator')
validate.log(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.log(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -95,10 +83,5 @@

```js
var validate = require('har-validator')
validate.cache(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.cache(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -114,10 +97,5 @@

```js
var validate = require('har-validator')
validate.cacheEntry(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.cacheEntry(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -133,10 +111,5 @@

```js
var validate = require('har-validator')
validate.content(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.content(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -152,10 +125,5 @@

```js
var validate = require('har-validator')
validate.cookie(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.cookie(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -171,10 +139,5 @@

```js
var validate = require('har-validator')
validate.creator(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.creator(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -190,10 +153,5 @@

```js
var validate = require('har-validator')
validate.entry(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.entry(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -213,10 +171,5 @@

```js
var validate = require('har-validator')
validate.page(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.page(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -232,10 +185,5 @@

```js
var validate = require('har-validator')
validate.pageTimings(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.pageTimings(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -251,10 +199,5 @@

```js
var validate = require('har-validator')
validate.postData(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.postData(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -270,10 +213,5 @@

```js
var validate = require('har-validator')
validate.record(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.record(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -289,10 +227,5 @@

```js
var validate = require('har-validator')
validate.request(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.request(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -308,10 +241,5 @@

```js
var validate = require('har-validator')
validate.cacheEntry(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.cacheEntry(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -327,10 +255,5 @@

```js
var validate = require('har-validator')
validate.timings(data.then(function (HAR) {
console.log('horray!')
})
.catch(function (error) {
console.error(error)
})
validate.timings(data)
.then(data => console.log('horray!'))
.catch(console.error)
```

@@ -337,0 +260,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