@capacitor/core 5.1.2-nightly-20230711T150546.0 → 5.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/core",
3
- "version": "5.1.2-nightly-20230711T150546.0",
3
+ "version": "5.2.0",
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)",
@@ -85,6 +85,11 @@ export interface HttpOptions {
85
85
  * (already encoded, azure/firebase testing, etc.). The default is _true_.
86
86
  */
87
87
  shouldEncodeUrlParams?: boolean;
88
+ /**
89
+ * This is used if we've had to convert the data from a JS type that needs
90
+ * special handling in the native layer
91
+ */
92
+ dataType?: 'file' | 'formData';
88
93
  }
89
94
  export interface HttpParams {
90
95
  [key: string]: string | string[];
@@ -165,3 +165,10 @@ export interface WindowCapacitor {
165
165
  };
166
166
  };
167
167
  }
168
+ export interface CapFormDataEntry {
169
+ key: string;
170
+ value: string;
171
+ type: 'base64File' | 'string';
172
+ contentType?: string;
173
+ fileName?: string;
174
+ }