polyapi-python 0.2.1.dev1__py3-none-any.whl → 0.2.1.dev3__py3-none-any.whl

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.
polyapi/webhook.py CHANGED
@@ -34,7 +34,7 @@ def {function_name}(callback, options=None):
34
34
  nonlocal options
35
35
  polyCustom = {{}}
36
36
  resp = await callback(data.get("body"), data.get("headers"), data.get("params"), polyCustom)
37
- if resp and options.get("waitForResponse"):
37
+ if options.get("waitForResponse"):
38
38
  await socket.emit('setWebhookListenerResponse', {{
39
39
  "webhookHandleID": function_id,
40
40
  "apiKey": api_key,
@@ -70,7 +70,7 @@ def {function_name}(callback, options=None):
70
70
 
71
71
  return closeEventHandler
72
72
 
73
- return asyncio.run(inner())
73
+ return asyncio.run(_inner())
74
74
  """
75
75
 
76
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyapi-python
3
- Version: 0.2.1.dev1
3
+ Version: 0.2.1.dev3
4
4
  Summary: The PolyAPI Python Client
5
5
  Author-email: Dan Fellin <dan@polyapi.io>
6
6
  License: MIT License
@@ -15,9 +15,9 @@ polyapi/server.py,sha256=mcbH8pG16fFMiFL52wdii0217ZLsznQnElAFEvXZ7IA,2211
15
15
  polyapi/typedefs.py,sha256=RZ3I6sgJm_5MuuORG1QjUE-UJy_z2WRXNdiWjEdLvQg,1371
16
16
  polyapi/utils.py,sha256=wZQrwSOst5wyoYYLoMk1DnAEbVsJ0-2YkmmDQ9gI3FY,5399
17
17
  polyapi/variables.py,sha256=d36-trnfTL_8m2NkorMiImb4O3UrJbiFV38CHxV5i0A,4200
18
- polyapi/webhook.py,sha256=fzUWzRShh602qEgi_L_6tPOsFojBGlDAb-lzdoTzJnc,2931
19
- polyapi_python-0.2.1.dev1.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
20
- polyapi_python-0.2.1.dev1.dist-info/METADATA,sha256=KFzcwNwjwyECQ93gaeoqGTJX_wq7qDWsHx93WsMDRMg,4823
21
- polyapi_python-0.2.1.dev1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
- polyapi_python-0.2.1.dev1.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
23
- polyapi_python-0.2.1.dev1.dist-info/RECORD,,
18
+ polyapi/webhook.py,sha256=A89eNnYcVpVe9doJPDLfscIhF-C7Q2AI3vu-SzGxMBg,2923
19
+ polyapi_python-0.2.1.dev3.dist-info/LICENSE,sha256=Hi0kDr56Dsy0uYIwNt4r9G7tI8x8miXRTlyvbeplCP8,1068
20
+ polyapi_python-0.2.1.dev3.dist-info/METADATA,sha256=mm79BEuWmFqxJyAg-Z5haveH5bPFrHJchf9jlKk6Wik,4823
21
+ polyapi_python-0.2.1.dev3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
22
+ polyapi_python-0.2.1.dev3.dist-info/top_level.txt,sha256=CEFllOnzowci_50RYJac-M54KD2IdAptFsayVVF_f04,8
23
+ polyapi_python-0.2.1.dev3.dist-info/RECORD,,