@cappitolian/http-local-server-swifter 0.0.28 → 0.0.29

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.
@@ -35,10 +35,11 @@ public class HttpLocalServerSwifterPlugin: CAPPlugin, CAPBridgedPlugin, HttpLoca
35
35
  return
36
36
  }
37
37
 
38
- // dictionaryRepresentation already returns [String: Any] no cast needed.
38
+ let responseData = call.dictionaryRepresentation as? [String: Any] ?? [:]
39
+
39
40
  HttpLocalServerSwifter.handleJsResponse(
40
41
  requestId: requestId,
41
- responseData: call.dictionaryRepresentation
42
+ responseData: responseData
42
43
  )
43
44
  call.resolve()
44
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cappitolian/http-local-server-swifter",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "Runs a local HTTP server on your device, accessible over LAN. Supports connect, disconnect, GET, and POST methods with IP and port discovery.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",