Socket
Socket
Sign inDemoInstall

@capacitor/android

Package Overview
Dependencies
Maintainers
7
Versions
731
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/android - npm Package Compare versions

Comparing version 6.1.2-nightly-20240805T150452.0 to 6.1.2-nightly-20240806T150539.0

12

capacitor/src/main/assets/native-bridge.js

@@ -143,8 +143,7 @@

const CAPACITOR_HTTP_INTERCEPTOR = '/_capacitor_http_interceptor_';
const CAPACITOR_HTTPS_INTERCEPTOR = '/_capacitor_https_interceptor_';
const CAPACITOR_HTTP_INTERCEPTOR_URL_PARAM = 'u';
// TODO: export as Cap function
const isRelativeOrProxyUrl = (url) => !url ||
!(url.startsWith('http:') || url.startsWith('https:')) ||
url.indexOf(CAPACITOR_HTTP_INTERCEPTOR) > -1 ||
url.indexOf(CAPACITOR_HTTPS_INTERCEPTOR) > -1;
url.indexOf(CAPACITOR_HTTP_INTERCEPTOR) > -1;
// TODO: export as Cap function

@@ -155,8 +154,5 @@ const createProxyUrl = (url, win) => {

return url;
const proxyUrl = new URL(url);
const bridgeUrl = new URL((_b = (_a = win.Capacitor) === null || _a === void 0 ? void 0 : _a.getServerUrl()) !== null && _b !== void 0 ? _b : '');
const isHttps = proxyUrl.protocol === 'https:';
bridgeUrl.search = proxyUrl.search;
bridgeUrl.hash = proxyUrl.hash;
bridgeUrl.pathname = `${isHttps ? CAPACITOR_HTTPS_INTERCEPTOR : CAPACITOR_HTTP_INTERCEPTOR}/${encodeURIComponent(proxyUrl.host)}${proxyUrl.pathname}`;
bridgeUrl.pathname = CAPACITOR_HTTP_INTERCEPTOR;
bridgeUrl.searchParams.append(CAPACITOR_HTTP_INTERCEPTOR_URL_PARAM, url);
return bridgeUrl.toString();

@@ -163,0 +159,0 @@ };

{
"name": "@capacitor/android",
"version": "6.1.2-nightly-20240805T150452.0",
"version": "6.1.2-nightly-20240806T150539.0",
"description": "Capacitor: Cross-platform apps with JavaScript and the web",

@@ -26,3 +26,3 @@ "homepage": "https://capacitorjs.com",

"peerDependencies": {
"@capacitor/core": "^6.1.0-nightly-20240805T150452.0"
"@capacitor/core": "^6.1.0-nightly-20240806T150539.0"
},

@@ -29,0 +29,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc