@capacitor/android 6.0.0-rc.1 → 6.0.0-rc.2
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.
|
@@ -141,13 +141,10 @@ var nativeBridge = (function (exports) {
|
|
|
141
141
|
const proxyUrl = new URL(url);
|
|
142
142
|
const bridgeUrl = new URL((_b = (_a = win.Capacitor) === null || _a === void 0 ? void 0 : _a.getServerUrl()) !== null && _b !== void 0 ? _b : '');
|
|
143
143
|
const isHttps = proxyUrl.protocol === 'https:';
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
proxyUrl.port = bridgeUrl.port;
|
|
149
|
-
proxyUrl.pathname = `${isHttps ? CAPACITOR_HTTPS_INTERCEPTOR : CAPACITOR_HTTP_INTERCEPTOR}/${originalHost}${originalPathname}`;
|
|
150
|
-
return proxyUrl.toString();
|
|
144
|
+
bridgeUrl.search = proxyUrl.search;
|
|
145
|
+
bridgeUrl.hash = proxyUrl.hash;
|
|
146
|
+
bridgeUrl.pathname = `${isHttps ? CAPACITOR_HTTPS_INTERCEPTOR : CAPACITOR_HTTP_INTERCEPTOR}/${encodeURIComponent(proxyUrl.host)}${proxyUrl.pathname}`;
|
|
147
|
+
return bridgeUrl.toString();
|
|
151
148
|
};
|
|
152
149
|
const initBridge = (w) => {
|
|
153
150
|
const getPlatformId = (win) => {
|
|
@@ -378,15 +375,15 @@ var nativeBridge = (function (exports) {
|
|
|
378
375
|
typeof c.dir === 'function');
|
|
379
376
|
};
|
|
380
377
|
const serializeConsoleMessage = (msg) => {
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
try {
|
|
379
|
+
if (typeof msg === 'object') {
|
|
383
380
|
msg = JSON.stringify(msg);
|
|
384
381
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
382
|
+
return String(msg);
|
|
383
|
+
}
|
|
384
|
+
catch (e) {
|
|
385
|
+
return '';
|
|
388
386
|
}
|
|
389
|
-
return String(msg);
|
|
390
387
|
};
|
|
391
388
|
const platform = getPlatformId(win);
|
|
392
389
|
if (platform == 'android' || platform == 'ios') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/android",
|
|
3
|
-
"version": "6.0.0-rc.
|
|
3
|
+
"version": "6.0.0-rc.2",
|
|
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)",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"verify": "./gradlew clean lint build test -b capacitor/build.gradle"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@capacitor/core": "^6.0.0-rc.
|
|
26
|
+
"@capacitor/core": "^6.0.0-rc.2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|