first commit

This commit is contained in:
monjack
2025-06-20 18:01:48 +08:00
commit 6daa6d65c1
24611 changed files with 2512443 additions and 0 deletions

111
app_vue/node_modules/compressible/HISTORY.md generated vendored Normal file
View File

@ -0,0 +1,111 @@
2.0.18 / 2020-01-05
===================
* deps: mime-db@'>= 1.43.0 < 2'
- Mark `font/ttf` as compressible
- Remove compressible from `multipart/mixed`
2.0.17 / 2019-04-24
===================
* deps: mime-db@'>= 1.40.0 < 2'
2.0.16 / 2019-02-18
===================
* deps: mime-db@'>= 1.38.0 < 2'
- Mark `text/less` as compressible
2.0.15 / 2018-09-17
===================
* deps: mime-db@'>= 1.36.0 < 2'
2.0.14 / 2018-06-05
===================
* deps: mime-db@'>= 1.34.0 < 2'
- Mark all XML-derived types as compressible
2.0.13 / 2018-02-17
===================
* deps: mime-db@'>= 1.33.0 < 2'
2.0.12 / 2017-10-20
===================
* deps: mime-db@'>= 1.30.0 < 2'
2.0.11 / 2017-07-27
===================
* deps: mime-db@'>= 1.29.0 < 2'
2.0.10 / 2017-03-23
===================
* deps: mime-db@'>= 1.27.0 < 2'
2.0.9 / 2016-10-31
==================
* Fix regex fallback to not override `compressible: false` in db
* deps: mime-db@'>= 1.24.0 < 2'
2.0.8 / 2016-05-12
==================
* deps: mime-db@'>= 1.23.0 < 2'
2.0.7 / 2016-01-18
==================
* deps: mime-db@'>= 1.21.0 < 2'
2.0.6 / 2015-09-29
==================
* deps: mime-db@'>= 1.19.0 < 2'
2.0.5 / 2015-07-30
==================
* deps: mime-db@'>= 1.16.0 < 2'
2.0.4 / 2015-07-01
==================
* deps: mime-db@'>= 1.14.0 < 2'
* perf: enable strict mode
2.0.3 / 2015-06-08
==================
* Fix regex fallback to work if type exists, but is undefined
* perf: hoist regex declaration
* perf: use regex to extract mime
* deps: mime-db@'>= 1.13.0 < 2'
2.0.2 / 2015-01-31
==================
* deps: mime-db@'>= 1.1.2 < 2'
2.0.1 / 2014-09-28
==================
* deps: mime-db@1.x
- Add new mime types
- Add additional compressible
- Update charsets
2.0.0 / 2014-09-02
==================
* use mime-db
* remove .get()
* specifications are now private
* regex is now private
* stricter regex

24
app_vue/node_modules/compressible/LICENSE generated vendored Normal file
View File

@ -0,0 +1,24 @@
(The MIT License)
Copyright (c) 2013 Jonathan Ong <me@jongleberry.com>
Copyright (c) 2014 Jeremiah Senkpiel <fishrock123@rocketmail.com>
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
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.

61
app_vue/node_modules/compressible/README.md generated vendored Normal file
View File

@ -0,0 +1,61 @@
# compressible
[![NPM Version][npm-version-image]][npm-url]
[![NPM Downloads][npm-downloads-image]][npm-url]
[![Node.js Version][node-version-image]][node-version-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
Compressible `Content-Type` / `mime` checking.
## Installation
```sh
$ npm install compressible
```
## API
<!-- eslint-disable no-unused-vars -->
```js
var compressible = require('compressible')
```
### compressible(type)
Checks if the given `Content-Type` is compressible. The `type` argument is expected
to be a value MIME type or `Content-Type` string, though no validation is performed.
The MIME is looked up in the [`mime-db`](https://www.npmjs.com/package/mime-db) and
if there is compressible information in the database entry, that is returned. Otherwise,
this module will fallback to `true` for the following types:
* `text/*`
* `*/*+json`
* `*/*+text`
* `*/*+xml`
If this module is not sure if a type is specifically compressible or specifically
uncompressible, `undefined` is returned.
<!-- eslint-disable no-undef -->
```js
compressible('text/html') // => true
compressible('image/png') // => false
```
## License
[MIT](LICENSE)
[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/compressible/master
[coveralls-url]: https://coveralls.io/r/jshttp/compressible?branch=master
[node-version-image]: https://badgen.net/npm/node/compressible
[node-version-url]: https://nodejs.org/en/download
[npm-downloads-image]: https://badgen.net/npm/dm/compressible
[npm-url]: https://npmjs.org/package/compressible
[npm-version-image]: https://badgen.net/npm/v/compressible
[travis-image]: https://badgen.net/travis/jshttp/compressible/master
[travis-url]: https://travis-ci.org/jshttp/compressible

58
app_vue/node_modules/compressible/index.js generated vendored Normal file
View File

@ -0,0 +1,58 @@
/*!
* compressible
* Copyright(c) 2013 Jonathan Ong
* Copyright(c) 2014 Jeremiah Senkpiel
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict'
/**
* Module dependencies.
* @private
*/
var db = require('mime-db')
/**
* Module variables.
* @private
*/
var COMPRESSIBLE_TYPE_REGEXP = /^text\/|\+(?:json|text|xml)$/i
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/
/**
* Module exports.
* @public
*/
module.exports = compressible
/**
* Checks if a type is compressible.
*
* @param {string} type
* @return {Boolean} compressible
* @public
*/
function compressible (type) {
if (!type || typeof type !== 'string') {
return false
}
// strip parameters
var match = EXTRACT_TYPE_REGEXP.exec(type)
var mime = match && match[1].toLowerCase()
var data = db[mime]
// return database information
if (data && data.compressible !== undefined) {
return data.compressible
}
// fallback to regexp or unknown
return COMPRESSIBLE_TYPE_REGEXP.test(mime) || undefined
}

48
app_vue/node_modules/compressible/package.json generated vendored Normal file
View File

@ -0,0 +1,48 @@
{
"name": "compressible",
"description": "Compressible Content-Type / mime checking",
"version": "2.0.18",
"contributors": [
"Douglas Christopher Wilson <doug@somethingdoug.com>",
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
"Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)"
],
"license": "MIT",
"repository": "jshttp/compressible",
"keywords": [
"compress",
"gzip",
"mime",
"content-type"
],
"dependencies": {
"mime-db": ">= 1.43.0 < 2"
},
"devDependencies": {
"eslint": "6.8.0",
"eslint-config-standard": "14.1.0",
"eslint-plugin-import": "2.19.1",
"eslint-plugin-markdown": "1.0.1",
"eslint-plugin-node": "11.0.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"mocha": "7.0.0",
"nyc": "15.0.0"
},
"engines": {
"node": ">= 0.6"
},
"files": [
"HISTORY.md",
"LICENSE",
"README.md",
"index.js"
],
"scripts": {
"lint": "eslint --plugin markdown --ext js,md .",
"test": "mocha --reporter spec --bail --check-leaks test/",
"test-cov": "nyc --reporter=html --reporter=text npm test",
"test-travis": "nyc --reporter=text npm test",
"version": "node scripts/version-history.js && git add HISTORY.md"
}
}