bare-ws 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/socket.js +4 -4
  2. package/package.json +1 -1
package/lib/socket.js CHANGED
@@ -222,10 +222,10 @@ const handshake = exports.handshake = function handshake (req, cb) {
222
222
  function defaultPort (url) {
223
223
  switch (url.protocol) {
224
224
  case 'ftp:': return 21
225
- case 'http':
226
- case 'ws': return 80
227
- case 'https':
228
- case 'wss': return 443
225
+ case 'http:':
226
+ case 'ws:': return 80
227
+ case 'https:':
228
+ case 'wss:': return 443
229
229
  }
230
230
 
231
231
  return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-ws",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "WebSocket library for JavaScript",
5
5
  "exports": {
6
6
  ".": "./index.js",