@capacitor/android
Advanced tools
Comparing version 6.0.0-rc.2 to 6.0.0
@@ -112,2 +112,8 @@ | ||
} | ||
else if (body instanceof URLSearchParams) { | ||
return { | ||
data: body.toString(), | ||
type: 'text', | ||
}; | ||
} | ||
else if (body instanceof FormData) { | ||
@@ -496,7 +502,7 @@ const formData = await convertFormData(body); | ||
} | ||
if (!(options === null || options === void 0 ? void 0 : options.method) || | ||
options.method.toLocaleUpperCase() === 'GET' || | ||
options.method.toLocaleUpperCase() === 'HEAD' || | ||
options.method.toLocaleUpperCase() === 'OPTIONS' || | ||
options.method.toLocaleUpperCase() === 'TRACE') { | ||
const { method } = request; | ||
if (method.toLocaleUpperCase() === 'GET' || | ||
method.toLocaleUpperCase() === 'HEAD' || | ||
method.toLocaleUpperCase() === 'OPTIONS' || | ||
method.toLocaleUpperCase() === 'TRACE') { | ||
if (typeof resource === 'string') { | ||
@@ -513,3 +519,3 @@ return await win.CapacitorWebFetch(createProxyUrl(resource, win), options); | ||
try { | ||
const { body, method } = request; | ||
const { body } = request; | ||
const optionHeaders = Object.fromEntries(request.headers.entries()); | ||
@@ -516,0 +522,0 @@ const { data: requestData, type, headers, } = await convertBody((options === null || options === void 0 ? void 0 : options.body) || body || undefined, optionHeaders['Content-Type'] || optionHeaders['content-type']); |
{ | ||
"name": "@capacitor/android", | ||
"version": "6.0.0-rc.2", | ||
"version": "6.0.0", | ||
"description": "Capacitor: Cross-platform apps with JavaScript and the web", | ||
@@ -26,3 +26,3 @@ "homepage": "https://capacitorjs.com", | ||
"peerDependencies": { | ||
"@capacitor/core": "^6.0.0-rc.2" | ||
"@capacitor/core": "^6.0.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
427896
1013
0