@capacitor/ios 5.7.3 → 5.7.4

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.
@@ -145,13 +145,10 @@ var nativeBridge = (function (exports) {
145
145
  const proxyUrl = new URL(url);
146
146
  const bridgeUrl = new URL((_b = (_a = win.Capacitor) === null || _a === void 0 ? void 0 : _a.getServerUrl()) !== null && _b !== void 0 ? _b : '');
147
147
  const isHttps = proxyUrl.protocol === 'https:';
148
- const originalHost = encodeURIComponent(proxyUrl.host);
149
- const originalPathname = proxyUrl.pathname;
150
- proxyUrl.protocol = bridgeUrl.protocol;
151
- proxyUrl.hostname = bridgeUrl.hostname;
152
- proxyUrl.port = bridgeUrl.port;
153
- proxyUrl.pathname = `${isHttps ? CAPACITOR_HTTPS_INTERCEPTOR : CAPACITOR_HTTP_INTERCEPTOR}/${originalHost}${originalPathname}`;
154
- return proxyUrl.toString();
148
+ bridgeUrl.search = proxyUrl.search;
149
+ bridgeUrl.hash = proxyUrl.hash;
150
+ bridgeUrl.pathname = `${isHttps ? CAPACITOR_HTTPS_INTERCEPTOR : CAPACITOR_HTTP_INTERCEPTOR}/${encodeURIComponent(proxyUrl.host)}${proxyUrl.pathname}`;
151
+ return bridgeUrl.toString();
155
152
  };
156
153
  const initBridge = (w) => {
157
154
  const getPlatformId = (win) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/ios",
3
- "version": "5.7.3",
3
+ "version": "5.7.4",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",