sub-store-convert 2.44.25 → 2.44.26
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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5855,7 +5855,7 @@ function URI_Mieru() {
|
|
|
5855
5855
|
params.get(key).push(value);
|
|
5856
5856
|
}
|
|
5857
5857
|
const ports = params.get("port") || [];
|
|
5858
|
-
const protocols = params.get("protocol")
|
|
5858
|
+
const protocols = params.get("protocol") ?? params.get("transport") ?? [];
|
|
5859
5859
|
if (ports.length === 0 || ports.length !== protocols.length) {
|
|
5860
5860
|
throw new Error("Mieru URI requires matching ports and protocols");
|
|
5861
5861
|
}
|
|
@@ -5875,7 +5875,7 @@ function URI_Mieru() {
|
|
|
5875
5875
|
if (value) proxy[key] = value;
|
|
5876
5876
|
}
|
|
5877
5877
|
return ports.map((port, index) => {
|
|
5878
|
-
const transport = protocols[index];
|
|
5878
|
+
const transport = protocols[index].toUpperCase();
|
|
5879
5879
|
const [, first, last = first] = /^(\d+)(?:-(\d+))?$/.exec(port) || [];
|
|
5880
5880
|
const start = Number(first);
|
|
5881
5881
|
const end = Number(last);
|