@capacitor-plus/ios 8.3.4 → 8.3.5

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.
@@ -48,14 +48,14 @@ var nativeBridge = (function (exports) {
48
48
  const newFormData = [];
49
49
  for (const pair of formData.entries()) {
50
50
  const [key, value] = pair;
51
- if (value instanceof File) {
51
+ if (value instanceof Blob) {
52
52
  const base64File = await readFileAsBase64(value);
53
53
  newFormData.push({
54
54
  key,
55
55
  value: base64File,
56
56
  type: 'base64File',
57
57
  contentType: value.type,
58
- fileName: value.name,
58
+ fileName: value.name || 'blob',
59
59
  });
60
60
  }
61
61
  else {
@@ -128,7 +128,7 @@ var nativeBridge = (function (exports) {
128
128
  type: 'formData',
129
129
  };
130
130
  }
131
- else if (body instanceof File) {
131
+ else if (body instanceof Blob) {
132
132
  const fileData = await readFileAsBase64(body);
133
133
  return {
134
134
  data: fileData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor-plus/ios",
3
- "version": "8.3.4",
3
+ "version": "8.3.5",
4
4
  "description": "Capacitor+: Enhanced Capacitor with automated upstream sync - Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capgo.app/docs/plugins/capacitor-plus/",
6
6
  "author": "Capgo Team <support@capgo.app> (https://capgo.app)",