Skip to content

Commit

Permalink
fix: remove har-validator (#16)
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Bloomquist <github@chary.us>
  • Loading branch information
JJ and flotwig committed Nov 29, 2021
1 parent 7455973 commit ba48841
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/yarn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check with yarn
on: [push, pull_request ]
jobs:
build:
name: Install and test with yarn
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn install
- run: yarn test
5 changes: 0 additions & 5 deletions lib/har.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

var fs = require('fs')
var qs = require('querystring')
var validate = require('har-validator')
var extend = require('extend')

function Har (request) {
Expand Down Expand Up @@ -132,10 +131,6 @@ Har.prototype.options = function (options) {
har.headersSize = 0
har.postData.size = 0

if (!validate.request(har)) {
return options
}

// clean up and get some utility properties
var req = this.prep(har)

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"extend": "~3.0.2",
"forever-agent": "~0.6.1",
"form-data": "~2.3.2",
"har-validator": "~5.1.3",
"http-signature": "~1.3.6",
"is-typedarray": "~1.0.0",
"isstream": "~0.1.2",
Expand Down

0 comments on commit ba48841

Please sign in to comment.