@capacitor/ios 7.6.0 → 7.6.1

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.
@@ -10,6 +10,7 @@
10
10
  - (NSString * _Nullable)getString:(NSString * _Nonnull)key defaultValue:(NSString * _Nullable)defaultValue;
11
11
  - (NSDate * _Nullable)getDate:(NSString * _Nonnull)key defaultValue:(NSDate * _Nullable)defaultValue;
12
12
  - (NSDictionary * _Nullable)getObject:(NSString * _Nonnull)key defaultValue:(NSDictionary * _Nullable)defaultValue;
13
+ - (NSArray * _Nullable)getArray:(NSString * _Nonnull)key defaultValue:(NSArray * _Nullable)defaultValue;
13
14
  - (NSNumber * _Nullable)getNumber:(NSString * _Nonnull)key defaultValue:(NSNumber * _Nullable)defaultValue;
14
15
  - (BOOL)getBool:(NSString * _Nonnull)key defaultValue:(BOOL)defaultValue;
15
16
  @end
@@ -29,6 +29,14 @@
29
29
  return defaultValue;
30
30
  }
31
31
 
32
+ - (NSArray * _Nullable)getArray:(NSString * _Nonnull)key defaultValue:(NSArray * _Nullable)defaultValue; {
33
+ id value = [[self dictionaryRepresentation] objectForKey:key];
34
+ if (value != nil && [value isKindOfClass:[NSArray class]]) {
35
+ return value;
36
+ }
37
+ return defaultValue;
38
+ }
39
+
32
40
  - (NSNumber * _Nullable)getNumber:(NSString * _Nonnull)key defaultValue:(NSNumber * _Nullable)defaultValue {
33
41
  id value = [[self dictionaryRepresentation] objectForKey:key];
34
42
  if (value != nil && [value isKindOfClass:[NSNumber class]]) {
@@ -499,6 +499,10 @@ var nativeBridge = (function (exports) {
499
499
  if (typeof resource === 'string') {
500
500
  return await win.CapacitorWebFetch(createProxyUrl(resource, win), options);
501
501
  }
502
+ else if (resource instanceof URL) {
503
+ const modifiedURL = new URL(createProxyUrl(resource.toString(), win));
504
+ return await win.CapacitorWebFetch(modifiedURL, options);
505
+ }
502
506
  else if (resource instanceof Request) {
503
507
  const modifiedRequest = new Request(createProxyUrl(resource.url, win), resource);
504
508
  return await win.CapacitorWebFetch(modifiedRequest, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/ios",
3
- "version": "7.6.0",
3
+ "version": "7.6.1",
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)",