1
0
Fork 0
forked from svrjs/svrjs

Update with SVR.JS 3.6.1

This commit is contained in:
sysadmin 2023-07-29 20:44:13 +02:00
parent eab4122ef5
commit 1162acad9f
6 changed files with 734 additions and 261 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<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 charset="UTF-8" />
<style>
@ -12,7 +12,7 @@
</style>
</head>
<body>
<h1>Welcome to SVR.JS 3.4.17</h1>
<h1>Welcome to SVR.JS 3.6.1</h1>
<br/>
<img src="/logo.png" style="width: 256px;" />
<br/>
@ -65,7 +65,7 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"replacement": ""<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br/>
&nbsp;&nbsp;&nbsp;&nbsp;},<br/>
&nbsp;&nbsp;&nbsp;&nbsp;},<br/>3.4.13
&nbsp;&nbsp;&nbsp;&nbsp;{<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"definingRegex": "/\\/invoke500\\/.+/",<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"replacements": [<br/>
@ -110,6 +110,8 @@
</div>
<p>Changes:</p>
<ul>
<li>Added support for ETags.</li>
<li>Added new config.json property: enableETag.</li>
<li>Improved URL sanitizer.</li>
<li>Fixed bug with formidable wrapper.</li>
</ul>

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<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 charset="UTF-8" />
<style>
@ -12,8 +12,8 @@
</style>
</head>
<body>
<h1>SVR.JS 3.4.17 Licenses</h1>
<h2>SVR.JS 3.4.17</h2>
<h1>SVR.JS 3.6.1 Licenses</h1>
<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;">
MIT License<br/>
<br/>
@ -37,7 +37,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>
SOFTWARE.<br/>
</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="float: right;">License: MIT</div>
<div style="font-size: 20px;">
@ -126,7 +126,7 @@
</div>
<div style="font-size: 12px;">
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 style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">

26
node_modules/formidable/package.json generated vendored
View file

@ -1,28 +1,28 @@
{
"_from": "formidable",
"_id": "formidable@2.1.1",
"_from": "formidable@2",
"_id": "formidable@2.1.2",
"_inBundle": false,
"_integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==",
"_integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==",
"_location": "/formidable",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"type": "range",
"registry": true,
"raw": "formidable",
"raw": "formidable@2",
"name": "formidable",
"escapedName": "formidable",
"rawSpec": "",
"rawSpec": "2",
"saveSpec": null,
"fetchSpec": "latest"
"fetchSpec": "2"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz",
"_shasum": "81269cbea1a613240049f5f61a9d97731517414f",
"_spec": "formidable",
"_where": "/home/ubuntu/formidable",
"_resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz",
"_shasum": "fa973a2bec150e4ce7cac15589d7a25fc30ebd89",
"_spec": "formidable@2",
"_where": "/home/ubuntu/forbidden",
"bugs": {
"url": "https://github.com/node-formidable/formidable/issues"
},
@ -99,7 +99,7 @@
"name": "formidable",
"publishConfig": {
"access": "public",
"tag": "latest"
"tag": "v2-latest"
},
"renovate": {
"extends": [
@ -126,5 +126,5 @@
"test:ci": "nyc jest --coverage",
"test:jest": "jest --coverage"
},
"version": "2.1.1"
"version": "2.1.2"
}

View file

@ -107,8 +107,8 @@ function createInitMultipart(boundary) {
const dataStopPropagation = (ctx) => {
if (ctx.name === 'partEnd') {
part.emit('end');
parser.removeListener('data', dataPropagation);
parser.removeListener('data', dataStopPropagation);
parser.off('data', dataPropagation);
parser.off('data', dataStopPropagation);
}
};
parser.on('data', dataPropagation);
@ -143,8 +143,8 @@ function createInitMultipart(boundary) {
if (ctx.name === 'partEnd') {
part.emit('data', Buffer.from(part.transferBuffer, 'base64'));
part.emit('end');
parser.removeListener('data', dataPropagation);
parser.removeListener('data', dataStopPropagation);
parser.off('data', dataPropagation);
parser.off('data', dataStopPropagation);
}
};
parser.on('data', dataPropagation);

939
svr.js

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<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 charset="UTF-8" />
<style>
@ -12,7 +12,7 @@
</style>
</head>
<body>
<h1>SVR.JS 3.4.17 Tests</h1>
<h1>SVR.JS 3.6.1 Tests</h1>
<h2>Directory</h2>
<iframe src="/testdir" width="50%" height="300px"></iframe>
<h2>Directory (with query)</h2>