summaryrefslogtreecommitdiff
path: root/node_modules/har-validator
diff options
context:
space:
mode:
authorArman <[email protected]>2018-08-02 16:50:59 -0700
committerArman <[email protected]>2018-08-02 16:50:59 -0700
commit7d5a0696ccc642db0d14aae8677ecada40bf85d1 (patch)
tree1bbbcf2f4c4a3a733326ac2401375f8d891cb2f1 /node_modules/har-validator
parentdialog box for adding items (diff)
downloadlauncher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.tar.xz
launcher-7d5a0696ccc642db0d14aae8677ecada40bf85d1.zip
inital commit
Diffstat (limited to 'node_modules/har-validator')
-rw-r--r--node_modules/har-validator/LICENSE13
-rw-r--r--node_modules/har-validator/README.md54
-rw-r--r--node_modules/har-validator/lib/async.js98
-rw-r--r--node_modules/har-validator/lib/error.js17
-rw-r--r--node_modules/har-validator/lib/promise.js95
-rw-r--r--node_modules/har-validator/package.json75
6 files changed, 0 insertions, 352 deletions
diff --git a/node_modules/har-validator/LICENSE b/node_modules/har-validator/LICENSE
deleted file mode 100644
index ca55c91..0000000
--- a/node_modules/har-validator/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2015, Ahmad Nassri <[email protected]>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/har-validator/README.md b/node_modules/har-validator/README.md
deleted file mode 100644
index fc69634..0000000
--- a/node_modules/har-validator/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# HAR Validator [![version][npm-version]][npm-url] [![License][license-image]][license-url]
-
-> Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
-
-[![Build Status][travis-image]][travis-url]
-[![Downloads][npm-downloads]][npm-url]
-[![Code Climate][codeclimate-quality]][codeclimate-url]
-[![Coverage Status][codeclimate-coverage]][codeclimate-url]
-[![Dependency Status][dependencyci-image]][dependencyci-url]
-[![Dependencies][david-image]][david-url]
-
-## Install
-
-```bash
-npm install --only=production --save har-validator
-```
-
-## CLI Usage
-
-Please refer to [`har-cli`](https://github.com/ahmadnassri/har-cli) for more info.
-
-## API
-
-**Note**: as of [`v2.0.0`](https://github.com/ahmadnassri/har-validator/releases/tag/v2.0.0) this module defaults to Promise based API. *For backward compatibility with `v1.x` an [async/callback API](docs/async.md) is also provided*
-
-- [async API](docs/async.md)
-- [callback API](docs/async.md)
-- [Promise API](docs/promise.md) *(default)*
-
-----
-> :copyright: [ahmadnassri.com](https://www.ahmadnassri.com/) &nbsp;&middot;&nbsp;
-> License: [ISC][license-url] &nbsp;&middot;&nbsp;
-> Github: [@ahmadnassri](https://github.com/ahmadnassri) &nbsp;&middot;&nbsp;
-> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
-
-[license-url]: http://choosealicense.com/licenses/isc/
-[license-image]: https://img.shields.io/github/license/ahmadnassri/har-validator.svg?style=flat-square
-
-[travis-url]: https://travis-ci.org/ahmadnassri/har-validator
-[travis-image]: https://img.shields.io/travis/ahmadnassri/har-validator.svg?style=flat-square
-
-[npm-url]: https://www.npmjs.com/package/har-validator
-[npm-version]: https://img.shields.io/npm/v/har-validator.svg?style=flat-square
-[npm-downloads]: https://img.shields.io/npm/dm/har-validator.svg?style=flat-square
-
-[codeclimate-url]: https://codeclimate.com/github/ahmadnassri/har-validator
-[codeclimate-quality]: https://img.shields.io/codeclimate/github/ahmadnassri/har-validator.svg?style=flat-square
-[codeclimate-coverage]: https://img.shields.io/codeclimate/coverage/github/ahmadnassri/har-validator.svg?style=flat-square
-
-[david-url]: https://david-dm.org/ahmadnassri/har-validator
-[david-image]: https://img.shields.io/david/ahmadnassri/har-validator.svg?style=flat-square
-
-[dependencyci-url]: https://dependencyci.com/github/ahmadnassri/har-validator
-[dependencyci-image]: https://dependencyci.com/github/ahmadnassri/har-validator/badge?style=flat-square
diff --git a/node_modules/har-validator/lib/async.js b/node_modules/har-validator/lib/async.js
deleted file mode 100644
index fc41667..0000000
--- a/node_modules/har-validator/lib/async.js
+++ /dev/null
@@ -1,98 +0,0 @@
-var Ajv = require('ajv')
-var HARError = require('./error')
-var schemas = require('har-schema')
-
-var ajv
-
-function validate (name, data, next) {
- data = data || {}
-
- // validator config
- ajv = ajv || new Ajv({
- allErrors: true,
- schemas: schemas
- })
-
- var validate = ajv.getSchema(name + '.json')
-
- var valid = validate(data)
-
- // callback?
- if (typeof next === 'function') {
- return next(!valid ? new HARError(validate.errors) : null, valid)
- }
-
- return valid
-}
-
-exports.afterRequest = function (data, next) {
- return validate('afterRequest', data, next)
-}
-
-exports.beforeRequest = function (data, next) {
- return validate('beforeRequest', data, next)
-}
-
-exports.browser = function (data, next) {
- return validate('browser', data, next)
-}
-
-exports.cache = function (data, next) {
- return validate('cache', data, next)
-}
-
-exports.content = function (data, next) {
- return validate('content', data, next)
-}
-
-exports.cookie = function (data, next) {
- return validate('cookie', data, next)
-}
-
-exports.creator = function (data, next) {
- return validate('creator', data, next)
-}
-
-exports.entry = function (data, next) {
- return validate('entry', data, next)
-}
-
-exports.har = function (data, next) {
- return validate('har', data, next)
-}
-
-exports.header = function (data, next) {
- return validate('header', data, next)
-}
-
-exports.log = function (data, next) {
- return validate('log', data, next)
-}
-
-exports.page = function (data, next) {
- return validate('page', data, next)
-}
-
-exports.pageTimings = function (data, next) {
- return validate('pageTimings', data, next)
-}
-
-exports.postData = function (data, next) {
- return validate('postData', data, next)
-}
-
-exports.query = function (data, next) {
- return validate('query', data, next)
-}
-
-exports.request = function (data, next) {
- return validate('request', data, next)
-}
-
-exports.response = function (data, next) {
- return validate('response', data, next)
-}
-
-exports.timings = function (data, next) {
- return validate('timings', data, next)
-}
diff --git a/node_modules/har-validator/lib/error.js b/node_modules/har-validator/lib/error.js
deleted file mode 100644
index f2618dc..0000000
--- a/node_modules/har-validator/lib/error.js
+++ /dev/null
@@ -1,17 +0,0 @@
-function HARError (errors) {
- var message = 'validation failed'
-
- this.name = 'HARError'
- this.message = message
- this.errors = errors
-
- if (typeof Error.captureStackTrace === 'function') {
- Error.captureStackTrace(this, this.constructor)
- } else {
- this.stack = (new Error(message)).stack
- }
-}
-
-HARError.prototype = Error.prototype
-
-module.exports = HARError
diff --git a/node_modules/har-validator/lib/promise.js b/node_modules/har-validator/lib/promise.js
deleted file mode 100644
index 1ab308c..0000000
--- a/node_modules/har-validator/lib/promise.js
+++ /dev/null
@@ -1,95 +0,0 @@
-var Ajv = require('ajv')
-var HARError = require('./error')
-var schemas = require('har-schema')
-
-var ajv
-
-function validate (name, data) {
- data = data || {}
-
- // validator config
- ajv = ajv || new Ajv({
- allErrors: true,
- schemas: schemas
- })
-
- var validate = ajv.getSchema(name + '.json')
-
- return new Promise(function (resolve, reject) {
- var valid = validate(data)
-
- !valid ? reject(new HARError(validate.errors)) : resolve(data)
- })
-}
-
-exports.afterRequest = function (data) {
- return validate('afterRequest', data)
-}
-
-exports.beforeRequest = function (data) {
- return validate('beforeRequest', data)
-}
-
-exports.browser = function (data) {
- return validate('browser', data)
-}
-
-exports.cache = function (data) {
- return validate('cache', data)
-}
-
-exports.content = function (data) {
- return validate('content', data)
-}
-
-exports.cookie = function (data) {
- return validate('cookie', data)
-}
-
-exports.creator = function (data) {
- return validate('creator', data)
-}
-
-exports.entry = function (data) {
- return validate('entry', data)
-}
-
-exports.har = function (data) {
- return validate('har', data)
-}
-
-exports.header = function (data) {
- return validate('header', data)
-}
-
-exports.log = function (data) {
- return validate('log', data)
-}
-
-exports.page = function (data) {
- return validate('page', data)
-}
-
-exports.pageTimings = function (data) {
- return validate('pageTimings', data)
-}
-
-exports.postData = function (data) {
- return validate('postData', data)
-}
-
-exports.query = function (data) {
- return validate('query', data)
-}
-
-exports.request = function (data) {
- return validate('request', data)
-}
-
-exports.response = function (data) {
- return validate('response', data)
-}
-
-exports.timings = function (data) {
- return validate('timings', data)
-}
diff --git a/node_modules/har-validator/package.json b/node_modules/har-validator/package.json
deleted file mode 100644
index 17a3907..0000000
--- a/node_modules/har-validator/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "har-validator@~5.0.3",
- "_id": "[email protected]",
- "_inBundle": false,
- "_integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
- "_location": "/har-validator",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "har-validator@~5.0.3",
- "name": "har-validator",
- "escapedName": "har-validator",
- "rawSpec": "~5.0.3",
- "saveSpec": null,
- "fetchSpec": "~5.0.3"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",
- "_shasum": "ba402c266194f15956ef15e0fcf242993f6a7dfd",
- "_spec": "har-validator@~5.0.3",
- "_where": "/Users/armanshah/Desktop/node-projects/shopping-list/node_modules/request",
- "author": {
- "name": "Ahmad Nassri",
- "email": "[email protected]",
- "url": "https://www.ahmadnassri.com/"
- },
- "bugs": {
- "url": "https://github.com/ahmadnassri/har-validator/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ajv": "^5.1.0",
- "har-schema": "^2.0.0"
- },
- "deprecated": false,
- "description": "Extremely fast HTTP Archive (HAR) validator using JSON Schema",
- "devDependencies": {
- "echint": "^4.0.1",
- "standard": "^10.0.2",
- "tap": "^10.3.2"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "lib"
- ],
- "homepage": "https://github.com/ahmadnassri/har-validator",
- "keywords": [
- "har",
- "cli",
- "ajv",
- "http",
- "archive",
- "validate",
- "validator"
- ],
- "license": "ISC",
- "main": "lib/promise.js",
- "name": "har-validator",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ahmadnassri/har-validator.git"
- },
- "scripts": {
- "coverage": "tap test --reporter silent --coverage",
- "lint": "standard && echint",
- "pretest": "npm run lint",
- "test": "tap test"
- },
- "version": "5.0.3"
-}