forked from svrjs/svrjs
Update with SVR.JS 3.6.1
This commit is contained in:
parent
eab4122ef5
commit
1162acad9f
6 changed files with 734 additions and 261 deletions
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.4.17</title>
|
<title>SVR.JS 3.6.1</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Welcome to SVR.JS 3.4.17</h1>
|
<h1>Welcome to SVR.JS 3.6.1</h1>
|
||||||
<br/>
|
<br/>
|
||||||
<img src="/logo.png" style="width: 256px;" />
|
<img src="/logo.png" style="width: 256px;" />
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
"replacement": ""<br/>
|
"replacement": ""<br/>
|
||||||
}<br/>
|
}<br/>
|
||||||
]<br/>
|
]<br/>
|
||||||
},<br/>
|
},<br/>3.4.13
|
||||||
{<br/>
|
{<br/>
|
||||||
"definingRegex": "/\\/invoke500\\/.+/",<br/>
|
"definingRegex": "/\\/invoke500\\/.+/",<br/>
|
||||||
"replacements": [<br/>
|
"replacements": [<br/>
|
||||||
|
@ -110,6 +110,8 @@
|
||||||
</div>
|
</div>
|
||||||
<p>Changes:</p>
|
<p>Changes:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>Added support for ETags.</li>
|
||||||
|
<li>Added new config.json property: enableETag.</li>
|
||||||
<li>Improved URL sanitizer.</li>
|
<li>Improved URL sanitizer.</li>
|
||||||
<li>Fixed bug with formidable wrapper.</li>
|
<li>Fixed bug with formidable wrapper.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.4.17 Licenses</title>
|
<title>SVR.JS 3.6.1 Licenses</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>SVR.JS 3.4.17 Licenses</h1>
|
<h1>SVR.JS 3.6.1 Licenses</h1>
|
||||||
<h2>SVR.JS 3.4.17</h2>
|
<h2>SVR.JS 3.6.1</h2>
|
||||||
<div style="display: inline-block; text-align: left; border-width: 2px; border-style: solid; border-color: gray; padding: 8px;">
|
<div style="display: inline-block; text-align: left; border-width: 2px; border-style: solid; border-color: gray; padding: 8px;">
|
||||||
MIT License<br/>
|
MIT License<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
|
||||||
SOFTWARE.<br/>
|
SOFTWARE.<br/>
|
||||||
</div>
|
</div>
|
||||||
<h2>Packages used by SVR.JS 3.4.17 and utilities</h2>
|
<h2>Packages used by SVR.JS 3.6.1 and utilities</h2>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="float: right;">License: MIT</div>
|
||||||
<div style="font-size: 20px;">
|
<div style="font-size: 20px;">
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 12px;">
|
<div style="font-size: 12px;">
|
||||||
A node.js module for parsing form data, especially file uploads.<br/>
|
A node.js module for parsing form data, especially file uploads.<br/>
|
||||||
<b>Required by SVR.JS. Patched to work with Node.JS 8.x</b>
|
<b>Required by SVR.JS</b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
|
|
26
node_modules/formidable/package.json
generated
vendored
26
node_modules/formidable/package.json
generated
vendored
|
@ -1,28 +1,28 @@
|
||||||
{
|
{
|
||||||
"_from": "formidable",
|
"_from": "formidable@2",
|
||||||
"_id": "formidable@2.1.1",
|
"_id": "formidable@2.1.2",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==",
|
"_integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==",
|
||||||
"_location": "/formidable",
|
"_location": "/formidable",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "tag",
|
"type": "range",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "formidable",
|
"raw": "formidable@2",
|
||||||
"name": "formidable",
|
"name": "formidable",
|
||||||
"escapedName": "formidable",
|
"escapedName": "formidable",
|
||||||
"rawSpec": "",
|
"rawSpec": "2",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "latest"
|
"fetchSpec": "2"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"#USER",
|
"#USER",
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz",
|
"_resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz",
|
||||||
"_shasum": "81269cbea1a613240049f5f61a9d97731517414f",
|
"_shasum": "fa973a2bec150e4ce7cac15589d7a25fc30ebd89",
|
||||||
"_spec": "formidable",
|
"_spec": "formidable@2",
|
||||||
"_where": "/home/ubuntu/formidable",
|
"_where": "/home/ubuntu/forbidden",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/node-formidable/formidable/issues"
|
"url": "https://github.com/node-formidable/formidable/issues"
|
||||||
},
|
},
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
"name": "formidable",
|
"name": "formidable",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"tag": "latest"
|
"tag": "v2-latest"
|
||||||
},
|
},
|
||||||
"renovate": {
|
"renovate": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
@ -126,5 +126,5 @@
|
||||||
"test:ci": "nyc jest --coverage",
|
"test:ci": "nyc jest --coverage",
|
||||||
"test:jest": "jest --coverage"
|
"test:jest": "jest --coverage"
|
||||||
},
|
},
|
||||||
"version": "2.1.1"
|
"version": "2.1.2"
|
||||||
}
|
}
|
||||||
|
|
8
node_modules/formidable/src/plugins/multipart.js
generated
vendored
8
node_modules/formidable/src/plugins/multipart.js
generated
vendored
|
@ -107,8 +107,8 @@ function createInitMultipart(boundary) {
|
||||||
const dataStopPropagation = (ctx) => {
|
const dataStopPropagation = (ctx) => {
|
||||||
if (ctx.name === 'partEnd') {
|
if (ctx.name === 'partEnd') {
|
||||||
part.emit('end');
|
part.emit('end');
|
||||||
parser.removeListener('data', dataPropagation);
|
parser.off('data', dataPropagation);
|
||||||
parser.removeListener('data', dataStopPropagation);
|
parser.off('data', dataStopPropagation);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
parser.on('data', dataPropagation);
|
parser.on('data', dataPropagation);
|
||||||
|
@ -143,8 +143,8 @@ function createInitMultipart(boundary) {
|
||||||
if (ctx.name === 'partEnd') {
|
if (ctx.name === 'partEnd') {
|
||||||
part.emit('data', Buffer.from(part.transferBuffer, 'base64'));
|
part.emit('data', Buffer.from(part.transferBuffer, 'base64'));
|
||||||
part.emit('end');
|
part.emit('end');
|
||||||
parser.removeListener('data', dataPropagation);
|
parser.off('data', dataPropagation);
|
||||||
parser.removeListener('data', dataStopPropagation);
|
parser.off('data', dataStopPropagation);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
parser.on('data', dataPropagation);
|
parser.on('data', dataPropagation);
|
||||||
|
|
935
svr.js
935
svr.js
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.4.17 Tests</title>
|
<title>SVR.JS 3.6.1 Tests</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<style>
|
<style>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>SVR.JS 3.4.17 Tests</h1>
|
<h1>SVR.JS 3.6.1 Tests</h1>
|
||||||
<h2>Directory</h2>
|
<h2>Directory</h2>
|
||||||
<iframe src="/testdir" width="50%" height="300px"></iframe>
|
<iframe src="/testdir" width="50%" height="300px"></iframe>
|
||||||
<h2>Directory (with query)</h2>
|
<h2>Directory (with query)</h2>
|
||||||
|
|
Reference in a new issue