/home/techb158/balavpn.abdallabala.com/node_modules/uri-js/dist/esnext/schemes
NameSizeModeActions
http.d.ts1080666editdlrm
http.js9590666editdlrm
http.js.map8410666editdlrm
https.d.ts1080666editdlrm
https.js2120666editdlrm
https.js.map3120666editdlrm
mailto.d.ts3590666editdlrm
mailto.js77460666editdlrm
mailto.js.map72090666editdlrm
urn-uuid.d.ts2790666editdlrm
urn-uuid.js8680666editdlrm
urn-uuid.js.map8320666editdlrm
urn.d.ts3240666editdlrm
urn.js20500666editdlrm
urn.js.map19390666editdlrm
ws.d.ts2280666editdlrm
ws.js16590666editdlrm
ws.js.map16100666editdlrm
wss.d.ts1080666editdlrm
wss.js1980666editdlrm
wss.js.map3070666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/uri-js/dist/esnext/schemes/ws.js (1659B)
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