mirror of
https://github.com/mgerb/mywebsite
synced 2026-03-07 00:35:23 +00:00
Added all files
This commit is contained in:
35
node_modules/express/node_modules/range-parser/HISTORY.md
generated
vendored
Normal file
35
node_modules/express/node_modules/range-parser/HISTORY.md
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
1.0.2 / 2014-09-08
|
||||
==================
|
||||
|
||||
* Support Node.js 0.6
|
||||
|
||||
1.0.1 / 2014-09-07
|
||||
==================
|
||||
|
||||
* Move repository to jshttp
|
||||
|
||||
1.0.0 / 2013-12-11
|
||||
==================
|
||||
|
||||
* Add repository to package.json
|
||||
* Add MIT license
|
||||
|
||||
0.0.4 / 2012-06-17
|
||||
==================
|
||||
|
||||
* Change ret -1 for unsatisfiable and -2 when invalid
|
||||
|
||||
0.0.3 / 2012-06-17
|
||||
==================
|
||||
|
||||
* Fix last-byte-pos default to len - 1
|
||||
|
||||
0.0.2 / 2012-06-14
|
||||
==================
|
||||
|
||||
* Add `.type`
|
||||
|
||||
0.0.1 / 2012-06-11
|
||||
==================
|
||||
|
||||
* Initial release
|
||||
22
node_modules/express/node_modules/range-parser/LICENSE
generated
vendored
Normal file
22
node_modules/express/node_modules/range-parser/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2012-2014 TJ Holowaychuk <vision-media.ca>
|
||||
|
||||
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.
|
||||
48
node_modules/express/node_modules/range-parser/README.md
generated
vendored
Normal file
48
node_modules/express/node_modules/range-parser/README.md
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
# range-parser
|
||||
|
||||
[![NPM Version][npm-image]][npm-url]
|
||||
[![NPM Downloads][downloads-image]][downloads-url]
|
||||
[![Node.js Version][node-version-image]][node-version-url]
|
||||
[![Build Status][travis-image]][travis-url]
|
||||
[![Test Coverage][coveralls-image]][coveralls-url]
|
||||
|
||||
Range header field parser.
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
$ npm install range-parser
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
```js
|
||||
assert(-1 == parse(200, 'bytes=500-20'));
|
||||
assert(-2 == parse(200, 'bytes=malformed'));
|
||||
parse(200, 'bytes=0-499').should.eql(arr('bytes', [{ start: 0, end: 199 }]));
|
||||
parse(1000, 'bytes=0-499').should.eql(arr('bytes', [{ start: 0, end: 499 }]));
|
||||
parse(1000, 'bytes=40-80').should.eql(arr('bytes', [{ start: 40, end: 80 }]));
|
||||
parse(1000, 'bytes=-500').should.eql(arr('bytes', [{ start: 500, end: 999 }]));
|
||||
parse(1000, 'bytes=-400').should.eql(arr('bytes', [{ start: 600, end: 999 }]));
|
||||
parse(1000, 'bytes=500-').should.eql(arr('bytes', [{ start: 500, end: 999 }]));
|
||||
parse(1000, 'bytes=400-').should.eql(arr('bytes', [{ start: 400, end: 999 }]));
|
||||
parse(1000, 'bytes=0-0').should.eql(arr('bytes', [{ start: 0, end: 0 }]));
|
||||
parse(1000, 'bytes=-1').should.eql(arr('bytes', [{ start: 999, end: 999 }]));
|
||||
parse(1000, 'items=0-5').should.eql(arr('items', [{ start: 0, end: 5 }]));
|
||||
parse(1000, 'bytes=40-80,-1').should.eql(arr('bytes', [{ start: 40, end: 80 }, { start: 999, end: 999 }]));
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/range-parser.svg?style=flat
|
||||
[npm-url]: https://npmjs.org/package/range-parser
|
||||
[node-version-image]: https://img.shields.io/badge/node.js-%3E%3D_0.6-brightgreen.svg?style=flat
|
||||
[node-version-url]: http://nodejs.org/download/
|
||||
[travis-image]: https://img.shields.io/travis/jshttp/range-parser.svg?style=flat
|
||||
[travis-url]: https://travis-ci.org/jshttp/range-parser
|
||||
[coveralls-image]: https://img.shields.io/coveralls/jshttp/range-parser.svg?style=flat
|
||||
[coveralls-url]: https://coveralls.io/r/jshttp/range-parser
|
||||
[downloads-image]: https://img.shields.io/npm/dm/range-parser.svg?style=flat
|
||||
[downloads-url]: https://npmjs.org/package/range-parser
|
||||
49
node_modules/express/node_modules/range-parser/index.js
generated
vendored
Normal file
49
node_modules/express/node_modules/range-parser/index.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
/**
|
||||
* Parse "Range" header `str` relative to the given file `size`.
|
||||
*
|
||||
* @param {Number} size
|
||||
* @param {String} str
|
||||
* @return {Array}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function(size, str){
|
||||
var valid = true;
|
||||
var i = str.indexOf('=');
|
||||
|
||||
if (-1 == i) return -2;
|
||||
|
||||
var arr = str.slice(i + 1).split(',').map(function(range){
|
||||
var range = range.split('-')
|
||||
, start = parseInt(range[0], 10)
|
||||
, end = parseInt(range[1], 10);
|
||||
|
||||
// -nnn
|
||||
if (isNaN(start)) {
|
||||
start = size - end;
|
||||
end = size - 1;
|
||||
// nnn-
|
||||
} else if (isNaN(end)) {
|
||||
end = size - 1;
|
||||
}
|
||||
|
||||
// limit last-byte-pos to current length
|
||||
if (end > size - 1) end = size - 1;
|
||||
|
||||
// invalid
|
||||
if (isNaN(start)
|
||||
|| isNaN(end)
|
||||
|| start > end
|
||||
|| start < 0) valid = false;
|
||||
|
||||
return {
|
||||
start: start,
|
||||
end: end
|
||||
};
|
||||
});
|
||||
|
||||
arr.type = str.slice(0, i);
|
||||
|
||||
return valid ? arr : -1;
|
||||
};
|
||||
48
node_modules/express/node_modules/range-parser/package.json
generated
vendored
Normal file
48
node_modules/express/node_modules/range-parser/package.json
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "range-parser",
|
||||
"author": {
|
||||
"name": "TJ Holowaychuk",
|
||||
"email": "tj@vision-media.ca",
|
||||
"url": "http://tjholowaychuk.com"
|
||||
},
|
||||
"description": "Range header field string parser",
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"range",
|
||||
"parser",
|
||||
"http"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jshttp/range-parser.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"istanbul": "0",
|
||||
"mocha": "1",
|
||||
"should": "2"
|
||||
},
|
||||
"files": [
|
||||
"HISTORY.md",
|
||||
"LICENSE",
|
||||
"index.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha --reporter spec --require should",
|
||||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should",
|
||||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --require should"
|
||||
},
|
||||
"readme": "# range-parser\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nRange header field parser.\n\n## Installation\n\n```\n$ npm install range-parser\n```\n\n## Examples\n\n```js\nassert(-1 == parse(200, 'bytes=500-20'));\nassert(-2 == parse(200, 'bytes=malformed'));\nparse(200, 'bytes=0-499').should.eql(arr('bytes', [{ start: 0, end: 199 }]));\nparse(1000, 'bytes=0-499').should.eql(arr('bytes', [{ start: 0, end: 499 }]));\nparse(1000, 'bytes=40-80').should.eql(arr('bytes', [{ start: 40, end: 80 }]));\nparse(1000, 'bytes=-500').should.eql(arr('bytes', [{ start: 500, end: 999 }]));\nparse(1000, 'bytes=-400').should.eql(arr('bytes', [{ start: 600, end: 999 }]));\nparse(1000, 'bytes=500-').should.eql(arr('bytes', [{ start: 500, end: 999 }]));\nparse(1000, 'bytes=400-').should.eql(arr('bytes', [{ start: 400, end: 999 }]));\nparse(1000, 'bytes=0-0').should.eql(arr('bytes', [{ start: 0, end: 0 }]));\nparse(1000, 'bytes=-1').should.eql(arr('bytes', [{ start: 999, end: 999 }]));\nparse(1000, 'items=0-5').should.eql(arr('items', [{ start: 0, end: 5 }]));\nparse(1000, 'bytes=40-80,-1').should.eql(arr('bytes', [{ start: 40, end: 80 }, { start: 999, end: 999 }]));\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/range-parser.svg?style=flat\n[npm-url]: https://npmjs.org/package/range-parser\n[node-version-image]: https://img.shields.io/badge/node.js-%3E%3D_0.6-brightgreen.svg?style=flat\n[node-version-url]: http://nodejs.org/download/\n[travis-image]: https://img.shields.io/travis/jshttp/range-parser.svg?style=flat\n[travis-url]: https://travis-ci.org/jshttp/range-parser\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/range-parser.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/jshttp/range-parser\n[downloads-image]: https://img.shields.io/npm/dm/range-parser.svg?style=flat\n[downloads-url]: https://npmjs.org/package/range-parser\n",
|
||||
"readmeFilename": "README.md",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jshttp/range-parser/issues"
|
||||
},
|
||||
"homepage": "https://github.com/jshttp/range-parser#readme",
|
||||
"_id": "range-parser@1.0.2",
|
||||
"_shasum": "06a12a42e5131ba8e457cd892044867f2344e549",
|
||||
"_resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.2.tgz",
|
||||
"_from": "range-parser@>=1.0.2 <1.1.0"
|
||||
}
|
||||
Reference in New Issue
Block a user