Skip to content

Commit ba48841

Browse files
JJflotwig
andauthored
fix: remove har-validator (#16)
Co-authored-by: Zach Bloomquist <[email protected]>
1 parent 7455973 commit ba48841

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/yarn.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Check with yarn
2+
on: [push, pull_request ]
3+
jobs:
4+
build:
5+
name: Install and test with yarn
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: actions/setup-node@v2
10+
- run: yarn install
11+
- run: yarn test

lib/har.js

-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var fs = require('fs')
44
var qs = require('querystring')
5-
var validate = require('har-validator')
65
var extend = require('extend')
76

87
function Har (request) {
@@ -132,10 +131,6 @@ Har.prototype.options = function (options) {
132131
har.headersSize = 0
133132
har.postData.size = 0
134133

135-
if (!validate.request(har)) {
136-
return options
137-
}
138-
139134
// clean up and get some utility properties
140135
var req = this.prep(har)
141136

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"extend": "~3.0.2",
3535
"forever-agent": "~0.6.1",
3636
"form-data": "~2.3.2",
37-
"har-validator": "~5.1.3",
3837
"http-signature": "~1.3.6",
3938
"is-typedarray": "~1.0.0",
4039
"isstream": "~0.1.2",

0 commit comments

Comments
 (0)