@capacitor/ios
Advanced tools
Comparing version 6.0.0-nightly-20240314T150455.0 to 6.0.0-nightly-20240315T150451.0
@@ -114,9 +114,5 @@ | ||
const formData = await convertFormData(body); | ||
const boundary = `${Date.now()}`; | ||
return { | ||
data: formData, | ||
type: 'formData', | ||
headers: { | ||
'Content-Type': `multipart/form-data; boundary=--${boundary}`, | ||
}, | ||
}; | ||
@@ -508,5 +504,9 @@ } | ||
options.method.toLocaleUpperCase() === 'TRACE') { | ||
const modifiedResource = createProxyUrl(resource.toString(), win); | ||
const response = await win.CapacitorWebFetch(modifiedResource, options); | ||
return response; | ||
if (typeof resource === 'string') { | ||
return await win.CapacitorWebFetch(createProxyUrl(resource, win), options); | ||
} | ||
else if (resource instanceof Request) { | ||
const modifiedRequest = new Request(createProxyUrl(resource.url, win), resource); | ||
return await win.CapacitorWebFetch(modifiedRequest, options); | ||
} | ||
} | ||
@@ -513,0 +513,0 @@ const tag = `CapacitorHttp fetch ${Date.now()} ${resource}`; |
{ | ||
"name": "@capacitor/ios", | ||
"version": "6.0.0-nightly-20240314T150455.0", | ||
"version": "6.0.0-nightly-20240315T150451.0", | ||
"description": "Capacitor: Cross-platform apps with JavaScript and the web", | ||
@@ -29,3 +29,3 @@ "homepage": "https://capacitorjs.com", | ||
"peerDependencies": { | ||
"@capacitor/core": "^6.0.0-nightly-20240314T150455.0" | ||
"@capacitor/core": "^6.0.0-nightly-20240315T150451.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
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
375458