applesauce-core 5.0.0 → 5.0.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.
@@ -61,7 +61,7 @@ export function ensureWebSocketURL(url) {
61
61
  p.protocol = "ws:";
62
62
  else if (p.protocol === "https:")
63
63
  p.protocol = "wss:";
64
- else
64
+ else if (p.protocol !== "ws:")
65
65
  p.protocol = "wss:";
66
66
  // return a string if a string was passed in
67
67
  // @ts-expect-error
@@ -74,7 +74,7 @@ export function ensureHttpURL(url) {
74
74
  p.protocol = "http:";
75
75
  else if (p.protocol === "wss:")
76
76
  p.protocol = "https:";
77
- else
77
+ else if (p.protocol !== "http:")
78
78
  p.protocol = "https:";
79
79
  // return a string if a string was passed in
80
80
  // @ts-expect-error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-core",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",