mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
update node modules
This commit is contained in:
18
node_modules/har-validator/LICENSE
generated
vendored
18
node_modules/har-validator/LICENSE
generated
vendored
@@ -1,13 +1,9 @@
|
||||
Copyright (c) 2015, Ahmad Nassri <ahmad@ahmadnassri.com>
|
||||
MIT License
|
||||
|
||||
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.
|
||||
Copyright (c) 2018 Ahmad Nassri <ahmad@ahmadnassri.com>
|
||||
|
||||
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.
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
45
node_modules/har-validator/README.md
generated
vendored
45
node_modules/har-validator/README.md
generated
vendored
@@ -1,18 +1,13 @@
|
||||
# HAR Validator [![version][npm-version]][npm-url] [![License][license-image]][license-url]
|
||||
# HAR Validator
|
||||
|
||||
[![License][license-image]][license-url] [![version][npm-image]][npm-url] [![Build Status][circle-image]][circle-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
|
||||
npm install har-validator
|
||||
```
|
||||
|
||||
## CLI Usage
|
||||
@@ -21,34 +16,22 @@ Please refer to [`har-cli`](https://github.com/ahmadnassri/har-cli) for more inf
|
||||
|
||||
## 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*
|
||||
**Note**: as of [`v2.0.0`](https://github.com/ahmadnassri/node-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)*
|
||||
- [Promise API](docs/promise.md) _(default)_
|
||||
|
||||
----
|
||||
> :copyright: [ahmadnassri.com](https://www.ahmadnassri.com/) ·
|
||||
> License: [ISC][license-url] ·
|
||||
> Github: [@ahmadnassri](https://github.com/ahmadnassri) ·
|
||||
---
|
||||
> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) •
|
||||
> Github: [@ahmadnassri](https://github.com/ahmadnassri) •
|
||||
> 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
|
||||
[license-url]: LICENSE
|
||||
[license-image]: https://img.shields.io/github/license/ahmadnassri/node-har-validator.svg?style=for-the-badge&logo=circleci
|
||||
|
||||
[travis-url]: https://travis-ci.org/ahmadnassri/har-validator
|
||||
[travis-image]: https://img.shields.io/travis/ahmadnassri/har-validator.svg?style=flat-square
|
||||
[circle-url]: https://circleci.com/gh/ahmadnassri/workflows/node-har-validator
|
||||
[circle-image]: https://img.shields.io/circleci/project/github/ahmadnassri/node-har-validator/master.svg?style=for-the-badge&logo=circleci
|
||||
|
||||
[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
|
||||
[npm-image]: https://img.shields.io/npm/v/har-validator.svg?style=for-the-badge&logo=npm
|
||||
|
15
node_modules/har-validator/lib/async.js
generated
vendored
15
node_modules/har-validator/lib/async.js
generated
vendored
@@ -4,14 +4,21 @@ var schemas = require('har-schema')
|
||||
|
||||
var ajv
|
||||
|
||||
function createAjvInstance () {
|
||||
var ajv = new Ajv({
|
||||
allErrors: true
|
||||
})
|
||||
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
|
||||
ajv.addSchema(schemas)
|
||||
|
||||
return ajv
|
||||
}
|
||||
|
||||
function validate (name, data, next) {
|
||||
data = data || {}
|
||||
|
||||
// validator config
|
||||
ajv = ajv || new Ajv({
|
||||
allErrors: true,
|
||||
schemas: schemas
|
||||
})
|
||||
ajv = ajv || createAjvInstance()
|
||||
|
||||
var validate = ajv.getSchema(name + '.json')
|
||||
|
||||
|
15
node_modules/har-validator/lib/promise.js
generated
vendored
15
node_modules/har-validator/lib/promise.js
generated
vendored
@@ -4,14 +4,21 @@ var schemas = require('har-schema')
|
||||
|
||||
var ajv
|
||||
|
||||
function createAjvInstance () {
|
||||
var ajv = new Ajv({
|
||||
allErrors: true
|
||||
})
|
||||
ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
|
||||
ajv.addSchema(schemas)
|
||||
|
||||
return ajv
|
||||
}
|
||||
|
||||
function validate (name, data) {
|
||||
data = data || {}
|
||||
|
||||
// validator config
|
||||
ajv = ajv || new Ajv({
|
||||
allErrors: true,
|
||||
schemas: schemas
|
||||
})
|
||||
ajv = ajv || createAjvInstance()
|
||||
|
||||
var validate = ajv.getSchema(name + '.json')
|
||||
|
||||
|
49
node_modules/har-validator/package.json
generated
vendored
49
node_modules/har-validator/package.json
generated
vendored
@@ -1,54 +1,52 @@
|
||||
{
|
||||
"_from": "har-validator@~5.0.3",
|
||||
"_id": "har-validator@5.0.3",
|
||||
"_from": "har-validator@~5.1.0",
|
||||
"_id": "har-validator@5.1.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
|
||||
"_integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
|
||||
"_location": "/har-validator",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "har-validator@~5.0.3",
|
||||
"raw": "har-validator@~5.1.0",
|
||||
"name": "har-validator",
|
||||
"escapedName": "har-validator",
|
||||
"rawSpec": "~5.0.3",
|
||||
"rawSpec": "~5.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~5.0.3"
|
||||
"fetchSpec": "~5.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/request"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",
|
||||
"_shasum": "ba402c266194f15956ef15e0fcf242993f6a7dfd",
|
||||
"_spec": "har-validator@~5.0.3",
|
||||
"_where": "/home/s2/Documents/Code/minifyfromhtml/node_modules/request",
|
||||
"_resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
|
||||
"_shasum": "1ef89ebd3e4996557675eed9893110dc350fa080",
|
||||
"_spec": "har-validator@~5.1.0",
|
||||
"_where": "E:\\projects\\p\\minifyfromhtml\\node_modules\\request",
|
||||
"author": {
|
||||
"name": "Ahmad Nassri",
|
||||
"email": "ahmad@ahmadnassri.com",
|
||||
"url": "https://www.ahmadnassri.com/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ahmadnassri/har-validator/issues"
|
||||
"url": "https://github.com/ahmadnassri/node-har-validator/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"ajv": "^5.1.0",
|
||||
"ajv": "^6.5.5",
|
||||
"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"
|
||||
"tap": "^12.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
"node": ">=6"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"homepage": "https://github.com/ahmadnassri/har-validator",
|
||||
"homepage": "https://github.com/ahmadnassri/node-har-validator",
|
||||
"keywords": [
|
||||
"har",
|
||||
"cli",
|
||||
@@ -58,18 +56,21 @@
|
||||
"validate",
|
||||
"validator"
|
||||
],
|
||||
"license": "ISC",
|
||||
"license": "MIT",
|
||||
"main": "lib/promise.js",
|
||||
"name": "har-validator",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ahmadnassri/har-validator.git"
|
||||
"url": "git+https://github.com/ahmadnassri/node-har-validator.git"
|
||||
},
|
||||
"scripts": {
|
||||
"coverage": "tap test --reporter silent --coverage",
|
||||
"lint": "standard && echint",
|
||||
"pretest": "npm run lint",
|
||||
"test": "tap test"
|
||||
"lint": "npx run-p lint:*",
|
||||
"lint:deps": "npx updated",
|
||||
"lint:ec": "npx editorconfig-checker .",
|
||||
"lint:js": "npx eslint .",
|
||||
"lint:md": "npx remark --quiet --frail .",
|
||||
"open:coverage": "opener coverage/lcov-report/index.html",
|
||||
"test": "tap test --coverage-report=lcov --no-browser"
|
||||
},
|
||||
"version": "5.0.3"
|
||||
"version": "5.1.3"
|
||||
}
|
||||
|
Reference in New Issue
Block a user