Current Path: > > lib > node_modules > npm > node_modules > uri-js > dist > esnext > schemes
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
http.d.ts | File | 108 bytes | March 10 2021 14:36:39. | |
http.js | File | 959 bytes | March 10 2021 14:36:39. | |
http.js.map | File | 841 bytes | March 10 2021 14:36:39. | |
https.d.ts | File | 108 bytes | March 10 2021 14:36:39. | |
https.js | File | 212 bytes | March 10 2021 14:36:39. | |
https.js.map | File | 312 bytes | March 10 2021 14:36:39. | |
mailto.d.ts | File | 359 bytes | March 10 2021 14:36:39. | |
mailto.js | File | 7746 bytes | March 10 2021 14:36:39. | |
mailto.js.map | File | 7209 bytes | March 10 2021 14:36:39. | |
urn-uuid.d.ts | File | 279 bytes | March 10 2021 14:36:39. | |
urn-uuid.js | File | 868 bytes | March 10 2021 14:36:39. | |
urn-uuid.js.map | File | 832 bytes | March 10 2021 14:36:39. | |
urn.d.ts | File | 324 bytes | March 10 2021 14:36:39. | |
urn.js | File | 2050 bytes | March 10 2021 14:36:39. | |
urn.js.map | File | 1939 bytes | March 10 2021 14:36:39. | |
ws.d.ts | File | 228 bytes | March 10 2021 14:36:39. | |
ws.js | File | 1659 bytes | March 10 2021 14:36:39. | |
ws.js.map | File | 1610 bytes | March 10 2021 14:36:39. | |
wss.d.ts | File | 108 bytes | March 10 2021 14:36:39. | |
wss.js | File | 198 bytes | March 10 2021 14:36:39. | |
wss.js.map | File | 307 bytes | March 10 2021 14:36:39. |
function isSecure(wsComponents) { return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss"; } //RFC 6455 const handler = { scheme: "ws", domainHost: true, parse: function (components, options) { const wsComponents = components; //indicate if the secure flag is set wsComponents.secure = isSecure(wsComponents); //construct resouce name wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : ''); wsComponents.path = undefined; wsComponents.query = undefined; return wsComponents; }, serialize: function (wsComponents, options) { //normalize the default port if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") { wsComponents.port = undefined; } //ensure scheme matches secure flag if (typeof wsComponents.secure === 'boolean') { wsComponents.scheme = (wsComponents.secure ? 'wss' : 'ws'); wsComponents.secure = undefined; } //reconstruct path from resource name if (wsComponents.resourceName) { const [path, query] = wsComponents.resourceName.split('?'); wsComponents.path = (path && path !== '/' ? path : undefined); wsComponents.query = query; wsComponents.resourceName = undefined; } //forbid fragment component wsComponents.fragment = undefined; return wsComponents; } }; export default handler; //# sourceMappingURL=ws.js.map
SILENT KILLER Tool