Updated to SVR.JS 3.14.16
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 7 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 6.5 KiB |
73
config.json
|
@ -3,7 +3,7 @@
|
||||||
"port": 80,
|
"port": 80,
|
||||||
"pubport": 80,
|
"pubport": 80,
|
||||||
"page404": "404.html",
|
"page404": "404.html",
|
||||||
"timestamp": 1693773733148,
|
"timestamp": 1709477722479,
|
||||||
"blacklist": [],
|
"blacklist": [],
|
||||||
"nonStandardCodes": [],
|
"nonStandardCodes": [],
|
||||||
"enableCompression": true,
|
"enableCompression": true,
|
||||||
|
@ -28,59 +28,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"definingRegex": "/^\\/invoke500\\/\\?/",
|
"definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/",
|
||||||
"replacements": [
|
"replacements": [
|
||||||
{
|
{
|
||||||
"regex": "/\\/invoke500\\/\\?/",
|
"regex": "/^\\/testdir_rewritten($|[\\/?#])/",
|
||||||
"replacement": "/invoke500.svr?"
|
"replacement": "/testdir$1"
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"definingRegex": "/^\\/invoke500\\/.+\\//",
|
|
||||||
"replacements": [
|
|
||||||
{
|
|
||||||
"regex": "/\\/\\?/",
|
|
||||||
"replacement": "&"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"regex": "/invoke500\\//",
|
|
||||||
"replacement": "invoke500.svr?"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"regex": "/\\/(?!invoke500.svr?)/",
|
|
||||||
"replacement": ""
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"definingRegex": "/^\\/invoke500\\/.+/",
|
|
||||||
"replacements": [
|
|
||||||
{
|
|
||||||
"regex": "/\\?/",
|
|
||||||
"replacement": "&"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"regex": "/invoke500\\//",
|
|
||||||
"replacement": "invoke500.svr?"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"definingRegex": "/^\\/invoke500\\//",
|
|
||||||
"replacements": [
|
|
||||||
{
|
|
||||||
"regex": "/\\/invoke500\\//",
|
|
||||||
"replacement": "/invoke500.svr"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"definingRegex": "/^\\/invoke500$/",
|
|
||||||
"replacements": [
|
|
||||||
{
|
|
||||||
"regex": "/\\/invoke500/",
|
|
||||||
"replacement": "/invoke500.svr"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -88,12 +40,23 @@
|
||||||
"allowStatus": true,
|
"allowStatus": true,
|
||||||
"dontCompress": [
|
"dontCompress": [
|
||||||
"/.*\\.ipxe$/",
|
"/.*\\.ipxe$/",
|
||||||
"/.*\\.img$/",
|
"/.*\\.(?:jpe?g|png|bmp|tiff|jfif|gif|webp)$/",
|
||||||
"/.*\\.iso$/"
|
"/.*\\.(?:[id]mg|iso|flp)$/",
|
||||||
|
"/.*\\.(?:zip|rar|bz2|[gb7x]z|lzma|tar)$/",
|
||||||
|
"/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/"
|
||||||
],
|
],
|
||||||
"enableIPSpoofing": false,
|
"enableIPSpoofing": false,
|
||||||
"secure": false,
|
"secure": false,
|
||||||
"sni": {},
|
"sni": {},
|
||||||
"disableNonEncryptedServer": false,
|
"disableNonEncryptedServer": false,
|
||||||
"disableToHTTPSRedirect": false
|
"disableToHTTPSRedirect": false,
|
||||||
|
"enableETag": true,
|
||||||
|
"disableUnusedWorkerTermination": false,
|
||||||
|
"rewriteDirtyURLs": true,
|
||||||
|
"errorPages": [],
|
||||||
|
"useWebRootServerSideScript": true,
|
||||||
|
"exposeModsInErrorPages": true,
|
||||||
|
"disableTrailingSlashRedirects": false,
|
||||||
|
"environmentVariables": {},
|
||||||
|
"allowDoubleSlashes": false
|
||||||
}
|
}
|
||||||
|
|
186
index.html
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.4.42</title>
|
<title>SVR.JS 3.14.16</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,122 +12,86 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Welcome to SVR.JS 3.4.42</h1>
|
<h1>Welcome to SVR.JS 3.14.16</h1>
|
||||||
<br/>
|
<br/>
|
||||||
<img src="/logo.png" style="width: 256px;" />
|
<img src="/logo.png" style="width: 256px; max-width: 100%;" />
|
||||||
<br/>
|
<br/>
|
||||||
<p>If you see this page, that means, that the server is properly working. You can further configure the server and replace <i>index.html</i> and <i>tests.html</i> pages with custom ones.</p>
|
<p>If you see this page that means that the server is working properly. You can further configure the server and replace <i>index.html</i> and <i>tests.html</i> pages with custom ones.</p>
|
||||||
<p>Default <i>config.json</i> looks like this:</p>
|
<p>Default <i>config.json</i> looks like this:</p>
|
||||||
<div style="background-color: #e0e0e0; padding: 5px; text-align: left; display: inline-block;">
|
<code style="background-color: #e0e0e0; padding: 5px; text-align: left; display: block; display: inline-block;">
|
||||||
<code>
|
<pre style="margin: 0.2em; white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; word-break: break-all; word-break: break-word">{
|
||||||
{<br/>
|
"users": [],
|
||||||
"users": [],<br/>
|
"port": 80,
|
||||||
"port": 80,<br/>
|
"pubport": 80,
|
||||||
"pubport": 80,<br/>
|
"page404": "404.html",
|
||||||
"page404": "404.html",<br/>
|
"timestamp": 1709477722479,
|
||||||
"timestamp": 1680954429282,<br/>
|
"blacklist": [],
|
||||||
"blacklist": [],<br/>
|
"nonStandardCodes": [],
|
||||||
"nonStandardCodes": [],<br/>
|
"enableCompression": true,
|
||||||
"enableCompression": true,<br/>
|
"customHeaders": {},
|
||||||
"customHeaders": {},<br/>
|
"enableHTTP2": false,
|
||||||
"enableHTTP2": false,<br/>
|
"enableLogging": true,
|
||||||
"enableLogging": true,<br/>
|
"enableDirectoryListing": true,
|
||||||
"enableDirectoryListing": true,<br/>
|
"enableDirectoryListingWithDefaultHead": false,
|
||||||
"enableDirectoryListingWithDefaultHead": false,<br/>
|
"serverAdministratorEmail": "[no contact information]",
|
||||||
"serverAdministratorEmail": "[no contact information]",<br/>
|
"stackHidden": false,
|
||||||
"stackHidden": false,<br/>
|
"enableRemoteLogBrowsing": false,
|
||||||
"enableRemoteLogBrowsing": false,<br/>
|
"exposeServerVersion": true,
|
||||||
"exposeServerVersion": true,<br/>
|
"disableServerSideScriptExpose": true,
|
||||||
"disableServerSideScriptExpose": true,<br/>
|
"rewriteMap": [
|
||||||
"rewriteMap": [<br/>
|
{
|
||||||
{<br/>
|
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
|
||||||
"definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",<br/>
|
"replacements": [
|
||||||
"replacements": [<br/>
|
{
|
||||||
{<br/>
|
"regex": "/^\\/serverSideScript\\.js($|[#?])/",
|
||||||
"regex": "/^\\/serverSideScript\\.js($|[#?])/",<br/>
|
"replacement": "/NONEXISTENT_PAGE$1"
|
||||||
"replacement": "/NONEXISTENT_PAGE$1"<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"definingRegex": "/^\\/invoke500\\/\\?/",<br/>
|
|
||||||
"replacements": [<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/\\/invoke500\\/\\?/",<br/>
|
|
||||||
"replacement": "/invoke500.svr?"<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"definingRegex": "/^\\/invoke500\\/.+\\//",<br/>
|
|
||||||
"replacements": [<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/\\/\\?/",<br/>
|
|
||||||
"replacement": "&"<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/invoke500\\//",<br/>
|
|
||||||
"replacement": "invoke500.svr?"<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/\\/(?!invoke500.svr?)/",<br/>
|
|
||||||
"replacement": ""<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"definingRegex": "/^\\/invoke500\\/.+/",<br/>
|
|
||||||
"replacements": [<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/\\?/",<br/>
|
|
||||||
"replacement": "&"<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/invoke500\\//",<br/>
|
|
||||||
"replacement": "invoke500.svr?"<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"definingRegex": "/^\\/invoke500\\//",<br/>
|
|
||||||
"replacements": [<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/\\/invoke500\\//",<br/>
|
|
||||||
"replacement": "/invoke500.svr"<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
},<br/>
|
|
||||||
{<br/>
|
|
||||||
"definingRegex": "/^\\/invoke500$/",<br/>
|
|
||||||
"replacements": [<br/>
|
|
||||||
{<br/>
|
|
||||||
"regex": "/\\/invoke500/",<br/>
|
|
||||||
"replacement": "/invoke500.svr"<br/>
|
|
||||||
}<br/>
|
|
||||||
]<br/>
|
|
||||||
}<br/>
|
|
||||||
],<br/>
|
|
||||||
"allowStatus": true,<br/>
|
|
||||||
"dontCompress": ["/.*\\.ipxe$/","/.*\\.img$/","/.*\\.iso$/"],<br/>
|
|
||||||
"enableIPSpoofing": false,<br/>
|
|
||||||
"secure": false,<br/>
|
|
||||||
"sni": {},<br/>
|
|
||||||
"disableNonEncryptedServer": false,<br/>
|
|
||||||
"disableToHTTPSRedirect": false<br/>
|
|
||||||
}
|
}
|
||||||
</code>
|
]
|
||||||
</div>
|
},
|
||||||
|
{
|
||||||
|
"definingRegex": "/^\\/testdir_rewritten(?:$|[\\/?#])/",
|
||||||
|
"replacements": [
|
||||||
|
{
|
||||||
|
"regex": "/^\\/testdir_rewritten($|[\\/?#])/",
|
||||||
|
"replacement": "/testdir$1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"allowStatus": true,
|
||||||
|
"dontCompress": [
|
||||||
|
"/.*\\.ipxe$/",
|
||||||
|
"/.*\\.(?:jpe?g|png|bmp|tiff|jfif|gif|webp)$/",
|
||||||
|
"/.*\\.(?:[id]mg|iso|flp)$/",
|
||||||
|
"/.*\\.(?:zip|rar|bz2|[gb7x]z|lzma|tar)$/",
|
||||||
|
"/.*\\.(?:mp[34]|mov|wm[av]|avi|webm|og[gv]|mk[va])$/"
|
||||||
|
],
|
||||||
|
"enableIPSpoofing": false,
|
||||||
|
"secure": false,
|
||||||
|
"sni": {},
|
||||||
|
"disableNonEncryptedServer": false,
|
||||||
|
"disableToHTTPSRedirect": false,
|
||||||
|
"enableETag": true,
|
||||||
|
"disableUnusedWorkerTermination": false,
|
||||||
|
"rewriteDirtyURLs": true,
|
||||||
|
"errorPages": [],
|
||||||
|
"useWebRootServerSideScript": true,
|
||||||
|
"exposeModsInErrorPages": true,
|
||||||
|
"disableTrailingSlashRedirects": false,
|
||||||
|
"environmentVariables": {},
|
||||||
|
"allowDoubleSlashes": false
|
||||||
|
}</pre>
|
||||||
|
</code>
|
||||||
<p>Changes:</p>
|
<p>Changes:</p>
|
||||||
<ul>
|
<ul style="display: inline-block; margin: 0;">
|
||||||
<li>Custom head and foot inclusion is now returning 500 error in case of server error instead of crashing the server.</li>
|
<li>Prevented DoS attacks performed with forward proxy HTTP requests with malformed URLs.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br/>
|
<p>
|
||||||
<a href="/tests.html">Tests</a><br/>
|
<a href="/tests.html">Tests</a><br/>
|
||||||
<a href="/licenses">Licenses</a><br/>
|
<a href="/licenses/">Licenses</a><br/>
|
||||||
<a href="/svrjsstatus.svr">SVR.JS status page</a><br/>
|
<a href="/svrjsstatus.svr">SVR.JS status page</a><br/>
|
||||||
<a href="https://svrjs.org/docs">More Information</a>
|
<a href="https://svrjs.org/docs">SVR.JS documentation</a>
|
||||||
<br/>
|
</p>
|
||||||
<br/>
|
|
||||||
<img src="/powered.png" />
|
<img src="/powered.png" />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.4.42 Licenses</title>
|
<title>SVR.JS 3.14.16 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.42 Licenses</h1>
|
<h1>SVR.JS 3.14.16 Licenses</h1>
|
||||||
<h2>SVR.JS 3.4.42</h2>
|
<h2>SVR.JS 3.14.16</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,318 +37,310 @@
|
||||||
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.42 and utilities</h2>
|
<h2>Packages used by SVR.JS 3.14.16</h2>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
<div style="width: 100%; max-width: 1280px; margin: auto">
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/asap.txt"><b>asap</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/asap.txt"><b>asap</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
High-priority task queue for Node.js and browsers
|
<div style="font-size: 12px;">
|
||||||
</div>
|
High-priority task queue for Node.js and browsers
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/asn1.js.txt"><b>asn1.js</b></a> (by Fedor Indutny)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/asn1.js.txt"><b>asn1.js</b></a> (by Fedor Indutny)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
ASN.1 encoder and decoder
|
<div style="font-size: 12px;">
|
||||||
</div>
|
ASN.1 encoder and decoder
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/asn1.js-rfc2560.txt"><b>asn1.js-rfc2560</b></a> (by Fedor Indutny)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/asn1.js-rfc2560.txt"><b>asn1.js-rfc2560</b></a> (by Fedor Indutny)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
RFC2560 structures for asn1.js
|
<div style="font-size: 12px;">
|
||||||
</div>
|
RFC2560 structures for asn1.js
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/asn1.js-rfc5280.txt"><b>asn1.js-rfc5280</b></a> (by Felix Hanley)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/asn1.js-rfc5280.txt"><b>asn1.js-rfc5280</b></a> (by Felix Hanley)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
RFC5280 extension structures for asn1.js
|
<div style="font-size: 12px;">
|
||||||
</div>
|
RFC5280 extension structures for asn1.js
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/async.txt"><b>async</b></a> (by Caolan McMahon)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/async.txt"><b>async</b></a> (by Caolan McMahon)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Higher-order functions and common patterns for asynchronous code
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Higher-order functions and common patterns for asynchronous code
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/bn.js.txt"><b>bn.js</b></a> (by Fedor Indutny)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/bn.js.txt"><b>bn.js</b></a> (by Fedor Indutny)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Big number implementation in pure javascript
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Big number implementation in pure javascript
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/call-bind.txt"><b>call-bind</b></a> (by Jordan Harband)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/call-bind.txt"><b>call-bind</b></a> (by Jordan Harband)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Robustly `.call.bind()` a function
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Robustly `.call.bind()` a function
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/chownr.txt"><b>chownr</b></a> (by Isaac Z. Schlueter)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/chownr.txt"><b>chownr</b></a> (by Isaac Z. Schlueter)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
like `chown -R`
|
<div style="font-size: 12px;">
|
||||||
</div>
|
like `chown -R`
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/dezalgo.txt"><b>dezalgo</b></a> (by Isaac Z. Schlueter)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/dezalgo.txt"><b>dezalgo</b></a> (by Isaac Z. Schlueter)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Contain async insanity so that the dark pony lord doesn't eat souls
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Contain async insanity so that the dark pony lord doesn't eat souls
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/formidable.txt"><b>formidable</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/formidable.txt"><b>formidable</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
A node.js module for parsing form data, especially file uploads.<br/>
|
<div style="font-size: 12px;">
|
||||||
<b>Required by SVR.JS. Patched to work with Node.JS 8.x</b>
|
A node.js module for parsing form data, especially file uploads.<br/>
|
||||||
</div>
|
<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;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/fs-minipass.txt"><b>fs-minipass</b></a> (by Isaac Z. Schlueter)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/fs-minipass.txt"><b>fs-minipass</b></a> (by Isaac Z. Schlueter)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
fs read and write streams based on minipass<br/>
|
<div style="font-size: 12px;">
|
||||||
<b>Patched to work with Bun</b>
|
fs read and write streams based on minipass<br/>
|
||||||
</div>
|
<b>Patched to work with Bun</b>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/function-bind.txt"><b>function-bind</b></a> (by Raynos)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/function-bind.txt"><b>function-bind</b></a> (by Raynos)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Implementation of Function.prototype.bind
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Implementation of Function.prototype.bind
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/get-intrinsic.txt"><b>get-intrinsic</b></a> (by Jordan Harband)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/get-intrinsic.txt"><b>get-intrinsic</b></a> (by Jordan Harband)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Get and robustly cache all JS language-level intrinsics at first require time
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Get and robustly cache all JS language-level intrinsics at first require time
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/graceful-fs.txt"><b>graceful-fs</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/graceful-fs.txt"><b>graceful-fs</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
A drop-in replacement for fs, making various improvements.<br/>
|
<div style="font-size: 12px;">
|
||||||
<b>Required by SVR.JS.</b>
|
A drop-in replacement for fs, making various improvements.<br/>
|
||||||
</div>
|
<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;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/has.txt"><b>has</b></a> (by Thiago de Arruda)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/has.txt"><b>has</b></a> (by Thiago de Arruda)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Object.prototype.hasOwnProperty.call shortcut
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Object.prototype.hasOwnProperty.call shortcut
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/has-symbols.txt"><b>has-symbols</b></a> (by Jordan Harband)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/has-symbols.txt"><b>has-symbols</b></a> (by Jordan Harband)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Determine if the JS environment has Symbol support. Supports spec, or shams.
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Determine if the JS environment has Symbol support. Supports spec, or shams.
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/hexoid.txt"><b>hexoid</b></a> (by Luke Edwards)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/hexoid.txt"><b>hexoid</b></a> (by Luke Edwards)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
A tiny (190B) and extremely fast utility to generate random IDs of fixed length
|
<div style="font-size: 12px;">
|
||||||
</div>
|
A tiny (190B) and extremely fast utility to generate random IDs of fixed length
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/inherits.txt"><b>inherits</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/inherits.txt"><b>inherits</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Browser-friendly inheritance fully compatible with standard node.js inherits()
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Browser-friendly inheritance fully compatible with standard node.js inherits()
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/mime-db.txt"><b>mime-db</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/mime-db.txt"><b>mime-db</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Media Type Database
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Media Type Database
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/mime-types.txt"><b>mime-types</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/mime-types.txt"><b>mime-types</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
The ultimate javascript content-type utility.<br/>
|
<div style="font-size: 12px;">
|
||||||
<b>Required by SVR.JS.</b>
|
The ultimate javascript content-type utility.<br/>
|
||||||
</div>
|
<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;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/minimalistic-assert.txt"><b>minimalistic-assert</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/minimalistic-assert.txt"><b>minimalistic-assert</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
minimalistic-assert ===
|
<div style="font-size: 12px;">
|
||||||
</div>
|
minimalistic-assert ===
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/minipass.txt"><b>minipass</b></a> (by Isaac Z. Schlueter)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/minipass.txt"><b>minipass</b></a> (by Isaac Z. Schlueter)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
minimal implementation of a PassThrough stream
|
<div style="font-size: 12px;">
|
||||||
</div>
|
minimal implementation of a PassThrough stream
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/minizlib.txt"><b>minizlib</b></a> (by Isaac Z. Schlueter)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/minizlib.txt"><b>minizlib</b></a> (by Isaac Z. Schlueter)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
A small fast zlib stream built on <a href="http://npm.im/minipass">minipass</a> and Node.js's zlib binding.
|
<div style="font-size: 12px;">
|
||||||
</div>
|
A small fast zlib stream built on <a href="http://npm.im/minipass">minipass</a> and Node.js's zlib binding.
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/mkdirp.txt"><b>mkdirp</b></a>
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/mkdirp.txt"><b>mkdirp</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Recursively mkdir, like `mkdir -p`
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Recursively mkdir, like `mkdir -p`
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/object-inspect.txt"><b>object-inspect</b></a> (by James Halliday)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/object-inspect.txt"><b>object-inspect</b></a> (by James Halliday)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
string representations of objects in node and the browser
|
<div style="font-size: 12px;">
|
||||||
</div>
|
string representations of objects in node and the browser
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: MIT</div>
|
||||||
<a href="/licenses/ocsp.txt"><b>ocsp</b></a> (by Fedor Indutny)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/ocsp.txt"><b>ocsp</b></a> (by Fedor Indutny)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
OCSP Stapling implementation<br/>
|
<div style="font-size: 12px;">
|
||||||
<b>Required by SVR.JS.</b>
|
OCSP Stapling implementation<br/>
|
||||||
</div>
|
<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;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/once.txt"><b>once</b></a> (by Isaac Z. Schlueter)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/once.txt"><b>once</b></a> (by Isaac Z. Schlueter)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Run a function exactly one time
|
<div style="font-size: 12px;">
|
||||||
</div>
|
Run a function exactly one time
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
</div>
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: BSD-3</div>
|
||||||
<a href="/licenses/pretty-bytes.txt"><b>pretty-bytes</b></a> (by Sindre Sorhus)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/qs.txt"><b>qs</b></a>
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
Convert bytes to a human readable string: 1337 → 1.34 kB<br/>
|
<div style="font-size: 12px;">
|
||||||
<b>Required by SVR.JS.</b>
|
A querystring parser that supports nesting and arrays, with a depth limit
|
||||||
</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;">
|
||||||
<div style="float: right;">License: BSD-3</div>
|
<div style="float: right;">License: MIT</div>
|
||||||
<div style="font-size: 20px;">
|
<div style="font-size: 20px;">
|
||||||
<a href="/licenses/qs.txt"><b>qs</b></a>
|
<a href="/licenses/side-channel.txt"><b>side-channel</b></a> (by Jordan Harband)
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 12px;">
|
<div style="font-size: 12px;">
|
||||||
A querystring parser that supports nesting and arrays, with a depth limit
|
Store information about any JS value in a side channel. Uses WeakMap if available.
|
||||||
</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;">
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="float: right;">License: MIT</div>
|
||||||
<div style="font-size: 20px;">
|
<div style="font-size: 20px;">
|
||||||
<a href="/licenses/side-channel.txt"><b>side-channel</b></a> (by Jordan Harband)
|
<a href="/licenses/simple-lru-cache.txt"><b>simple-lru-cache</b></a> (by Gabriel Eisbruch)
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 12px;">
|
<div style="font-size: 12px;">
|
||||||
Store information about any JS value in a side channel. Uses WeakMap if available.
|
node-simple-lru-cache =====================
|
||||||
</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;">
|
||||||
<div style="float: right;">License: MIT</div>
|
<div style="float: right;">License: ISC</div>
|
||||||
<div style="font-size: 20px;">
|
<div style="font-size: 20px;">
|
||||||
<a href="/licenses/simple-lru-cache.txt"><b>simple-lru-cache</b></a> (by Gabriel Eisbruch)
|
<a href="/licenses/tar.txt"><b>tar</b></a> (by Isaac Z. Schlueter)
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 12px;">
|
<div style="font-size: 12px;">
|
||||||
node-simple-lru-cache =====================
|
tar for node<br/>
|
||||||
</div>
|
<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;">
|
</div>
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
||||||
<div style="font-size: 20px;">
|
<div style="float: right;">License: ISC</div>
|
||||||
<a href="/licenses/tar.txt"><b>tar</b></a> (by Isaac Z. Schlueter)
|
<div style="font-size: 20px;">
|
||||||
</div>
|
<a href="/licenses/wrappy.txt"><b>wrappy</b></a> (by Isaac Z. Schlueter)
|
||||||
<div style="font-size: 12px;">
|
</div>
|
||||||
tar for node<br/>
|
<div style="font-size: 12px;">
|
||||||
<b>Required by SVR.JS.</b>
|
Callback wrapping utility
|
||||||
</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;">
|
||||||
<div style="float: right;">License: ISC</div>
|
<div style="float: right;">License: ISC</div>
|
||||||
<div style="font-size: 20px;">
|
<div style="font-size: 20px;">
|
||||||
<a href="/licenses/wrappy.txt"><b>wrappy</b></a> (by Isaac Z. Schlueter)
|
<a href="/licenses/yallist.txt"><b>yallist</b></a> (by Isaac Z. Schlueter)
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 12px;">
|
<div style="font-size: 12px;">
|
||||||
Callback wrapping utility
|
Yet Another Linked List
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div style="width: 100%; background-color: #ccc; border: 1px solid green; text-align: left; margin: 10px 0;">
|
|
||||||
<div style="float: right;">License: ISC</div>
|
|
||||||
<div style="font-size: 20px;">
|
|
||||||
<a href="/licenses/yallist.txt"><b>yallist</b></a> (by Isaac Z. Schlueter)
|
|
||||||
</div>
|
|
||||||
<div style="font-size: 12px;">
|
|
||||||
Yet Another Linked List
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
|
@ -34,17 +34,19 @@ function viewLog(log) {
|
||||||
if(log[log.length-1] == "") log.pop();
|
if(log[log.length-1] == "") log.pop();
|
||||||
if(log[0] == "") log.shift();
|
if(log[0] == "") log.shift();
|
||||||
for(var i=0;i<log.length;i++) {
|
for(var i=0;i<log.length;i++) {
|
||||||
if(log[i].indexOf("SERVER REQUEST MESSAGE") != -1) {
|
if(log[i].indexOf("SERVER REQUEST MESSAGE") != -1) {
|
||||||
log[i] = log[i].replace("SERVER REQUEST MESSAGE","\x1b[34mSERVER REQUEST MESSAGE") + "\x1b[37m\x1b[0m";
|
log[i] = log[i].replace("SERVER REQUEST MESSAGE","\x1b[34m\x1b[1mSERVER REQUEST MESSAGE\x1b[22m") + "\x1b[37m\x1b[0m";
|
||||||
} else if(log[i].indexOf("SERVER RESPONSE MESSAGE") != -1) {
|
} else if(log[i].indexOf("SERVER RESPONSE MESSAGE") != -1) {
|
||||||
log[i] = log[i].replace("SERVER RESPONSE MESSAGE","\x1b[32mSERVER RESPONSE MESSAGE") + "\x1b[37m\x1b[0m";
|
log[i] = log[i].replace("SERVER RESPONSE MESSAGE","\x1b[32m\x1b[1mSERVER RESPONSE MESSAGE\x1b[22m") + "\x1b[37m\x1b[0m";
|
||||||
} else if(log[i].indexOf("SERVER RESPONSE ERROR MESSAGE") != -1) {
|
} else if(log[i].indexOf("SERVER RESPONSE ERROR MESSAGE") != -1) {
|
||||||
log[i] = log[i].replace("SERVER RESPONSE ERROR MESSAGE","\x1b[31mSERVER RESPONSE ERROR MESSAGE") + "\x1b[37m\x1b[0m";
|
log[i] = log[i].replace("SERVER RESPONSE ERROR MESSAGE","\x1b[31m\x1b[1mSERVER RESPONSE ERROR MESSAGE\x1b[22m") + "\x1b[37m\x1b[0m";
|
||||||
} else if(log[i].indexOf("SERVER ERROR MESSAGE") != -1) {
|
} else if(log[i].indexOf("SERVER ERROR MESSAGE") != -1) {
|
||||||
log[i] = log[i].replace("SERVER ERROR MESSAGE","\x1b[41mSERVER ERROR MESSAGE") + "\x1b[40m\x1b[0m";
|
log[i] = log[i].replace("SERVER ERROR MESSAGE","\x1b[41m\x1b[1mSERVER ERROR MESSAGE\x1b[22m") + "\x1b[40m\x1b[0m";
|
||||||
} else if(log[i].indexOf("SERVER WARNING MESSAGE") != -1) {
|
} else if(log[i].indexOf("SERVER WARNING MESSAGE") != -1) {
|
||||||
log[i] = log[i].replace("SERVER WARNING MESSAGE","\x1b[43mSERVER WARNING MESSAGE") + "\x1b[40m\x1b[0m";
|
log[i] = log[i].replace("SERVER WARNING MESSAGE","\x1b[43m\x1b[1mSERVER WARNING MESSAGE\x1b[22m") + "\x1b[40m\x1b[0m";
|
||||||
}
|
} else if(log[i].indexOf("SERVER MESSAGE") != -1) {
|
||||||
console.log(log[i]);
|
log[i] = log[i].replace("SERVER MESSAGE","\x1b[1mSERVER MESSAGE\x1b[22m");
|
||||||
|
}
|
||||||
|
console.log(log[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
BIN
logo.png
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 44 KiB |
28
logviewer.js
110
node_modules/formidable/package.json
generated
vendored
|
@ -1,36 +1,33 @@
|
||||||
{
|
{
|
||||||
"_from": "formidable",
|
"name": "formidable",
|
||||||
"_id": "formidable@2.1.1",
|
"version": "2.1.2",
|
||||||
"_inBundle": false,
|
"license": "MIT",
|
||||||
"_integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==",
|
"description": "A node.js module for parsing form data, especially file uploads.",
|
||||||
"_location": "/formidable",
|
"homepage": "https://github.com/node-formidable/formidable",
|
||||||
"_phantomChildren": {},
|
"funding": "https://ko-fi.com/tunnckoCore/commissions",
|
||||||
"_requested": {
|
"repository": "node-formidable/formidable",
|
||||||
"type": "tag",
|
"main": "./src/index.js",
|
||||||
"registry": true,
|
"files": [
|
||||||
"raw": "formidable",
|
"src"
|
||||||
"name": "formidable",
|
|
||||||
"escapedName": "formidable",
|
|
||||||
"rawSpec": "",
|
|
||||||
"saveSpec": null,
|
|
||||||
"fetchSpec": "latest"
|
|
||||||
},
|
|
||||||
"_requiredBy": [
|
|
||||||
"#USER",
|
|
||||||
"/"
|
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz",
|
"publishConfig": {
|
||||||
"_shasum": "81269cbea1a613240049f5f61a9d97731517414f",
|
"access": "public",
|
||||||
"_spec": "formidable",
|
"tag": "v2-latest"
|
||||||
"_where": "/home/ubuntu/formidable",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/node-formidable/formidable/issues"
|
|
||||||
},
|
},
|
||||||
"bundleDependencies": false,
|
"scripts": {
|
||||||
"commitlint": {
|
"bench": "node benchmark",
|
||||||
"extends": [
|
"fmt": "yarn run fmt:prepare '**/*'",
|
||||||
"@commitlint/config-conventional"
|
"fmt:prepare": "prettier --write",
|
||||||
]
|
"lint": "yarn run lint:prepare .",
|
||||||
|
"lint:prepare": "eslint --cache --fix --quiet --format codeframe",
|
||||||
|
"reinstall": "del-cli ./node_modules ./yarn.lock",
|
||||||
|
"postreinstall": "yarn setup",
|
||||||
|
"setup": "yarn",
|
||||||
|
"pretest": "del-cli ./test/tmp && make-dir ./test/tmp",
|
||||||
|
"test": "jest --coverage",
|
||||||
|
"pretest:ci": "yarn run pretest",
|
||||||
|
"test:ci": "nyc jest --coverage",
|
||||||
|
"test:jest": "jest --coverage"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dezalgo": "^1.0.4",
|
"dezalgo": "^1.0.4",
|
||||||
|
@ -38,8 +35,6 @@
|
||||||
"once": "^1.4.0",
|
"once": "^1.4.0",
|
||||||
"qs": "^6.11.0"
|
"qs": "^6.11.0"
|
||||||
},
|
},
|
||||||
"deprecated": false,
|
|
||||||
"description": "A node.js module for parsing form data, especially file uploads.",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "8.3.5",
|
"@commitlint/cli": "8.3.5",
|
||||||
"@commitlint/config-conventional": "8.3.4",
|
"@commitlint/config-conventional": "8.3.4",
|
||||||
|
@ -62,17 +57,6 @@
|
||||||
"request": "2.88.2",
|
"request": "2.88.2",
|
||||||
"supertest": "4.0.2"
|
"supertest": "4.0.2"
|
||||||
},
|
},
|
||||||
"files": [
|
|
||||||
"src"
|
|
||||||
],
|
|
||||||
"funding": "https://ko-fi.com/tunnckoCore/commissions",
|
|
||||||
"homepage": "https://github.com/node-formidable/formidable",
|
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "git status --porcelain && yarn lint-staged",
|
|
||||||
"commit-msg": "yarn commitlint -E HUSKY_GIT_PARAMS"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"jest": {
|
"jest": {
|
||||||
"verbose": true
|
"verbose": true
|
||||||
},
|
},
|
||||||
|
@ -86,7 +70,17 @@
|
||||||
"ulpoad",
|
"ulpoad",
|
||||||
"file"
|
"file"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "git status --porcelain && yarn lint-staged",
|
||||||
|
"commit-msg": "yarn commitlint -E HUSKY_GIT_PARAMS"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"commitlint": {
|
||||||
|
"extends": [
|
||||||
|
"@commitlint/config-conventional"
|
||||||
|
]
|
||||||
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"!*.{js,jsx,ts,tsx}": [
|
"!*.{js,jsx,ts,tsx}": [
|
||||||
"yarn run fmt:prepare"
|
"yarn run fmt:prepare"
|
||||||
|
@ -95,36 +89,10 @@
|
||||||
"yarn run lint"
|
"yarn run lint"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"main": "./src/index.js",
|
|
||||||
"name": "formidable",
|
|
||||||
"publishConfig": {
|
|
||||||
"access": "public",
|
|
||||||
"tag": "latest"
|
|
||||||
},
|
|
||||||
"renovate": {
|
"renovate": {
|
||||||
"extends": [
|
"extends": [
|
||||||
"@tunnckocore",
|
"@tunnckocore",
|
||||||
":pinAllExceptPeerDependencies"
|
":pinAllExceptPeerDependencies"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/node-formidable/formidable.git"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"bench": "node benchmark",
|
|
||||||
"fmt": "yarn run fmt:prepare '**/*'",
|
|
||||||
"fmt:prepare": "prettier --write",
|
|
||||||
"lint": "yarn run lint:prepare .",
|
|
||||||
"lint:prepare": "eslint --cache --fix --quiet --format codeframe",
|
|
||||||
"postreinstall": "yarn setup",
|
|
||||||
"pretest": "del-cli ./test/tmp && make-dir ./test/tmp",
|
|
||||||
"pretest:ci": "yarn run pretest",
|
|
||||||
"reinstall": "del-cli ./node_modules ./yarn.lock",
|
|
||||||
"setup": "yarn",
|
|
||||||
"test": "jest --coverage",
|
|
||||||
"test:ci": "nyc jest --coverage",
|
|
||||||
"test:jest": "jest --coverage"
|
|
||||||
},
|
|
||||||
"version": "2.1.1"
|
|
||||||
}
|
}
|
||||||
|
|
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);
|
||||||
|
|
2
node_modules/graceful-fs/LICENSE
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
||||||
The ISC License
|
The ISC License
|
||||||
|
|
||||||
Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|
12
node_modules/graceful-fs/README.md
generated
vendored
Executable file → Normal file
|
@ -30,9 +30,19 @@ the directory.
|
||||||
var fs = require('graceful-fs')
|
var fs = require('graceful-fs')
|
||||||
|
|
||||||
// now go and do stuff with it...
|
// now go and do stuff with it...
|
||||||
fs.readFileSync('some-file-or-whatever')
|
fs.readFile('some-file-or-whatever', (err, data) => {
|
||||||
|
// Do stuff here.
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Sync methods
|
||||||
|
|
||||||
|
This module cannot intercept or handle `EMFILE` or `ENFILE` errors from sync
|
||||||
|
methods. If you use sync methods which open file descriptors then you are
|
||||||
|
responsible for dealing with any errors.
|
||||||
|
|
||||||
|
This is a known limitation, not a bug.
|
||||||
|
|
||||||
## Global Patching
|
## Global Patching
|
||||||
|
|
||||||
If you want to patch the global fs module (or any other fs-like
|
If you want to patch the global fs module (or any other fs-like
|
||||||
|
|
6
node_modules/graceful-fs/clone.js
generated
vendored
Executable file → Normal file
|
@ -2,12 +2,16 @@
|
||||||
|
|
||||||
module.exports = clone
|
module.exports = clone
|
||||||
|
|
||||||
|
var getPrototypeOf = Object.getPrototypeOf || function (obj) {
|
||||||
|
return obj.__proto__
|
||||||
|
}
|
||||||
|
|
||||||
function clone (obj) {
|
function clone (obj) {
|
||||||
if (obj === null || typeof obj !== 'object')
|
if (obj === null || typeof obj !== 'object')
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
if (obj instanceof Object)
|
if (obj instanceof Object)
|
||||||
var copy = { __proto__: obj.__proto__ }
|
var copy = { __proto__: getPrototypeOf(obj) }
|
||||||
else
|
else
|
||||||
var copy = Object.create(null)
|
var copy = Object.create(null)
|
||||||
|
|
||||||
|
|
170
node_modules/graceful-fs/graceful-fs.js
generated
vendored
Executable file → Normal file
|
@ -54,7 +54,7 @@ if (!fs[gracefulQueue]) {
|
||||||
return fs$close.call(fs, fd, function (err) {
|
return fs$close.call(fs, fd, function (err) {
|
||||||
// This function uses the graceful-fs shared queue
|
// This function uses the graceful-fs shared queue
|
||||||
if (!err) {
|
if (!err) {
|
||||||
retry()
|
resetQueue()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof cb === 'function')
|
if (typeof cb === 'function')
|
||||||
|
@ -72,7 +72,7 @@ if (!fs[gracefulQueue]) {
|
||||||
function closeSync (fd) {
|
function closeSync (fd) {
|
||||||
// This function uses the graceful-fs shared queue
|
// This function uses the graceful-fs shared queue
|
||||||
fs$closeSync.apply(fs, arguments)
|
fs$closeSync.apply(fs, arguments)
|
||||||
retry()
|
resetQueue()
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.defineProperty(closeSync, previousSymbol, {
|
Object.defineProperty(closeSync, previousSymbol, {
|
||||||
|
@ -114,14 +114,13 @@ function patch (fs) {
|
||||||
|
|
||||||
return go$readFile(path, options, cb)
|
return go$readFile(path, options, cb)
|
||||||
|
|
||||||
function go$readFile (path, options, cb) {
|
function go$readFile (path, options, cb, startTime) {
|
||||||
return fs$readFile(path, options, function (err) {
|
return fs$readFile(path, options, function (err) {
|
||||||
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
||||||
enqueue([go$readFile, [path, options, cb]])
|
enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()])
|
||||||
else {
|
else {
|
||||||
if (typeof cb === 'function')
|
if (typeof cb === 'function')
|
||||||
cb.apply(this, arguments)
|
cb.apply(this, arguments)
|
||||||
retry()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -135,14 +134,13 @@ function patch (fs) {
|
||||||
|
|
||||||
return go$writeFile(path, data, options, cb)
|
return go$writeFile(path, data, options, cb)
|
||||||
|
|
||||||
function go$writeFile (path, data, options, cb) {
|
function go$writeFile (path, data, options, cb, startTime) {
|
||||||
return fs$writeFile(path, data, options, function (err) {
|
return fs$writeFile(path, data, options, function (err) {
|
||||||
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
||||||
enqueue([go$writeFile, [path, data, options, cb]])
|
enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
||||||
else {
|
else {
|
||||||
if (typeof cb === 'function')
|
if (typeof cb === 'function')
|
||||||
cb.apply(this, arguments)
|
cb.apply(this, arguments)
|
||||||
retry()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -157,14 +155,35 @@ function patch (fs) {
|
||||||
|
|
||||||
return go$appendFile(path, data, options, cb)
|
return go$appendFile(path, data, options, cb)
|
||||||
|
|
||||||
function go$appendFile (path, data, options, cb) {
|
function go$appendFile (path, data, options, cb, startTime) {
|
||||||
return fs$appendFile(path, data, options, function (err) {
|
return fs$appendFile(path, data, options, function (err) {
|
||||||
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
||||||
enqueue([go$appendFile, [path, data, options, cb]])
|
enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()])
|
||||||
|
else {
|
||||||
|
if (typeof cb === 'function')
|
||||||
|
cb.apply(this, arguments)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var fs$copyFile = fs.copyFile
|
||||||
|
if (fs$copyFile)
|
||||||
|
fs.copyFile = copyFile
|
||||||
|
function copyFile (src, dest, flags, cb) {
|
||||||
|
if (typeof flags === 'function') {
|
||||||
|
cb = flags
|
||||||
|
flags = 0
|
||||||
|
}
|
||||||
|
return go$copyFile(src, dest, flags, cb)
|
||||||
|
|
||||||
|
function go$copyFile (src, dest, flags, cb, startTime) {
|
||||||
|
return fs$copyFile(src, dest, flags, function (err) {
|
||||||
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
||||||
|
enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()])
|
||||||
else {
|
else {
|
||||||
if (typeof cb === 'function')
|
if (typeof cb === 'function')
|
||||||
cb.apply(this, arguments)
|
cb.apply(this, arguments)
|
||||||
retry()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -172,36 +191,46 @@ function patch (fs) {
|
||||||
|
|
||||||
var fs$readdir = fs.readdir
|
var fs$readdir = fs.readdir
|
||||||
fs.readdir = readdir
|
fs.readdir = readdir
|
||||||
|
var noReaddirOptionVersions = /^v[0-5]\./
|
||||||
function readdir (path, options, cb) {
|
function readdir (path, options, cb) {
|
||||||
var args = [path]
|
if (typeof options === 'function')
|
||||||
if (typeof options !== 'function') {
|
cb = options, options = null
|
||||||
args.push(options)
|
|
||||||
} else {
|
|
||||||
cb = options
|
|
||||||
}
|
|
||||||
args.push(go$readdir$cb)
|
|
||||||
|
|
||||||
return go$readdir(args)
|
var go$readdir = noReaddirOptionVersions.test(process.version)
|
||||||
|
? function go$readdir (path, options, cb, startTime) {
|
||||||
|
return fs$readdir(path, fs$readdirCallback(
|
||||||
|
path, options, cb, startTime
|
||||||
|
))
|
||||||
|
}
|
||||||
|
: function go$readdir (path, options, cb, startTime) {
|
||||||
|
return fs$readdir(path, options, fs$readdirCallback(
|
||||||
|
path, options, cb, startTime
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
function go$readdir$cb (err, files) {
|
return go$readdir(path, options, cb)
|
||||||
if (files && files.sort)
|
|
||||||
files.sort()
|
|
||||||
|
|
||||||
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
function fs$readdirCallback (path, options, cb, startTime) {
|
||||||
enqueue([go$readdir, [args]])
|
return function (err, files) {
|
||||||
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
||||||
|
enqueue([
|
||||||
|
go$readdir,
|
||||||
|
[path, options, cb],
|
||||||
|
err,
|
||||||
|
startTime || Date.now(),
|
||||||
|
Date.now()
|
||||||
|
])
|
||||||
|
else {
|
||||||
|
if (files && files.sort)
|
||||||
|
files.sort()
|
||||||
|
|
||||||
else {
|
if (typeof cb === 'function')
|
||||||
if (typeof cb === 'function')
|
cb.call(this, err, files)
|
||||||
cb.apply(this, arguments)
|
}
|
||||||
retry()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function go$readdir (args) {
|
|
||||||
return fs$readdir.apply(fs, args)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (process.version.substr(0, 4) === 'v0.8') {
|
if (process.version.substr(0, 4) === 'v0.8') {
|
||||||
var legStreams = legacy(fs)
|
var legStreams = legacy(fs)
|
||||||
ReadStream = legStreams.ReadStream
|
ReadStream = legStreams.ReadStream
|
||||||
|
@ -324,14 +353,13 @@ function patch (fs) {
|
||||||
|
|
||||||
return go$open(path, flags, mode, cb)
|
return go$open(path, flags, mode, cb)
|
||||||
|
|
||||||
function go$open (path, flags, mode, cb) {
|
function go$open (path, flags, mode, cb, startTime) {
|
||||||
return fs$open(path, flags, mode, function (err, fd) {
|
return fs$open(path, flags, mode, function (err, fd) {
|
||||||
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
|
||||||
enqueue([go$open, [path, flags, mode, cb]])
|
enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()])
|
||||||
else {
|
else {
|
||||||
if (typeof cb === 'function')
|
if (typeof cb === 'function')
|
||||||
cb.apply(this, arguments)
|
cb.apply(this, arguments)
|
||||||
retry()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -343,12 +371,78 @@ function patch (fs) {
|
||||||
function enqueue (elem) {
|
function enqueue (elem) {
|
||||||
debug('ENQUEUE', elem[0].name, elem[1])
|
debug('ENQUEUE', elem[0].name, elem[1])
|
||||||
fs[gracefulQueue].push(elem)
|
fs[gracefulQueue].push(elem)
|
||||||
|
retry()
|
||||||
|
}
|
||||||
|
|
||||||
|
// keep track of the timeout between retry() calls
|
||||||
|
var retryTimer
|
||||||
|
|
||||||
|
// reset the startTime and lastTime to now
|
||||||
|
// this resets the start of the 60 second overall timeout as well as the
|
||||||
|
// delay between attempts so that we'll retry these jobs sooner
|
||||||
|
function resetQueue () {
|
||||||
|
var now = Date.now()
|
||||||
|
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
||||||
|
// entries that are only a length of 2 are from an older version, don't
|
||||||
|
// bother modifying those since they'll be retried anyway.
|
||||||
|
if (fs[gracefulQueue][i].length > 2) {
|
||||||
|
fs[gracefulQueue][i][3] = now // startTime
|
||||||
|
fs[gracefulQueue][i][4] = now // lastTime
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// call retry to make sure we're actively processing the queue
|
||||||
|
retry()
|
||||||
}
|
}
|
||||||
|
|
||||||
function retry () {
|
function retry () {
|
||||||
|
// clear the timer and remove it to help prevent unintended concurrency
|
||||||
|
clearTimeout(retryTimer)
|
||||||
|
retryTimer = undefined
|
||||||
|
|
||||||
|
if (fs[gracefulQueue].length === 0)
|
||||||
|
return
|
||||||
|
|
||||||
var elem = fs[gracefulQueue].shift()
|
var elem = fs[gracefulQueue].shift()
|
||||||
if (elem) {
|
var fn = elem[0]
|
||||||
debug('RETRY', elem[0].name, elem[1])
|
var args = elem[1]
|
||||||
elem[0].apply(null, elem[1])
|
// these items may be unset if they were added by an older graceful-fs
|
||||||
|
var err = elem[2]
|
||||||
|
var startTime = elem[3]
|
||||||
|
var lastTime = elem[4]
|
||||||
|
|
||||||
|
// if we don't have a startTime we have no way of knowing if we've waited
|
||||||
|
// long enough, so go ahead and retry this item now
|
||||||
|
if (startTime === undefined) {
|
||||||
|
debug('RETRY', fn.name, args)
|
||||||
|
fn.apply(null, args)
|
||||||
|
} else if (Date.now() - startTime >= 60000) {
|
||||||
|
// it's been more than 60 seconds total, bail now
|
||||||
|
debug('TIMEOUT', fn.name, args)
|
||||||
|
var cb = args.pop()
|
||||||
|
if (typeof cb === 'function')
|
||||||
|
cb.call(null, err)
|
||||||
|
} else {
|
||||||
|
// the amount of time between the last attempt and right now
|
||||||
|
var sinceAttempt = Date.now() - lastTime
|
||||||
|
// the amount of time between when we first tried, and when we last tried
|
||||||
|
// rounded up to at least 1
|
||||||
|
var sinceStart = Math.max(lastTime - startTime, 1)
|
||||||
|
// backoff. wait longer than the total time we've been retrying, but only
|
||||||
|
// up to a maximum of 100ms
|
||||||
|
var desiredDelay = Math.min(sinceStart * 1.2, 100)
|
||||||
|
// it's been long enough since the last retry, do it again
|
||||||
|
if (sinceAttempt >= desiredDelay) {
|
||||||
|
debug('RETRY', fn.name, args)
|
||||||
|
fn.apply(null, args.concat([startTime]))
|
||||||
|
} else {
|
||||||
|
// if we can't do this job yet, push it to the end of the queue
|
||||||
|
// and let the next iteration check again
|
||||||
|
fs[gracefulQueue].push(elem)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// schedule our next run if one isn't already scheduled
|
||||||
|
if (retryTimer === undefined) {
|
||||||
|
retryTimer = setTimeout(retry, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
0
node_modules/graceful-fs/legacy-streams.js
generated
vendored
Executable file → Normal file
83
node_modules/graceful-fs/package.json
generated
vendored
Executable file → Normal file
|
@ -1,52 +1,22 @@
|
||||||
{
|
{
|
||||||
"_from": "graceful-fs",
|
"name": "graceful-fs",
|
||||||
"_id": "graceful-fs@4.2.4",
|
|
||||||
"_inBundle": false,
|
|
||||||
"_integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==",
|
|
||||||
"_location": "/graceful-fs",
|
|
||||||
"_phantomChildren": {},
|
|
||||||
"_requested": {
|
|
||||||
"type": "tag",
|
|
||||||
"registry": true,
|
|
||||||
"raw": "graceful-fs",
|
|
||||||
"name": "graceful-fs",
|
|
||||||
"escapedName": "graceful-fs",
|
|
||||||
"rawSpec": "",
|
|
||||||
"saveSpec": null,
|
|
||||||
"fetchSpec": "latest"
|
|
||||||
},
|
|
||||||
"_requiredBy": [
|
|
||||||
"#USER",
|
|
||||||
"/"
|
|
||||||
],
|
|
||||||
"_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
|
|
||||||
"_shasum": "2256bde14d3632958c465ebc96dc467ca07a29fb",
|
|
||||||
"_spec": "graceful-fs",
|
|
||||||
"_where": "/media/serveradmin/Server/developement",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/isaacs/node-graceful-fs/issues"
|
|
||||||
},
|
|
||||||
"bundleDependencies": false,
|
|
||||||
"dependencies": {},
|
|
||||||
"deprecated": false,
|
|
||||||
"description": "A drop-in replacement for fs, making various improvements.",
|
"description": "A drop-in replacement for fs, making various improvements.",
|
||||||
"devDependencies": {
|
"version": "4.2.11",
|
||||||
"import-fresh": "^2.0.0",
|
"repository": {
|
||||||
"mkdirp": "^0.5.0",
|
"type": "git",
|
||||||
"rimraf": "^2.2.8",
|
"url": "https://github.com/isaacs/node-graceful-fs"
|
||||||
"tap": "^12.7.0"
|
|
||||||
},
|
},
|
||||||
|
"main": "graceful-fs.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "test"
|
"test": "test"
|
||||||
},
|
},
|
||||||
"files": [
|
"scripts": {
|
||||||
"fs.js",
|
"preversion": "npm test",
|
||||||
"graceful-fs.js",
|
"postversion": "npm publish",
|
||||||
"legacy-streams.js",
|
"postpublish": "git push origin --follow-tags",
|
||||||
"polyfills.js",
|
"test": "nyc --silent node test.js | tap -c -",
|
||||||
"clone.js"
|
"posttest": "nyc report"
|
||||||
],
|
},
|
||||||
"homepage": "https://github.com/isaacs/node-graceful-fs#readme",
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"fs",
|
"fs",
|
||||||
"module",
|
"module",
|
||||||
|
@ -64,17 +34,20 @@
|
||||||
"EACCESS"
|
"EACCESS"
|
||||||
],
|
],
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"main": "graceful-fs.js",
|
"devDependencies": {
|
||||||
"name": "graceful-fs",
|
"import-fresh": "^2.0.0",
|
||||||
"repository": {
|
"mkdirp": "^0.5.0",
|
||||||
"type": "git",
|
"rimraf": "^2.2.8",
|
||||||
"url": "git+https://github.com/isaacs/node-graceful-fs.git"
|
"tap": "^16.3.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"files": [
|
||||||
"postpublish": "git push origin --follow-tags",
|
"fs.js",
|
||||||
"postversion": "npm publish",
|
"graceful-fs.js",
|
||||||
"preversion": "npm test",
|
"legacy-streams.js",
|
||||||
"test": "node test.js | tap -"
|
"polyfills.js",
|
||||||
},
|
"clone.js"
|
||||||
"version": "4.2.4"
|
],
|
||||||
|
"tap": {
|
||||||
|
"reporter": "classic"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
83
node_modules/graceful-fs/polyfills.js
generated
vendored
Executable file → Normal file
|
@ -14,10 +14,14 @@ try {
|
||||||
process.cwd()
|
process.cwd()
|
||||||
} catch (er) {}
|
} catch (er) {}
|
||||||
|
|
||||||
var chdir = process.chdir
|
// This check is needed until node.js 12 is required
|
||||||
process.chdir = function(d) {
|
if (typeof process.chdir === 'function') {
|
||||||
cwd = null
|
var chdir = process.chdir
|
||||||
chdir.call(process, d)
|
process.chdir = function (d) {
|
||||||
|
cwd = null
|
||||||
|
chdir.call(process, d)
|
||||||
|
}
|
||||||
|
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = patch
|
module.exports = patch
|
||||||
|
@ -67,13 +71,13 @@ function patch (fs) {
|
||||||
fs.lstatSync = statFixSync(fs.lstatSync)
|
fs.lstatSync = statFixSync(fs.lstatSync)
|
||||||
|
|
||||||
// if lchmod/lchown do not exist, then make them no-ops
|
// if lchmod/lchown do not exist, then make them no-ops
|
||||||
if (!fs.lchmod) {
|
if (fs.chmod && !fs.lchmod) {
|
||||||
fs.lchmod = function (path, mode, cb) {
|
fs.lchmod = function (path, mode, cb) {
|
||||||
if (cb) process.nextTick(cb)
|
if (cb) process.nextTick(cb)
|
||||||
}
|
}
|
||||||
fs.lchmodSync = function () {}
|
fs.lchmodSync = function () {}
|
||||||
}
|
}
|
||||||
if (!fs.lchown) {
|
if (fs.chown && !fs.lchown) {
|
||||||
fs.lchown = function (path, uid, gid, cb) {
|
fs.lchown = function (path, uid, gid, cb) {
|
||||||
if (cb) process.nextTick(cb)
|
if (cb) process.nextTick(cb)
|
||||||
}
|
}
|
||||||
|
@ -90,32 +94,38 @@ function patch (fs) {
|
||||||
// CPU to a busy looping process, which can cause the program causing the lock
|
// CPU to a busy looping process, which can cause the program causing the lock
|
||||||
// contention to be starved of CPU by node, so the contention doesn't resolve.
|
// contention to be starved of CPU by node, so the contention doesn't resolve.
|
||||||
if (platform === "win32") {
|
if (platform === "win32") {
|
||||||
fs.rename = (function (fs$rename) { return function (from, to, cb) {
|
fs.rename = typeof fs.rename !== 'function' ? fs.rename
|
||||||
var start = Date.now()
|
: (function (fs$rename) {
|
||||||
var backoff = 0;
|
function rename (from, to, cb) {
|
||||||
fs$rename(from, to, function CB (er) {
|
var start = Date.now()
|
||||||
if (er
|
var backoff = 0;
|
||||||
&& (er.code === "EACCES" || er.code === "EPERM")
|
fs$rename(from, to, function CB (er) {
|
||||||
&& Date.now() - start < 60000) {
|
if (er
|
||||||
setTimeout(function() {
|
&& (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY")
|
||||||
fs.stat(to, function (stater, st) {
|
&& Date.now() - start < 60000) {
|
||||||
if (stater && stater.code === "ENOENT")
|
setTimeout(function() {
|
||||||
fs$rename(from, to, CB);
|
fs.stat(to, function (stater, st) {
|
||||||
else
|
if (stater && stater.code === "ENOENT")
|
||||||
cb(er)
|
fs$rename(from, to, CB);
|
||||||
})
|
else
|
||||||
}, backoff)
|
cb(er)
|
||||||
if (backoff < 100)
|
})
|
||||||
backoff += 10;
|
}, backoff)
|
||||||
return;
|
if (backoff < 100)
|
||||||
}
|
backoff += 10;
|
||||||
if (cb) cb(er)
|
return;
|
||||||
})
|
}
|
||||||
}})(fs.rename)
|
if (cb) cb(er)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename)
|
||||||
|
return rename
|
||||||
|
})(fs.rename)
|
||||||
}
|
}
|
||||||
|
|
||||||
// if read() returns EAGAIN, then just try it again.
|
// if read() returns EAGAIN, then just try it again.
|
||||||
fs.read = (function (fs$read) {
|
fs.read = typeof fs.read !== 'function' ? fs.read
|
||||||
|
: (function (fs$read) {
|
||||||
function read (fd, buffer, offset, length, position, callback_) {
|
function read (fd, buffer, offset, length, position, callback_) {
|
||||||
var callback
|
var callback
|
||||||
if (callback_ && typeof callback_ === 'function') {
|
if (callback_ && typeof callback_ === 'function') {
|
||||||
|
@ -132,11 +142,12 @@ function patch (fs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This ensures `util.promisify` works as it does for native `fs.read`.
|
// This ensures `util.promisify` works as it does for native `fs.read`.
|
||||||
read.__proto__ = fs$read
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read)
|
||||||
return read
|
return read
|
||||||
})(fs.read)
|
})(fs.read)
|
||||||
|
|
||||||
fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
|
fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync
|
||||||
|
: (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
|
||||||
var eagCounter = 0
|
var eagCounter = 0
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
|
@ -195,7 +206,7 @@ function patch (fs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function patchLutimes (fs) {
|
function patchLutimes (fs) {
|
||||||
if (constants.hasOwnProperty("O_SYMLINK")) {
|
if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
|
||||||
fs.lutimes = function (path, at, mt, cb) {
|
fs.lutimes = function (path, at, mt, cb) {
|
||||||
fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
||||||
if (er) {
|
if (er) {
|
||||||
|
@ -229,7 +240,7 @@ function patch (fs) {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else if (fs.futimes) {
|
||||||
fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
|
fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
|
||||||
fs.lutimesSync = function () {}
|
fs.lutimesSync = function () {}
|
||||||
}
|
}
|
||||||
|
@ -306,8 +317,10 @@ function patch (fs) {
|
||||||
return function (target, options) {
|
return function (target, options) {
|
||||||
var stats = options ? orig.call(fs, target, options)
|
var stats = options ? orig.call(fs, target, options)
|
||||||
: orig.call(fs, target)
|
: orig.call(fs, target)
|
||||||
if (stats.uid < 0) stats.uid += 0x100000000
|
if (stats) {
|
||||||
if (stats.gid < 0) stats.gid += 0x100000000
|
if (stats.uid < 0) stats.uid += 0x100000000
|
||||||
|
if (stats.gid < 0) stats.gid += 0x100000000
|
||||||
|
}
|
||||||
return stats;
|
return stats;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
85
node_modules/mime-db/package.json
generated
vendored
|
@ -1,49 +1,23 @@
|
||||||
{
|
{
|
||||||
"_from": "mime-db@1.52.0",
|
"name": "mime-db",
|
||||||
"_id": "mime-db@1.52.0",
|
|
||||||
"_inBundle": false,
|
|
||||||
"_integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
|
||||||
"_location": "/mime-db",
|
|
||||||
"_phantomChildren": {},
|
|
||||||
"_requested": {
|
|
||||||
"type": "version",
|
|
||||||
"registry": true,
|
|
||||||
"raw": "mime-db@1.52.0",
|
|
||||||
"name": "mime-db",
|
|
||||||
"escapedName": "mime-db",
|
|
||||||
"rawSpec": "1.52.0",
|
|
||||||
"saveSpec": null,
|
|
||||||
"fetchSpec": "1.52.0"
|
|
||||||
},
|
|
||||||
"_requiredBy": [
|
|
||||||
"/mime-types"
|
|
||||||
],
|
|
||||||
"_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
|
||||||
"_shasum": "bbabcdc02859f4987301c856e3387ce5ec43bf70",
|
|
||||||
"_spec": "mime-db@1.52.0",
|
|
||||||
"_where": "/home/ubuntu/formidable/node_modules/mime-types",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/jshttp/mime-db/issues"
|
|
||||||
},
|
|
||||||
"bundleDependencies": false,
|
|
||||||
"contributors": [
|
|
||||||
{
|
|
||||||
"name": "Douglas Christopher Wilson",
|
|
||||||
"email": "doug@somethingdoug.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Jonathan Ong",
|
|
||||||
"email": "me@jongleberry.com",
|
|
||||||
"url": "http://jongleberry.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Robert Kieffer",
|
|
||||||
"email": "robert@broofa.com",
|
|
||||||
"url": "http://github.com/broofa"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"deprecated": false,
|
|
||||||
"description": "Media Type Database",
|
"description": "Media Type Database",
|
||||||
|
"version": "1.52.0",
|
||||||
|
"contributors": [
|
||||||
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
||||||
|
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
|
||||||
|
"Robert Kieffer <robert@broofa.com> (http://github.com/broofa)"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"keywords": [
|
||||||
|
"mime",
|
||||||
|
"db",
|
||||||
|
"type",
|
||||||
|
"types",
|
||||||
|
"database",
|
||||||
|
"charset",
|
||||||
|
"charsets"
|
||||||
|
],
|
||||||
|
"repository": "jshttp/mime-db",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bluebird": "3.7.2",
|
"bluebird": "3.7.2",
|
||||||
"co": "4.6.0",
|
"co": "4.6.0",
|
||||||
|
@ -63,9 +37,6 @@
|
||||||
"raw-body": "2.5.0",
|
"raw-body": "2.5.0",
|
||||||
"stream-to-array": "2.3.0"
|
"stream-to-array": "2.3.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
|
||||||
"node": ">= 0.6"
|
|
||||||
},
|
|
||||||
"files": [
|
"files": [
|
||||||
"HISTORY.md",
|
"HISTORY.md",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
|
@ -73,21 +44,8 @@
|
||||||
"db.json",
|
"db.json",
|
||||||
"index.js"
|
"index.js"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/jshttp/mime-db#readme",
|
"engines": {
|
||||||
"keywords": [
|
"node": ">= 0.6"
|
||||||
"mime",
|
|
||||||
"db",
|
|
||||||
"type",
|
|
||||||
"types",
|
|
||||||
"database",
|
|
||||||
"charset",
|
|
||||||
"charsets"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"name": "mime-db",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/jshttp/mime-db.git"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node scripts/build",
|
"build": "node scripts/build",
|
||||||
|
@ -98,6 +56,5 @@
|
||||||
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
"test-cov": "nyc --reporter=html --reporter=text npm test",
|
||||||
"update": "npm run fetch && npm run build",
|
"update": "npm run fetch && npm run build",
|
||||||
"version": "node scripts/version-history.js && git add HISTORY.md"
|
"version": "node scripts/version-history.js && git add HISTORY.md"
|
||||||
},
|
}
|
||||||
"version": "1.52.0"
|
|
||||||
}
|
}
|
||||||
|
|
74
node_modules/mime-types/package.json
generated
vendored
|
@ -1,53 +1,21 @@
|
||||||
{
|
{
|
||||||
"_from": "mime-types",
|
"name": "mime-types",
|
||||||
"_id": "mime-types@2.1.35",
|
"description": "The ultimate javascript content-type utility.",
|
||||||
"_inBundle": false,
|
"version": "2.1.35",
|
||||||
"_integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
|
||||||
"_location": "/mime-types",
|
|
||||||
"_phantomChildren": {},
|
|
||||||
"_requested": {
|
|
||||||
"type": "tag",
|
|
||||||
"registry": true,
|
|
||||||
"raw": "mime-types",
|
|
||||||
"name": "mime-types",
|
|
||||||
"escapedName": "mime-types",
|
|
||||||
"rawSpec": "",
|
|
||||||
"saveSpec": null,
|
|
||||||
"fetchSpec": "latest"
|
|
||||||
},
|
|
||||||
"_requiredBy": [
|
|
||||||
"#USER",
|
|
||||||
"/"
|
|
||||||
],
|
|
||||||
"_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
|
||||||
"_shasum": "381a871b62a734450660ae3deee44813f70d959a",
|
|
||||||
"_spec": "mime-types",
|
|
||||||
"_where": "/home/ubuntu/formidable/a",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/jshttp/mime-types/issues"
|
|
||||||
},
|
|
||||||
"bundleDependencies": false,
|
|
||||||
"contributors": [
|
"contributors": [
|
||||||
{
|
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
||||||
"name": "Douglas Christopher Wilson",
|
"Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)",
|
||||||
"email": "doug@somethingdoug.com"
|
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Jeremiah Senkpiel",
|
|
||||||
"email": "fishrock123@rocketmail.com",
|
|
||||||
"url": "https://searchbeam.jit.su"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Jonathan Ong",
|
|
||||||
"email": "me@jongleberry.com",
|
|
||||||
"url": "http://jongleberry.com"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"keywords": [
|
||||||
|
"mime",
|
||||||
|
"types"
|
||||||
|
],
|
||||||
|
"repository": "jshttp/mime-types",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mime-db": "1.52.0"
|
"mime-db": "1.52.0"
|
||||||
},
|
},
|
||||||
"deprecated": false,
|
|
||||||
"description": "The ultimate javascript content-type utility.",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "7.32.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-config-standard": "14.1.1",
|
"eslint-config-standard": "14.1.1",
|
||||||
|
@ -59,30 +27,18 @@
|
||||||
"mocha": "9.2.2",
|
"mocha": "9.2.2",
|
||||||
"nyc": "15.1.0"
|
"nyc": "15.1.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
|
||||||
"node": ">= 0.6"
|
|
||||||
},
|
|
||||||
"files": [
|
"files": [
|
||||||
"HISTORY.md",
|
"HISTORY.md",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"index.js"
|
"index.js"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/jshttp/mime-types#readme",
|
"engines": {
|
||||||
"keywords": [
|
"node": ">= 0.6"
|
||||||
"mime",
|
|
||||||
"types"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"name": "mime-types",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/jshttp/mime-types.git"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"test": "mocha --reporter spec test/test.js",
|
"test": "mocha --reporter spec test/test.js",
|
||||||
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
||||||
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
||||||
},
|
}
|
||||||
"version": "2.1.35"
|
|
||||||
}
|
}
|
||||||
|
|
66
node_modules/pretty-bytes/index.d.ts
generated
vendored
|
@ -1,66 +0,0 @@
|
||||||
declare namespace prettyBytes {
|
|
||||||
interface Options {
|
|
||||||
/**
|
|
||||||
Include plus sign for positive numbers. If the difference is exactly zero a space character will be prepended instead for better alignment.
|
|
||||||
|
|
||||||
@default false
|
|
||||||
*/
|
|
||||||
readonly signed?: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
- If `false`: Output won't be localized.
|
|
||||||
- If `true`: Localize the output using the system/browser locale.
|
|
||||||
- If `string`: Expects a [BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …)
|
|
||||||
|
|
||||||
__Note:__ Localization should generally work in browsers. Node.js needs to be [built](https://github.com/nodejs/node/wiki/Intl) with `full-icu` or `system-icu`. Alternatively, the [`full-icu`](https://github.com/unicode-org/full-icu-npm) module can be used to provide support at runtime.
|
|
||||||
|
|
||||||
@default false
|
|
||||||
*/
|
|
||||||
readonly locale?: boolean | string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
Format the number as [bits](https://en.wikipedia.org/wiki/Bit) instead of [bytes](https://en.wikipedia.org/wiki/Byte). This can be useful when, for example, referring to [bit rate](https://en.wikipedia.org/wiki/Bit_rate).
|
|
||||||
|
|
||||||
@default false
|
|
||||||
|
|
||||||
```
|
|
||||||
import prettyBytes = require('pretty-bytes');
|
|
||||||
|
|
||||||
prettyBytes(1337, {bits: true});
|
|
||||||
//=> '1.34 kbit'
|
|
||||||
```
|
|
||||||
*/
|
|
||||||
readonly bits?: boolean;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Convert bytes to a human readable string: `1337` → `1.34 kB`.
|
|
||||||
|
|
||||||
@param number - The number to format.
|
|
||||||
|
|
||||||
@example
|
|
||||||
```
|
|
||||||
import prettyBytes = require('pretty-bytes');
|
|
||||||
|
|
||||||
prettyBytes(1337);
|
|
||||||
//=> '1.34 kB'
|
|
||||||
|
|
||||||
prettyBytes(100);
|
|
||||||
//=> '100 B'
|
|
||||||
|
|
||||||
// Display file size differences
|
|
||||||
prettyBytes(42, {signed: true});
|
|
||||||
//=> '+42 B'
|
|
||||||
|
|
||||||
// Localized output using German locale
|
|
||||||
prettyBytes(1337, {locale: 'de'});
|
|
||||||
//=> '1,34 kB'
|
|
||||||
```
|
|
||||||
*/
|
|
||||||
declare function prettyBytes(
|
|
||||||
number: number,
|
|
||||||
options?: prettyBytes.Options
|
|
||||||
): string;
|
|
||||||
|
|
||||||
export = prettyBytes;
|
|
76
node_modules/pretty-bytes/index.js
generated
vendored
|
@ -1,76 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
const BYTE_UNITS = [
|
|
||||||
'B',
|
|
||||||
'kB',
|
|
||||||
'MB',
|
|
||||||
'GB',
|
|
||||||
'TB',
|
|
||||||
'PB',
|
|
||||||
'EB',
|
|
||||||
'ZB',
|
|
||||||
'YB'
|
|
||||||
];
|
|
||||||
|
|
||||||
const BIT_UNITS = [
|
|
||||||
'b',
|
|
||||||
'kbit',
|
|
||||||
'Mbit',
|
|
||||||
'Gbit',
|
|
||||||
'Tbit',
|
|
||||||
'Pbit',
|
|
||||||
'Ebit',
|
|
||||||
'Zbit',
|
|
||||||
'Ybit'
|
|
||||||
];
|
|
||||||
|
|
||||||
/*
|
|
||||||
Formats the given number using `Number#toLocaleString`.
|
|
||||||
- If locale is a string, the value is expected to be a locale-key (for example: `de`).
|
|
||||||
- If locale is true, the system default locale is used for translation.
|
|
||||||
- If no value for locale is specified, the number is returned unmodified.
|
|
||||||
*/
|
|
||||||
const toLocaleString = (number, locale) => {
|
|
||||||
let result = number;
|
|
||||||
if (typeof locale === 'string') {
|
|
||||||
result = number.toLocaleString(locale);
|
|
||||||
} else if (locale === true) {
|
|
||||||
result = number.toLocaleString();
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = (number, options) => {
|
|
||||||
if (!Number.isFinite(number)) {
|
|
||||||
throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
options = Object.assign({bits: false}, options);
|
|
||||||
const UNITS = options.bits ? BIT_UNITS : BYTE_UNITS;
|
|
||||||
|
|
||||||
if (options.signed && number === 0) {
|
|
||||||
return ' 0 ' + UNITS[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
const isNegative = number < 0;
|
|
||||||
const prefix = isNegative ? '-' : (options.signed ? '+' : '');
|
|
||||||
|
|
||||||
if (isNegative) {
|
|
||||||
number = -number;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (number < 1) {
|
|
||||||
const numberString = toLocaleString(number, options.locale);
|
|
||||||
return prefix + numberString + ' ' + UNITS[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
const exponent = Math.min(Math.floor(Math.log10(number) / 3), UNITS.length - 1);
|
|
||||||
// eslint-disable-next-line unicorn/prefer-exponentiation-operator
|
|
||||||
number = Number((number / Math.pow(1000, exponent)).toPrecision(3));
|
|
||||||
const numberString = toLocaleString(number, options.locale);
|
|
||||||
|
|
||||||
const unit = UNITS[exponent];
|
|
||||||
|
|
||||||
return prefix + numberString + ' ' + unit;
|
|
||||||
};
|
|
9
node_modules/pretty-bytes/license
generated
vendored
|
@ -1,9 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.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.
|
|
76
node_modules/pretty-bytes/package.json
generated
vendored
|
@ -1,76 +0,0 @@
|
||||||
{
|
|
||||||
"_from": "pretty-bytes@^5.3.0",
|
|
||||||
"_id": "pretty-bytes@5.3.0",
|
|
||||||
"_inBundle": false,
|
|
||||||
"_integrity": "sha512-hjGrh+P926p4R4WbaB6OckyRtO0F0/lQBiT+0gnxjV+5kjPBrfVBFCsCLbMqVQeydvIoouYTCmmEURiH3R1Bdg==",
|
|
||||||
"_location": "/pretty-bytes",
|
|
||||||
"_phantomChildren": {},
|
|
||||||
"_requested": {
|
|
||||||
"type": "range",
|
|
||||||
"registry": true,
|
|
||||||
"raw": "pretty-bytes@^5.3.0",
|
|
||||||
"name": "pretty-bytes",
|
|
||||||
"escapedName": "pretty-bytes",
|
|
||||||
"rawSpec": "^5.3.0",
|
|
||||||
"saveSpec": null,
|
|
||||||
"fetchSpec": "^5.3.0"
|
|
||||||
},
|
|
||||||
"_requiredBy": [
|
|
||||||
"/autocannon"
|
|
||||||
],
|
|
||||||
"_resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.3.0.tgz",
|
|
||||||
"_shasum": "f2849e27db79fb4d6cfe24764fc4134f165989f2",
|
|
||||||
"_spec": "pretty-bytes@^5.3.0",
|
|
||||||
"_where": "/media/serveradmin/Server/developement/node_modules/autocannon",
|
|
||||||
"author": {
|
|
||||||
"name": "Sindre Sorhus",
|
|
||||||
"email": "sindresorhus@gmail.com",
|
|
||||||
"url": "sindresorhus.com"
|
|
||||||
},
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/sindresorhus/pretty-bytes/issues"
|
|
||||||
},
|
|
||||||
"bundleDependencies": false,
|
|
||||||
"deprecated": false,
|
|
||||||
"description": "Convert bytes to a human readable string: 1337 → 1.34 kB",
|
|
||||||
"devDependencies": {
|
|
||||||
"ava": "^1.4.1",
|
|
||||||
"full-icu": "^1.2.1",
|
|
||||||
"tsd": "^0.7.2",
|
|
||||||
"xo": "^0.24.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"index.js",
|
|
||||||
"index.d.ts"
|
|
||||||
],
|
|
||||||
"homepage": "https://github.com/sindresorhus/pretty-bytes#readme",
|
|
||||||
"keywords": [
|
|
||||||
"pretty",
|
|
||||||
"bytes",
|
|
||||||
"byte",
|
|
||||||
"filesize",
|
|
||||||
"size",
|
|
||||||
"file",
|
|
||||||
"human",
|
|
||||||
"humanized",
|
|
||||||
"readable",
|
|
||||||
"si",
|
|
||||||
"data",
|
|
||||||
"locale",
|
|
||||||
"localization",
|
|
||||||
"localized"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"name": "pretty-bytes",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/sindresorhus/pretty-bytes.git"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"test": "xo && NODE_ICU_DATA=node_modules/full-icu ava && tsd"
|
|
||||||
},
|
|
||||||
"version": "5.3.0"
|
|
||||||
}
|
|
89
node_modules/pretty-bytes/readme.md
generated
vendored
|
@ -1,89 +0,0 @@
|
||||||
# pretty-bytes [![Build Status](https://travis-ci.org/sindresorhus/pretty-bytes.svg?branch=master)](https://travis-ci.org/sindresorhus/pretty-bytes)
|
|
||||||
|
|
||||||
> Convert bytes to a human readable string: `1337` → `1.34 kB`
|
|
||||||
|
|
||||||
Useful for displaying file sizes for humans.
|
|
||||||
|
|
||||||
*Note that it uses base-10 (e.g. kilobyte).
|
|
||||||
[Read about the difference between kilobyte and kibibyte.](https://web.archive.org/web/20150324153922/https://pacoup.com/2009/05/26/kb-kb-kib-whats-up-with-that/)*
|
|
||||||
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
```
|
|
||||||
$ npm install pretty-bytes
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
```js
|
|
||||||
const prettyBytes = require('pretty-bytes');
|
|
||||||
|
|
||||||
prettyBytes(1337);
|
|
||||||
//=> '1.34 kB'
|
|
||||||
|
|
||||||
prettyBytes(100);
|
|
||||||
//=> '100 B'
|
|
||||||
|
|
||||||
// Display with units of bits
|
|
||||||
prettyBytes(1337, {bits: true});
|
|
||||||
//=> '1.34 kbit'
|
|
||||||
|
|
||||||
// Display file size differences
|
|
||||||
prettyBytes(42, {signed: true});
|
|
||||||
//=> '+42 B'
|
|
||||||
|
|
||||||
// Localized output using German locale
|
|
||||||
prettyBytes(1337, {locale: 'de'});
|
|
||||||
//=> '1,34 kB'
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## API
|
|
||||||
|
|
||||||
### prettyBytes(number, [options])
|
|
||||||
|
|
||||||
#### number
|
|
||||||
|
|
||||||
Type: `number`
|
|
||||||
|
|
||||||
The number to format.
|
|
||||||
|
|
||||||
#### options
|
|
||||||
|
|
||||||
Type: `object`
|
|
||||||
|
|
||||||
##### signed
|
|
||||||
|
|
||||||
Type: `boolean`<br>
|
|
||||||
Default: `false`
|
|
||||||
|
|
||||||
Include plus sign for positive numbers. If the difference is exactly zero a space character will be prepended instead for better alignment.
|
|
||||||
|
|
||||||
##### bits
|
|
||||||
|
|
||||||
Type: `boolean`<br>
|
|
||||||
Default: `false`
|
|
||||||
|
|
||||||
Format the number as [bits](https://en.wikipedia.org/wiki/Bit) instead of [bytes](https://en.wikipedia.org/wiki/Byte). This can be useful when, for example, referring to [bit rate](https://en.wikipedia.org/wiki/Bit_rate).
|
|
||||||
|
|
||||||
##### locale
|
|
||||||
|
|
||||||
Type: `boolean` `string`<br>
|
|
||||||
Default: `false` *(No localization)*
|
|
||||||
|
|
||||||
- If `true`: Localize the output using the system/browser locale.
|
|
||||||
- If `string`: Expects a [BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) (For example: `en`, `de`, …)
|
|
||||||
|
|
||||||
**Note:** Localization should generally work in browsers. Node.js needs to be [built](https://github.com/nodejs/node/wiki/Intl) with `full-icu` or `system-icu`. Alternatively, the [`full-icu`](https://github.com/unicode-org/full-icu-npm) module can be used to provide support at runtime.
|
|
||||||
|
|
||||||
|
|
||||||
## Related
|
|
||||||
|
|
||||||
- [pretty-bytes-cli](https://github.com/sindresorhus/pretty-bytes-cli) - CLI for this module
|
|
||||||
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
88
node_modules/svrmodpack/index.js
generated
vendored
|
@ -1,88 +0,0 @@
|
||||||
var fs = require("fs");
|
|
||||||
var zlib = require("zlib");
|
|
||||||
|
|
||||||
|
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
function mkDirByPathSync(targetDir, { isRelativeToScript = false } = {}) {
|
|
||||||
const sep = path.sep;
|
|
||||||
const initDir = path.isAbsolute(targetDir) ? sep : '';
|
|
||||||
const baseDir = isRelativeToScript ? __dirname : '.';
|
|
||||||
|
|
||||||
return targetDir.split(sep).reduce((parentDir, childDir) => {
|
|
||||||
const curDir = path.resolve(baseDir, parentDir, childDir);
|
|
||||||
try {
|
|
||||||
fs.mkdirSync(curDir);
|
|
||||||
} catch (err) {
|
|
||||||
if (err.code === 'EEXIST') { // curDir already exists!
|
|
||||||
return curDir;
|
|
||||||
}
|
|
||||||
|
|
||||||
// To avoid `EISDIR` error on Mac and `EACCES`-->`ENOENT` and `EPERM` on Windows.
|
|
||||||
if (err.code === 'ENOENT') { // Throw the original parentDir error on curDir `ENOENT` failure.
|
|
||||||
throw new Error(`EACCES: permission denied, mkdir '${parentDir}'`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const caughtErr = ['EACCES', 'EPERM', 'EISDIR'].indexOf(err.code) > -1;
|
|
||||||
if (!caughtErr || caughtErr && curDir === path.resolve(targetDir)) {
|
|
||||||
throw err; // Throw if it's just the last created dir.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return curDir;
|
|
||||||
}, initDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
function pack(ins, out, modinfof) {
|
|
||||||
if (typeof modinfof === 'undefined') {
|
|
||||||
modinfof = 'mod.info';
|
|
||||||
}
|
|
||||||
var modinfo = JSON.parse(fs.readFileSync(modinfof));
|
|
||||||
var file = "SVR\0";
|
|
||||||
var modinfo2 = "";
|
|
||||||
modinfo2 += modinfo.name;
|
|
||||||
modinfo2 += "\0";
|
|
||||||
modinfo2 += modinfo.version;
|
|
||||||
modinfo2 += "\0";
|
|
||||||
file += modinfo2
|
|
||||||
for (var i = 0; i < ins.length; i++) {
|
|
||||||
var script = fs.readFileSync(ins[i]);
|
|
||||||
file += ins[i];
|
|
||||||
file += "\0";
|
|
||||||
file += script.toString();
|
|
||||||
file += "\0";
|
|
||||||
}
|
|
||||||
fs.writeFileSync(out, zlib.gzipSync(file));
|
|
||||||
}
|
|
||||||
|
|
||||||
function unpack(inputf, outf, modinfof) {
|
|
||||||
if (typeof outf === 'undefined') {
|
|
||||||
outf = '';
|
|
||||||
}
|
|
||||||
if (typeof modinfof === 'undefined') {
|
|
||||||
modinfof = 'mod.info';
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
mkDirByPathSync(outf);
|
|
||||||
} catch (ex) {}
|
|
||||||
var script = "";
|
|
||||||
var modinfo = {};
|
|
||||||
var file = zlib.gunzipSync(fs.readFileSync(inputf)).toString();
|
|
||||||
var tokens = file.split("\0");
|
|
||||||
var files = [];
|
|
||||||
if (tokens[0] != "SVR") throw new Error("wrong signature");
|
|
||||||
modinfo.name = tokens[1];
|
|
||||||
modinfo.version = tokens[2];
|
|
||||||
for (var i = 3; i < tokens.length - 1; i += 2) {
|
|
||||||
files.push({
|
|
||||||
name: tokens[i],
|
|
||||||
content: tokens[i + 1]
|
|
||||||
});
|
|
||||||
}
|
|
||||||
fs.writeFileSync((outf + "/" + modinfof).replace(/\/\//g, "/"), JSON.stringify(modinfo, null, 2));
|
|
||||||
for (var i = 0; i < files.length; i++) {
|
|
||||||
fs.writeFileSync((outf + "/" + files[i].name).replace(/\/\//g, "/"), files[i].content);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {pack: pack, unpack: unpack}
|
|
48
node_modules/svrmodpack/package.json
generated
vendored
|
@ -1,48 +0,0 @@
|
||||||
{
|
|
||||||
"_from": "svrmodpack",
|
|
||||||
"_id": "svrmodpack@1.0.0",
|
|
||||||
"_inBundle": false,
|
|
||||||
"_integrity": "sha512-17SjkfDtZL3KOGjzLTT/nEZzCuvD4rz07y4UFVXfo/Xo0qTMwgICnDSIEOonaAs1GdzZe0hiJxkPYvdTKQifwg==",
|
|
||||||
"_location": "/svrmodpack",
|
|
||||||
"_phantomChildren": {},
|
|
||||||
"_requested": {
|
|
||||||
"type": "tag",
|
|
||||||
"registry": true,
|
|
||||||
"raw": "svrmodpack",
|
|
||||||
"name": "svrmodpack",
|
|
||||||
"escapedName": "svrmodpack",
|
|
||||||
"rawSpec": "",
|
|
||||||
"saveSpec": null,
|
|
||||||
"fetchSpec": "latest"
|
|
||||||
},
|
|
||||||
"_requiredBy": [
|
|
||||||
"#USER",
|
|
||||||
"/"
|
|
||||||
],
|
|
||||||
"_resolved": "https://registry.npmjs.org/svrmodpack/-/svrmodpack-1.0.0.tgz",
|
|
||||||
"_shasum": "412def1c6ff93a7a15849519411a30b3281ee822",
|
|
||||||
"_spec": "svrmodpack",
|
|
||||||
"_where": "/media/serveradmin/Server/developement",
|
|
||||||
"author": {
|
|
||||||
"name": "Dorian Niemiec",
|
|
||||||
"email": "niemiecdorian2008@gmail.com"
|
|
||||||
},
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/dorian-tech/svrmodpack/issues"
|
|
||||||
},
|
|
||||||
"bundleDependencies": false,
|
|
||||||
"deprecated": false,
|
|
||||||
"description": "DorianTech SVR.JS Mods packer/unpacker library ",
|
|
||||||
"homepage": "https://github.com/dorian-tech/svrmodpack#readme",
|
|
||||||
"license": "GPL-3.0-or-later",
|
|
||||||
"main": "index.js",
|
|
||||||
"name": "svrmodpack",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/dorian-tech/svrmodpack.git"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
|
||||||
},
|
|
||||||
"version": "1.0.0"
|
|
||||||
}
|
|
68
node_modules/tar/CHANGELOG.md
generated
vendored
|
@ -1,68 +0,0 @@
|
||||||
# Changelog
|
|
||||||
|
|
||||||
## 6.0
|
|
||||||
|
|
||||||
- Drop support for node 6 and 8
|
|
||||||
- fix symlinks and hardlinks on windows being packed with `\`-style path
|
|
||||||
targets
|
|
||||||
|
|
||||||
## 5.0
|
|
||||||
|
|
||||||
- Address unpack race conditions using path reservations
|
|
||||||
- Change large-numbers errors from TypeError to Error
|
|
||||||
- Add `TAR_*` error codes
|
|
||||||
- Raise `TAR_BAD_ARCHIVE` warning/error when there are no valid entries
|
|
||||||
found in an archive
|
|
||||||
- do not treat ignored entries as an invalid archive
|
|
||||||
- drop support for node v4
|
|
||||||
- unpack: conditionally use a file mapping to write files on Windows
|
|
||||||
- Set more portable 'mode' value in portable mode
|
|
||||||
- Set `portable` gzip option in portable mode
|
|
||||||
|
|
||||||
## 4.4
|
|
||||||
|
|
||||||
- Add 'mtime' option to tar creation to force mtime
|
|
||||||
- unpack: only reuse file fs entries if nlink = 1
|
|
||||||
- unpack: rename before unlinking files on Windows
|
|
||||||
- Fix encoding/decoding of base-256 numbers
|
|
||||||
- Use `stat` instead of `lstat` when checking CWD
|
|
||||||
- Always provide a callback to fs.close()
|
|
||||||
|
|
||||||
## 4.3
|
|
||||||
|
|
||||||
- Add 'transform' unpack option
|
|
||||||
|
|
||||||
## 4.2
|
|
||||||
|
|
||||||
- Fail when zlib fails
|
|
||||||
|
|
||||||
## 4.1
|
|
||||||
|
|
||||||
- Add noMtime flag for tar creation
|
|
||||||
|
|
||||||
## 4.0
|
|
||||||
|
|
||||||
- unpack: raise error if cwd is missing or not a dir
|
|
||||||
- pack: don't drop dots from dotfiles when prefixing
|
|
||||||
|
|
||||||
## 3.1
|
|
||||||
|
|
||||||
- Support `@file.tar` as an entry argument to copy entries from one tar
|
|
||||||
file to another.
|
|
||||||
- Add `noPax` option
|
|
||||||
- `noResume` option for tar.t
|
|
||||||
- win32: convert `>|<?:` chars to windows-friendly form
|
|
||||||
- Exclude mtime for dirs in portable mode
|
|
||||||
|
|
||||||
## 3.0
|
|
||||||
|
|
||||||
- Minipass-based implementation
|
|
||||||
- Entirely new API surface, `tar.c()`, `tar.x()` etc., much closer to
|
|
||||||
system tar semantics
|
|
||||||
- Massive performance improvement
|
|
||||||
- Require node 4.x and higher
|
|
||||||
|
|
||||||
## 0.x, 1.x, 2.x - 2011-2014
|
|
||||||
|
|
||||||
- fstream-based implementation
|
|
||||||
- slow and kinda bad, but better than npm shelling out to the system `tar`
|
|
24
node_modules/tar/lib/pack.js
generated
vendored
|
@ -79,14 +79,26 @@ const Pack = warner(class Pack extends Minipass {
|
||||||
|
|
||||||
this.portable = !!opt.portable
|
this.portable = !!opt.portable
|
||||||
this.zip = null
|
this.zip = null
|
||||||
if (opt.gzip) {
|
|
||||||
if (typeof opt.gzip !== 'object') {
|
if (opt.gzip || opt.brotli) {
|
||||||
opt.gzip = {}
|
if (opt.gzip && opt.brotli) {
|
||||||
|
throw new TypeError('gzip and brotli are mutually exclusive')
|
||||||
}
|
}
|
||||||
if (this.portable) {
|
if (opt.gzip) {
|
||||||
opt.gzip.portable = true
|
if (typeof opt.gzip !== 'object') {
|
||||||
|
opt.gzip = {}
|
||||||
|
}
|
||||||
|
if (this.portable) {
|
||||||
|
opt.gzip.portable = true
|
||||||
|
}
|
||||||
|
this.zip = new zlib.Gzip(opt.gzip)
|
||||||
|
}
|
||||||
|
if (opt.brotli) {
|
||||||
|
if (typeof opt.brotli !== 'object') {
|
||||||
|
opt.brotli = {}
|
||||||
|
}
|
||||||
|
this.zip = new zlib.BrotliCompress(opt.brotli)
|
||||||
}
|
}
|
||||||
this.zip = new zlib.Gzip(opt.gzip)
|
|
||||||
this.zip.on('data', chunk => super.write(chunk))
|
this.zip.on('data', chunk => super.write(chunk))
|
||||||
this.zip.on('end', _ => super.end())
|
this.zip.on('end', _ => super.end())
|
||||||
this.zip.on('drain', _ => this[ONDRAIN]())
|
this.zip.on('drain', _ => this[ONDRAIN]())
|
||||||
|
|
49
node_modules/tar/lib/parse.js
generated
vendored
|
@ -97,6 +97,16 @@ module.exports = warner(class Parser extends EE {
|
||||||
this.strict = !!opt.strict
|
this.strict = !!opt.strict
|
||||||
this.maxMetaEntrySize = opt.maxMetaEntrySize || maxMetaEntrySize
|
this.maxMetaEntrySize = opt.maxMetaEntrySize || maxMetaEntrySize
|
||||||
this.filter = typeof opt.filter === 'function' ? opt.filter : noop
|
this.filter = typeof opt.filter === 'function' ? opt.filter : noop
|
||||||
|
// Unlike gzip, brotli doesn't have any magic bytes to identify it
|
||||||
|
// Users need to explicitly tell us they're extracting a brotli file
|
||||||
|
// Or we infer from the file extension
|
||||||
|
const isTBR = (opt.file && (
|
||||||
|
opt.file.endsWith('.tar.br') || opt.file.endsWith('.tbr')))
|
||||||
|
// if it's a tbr file it MIGHT be brotli, but we don't know until
|
||||||
|
// we look at it and verify it's not a valid tar file.
|
||||||
|
this.brotli = !opt.gzip && opt.brotli !== undefined ? opt.brotli
|
||||||
|
: isTBR ? undefined
|
||||||
|
: false
|
||||||
|
|
||||||
// have to set this so that streams are ok piping into it
|
// have to set this so that streams are ok piping into it
|
||||||
this.writable = true
|
this.writable = true
|
||||||
|
@ -347,7 +357,9 @@ module.exports = warner(class Parser extends EE {
|
||||||
}
|
}
|
||||||
|
|
||||||
// first write, might be gzipped
|
// first write, might be gzipped
|
||||||
if (this[UNZIP] === null && chunk) {
|
const needSniff = this[UNZIP] === null ||
|
||||||
|
this.brotli === undefined && this[UNZIP] === false
|
||||||
|
if (needSniff && chunk) {
|
||||||
if (this[BUFFER]) {
|
if (this[BUFFER]) {
|
||||||
chunk = Buffer.concat([this[BUFFER], chunk])
|
chunk = Buffer.concat([this[BUFFER], chunk])
|
||||||
this[BUFFER] = null
|
this[BUFFER] = null
|
||||||
|
@ -356,15 +368,45 @@ module.exports = warner(class Parser extends EE {
|
||||||
this[BUFFER] = chunk
|
this[BUFFER] = chunk
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// look for gzip header
|
||||||
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
||||||
if (chunk[i] !== gzipHeader[i]) {
|
if (chunk[i] !== gzipHeader[i]) {
|
||||||
this[UNZIP] = false
|
this[UNZIP] = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this[UNZIP] === null) {
|
|
||||||
|
const maybeBrotli = this.brotli === undefined
|
||||||
|
if (this[UNZIP] === false && maybeBrotli) {
|
||||||
|
// read the first header to see if it's a valid tar file. If so,
|
||||||
|
// we can safely assume that it's not actually brotli, despite the
|
||||||
|
// .tbr or .tar.br file extension.
|
||||||
|
// if we ended before getting a full chunk, yes, def brotli
|
||||||
|
if (chunk.length < 512) {
|
||||||
|
if (this[ENDED]) {
|
||||||
|
this.brotli = true
|
||||||
|
} else {
|
||||||
|
this[BUFFER] = chunk
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// if it's tar, it's pretty reliably not brotli, chances of
|
||||||
|
// that happening are astronomical.
|
||||||
|
try {
|
||||||
|
new Header(chunk.slice(0, 512))
|
||||||
|
this.brotli = false
|
||||||
|
} catch (_) {
|
||||||
|
this.brotli = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this[UNZIP] === null || (this[UNZIP] === false && this.brotli)) {
|
||||||
const ended = this[ENDED]
|
const ended = this[ENDED]
|
||||||
this[ENDED] = false
|
this[ENDED] = false
|
||||||
this[UNZIP] = new zlib.Unzip()
|
this[UNZIP] = this[UNZIP] === null
|
||||||
|
? new zlib.Unzip()
|
||||||
|
: new zlib.BrotliDecompress()
|
||||||
this[UNZIP].on('data', chunk => this[CONSUMECHUNK](chunk))
|
this[UNZIP].on('data', chunk => this[CONSUMECHUNK](chunk))
|
||||||
this[UNZIP].on('error', er => this.abort(er))
|
this[UNZIP].on('error', er => this.abort(er))
|
||||||
this[UNZIP].on('end', _ => {
|
this[UNZIP].on('end', _ => {
|
||||||
|
@ -502,6 +544,7 @@ module.exports = warner(class Parser extends EE {
|
||||||
this[UNZIP].end(chunk)
|
this[UNZIP].end(chunk)
|
||||||
} else {
|
} else {
|
||||||
this[ENDED] = true
|
this[ENDED] = true
|
||||||
|
if (this.brotli === undefined) chunk = chunk || Buffer.alloc(0)
|
||||||
this.write(chunk)
|
this.write(chunk)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
node_modules/tar/lib/replace.js
generated
vendored
|
@ -23,7 +23,7 @@ module.exports = (opt_, files, cb) => {
|
||||||
throw new TypeError('file is required')
|
throw new TypeError('file is required')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt.gzip) {
|
if (opt.gzip || opt.brotli || opt.file.endsWith('.br') || opt.file.endsWith('.tbr')) {
|
||||||
throw new TypeError('cannot append to compressed archives')
|
throw new TypeError('cannot append to compressed archives')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
node_modules/tar/lib/update.js
generated
vendored
|
@ -13,7 +13,7 @@ module.exports = (opt_, files, cb) => {
|
||||||
throw new TypeError('file is required')
|
throw new TypeError('file is required')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt.gzip) {
|
if (opt.gzip || opt.brotli || opt.file.endsWith('.br') || opt.file.endsWith('.tbr')) {
|
||||||
throw new TypeError('cannot append to compressed archives')
|
throw new TypeError('cannot append to compressed archives')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
63
node_modules/tar/package.json
generated
vendored
|
@ -1,35 +1,17 @@
|
||||||
{
|
{
|
||||||
"_from": "tar",
|
"author": "GitHub Inc.",
|
||||||
"_id": "tar@6.1.15",
|
"name": "tar",
|
||||||
"_inBundle": false,
|
"description": "tar for node",
|
||||||
"_integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
|
"version": "6.2.0",
|
||||||
"_location": "/tar",
|
"repository": {
|
||||||
"_phantomChildren": {},
|
"type": "git",
|
||||||
"_requested": {
|
"url": "https://github.com/isaacs/node-tar.git"
|
||||||
"type": "tag",
|
|
||||||
"registry": true,
|
|
||||||
"raw": "tar",
|
|
||||||
"name": "tar",
|
|
||||||
"escapedName": "tar",
|
|
||||||
"rawSpec": "",
|
|
||||||
"saveSpec": null,
|
|
||||||
"fetchSpec": "latest"
|
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"scripts": {
|
||||||
"#USER",
|
"genparse": "node scripts/generate-parse-fixtures.js",
|
||||||
"/"
|
"snap": "tap",
|
||||||
],
|
"test": "tap"
|
||||||
"_resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
|
|
||||||
"_shasum": "c9738b0b98845a3b344d334b8fa3041aaba53a69",
|
|
||||||
"_spec": "tar",
|
|
||||||
"_where": "/home/ubuntu/fix",
|
|
||||||
"author": {
|
|
||||||
"name": "GitHub Inc."
|
|
||||||
},
|
},
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/isaacs/node-tar/issues"
|
|
||||||
},
|
|
||||||
"bundleDependencies": false,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chownr": "^2.0.0",
|
"chownr": "^2.0.0",
|
||||||
"fs-minipass": "^2.0.0",
|
"fs-minipass": "^2.0.0",
|
||||||
|
@ -38,8 +20,6 @@
|
||||||
"mkdirp": "^1.0.3",
|
"mkdirp": "^1.0.3",
|
||||||
"yallist": "^4.0.0"
|
"yallist": "^4.0.0"
|
||||||
},
|
},
|
||||||
"deprecated": false,
|
|
||||||
"description": "tar for node",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@npmcli/eslint-config": "^4.0.0",
|
"@npmcli/eslint-config": "^4.0.0",
|
||||||
"@npmcli/template-oss": "4.11.0",
|
"@npmcli/template-oss": "4.11.0",
|
||||||
|
@ -51,6 +31,7 @@
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"tap": "^16.0.1"
|
"tap": "^16.0.1"
|
||||||
},
|
},
|
||||||
|
"license": "ISC",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
},
|
},
|
||||||
|
@ -59,23 +40,6 @@
|
||||||
"lib/",
|
"lib/",
|
||||||
"index.js"
|
"index.js"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/isaacs/node-tar#readme",
|
|
||||||
"license": "ISC",
|
|
||||||
"name": "tar",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/isaacs/node-tar.git"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"genparse": "node scripts/generate-parse-fixtures.js",
|
|
||||||
"lint": "eslint \"**/*.js\"",
|
|
||||||
"lintfix": "npm run lint -- --fix",
|
|
||||||
"postlint": "template-oss-check",
|
|
||||||
"posttest": "npm run lint",
|
|
||||||
"snap": "tap",
|
|
||||||
"template-oss-apply": "template-oss-apply --force",
|
|
||||||
"test": "tap"
|
|
||||||
},
|
|
||||||
"tap": {
|
"tap": {
|
||||||
"coverage-map": "map.js",
|
"coverage-map": "map.js",
|
||||||
"timeout": 0,
|
"timeout": 0,
|
||||||
|
@ -102,6 +66,5 @@
|
||||||
"16.x",
|
"16.x",
|
||||||
"18.x"
|
"18.x"
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"version": "6.1.15"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
// origHref - Original request URL without query (before URL rewriting)
|
// origHref - Original request URL without query (before URL rewriting)
|
||||||
// redirect - Method to redirect.
|
// redirect - Method to redirect.
|
||||||
// parsePostData - Method to parse POST data.
|
// parsePostData - Method to parse POST data.
|
||||||
|
// authUser - Authenticated HTTP user.
|
||||||
//Along with elements added by this implementation:
|
//Along with elements added by this implementation:
|
||||||
// disableEndElseCallbackExecute - Determines execution of elseCallback on end
|
// disableEndElseCallbackExecute - Determines execution of elseCallback on end
|
||||||
// filterHeaders - Removes invalid HTTP/1.0 headers
|
// filterHeaders - Removes invalid HTTP/1.0 headers
|
||||||
|
|
5640
svr.js
158
svrpasswd.js
|
@ -7,15 +7,15 @@ try {
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
var crypto = {};
|
var crypto = {};
|
||||||
crypto.__disabled__ = null;
|
crypto.__disabled__ = null;
|
||||||
crypto.createHash = function(type) {
|
crypto.createHash = function (type) {
|
||||||
if (type != "SHA256") throw new Error("Hash type not supported!");
|
if (type != "SHA256") throw new Error("Hash type not supported!");
|
||||||
return {
|
return {
|
||||||
msg: "",
|
msg: "",
|
||||||
update: function(a) {
|
update: function (a) {
|
||||||
this.msg = a;
|
this.msg = a;
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
digest: function(ty) {
|
digest: function (ty) {
|
||||||
var chrsz = 8;
|
var chrsz = 8;
|
||||||
var hexcase = 0;
|
var hexcase = 0;
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!crypto.randomInt) {
|
if (!crypto.randomInt) {
|
||||||
crypto.randomInt = function(min, max) {
|
crypto.randomInt = function (min, max) {
|
||||||
return Math.round(Math.random() * (max - min)) + min;
|
return Math.round(Math.random() * (max - min)) + min;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -196,42 +196,58 @@ function saveConfig() {
|
||||||
var args = process.argv;
|
var args = process.argv;
|
||||||
var user = "";
|
var user = "";
|
||||||
var action = "change";
|
var action = "change";
|
||||||
|
var forcechange = false;
|
||||||
if (process.argv.length <= (process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1 ? 2 : 1)) args.push("-h");
|
if (process.argv.length <= (process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1 ? 2 : 1)) args.push("-h");
|
||||||
for (var i = (process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1 ? 2 : 1); i < args.length; i++) {
|
for (var i = (process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("bun") > -1 ? 2 : 1); i < args.length; i++) {
|
||||||
if (args[i] == "-h" || args[i] == "--help" || args[i] == "-?" || args[i] == "/h" || args[i] == "/?") {
|
if (args[i] == "-h" || args[i] == "--help" || args[i] == "-?" || args[i] == "/h" || args[i] == "/?") {
|
||||||
console.log("SVR.JS user tool usage:");
|
console.log("SVR.JS user tool usage:");
|
||||||
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-a|--add|-d|--delete] <username>");
|
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-x] [-a|--add|-d|--delete] <username>");
|
||||||
console.log("-h -? /h /? --help -- Displays help");
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
console.log("-a --add -- Add an user");
|
console.log("-a --add -- Add an user");
|
||||||
console.log("-d --delete -- Deletes an user");
|
console.log("-d --delete -- Deletes an user");
|
||||||
|
console.log("-x -- Changes hash algorithm");
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
} else if (args[i] == "-a" || args[i] == "--add") {
|
} else if (args[i] == "-a" || args[i] == "--add") {
|
||||||
if (action != "change") {
|
if (action != "change") {
|
||||||
console.log("Multiple actions specified.");
|
console.log("Multiple actions specified.");
|
||||||
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-a|--add|-d|--delete] <username>");
|
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-x] [-a|--add|-d|--delete] <username>");
|
||||||
console.log("-h -? /h /? --help -- Displays help");
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
console.log("-a --add -- Add an user");
|
console.log("-a --add -- Add an user");
|
||||||
console.log("-d --delete -- Deletes an user");
|
console.log("-d --delete -- Deletes an user");
|
||||||
|
console.log("-x -- Changes hash algorithm");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
action = "add";
|
action = "add";
|
||||||
} else if (args[i] == "-d" || args[i] == "--delete") {
|
} else if (args[i] == "-d" || args[i] == "--delete") {
|
||||||
if (action != "change") {
|
if (action != "change") {
|
||||||
console.log("Multiple actions specified.");
|
console.log("Multiple actions specified.");
|
||||||
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-a|--add|-d|--delete] <username>");
|
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-x] [-a|--add|-d|--delete] <username>");
|
||||||
console.log("-h -? /h /? --help -- Displays help");
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
console.log("-a --add -- Add an user");
|
console.log("-a --add -- Add an user");
|
||||||
console.log("-d --delete -- Deletes an user");
|
console.log("-d --delete -- Deletes an user");
|
||||||
|
console.log("-x -- Changes hash algorithm");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
action = "delete";
|
action = "delete";
|
||||||
} else {
|
} else if (args[i] == "-x") {
|
||||||
if (user != "") {
|
if (forcechange) {
|
||||||
console.log("Multiple users specified.");
|
console.log("Multiple -x options specified.");
|
||||||
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-a|--add|-d|--delete] <username>");
|
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-x] [-a|--add|-d|--delete] <username>");
|
||||||
console.log("-h -? /h /? --help -- Displays help");
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
console.log("-a --add -- Add an user");
|
console.log("-a --add -- Add an user");
|
||||||
console.log("-d --delete -- Deletes an user");
|
console.log("-d --delete -- Deletes an user");
|
||||||
|
console.log("-x -- Changes hash algorithm");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
forcechange = true;
|
||||||
|
} else {
|
||||||
|
if (user != "") {
|
||||||
|
console.log("Multiple users specified.");
|
||||||
|
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-x] [-a|--add|-d|--delete] <username>");
|
||||||
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
|
console.log("-a --add -- Add an user");
|
||||||
|
console.log("-d --delete -- Deletes an user");
|
||||||
|
console.log("-x -- Changes hash algorithm");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
user = args[i];
|
user = args[i];
|
||||||
|
@ -240,10 +256,11 @@ for (var i = (process.argv[0].indexOf("node") > -1 || process.argv[0].indexOf("b
|
||||||
|
|
||||||
if (user == "") {
|
if (user == "") {
|
||||||
console.log("No user specified.");
|
console.log("No user specified.");
|
||||||
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-a|--add|-d|--delete] <username>");
|
console.log("node svrpasswd.js [-h] [--help] [-?] [/h] [/?] [-x] [-a|--add|-d|--delete] <username>");
|
||||||
console.log("-h -? /h /? --help -- Displays help");
|
console.log("-h -? /h /? --help -- Displays help");
|
||||||
console.log("-a --add -- Add an user");
|
console.log("-a --add -- Add an user");
|
||||||
console.log("-d --delete -- Deletes an user");
|
console.log("-d --delete -- Deletes an user");
|
||||||
|
console.log("-x -- Changes hash algorithm");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,6 +322,43 @@ function password(callback) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function promptAlgorithms(callback, bypass, pbkdf2, scrypt) {
|
||||||
|
if (bypass) {
|
||||||
|
if (scrypt) {
|
||||||
|
callback("scrypt");
|
||||||
|
} else if(pbkdf2) {
|
||||||
|
callback("pbkdf2");
|
||||||
|
} else {
|
||||||
|
callback("sha256");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var algorithms = {
|
||||||
|
sha256: "Salted SHA256 (1 iteration) - fastest and uses least memory, but less secure",
|
||||||
|
pbkdf2: "PBKDF2 (PBKDF2-HMAC-SHA512, 36250 iterations) - more secure and uses less memory, but slower",
|
||||||
|
scrypt: "scrypt (N=2^14, r=8, p=1) - faster and more secure, but uses more memory"
|
||||||
|
}
|
||||||
|
if (!crypto.pbkdf2 || process.isBun) delete algorithms.pbkdf2;
|
||||||
|
var algorithmNames = Object.keys(algorithms);
|
||||||
|
if (algorithmNames.length < 2) callback(algorithmNames[0]);
|
||||||
|
console.log("Select password hashing algorithm. Available algorithms:");
|
||||||
|
for (var i = 0; i < algorithmNames.length; i++) {
|
||||||
|
console.log(algorithmNames[i] + " - " + algorithms[algorithmNames[i]]);
|
||||||
|
}
|
||||||
|
var rl = readline.createInterface({
|
||||||
|
input: process.stdin,
|
||||||
|
output: process.stdout,
|
||||||
|
prompt: 'Algorithm: '
|
||||||
|
});
|
||||||
|
rl.prompt();
|
||||||
|
rl.on('line', function (line) {
|
||||||
|
rl.close();
|
||||||
|
line = line.trim();
|
||||||
|
if (!algorithms[line]) callback(false);
|
||||||
|
else callback(line);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
var userindex = getUserIndex(user);
|
var userindex = getUserIndex(user);
|
||||||
if (action == "add" && userindex != -1) {
|
if (action == "add" && userindex != -1) {
|
||||||
console.log("User alerady exists.");
|
console.log("User alerady exists.");
|
||||||
|
@ -318,35 +372,71 @@ if (action == "delete") {
|
||||||
saveConfig();
|
saveConfig();
|
||||||
console.log("User deleted successfully");
|
console.log("User deleted successfully");
|
||||||
} else if (action == "add") {
|
} else if (action == "add") {
|
||||||
password(function(password) {
|
promptAlgorithms(function (algorithm) {
|
||||||
if (!password) {
|
if (!algorithm) {
|
||||||
console.log("Passwords don't match!");
|
console.log("Invalid algorithm!");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
} else {
|
} else {
|
||||||
var salt = generateSalt()
|
password(function (password) {
|
||||||
users.push({
|
if (!password) {
|
||||||
name: user,
|
console.log("Passwords don't match!");
|
||||||
pass: sha256(password + salt),
|
process.exit(1);
|
||||||
salt: salt
|
} else {
|
||||||
|
var salt = generateSalt();
|
||||||
|
var hash = "";
|
||||||
|
if (algorithm == "scrypt") {
|
||||||
|
hash = crypto.scryptSync(password, salt, 64).toString("hex");
|
||||||
|
} else if (algorithm == "pbkdf2") {
|
||||||
|
hash = crypto.pbkdf2Sync(password, salt, 36250, 64, "sha512").toString("hex");
|
||||||
|
} else {
|
||||||
|
hash = sha256(password + salt);
|
||||||
|
}
|
||||||
|
users.push({
|
||||||
|
name: user,
|
||||||
|
pass: hash,
|
||||||
|
salt: salt,
|
||||||
|
pbkdf2: (algorithm == "pbkdf2" ? true : undefined),
|
||||||
|
scrypt: (algorithm == "scrypt" ? true : undefined),
|
||||||
|
__svrpasswd_l2: true
|
||||||
|
});
|
||||||
|
saveConfig();
|
||||||
|
console.log("User added successfully");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
saveConfig();
|
|
||||||
console.log("User added successfully");
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
password(function(password) {
|
promptAlgorithms(function (algorithm) {
|
||||||
if (!password) {
|
if (!algorithm) {
|
||||||
console.log("Passwords don't match!");
|
console.log("Invalid algorithm!");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
} else {
|
} else {
|
||||||
var salt = generateSalt()
|
password(function (password) {
|
||||||
users[userindex] = {
|
if (!password) {
|
||||||
name: user,
|
console.log("Passwords don't match!");
|
||||||
pass: sha256(password + salt),
|
process.exit(1);
|
||||||
salt: salt
|
} else {
|
||||||
};
|
var salt = generateSalt();
|
||||||
saveConfig();
|
var hash = "";
|
||||||
console.log("Password changed successfully");
|
if (algorithm == "scrypt") {
|
||||||
|
hash = crypto.scryptSync(password, salt, 64).toString("hex");
|
||||||
|
} else if (algorithm == "pbkdf2") {
|
||||||
|
hash = crypto.pbkdf2Sync(password, salt, 36250, 64, "sha512").toString("hex");
|
||||||
|
} else {
|
||||||
|
hash = sha256(password + salt);
|
||||||
|
}
|
||||||
|
users[userindex] = {
|
||||||
|
name: user,
|
||||||
|
pass: hash,
|
||||||
|
salt: salt,
|
||||||
|
pbkdf2: (algorithm == "pbkdf2" ? true : undefined),
|
||||||
|
scrypt: (algorithm == "scrypt" ? true : undefined),
|
||||||
|
__svrpasswd_l2: true
|
||||||
|
};
|
||||||
|
saveConfig();
|
||||||
|
console.log("Password changed successfully");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
}, (users[userindex].__svrpasswd_l2 && !forcechange), users[userindex].pbkdf2, users[userindex].scrypt);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
Copyright © 2020 DorianTech S.A.
|
Copyright © 2020-2024 SVR.JS
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
19
tests.html
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SVR.JS 3.4.42 Tests</title>
|
<title>SVR.JS 3.14.16 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,28 +12,21 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>SVR.JS 3.4.42 Tests</h1>
|
<h1>SVR.JS 3.14.16 Tests</h1>
|
||||||
<h2>Directory</h2>
|
<h2>Directory (without trailing slash)</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>
|
||||||
<iframe src="/testdir?query=value" width="50%" height="300px"></iframe>
|
<iframe src="/testdir/?query=value" width="50%" height="300px"></iframe>
|
||||||
<h2>Directory (personalized)</h2>
|
<h2>Directory (personalized)</h2>
|
||||||
<iframe src="/testdir/.personalized" width="50%" height="300px"></iframe>
|
<iframe src="/testdir/.personalized" width="50%" height="300px"></iframe>
|
||||||
<h2>404 Error</h2>
|
<h2>404 Error</h2>
|
||||||
<iframe src="/tfhgfhggf" width="50%" height="300px"></iframe>
|
<iframe src="/tfhgfhggf" width="50%" height="300px"></iframe>
|
||||||
<!--
|
|
||||||
THIS TEST IS NO LONGER APPLICABLE
|
|
||||||
<h2>// Path (500 Error Test)</h2>
|
|
||||||
<iframe src="//" width="50%" height="300px"></iframe>
|
|
||||||
-->
|
|
||||||
<h2>500 Error</h2>
|
|
||||||
<iframe src="/invoke500.svr" width="50%" height="300px"></iframe>
|
|
||||||
<h2>Server Side Javascript</h2>
|
<h2>Server Side Javascript</h2>
|
||||||
<iframe src="/hello.svr" width="50%" height="300px"></iframe>
|
<iframe src="/hello.svr" width="50%" height="300px"></iframe>
|
||||||
<h2>Proxy test</h2>
|
<h2>Proxy test</h2>
|
||||||
<iframe src="/proxy.svr/this/hello.svr" width="50%" height="300px" id="proxy"></iframe>
|
<iframe src="/proxy.svr/this/hello.svr" width="50%" height="300px" id="proxy"></iframe>
|
||||||
<h2>URL rewriting test (/invoke500/aprilfools => /invoke500.svr?aprilfools)</h2>
|
<h2>URL rewriting test (/testdir_rewritten => /testdir)</h2>
|
||||||
<iframe src="/invoke500/aprilfools" width="50%" height="300px"></iframe>
|
<iframe src="/testdir_rewritten" width="50%" height="300px"></iframe>
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
<img src="/powered.png" />
|
<img src="/powered.png" />
|
||||||
|
|