@scalar/snippetz 0.2.7 → 0.2.9

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.
Files changed (318) hide show
  1. package/dist/clients.d.ts +6 -0
  2. package/dist/clients.d.ts.map +1 -0
  3. package/dist/clients.js +150 -0
  4. package/dist/httpsnippet-lite/esm/helpers/code-builder.d.ts +8 -0
  5. package/dist/httpsnippet-lite/esm/helpers/code-builder.d.ts.map +1 -0
  6. package/dist/httpsnippet-lite/esm/helpers/code-builder.js +62 -0
  7. package/dist/httpsnippet-lite/esm/helpers/escape.d.ts +29 -0
  8. package/dist/httpsnippet-lite/esm/helpers/escape.d.ts.map +1 -0
  9. package/dist/httpsnippet-lite/esm/helpers/escape.js +74 -0
  10. package/dist/httpsnippet-lite/esm/helpers/form-data.d.ts +3 -0
  11. package/dist/httpsnippet-lite/esm/helpers/form-data.d.ts.map +1 -0
  12. package/dist/httpsnippet-lite/esm/helpers/headers.d.ts +17 -0
  13. package/dist/httpsnippet-lite/esm/helpers/headers.d.ts.map +1 -0
  14. package/dist/httpsnippet-lite/esm/helpers/headers.js +22 -0
  15. package/dist/httpsnippet-lite/esm/helpers/reducer.d.ts +2 -0
  16. package/dist/httpsnippet-lite/esm/helpers/reducer.d.ts.map +1 -0
  17. package/dist/httpsnippet-lite/esm/helpers/shell.d.ts +7 -0
  18. package/dist/httpsnippet-lite/esm/helpers/shell.d.ts.map +1 -0
  19. package/dist/httpsnippet-lite/esm/helpers/shell.js +18 -0
  20. package/dist/httpsnippet-lite/esm/helpers/url.d.ts +5 -0
  21. package/dist/httpsnippet-lite/esm/helpers/url.d.ts.map +1 -0
  22. package/dist/httpsnippet-lite/esm/helpers/utils.d.ts +3 -0
  23. package/dist/httpsnippet-lite/esm/helpers/utils.d.ts.map +1 -0
  24. package/dist/httpsnippet-lite/esm/httpsnippet.d.ts +10 -0
  25. package/dist/httpsnippet-lite/esm/httpsnippet.d.ts.map +1 -0
  26. package/dist/httpsnippet-lite/esm/targets/c/libcurl/client.d.ts +16 -0
  27. package/dist/httpsnippet-lite/esm/targets/c/libcurl/client.d.ts.map +1 -0
  28. package/dist/httpsnippet-lite/esm/targets/c/libcurl/client.js +45 -0
  29. package/dist/httpsnippet-lite/esm/targets/c/target.d.ts +26 -0
  30. package/dist/httpsnippet-lite/esm/targets/c/target.d.ts.map +1 -0
  31. package/dist/httpsnippet-lite/esm/targets/clojure/clj_http/client.d.ts +16 -0
  32. package/dist/httpsnippet-lite/esm/targets/clojure/clj_http/client.d.ts.map +1 -0
  33. package/dist/httpsnippet-lite/esm/targets/clojure/clj_http/client.js +189 -0
  34. package/dist/httpsnippet-lite/esm/targets/clojure/target.d.ts +26 -0
  35. package/dist/httpsnippet-lite/esm/targets/clojure/target.d.ts.map +1 -0
  36. package/dist/httpsnippet-lite/esm/targets/csharp/httpclient/client.d.ts +15 -0
  37. package/dist/httpsnippet-lite/esm/targets/csharp/httpclient/client.d.ts.map +1 -0
  38. package/dist/httpsnippet-lite/esm/targets/csharp/httpclient/client.js +169 -0
  39. package/dist/httpsnippet-lite/esm/targets/csharp/restsharp/client.d.ts +17 -0
  40. package/dist/httpsnippet-lite/esm/targets/csharp/restsharp/client.d.ts.map +1 -0
  41. package/dist/httpsnippet-lite/esm/targets/csharp/restsharp/client.js +49 -0
  42. package/dist/httpsnippet-lite/esm/targets/csharp/target.d.ts +41 -0
  43. package/dist/httpsnippet-lite/esm/targets/csharp/target.d.ts.map +1 -0
  44. package/dist/httpsnippet-lite/esm/targets/go/native/client.d.ts +15 -0
  45. package/dist/httpsnippet-lite/esm/targets/go/native/client.d.ts.map +1 -0
  46. package/dist/httpsnippet-lite/esm/targets/go/native/client.js +124 -0
  47. package/dist/httpsnippet-lite/esm/targets/go/target.d.ts +25 -0
  48. package/dist/httpsnippet-lite/esm/targets/go/target.d.ts.map +1 -0
  49. package/dist/httpsnippet-lite/esm/targets/http/http1.1/client.d.ts +22 -0
  50. package/dist/httpsnippet-lite/esm/targets/http/http1.1/client.d.ts.map +1 -0
  51. package/dist/httpsnippet-lite/esm/targets/http/http1.1/client.js +77 -0
  52. package/dist/httpsnippet-lite/esm/targets/http/target.d.ts +27 -0
  53. package/dist/httpsnippet-lite/esm/targets/http/target.d.ts.map +1 -0
  54. package/dist/httpsnippet-lite/esm/targets/java/asynchttp/client.d.ts +15 -0
  55. package/dist/httpsnippet-lite/esm/targets/java/asynchttp/client.d.ts.map +1 -0
  56. package/dist/httpsnippet-lite/esm/targets/java/asynchttp/client.js +47 -0
  57. package/dist/httpsnippet-lite/esm/targets/java/nethttp/client.d.ts +15 -0
  58. package/dist/httpsnippet-lite/esm/targets/java/nethttp/client.d.ts.map +1 -0
  59. package/dist/httpsnippet-lite/esm/targets/java/nethttp/client.js +46 -0
  60. package/dist/httpsnippet-lite/esm/targets/java/okhttp/client.d.ts +15 -0
  61. package/dist/httpsnippet-lite/esm/targets/java/okhttp/client.d.ts.map +1 -0
  62. package/dist/httpsnippet-lite/esm/targets/java/okhttp/client.js +73 -0
  63. package/dist/httpsnippet-lite/esm/targets/java/target.d.ts +67 -0
  64. package/dist/httpsnippet-lite/esm/targets/java/target.d.ts.map +1 -0
  65. package/dist/httpsnippet-lite/esm/targets/java/unirest/client.d.ts +15 -0
  66. package/dist/httpsnippet-lite/esm/targets/java/unirest/client.d.ts.map +1 -0
  67. package/dist/httpsnippet-lite/esm/targets/java/unirest/client.js +47 -0
  68. package/dist/httpsnippet-lite/esm/targets/javascript/axios/client.d.ts +16 -0
  69. package/dist/httpsnippet-lite/esm/targets/javascript/axios/client.d.ts.map +1 -0
  70. package/dist/httpsnippet-lite/esm/targets/javascript/axios/client.js +91 -0
  71. package/dist/httpsnippet-lite/esm/targets/javascript/fetch/client.d.ts +15 -0
  72. package/dist/httpsnippet-lite/esm/targets/javascript/fetch/client.d.ts.map +1 -0
  73. package/dist/httpsnippet-lite/esm/targets/javascript/jquery/client.d.ts +15 -0
  74. package/dist/httpsnippet-lite/esm/targets/javascript/jquery/client.d.ts.map +1 -0
  75. package/dist/httpsnippet-lite/esm/targets/javascript/jquery/client.js +88 -0
  76. package/dist/httpsnippet-lite/esm/targets/javascript/target.d.ts +68 -0
  77. package/dist/httpsnippet-lite/esm/targets/javascript/target.d.ts.map +1 -0
  78. package/dist/httpsnippet-lite/esm/targets/javascript/xhr/client.d.ts +15 -0
  79. package/dist/httpsnippet-lite/esm/targets/javascript/xhr/client.d.ts.map +1 -0
  80. package/dist/httpsnippet-lite/esm/targets/javascript/xhr/client.js +86 -0
  81. package/dist/httpsnippet-lite/esm/targets/kotlin/okhttp/client.d.ts +15 -0
  82. package/dist/httpsnippet-lite/esm/targets/kotlin/okhttp/client.d.ts.map +1 -0
  83. package/dist/httpsnippet-lite/esm/targets/kotlin/okhttp/client.js +73 -0
  84. package/dist/httpsnippet-lite/esm/targets/kotlin/target.d.ts +25 -0
  85. package/dist/httpsnippet-lite/esm/targets/kotlin/target.d.ts.map +1 -0
  86. package/dist/httpsnippet-lite/esm/targets/node/axios/client.d.ts +16 -0
  87. package/dist/httpsnippet-lite/esm/targets/node/axios/client.d.ts.map +1 -0
  88. package/dist/httpsnippet-lite/esm/targets/node/axios/client.js +83 -0
  89. package/dist/httpsnippet-lite/esm/targets/node/fetch/client.d.ts +16 -0
  90. package/dist/httpsnippet-lite/esm/targets/node/fetch/client.d.ts.map +1 -0
  91. package/dist/httpsnippet-lite/esm/targets/node/native/client.d.ts +15 -0
  92. package/dist/httpsnippet-lite/esm/targets/node/native/client.d.ts.map +1 -0
  93. package/dist/httpsnippet-lite/esm/targets/node/request/client.d.ts +17 -0
  94. package/dist/httpsnippet-lite/esm/targets/node/request/client.d.ts.map +1 -0
  95. package/dist/httpsnippet-lite/esm/targets/node/target.d.ts +87 -0
  96. package/dist/httpsnippet-lite/esm/targets/node/target.d.ts.map +1 -0
  97. package/dist/httpsnippet-lite/esm/targets/node/unirest/client.d.ts +17 -0
  98. package/dist/httpsnippet-lite/esm/targets/node/unirest/client.d.ts.map +1 -0
  99. package/dist/httpsnippet-lite/esm/targets/objc/helpers.d.ts +27 -0
  100. package/dist/httpsnippet-lite/esm/targets/objc/helpers.d.ts.map +1 -0
  101. package/dist/httpsnippet-lite/esm/targets/objc/helpers.js +58 -0
  102. package/dist/httpsnippet-lite/esm/targets/objc/nsurlsession/client.d.ts +15 -0
  103. package/dist/httpsnippet-lite/esm/targets/objc/nsurlsession/client.d.ts.map +1 -0
  104. package/dist/httpsnippet-lite/esm/targets/objc/nsurlsession/client.js +132 -0
  105. package/dist/httpsnippet-lite/esm/targets/objc/target.d.ts +25 -0
  106. package/dist/httpsnippet-lite/esm/targets/objc/target.d.ts.map +1 -0
  107. package/dist/httpsnippet-lite/esm/targets/ocaml/cohttp/client.d.ts +15 -0
  108. package/dist/httpsnippet-lite/esm/targets/ocaml/cohttp/client.d.ts.map +1 -0
  109. package/dist/httpsnippet-lite/esm/targets/ocaml/cohttp/client.js +68 -0
  110. package/dist/httpsnippet-lite/esm/targets/ocaml/target.d.ts +25 -0
  111. package/dist/httpsnippet-lite/esm/targets/ocaml/target.d.ts.map +1 -0
  112. package/dist/httpsnippet-lite/esm/targets/php/curl/client.d.ts +18 -0
  113. package/dist/httpsnippet-lite/esm/targets/php/curl/client.d.ts.map +1 -0
  114. package/dist/httpsnippet-lite/esm/targets/php/curl/client.js +134 -0
  115. package/dist/httpsnippet-lite/esm/targets/php/guzzle/client.d.ts +16 -0
  116. package/dist/httpsnippet-lite/esm/targets/php/guzzle/client.d.ts.map +1 -0
  117. package/dist/httpsnippet-lite/esm/targets/php/guzzle/client.js +126 -0
  118. package/dist/httpsnippet-lite/esm/targets/php/helpers.d.ts +3 -0
  119. package/dist/httpsnippet-lite/esm/targets/php/helpers.d.ts.map +1 -0
  120. package/dist/httpsnippet-lite/esm/targets/php/helpers.js +37 -0
  121. package/dist/httpsnippet-lite/esm/targets/php/http1/client.d.ts +17 -0
  122. package/dist/httpsnippet-lite/esm/targets/php/http1/client.d.ts.map +1 -0
  123. package/dist/httpsnippet-lite/esm/targets/php/http2/client.d.ts +17 -0
  124. package/dist/httpsnippet-lite/esm/targets/php/http2/client.d.ts.map +1 -0
  125. package/dist/httpsnippet-lite/esm/targets/php/target.d.ts +75 -0
  126. package/dist/httpsnippet-lite/esm/targets/php/target.d.ts.map +1 -0
  127. package/dist/httpsnippet-lite/esm/targets/powershell/common.d.ts +10 -0
  128. package/dist/httpsnippet-lite/esm/targets/powershell/common.d.ts.map +1 -0
  129. package/dist/httpsnippet-lite/esm/targets/powershell/common.js +53 -0
  130. package/dist/httpsnippet-lite/esm/targets/powershell/restmethod/client.d.ts +18 -0
  131. package/dist/httpsnippet-lite/esm/targets/powershell/restmethod/client.d.ts.map +1 -0
  132. package/dist/httpsnippet-lite/esm/targets/powershell/restmethod/client.js +15 -0
  133. package/dist/httpsnippet-lite/esm/targets/powershell/target.d.ts +45 -0
  134. package/dist/httpsnippet-lite/esm/targets/powershell/target.d.ts.map +1 -0
  135. package/dist/httpsnippet-lite/esm/targets/powershell/webrequest/client.d.ts +18 -0
  136. package/dist/httpsnippet-lite/esm/targets/powershell/webrequest/client.d.ts.map +1 -0
  137. package/dist/httpsnippet-lite/esm/targets/powershell/webrequest/client.js +15 -0
  138. package/dist/httpsnippet-lite/esm/targets/python/helpers.d.ts +9 -0
  139. package/dist/httpsnippet-lite/esm/targets/python/helpers.d.ts.map +1 -0
  140. package/dist/httpsnippet-lite/esm/targets/python/helpers.js +63 -0
  141. package/dist/httpsnippet-lite/esm/targets/python/python3/client.d.ts +19 -0
  142. package/dist/httpsnippet-lite/esm/targets/python/python3/client.d.ts.map +1 -0
  143. package/dist/httpsnippet-lite/esm/targets/python/python3/client.js +95 -0
  144. package/dist/httpsnippet-lite/esm/targets/python/requests/client.d.ts +16 -0
  145. package/dist/httpsnippet-lite/esm/targets/python/requests/client.d.ts.map +1 -0
  146. package/dist/httpsnippet-lite/esm/targets/python/requests/client.js +177 -0
  147. package/dist/httpsnippet-lite/esm/targets/python/target.d.ts +44 -0
  148. package/dist/httpsnippet-lite/esm/targets/python/target.d.ts.map +1 -0
  149. package/dist/httpsnippet-lite/esm/targets/r/httr/client.d.ts +17 -0
  150. package/dist/httpsnippet-lite/esm/targets/r/httr/client.d.ts.map +1 -0
  151. package/dist/httpsnippet-lite/esm/targets/r/httr/client.js +127 -0
  152. package/dist/httpsnippet-lite/esm/targets/r/target.d.ts +27 -0
  153. package/dist/httpsnippet-lite/esm/targets/r/target.d.ts.map +1 -0
  154. package/dist/httpsnippet-lite/esm/targets/ruby/native/client.d.ts +16 -0
  155. package/dist/httpsnippet-lite/esm/targets/ruby/native/client.d.ts.map +1 -0
  156. package/dist/httpsnippet-lite/esm/targets/ruby/native/client.js +72 -0
  157. package/dist/httpsnippet-lite/esm/targets/ruby/target.d.ts +26 -0
  158. package/dist/httpsnippet-lite/esm/targets/ruby/target.d.ts.map +1 -0
  159. package/dist/httpsnippet-lite/esm/targets/shell/curl/client.d.ts +17 -0
  160. package/dist/httpsnippet-lite/esm/targets/shell/curl/client.d.ts.map +1 -0
  161. package/dist/httpsnippet-lite/esm/targets/shell/httpie/client.d.ts +17 -0
  162. package/dist/httpsnippet-lite/esm/targets/shell/httpie/client.d.ts.map +1 -0
  163. package/dist/httpsnippet-lite/esm/targets/shell/httpie/client.js +118 -0
  164. package/dist/httpsnippet-lite/esm/targets/shell/target.d.ts +57 -0
  165. package/dist/httpsnippet-lite/esm/targets/shell/target.d.ts.map +1 -0
  166. package/dist/httpsnippet-lite/esm/targets/shell/wget/client.d.ts +15 -0
  167. package/dist/httpsnippet-lite/esm/targets/shell/wget/client.d.ts.map +1 -0
  168. package/dist/httpsnippet-lite/esm/targets/shell/wget/client.js +54 -0
  169. package/dist/httpsnippet-lite/esm/targets/swift/helpers.d.ts +17 -0
  170. package/dist/httpsnippet-lite/esm/targets/swift/helpers.d.ts.map +1 -0
  171. package/dist/httpsnippet-lite/esm/targets/swift/helpers.js +76 -0
  172. package/dist/httpsnippet-lite/esm/targets/swift/nsurlsession/client.d.ts +15 -0
  173. package/dist/httpsnippet-lite/esm/targets/swift/nsurlsession/client.d.ts.map +1 -0
  174. package/dist/httpsnippet-lite/esm/targets/swift/nsurlsession/client.js +137 -0
  175. package/dist/httpsnippet-lite/esm/targets/swift/target.d.ts +25 -0
  176. package/dist/httpsnippet-lite/esm/targets/swift/target.d.ts.map +1 -0
  177. package/dist/httpsnippet-lite/esm/targets/targets.d.ts +731 -0
  178. package/dist/httpsnippet-lite/esm/targets/targets.d.ts.map +1 -0
  179. package/dist/index.d.ts +1 -1
  180. package/dist/index.d.ts.map +1 -1
  181. package/dist/plugins/c/libcurl/libcurl.d.ts +1 -1
  182. package/dist/plugins/c/libcurl/libcurl.d.ts.map +1 -1
  183. package/dist/plugins/c/libcurl/libcurl.js +3 -2
  184. package/dist/plugins/clojure/clj_http/clj_http.d.ts +1 -1
  185. package/dist/plugins/clojure/clj_http/clj_http.d.ts.map +1 -1
  186. package/dist/plugins/clojure/clj_http/clj_http.js +3 -2
  187. package/dist/plugins/csharp/httpclient/httpclient.d.ts +1 -1
  188. package/dist/plugins/csharp/httpclient/httpclient.d.ts.map +1 -1
  189. package/dist/plugins/csharp/httpclient/httpclient.js +3 -2
  190. package/dist/plugins/csharp/restsharp/restsharp.d.ts +1 -1
  191. package/dist/plugins/csharp/restsharp/restsharp.d.ts.map +1 -1
  192. package/dist/plugins/csharp/restsharp/restsharp.js +3 -2
  193. package/dist/plugins/go/native/native.d.ts +1 -1
  194. package/dist/plugins/go/native/native.d.ts.map +1 -1
  195. package/dist/plugins/go/native/native.js +3 -2
  196. package/dist/plugins/http/http11/http11.d.ts +1 -1
  197. package/dist/plugins/http/http11/http11.d.ts.map +1 -1
  198. package/dist/plugins/http/http11/http11.js +3 -2
  199. package/dist/plugins/java/asynchttp/asynchttp.d.ts +1 -1
  200. package/dist/plugins/java/asynchttp/asynchttp.d.ts.map +1 -1
  201. package/dist/plugins/java/asynchttp/asynchttp.js +3 -2
  202. package/dist/plugins/java/nethttp/nethttp.d.ts +1 -1
  203. package/dist/plugins/java/nethttp/nethttp.d.ts.map +1 -1
  204. package/dist/plugins/java/nethttp/nethttp.js +3 -2
  205. package/dist/plugins/java/okhttp/okhttp.d.ts +1 -1
  206. package/dist/plugins/java/okhttp/okhttp.d.ts.map +1 -1
  207. package/dist/plugins/java/okhttp/okhttp.js +3 -2
  208. package/dist/plugins/java/unirest/unirest.d.ts +1 -1
  209. package/dist/plugins/java/unirest/unirest.d.ts.map +1 -1
  210. package/dist/plugins/java/unirest/unirest.js +3 -2
  211. package/dist/plugins/js/axios/axios.d.ts +1 -1
  212. package/dist/plugins/js/axios/axios.d.ts.map +1 -1
  213. package/dist/plugins/js/axios/axios.js +3 -2
  214. package/dist/plugins/js/fetch/fetch.d.ts +1 -1
  215. package/dist/plugins/js/fetch/fetch.d.ts.map +1 -1
  216. package/dist/plugins/js/fetch/fetch.js +3 -2
  217. package/dist/plugins/js/jquery/jquery.d.ts +1 -1
  218. package/dist/plugins/js/jquery/jquery.d.ts.map +1 -1
  219. package/dist/plugins/js/jquery/jquery.js +3 -2
  220. package/dist/plugins/js/ofetch/ofetch.d.ts +1 -1
  221. package/dist/plugins/js/ofetch/ofetch.d.ts.map +1 -1
  222. package/dist/plugins/js/ofetch/ofetch.js +3 -2
  223. package/dist/plugins/js/xhr/xhr.d.ts +1 -1
  224. package/dist/plugins/js/xhr/xhr.d.ts.map +1 -1
  225. package/dist/plugins/js/xhr/xhr.js +3 -2
  226. package/dist/plugins/kotlin/okhttp/okhttp.d.ts +1 -1
  227. package/dist/plugins/kotlin/okhttp/okhttp.d.ts.map +1 -1
  228. package/dist/plugins/kotlin/okhttp/okhttp.js +3 -2
  229. package/dist/plugins/node/axios/axios.d.ts +1 -1
  230. package/dist/plugins/node/axios/axios.d.ts.map +1 -1
  231. package/dist/plugins/node/axios/axios.js +3 -2
  232. package/dist/plugins/node/fetch/fetch.d.ts +1 -1
  233. package/dist/plugins/node/fetch/fetch.d.ts.map +1 -1
  234. package/dist/plugins/node/fetch/fetch.js +3 -2
  235. package/dist/plugins/node/ofetch/ofetch.d.ts +1 -1
  236. package/dist/plugins/node/ofetch/ofetch.d.ts.map +1 -1
  237. package/dist/plugins/node/ofetch/ofetch.js +3 -2
  238. package/dist/plugins/node/undici/undici.d.ts +1 -1
  239. package/dist/plugins/node/undici/undici.d.ts.map +1 -1
  240. package/dist/plugins/node/undici/undici.js +3 -2
  241. package/dist/plugins/objc/nsurlsession/nsurlsession.d.ts +1 -1
  242. package/dist/plugins/objc/nsurlsession/nsurlsession.d.ts.map +1 -1
  243. package/dist/plugins/objc/nsurlsession/nsurlsession.js +3 -2
  244. package/dist/plugins/ocaml/cohttp/cohttp.d.ts +1 -1
  245. package/dist/plugins/ocaml/cohttp/cohttp.d.ts.map +1 -1
  246. package/dist/plugins/ocaml/cohttp/cohttp.js +3 -2
  247. package/dist/plugins/php/curl/curl.d.ts +1 -1
  248. package/dist/plugins/php/curl/curl.d.ts.map +1 -1
  249. package/dist/plugins/php/curl/curl.js +3 -2
  250. package/dist/plugins/php/guzzle/guzzle.d.ts +1 -1
  251. package/dist/plugins/php/guzzle/guzzle.d.ts.map +1 -1
  252. package/dist/plugins/php/guzzle/guzzle.js +3 -2
  253. package/dist/plugins/powershell/restmethod/restmethod.d.ts +1 -1
  254. package/dist/plugins/powershell/restmethod/restmethod.d.ts.map +1 -1
  255. package/dist/plugins/powershell/restmethod/restmethod.js +3 -2
  256. package/dist/plugins/powershell/webrequest/webrequest.d.ts +1 -1
  257. package/dist/plugins/powershell/webrequest/webrequest.d.ts.map +1 -1
  258. package/dist/plugins/powershell/webrequest/webrequest.js +3 -2
  259. package/dist/plugins/python/python3/python3.d.ts +1 -1
  260. package/dist/plugins/python/python3/python3.d.ts.map +1 -1
  261. package/dist/plugins/python/python3/python3.js +3 -2
  262. package/dist/plugins/python/requests/requests.d.ts +1 -1
  263. package/dist/plugins/python/requests/requests.d.ts.map +1 -1
  264. package/dist/plugins/python/requests/requests.js +3 -2
  265. package/dist/plugins/r/httr/httr.d.ts +1 -1
  266. package/dist/plugins/r/httr/httr.d.ts.map +1 -1
  267. package/dist/plugins/r/httr/httr.js +3 -2
  268. package/dist/plugins/ruby/native/native.d.ts +1 -1
  269. package/dist/plugins/ruby/native/native.d.ts.map +1 -1
  270. package/dist/plugins/ruby/native/native.js +3 -2
  271. package/dist/plugins/shell/curl/curl.d.ts +1 -1
  272. package/dist/plugins/shell/curl/curl.d.ts.map +1 -1
  273. package/dist/plugins/shell/curl/curl.js +1 -0
  274. package/dist/plugins/shell/httpie/httpie.d.ts +1 -1
  275. package/dist/plugins/shell/httpie/httpie.d.ts.map +1 -1
  276. package/dist/plugins/shell/httpie/httpie.js +3 -2
  277. package/dist/plugins/shell/wget/wget.d.ts +1 -1
  278. package/dist/plugins/shell/wget/wget.d.ts.map +1 -1
  279. package/dist/plugins/shell/wget/wget.js +3 -2
  280. package/dist/plugins/swift/nsurlsession/nsurlsession.d.ts +1 -1
  281. package/dist/plugins/swift/nsurlsession/nsurlsession.d.ts.map +1 -1
  282. package/dist/plugins/swift/nsurlsession/nsurlsession.js +3 -2
  283. package/dist/snippetz.d.ts +4 -6
  284. package/dist/snippetz.d.ts.map +1 -1
  285. package/dist/snippetz.js +10 -91
  286. package/dist/{core/types.d.ts → types/index.d.ts} +15 -4
  287. package/dist/types/index.d.ts.map +1 -0
  288. package/dist/types/index.js +1 -0
  289. package/dist/types/index.test-d.d.ts +2 -0
  290. package/dist/types/index.test-d.d.ts.map +1 -0
  291. package/dist/utils/arrayToObject.d.ts.map +1 -0
  292. package/dist/utils/convertWithHttpSnippetLite.d.ts +6 -0
  293. package/dist/utils/convertWithHttpSnippetLite.d.ts.map +1 -0
  294. package/dist/utils/convertWithHttpSnippetLite.js +95 -0
  295. package/dist/utils/index.d.ts +5 -0
  296. package/dist/utils/index.d.ts.map +1 -0
  297. package/dist/utils/index.js +4 -0
  298. package/dist/utils/needsQuotes.d.ts.map +1 -0
  299. package/dist/utils/objectToString.d.ts.map +1 -0
  300. package/package.json +11 -7
  301. package/dist/core/index.d.ts +0 -5
  302. package/dist/core/index.d.ts.map +0 -1
  303. package/dist/core/index.js +0 -3
  304. package/dist/core/types.d.ts.map +0 -1
  305. package/dist/core/types.test-d.d.ts +0 -2
  306. package/dist/core/types.test-d.d.ts.map +0 -1
  307. package/dist/core/utils/arrayToObject.d.ts.map +0 -1
  308. package/dist/core/utils/convertWithHttpSnippetLite.d.ts +0 -7
  309. package/dist/core/utils/convertWithHttpSnippetLite.d.ts.map +0 -1
  310. package/dist/core/utils/convertWithHttpSnippetLite.js +0 -83
  311. package/dist/core/utils/needsQuotes.d.ts.map +0 -1
  312. package/dist/core/utils/objectToString.d.ts.map +0 -1
  313. /package/dist/{core/utils → utils}/arrayToObject.d.ts +0 -0
  314. /package/dist/{core/utils → utils}/arrayToObject.js +0 -0
  315. /package/dist/{core/utils → utils}/needsQuotes.d.ts +0 -0
  316. /package/dist/{core/utils → utils}/needsQuotes.js +0 -0
  317. /package/dist/{core/utils → utils}/objectToString.d.ts +0 -0
  318. /package/dist/{core/utils → utils}/objectToString.js +0 -0
@@ -0,0 +1,731 @@
1
+ export declare const targets: {
2
+ c: {
3
+ info: {
4
+ key: string;
5
+ title: string;
6
+ extname: string;
7
+ default: string;
8
+ };
9
+ clientsById: {
10
+ libcurl: {
11
+ info: {
12
+ key: string;
13
+ title: string;
14
+ link: string;
15
+ description: string;
16
+ };
17
+ convert: ({ method, fullUrl, headersObj, allHeaders, postData }: {
18
+ method: any;
19
+ fullUrl: any;
20
+ headersObj: any;
21
+ allHeaders: any;
22
+ postData: any;
23
+ }) => any;
24
+ };
25
+ };
26
+ };
27
+ clojure: {
28
+ info: {
29
+ key: string;
30
+ title: string;
31
+ extname: string;
32
+ default: string;
33
+ };
34
+ clientsById: {
35
+ clj_http: {
36
+ info: {
37
+ key: string;
38
+ title: string;
39
+ link: string;
40
+ description: string;
41
+ };
42
+ convert: ({ queryObj, method, postData, url, allHeaders }: {
43
+ queryObj: any;
44
+ method: any;
45
+ postData: any;
46
+ url: any;
47
+ allHeaders: any;
48
+ }, options: any) => any;
49
+ };
50
+ };
51
+ };
52
+ csharp: {
53
+ info: {
54
+ key: string;
55
+ title: string;
56
+ extname: string;
57
+ default: string;
58
+ };
59
+ clientsById: {
60
+ httpclient: {
61
+ info: {
62
+ key: string;
63
+ title: string;
64
+ link: string;
65
+ description: string;
66
+ };
67
+ convert: ({ allHeaders, postData, method, fullUrl }: {
68
+ allHeaders: any;
69
+ postData: any;
70
+ method: any;
71
+ fullUrl: any;
72
+ }, options: any) => any;
73
+ };
74
+ restsharp: {
75
+ info: {
76
+ key: string;
77
+ title: string;
78
+ link: string;
79
+ description: string;
80
+ };
81
+ convert: ({ allHeaders, method, fullUrl, headersObj, cookies, postData }: {
82
+ allHeaders: any;
83
+ method: any;
84
+ fullUrl: any;
85
+ headersObj: any;
86
+ cookies: any;
87
+ postData: any;
88
+ }) => any;
89
+ };
90
+ };
91
+ };
92
+ go: {
93
+ info: {
94
+ key: string;
95
+ title: string;
96
+ extname: string;
97
+ default: string;
98
+ };
99
+ clientsById: {
100
+ native: {
101
+ info: {
102
+ key: string;
103
+ title: string;
104
+ link: string;
105
+ description: string;
106
+ };
107
+ convert: ({ postData, method, allHeaders, fullUrl }: {
108
+ postData: any;
109
+ method: any;
110
+ allHeaders: any;
111
+ fullUrl: any;
112
+ }, options?: {}) => any;
113
+ };
114
+ };
115
+ };
116
+ http: {
117
+ info: {
118
+ key: string;
119
+ title: string;
120
+ extname: null;
121
+ default: string;
122
+ };
123
+ clientsById: {
124
+ 'http1.1': {
125
+ info: {
126
+ key: string;
127
+ title: string;
128
+ link: string;
129
+ description: string;
130
+ };
131
+ convert: ({ method, fullUrl, uriObj, httpVersion, allHeaders, postData }: {
132
+ method: any;
133
+ fullUrl: any;
134
+ uriObj: any;
135
+ httpVersion: any;
136
+ allHeaders: any;
137
+ postData: any;
138
+ }, options: any) => string;
139
+ };
140
+ };
141
+ };
142
+ java: {
143
+ info: {
144
+ key: string;
145
+ title: string;
146
+ extname: string;
147
+ default: string;
148
+ };
149
+ clientsById: {
150
+ asynchttp: {
151
+ info: {
152
+ key: string;
153
+ title: string;
154
+ link: string;
155
+ description: string;
156
+ };
157
+ convert: ({ method, allHeaders, postData, fullUrl }: {
158
+ method: any;
159
+ allHeaders: any;
160
+ postData: any;
161
+ fullUrl: any;
162
+ }, options: any) => any;
163
+ };
164
+ nethttp: {
165
+ info: {
166
+ key: string;
167
+ title: string;
168
+ link: string;
169
+ description: string;
170
+ };
171
+ convert: ({ allHeaders, fullUrl, method, postData }: {
172
+ allHeaders: any;
173
+ fullUrl: any;
174
+ method: any;
175
+ postData: any;
176
+ }, options: any) => any;
177
+ };
178
+ okhttp: {
179
+ info: {
180
+ key: string;
181
+ title: string;
182
+ link: string;
183
+ description: string;
184
+ };
185
+ convert: ({ postData, method, fullUrl, allHeaders }: {
186
+ postData: any;
187
+ method: any;
188
+ fullUrl: any;
189
+ allHeaders: any;
190
+ }, options: any) => any;
191
+ };
192
+ unirest: {
193
+ info: {
194
+ key: string;
195
+ title: string;
196
+ link: string;
197
+ description: string;
198
+ };
199
+ convert: ({ method, allHeaders, postData, fullUrl }: {
200
+ method: any;
201
+ allHeaders: any;
202
+ postData: any;
203
+ fullUrl: any;
204
+ }, options: any) => any;
205
+ };
206
+ };
207
+ };
208
+ javascript: {
209
+ info: {
210
+ key: string;
211
+ title: string;
212
+ extname: string;
213
+ default: string;
214
+ };
215
+ clientsById: {
216
+ xhr: {
217
+ info: {
218
+ key: string;
219
+ title: string;
220
+ link: string;
221
+ description: string;
222
+ };
223
+ convert: ({ postData, allHeaders, method, fullUrl }: {
224
+ postData: any;
225
+ allHeaders: any;
226
+ method: any;
227
+ fullUrl: any;
228
+ }, options: any) => any;
229
+ };
230
+ axios: {
231
+ info: {
232
+ key: string;
233
+ title: string;
234
+ link: string;
235
+ description: string;
236
+ };
237
+ convert: ({ allHeaders, method, url, queryObj, postData }: {
238
+ allHeaders: any;
239
+ method: any;
240
+ url: any;
241
+ queryObj: any;
242
+ postData: any;
243
+ }, options: any) => any;
244
+ };
245
+ fetch: {
246
+ info: {
247
+ key: string;
248
+ title: string;
249
+ link: string;
250
+ description: string;
251
+ };
252
+ convert: ({ method, allHeaders, postData, fullUrl }: {
253
+ method: any;
254
+ allHeaders: any;
255
+ postData: any;
256
+ fullUrl: any;
257
+ }, inputOpts: any) => any;
258
+ };
259
+ jquery: {
260
+ info: {
261
+ key: string;
262
+ title: string;
263
+ link: string;
264
+ description: string;
265
+ };
266
+ convert: ({ fullUrl, method, allHeaders, postData }: {
267
+ fullUrl: any;
268
+ method: any;
269
+ allHeaders: any;
270
+ postData: any;
271
+ }, options: any) => any;
272
+ };
273
+ };
274
+ };
275
+ kotlin: {
276
+ info: {
277
+ key: string;
278
+ title: string;
279
+ extname: string;
280
+ default: string;
281
+ };
282
+ clientsById: {
283
+ okhttp: {
284
+ info: {
285
+ key: string;
286
+ title: string;
287
+ link: string;
288
+ description: string;
289
+ };
290
+ convert: ({ postData, fullUrl, method, allHeaders }: {
291
+ postData: any;
292
+ fullUrl: any;
293
+ method: any;
294
+ allHeaders: any;
295
+ }, options: any) => any;
296
+ };
297
+ };
298
+ };
299
+ node: {
300
+ info: {
301
+ key: string;
302
+ title: string;
303
+ extname: string;
304
+ default: string;
305
+ };
306
+ clientsById: {
307
+ native: {
308
+ info: {
309
+ key: string;
310
+ title: string;
311
+ link: string;
312
+ description: string;
313
+ };
314
+ convert: ({ uriObj, method, allHeaders, postData }: {
315
+ uriObj: any;
316
+ method: any;
317
+ allHeaders: any;
318
+ postData: any;
319
+ }, options?: {}) => any;
320
+ };
321
+ request: {
322
+ info: {
323
+ key: string;
324
+ title: string;
325
+ link: string;
326
+ description: string;
327
+ };
328
+ convert: ({ method, url, queryObj, postData, headersObj, cookies }: {
329
+ method: any;
330
+ url: any;
331
+ queryObj: any;
332
+ postData: any;
333
+ headersObj: any;
334
+ cookies: any;
335
+ }, options: any) => any;
336
+ };
337
+ unirest: {
338
+ info: {
339
+ key: string;
340
+ title: string;
341
+ link: string;
342
+ description: string;
343
+ };
344
+ convert: ({ method, url, cookies, queryObj, postData, headersObj }: {
345
+ method: any;
346
+ url: any;
347
+ cookies: any;
348
+ queryObj: any;
349
+ postData: any;
350
+ headersObj: any;
351
+ }, options: any) => any;
352
+ };
353
+ axios: {
354
+ info: {
355
+ key: string;
356
+ title: string;
357
+ link: string;
358
+ description: string;
359
+ };
360
+ convert: ({ method, url, queryObj, allHeaders, postData }: {
361
+ method: any;
362
+ url: any;
363
+ queryObj: any;
364
+ allHeaders: any;
365
+ postData: any;
366
+ }, options: any) => any;
367
+ };
368
+ fetch: {
369
+ info: {
370
+ key: string;
371
+ title: string;
372
+ link: string;
373
+ description: string;
374
+ };
375
+ convert: ({ method, fullUrl, postData, headersObj, cookies }: {
376
+ method: any;
377
+ fullUrl: any;
378
+ postData: any;
379
+ headersObj: any;
380
+ cookies: any;
381
+ }, options: any) => any;
382
+ };
383
+ };
384
+ };
385
+ objc: {
386
+ info: {
387
+ key: string;
388
+ title: string;
389
+ extname: string;
390
+ default: string;
391
+ };
392
+ clientsById: {
393
+ nsurlsession: {
394
+ info: {
395
+ key: string;
396
+ title: string;
397
+ link: string;
398
+ description: string;
399
+ };
400
+ convert: ({ allHeaders, postData, method, fullUrl }: {
401
+ allHeaders: any;
402
+ postData: any;
403
+ method: any;
404
+ fullUrl: any;
405
+ }, options: any) => any;
406
+ };
407
+ };
408
+ };
409
+ ocaml: {
410
+ info: {
411
+ key: string;
412
+ title: string;
413
+ extname: string;
414
+ default: string;
415
+ };
416
+ clientsById: {
417
+ cohttp: {
418
+ info: {
419
+ key: string;
420
+ title: string;
421
+ link: string;
422
+ description: string;
423
+ };
424
+ convert: ({ fullUrl, allHeaders, postData, method }: {
425
+ fullUrl: any;
426
+ allHeaders: any;
427
+ postData: any;
428
+ method: any;
429
+ }, options: any) => any;
430
+ };
431
+ };
432
+ };
433
+ php: {
434
+ info: {
435
+ key: string;
436
+ title: string;
437
+ extname: string;
438
+ default: string;
439
+ };
440
+ clientsById: {
441
+ curl: {
442
+ info: {
443
+ key: string;
444
+ title: string;
445
+ link: string;
446
+ description: string;
447
+ };
448
+ convert: ({ uriObj, postData, fullUrl, method, httpVersion, cookies, headersObj }: {
449
+ uriObj: any;
450
+ postData: any;
451
+ fullUrl: any;
452
+ method: any;
453
+ httpVersion: any;
454
+ cookies: any;
455
+ headersObj: any;
456
+ }, options?: {}) => any;
457
+ };
458
+ guzzle: {
459
+ info: {
460
+ key: string;
461
+ title: string;
462
+ link: string;
463
+ description: string;
464
+ };
465
+ convert: ({ postData, fullUrl, method, cookies, headersObj }: {
466
+ postData: any;
467
+ fullUrl: any;
468
+ method: any;
469
+ cookies: any;
470
+ headersObj: any;
471
+ }, options: any) => any;
472
+ };
473
+ http1: {
474
+ info: {
475
+ key: string;
476
+ title: string;
477
+ link: string;
478
+ description: string;
479
+ };
480
+ convert: ({ method, url, postData, queryObj, headersObj, cookiesObj }: {
481
+ method: any;
482
+ url: any;
483
+ postData: any;
484
+ queryObj: any;
485
+ headersObj: any;
486
+ cookiesObj: any;
487
+ }, options?: {}) => any;
488
+ };
489
+ http2: {
490
+ info: {
491
+ key: string;
492
+ title: string;
493
+ link: string;
494
+ description: string;
495
+ };
496
+ convert: ({ postData, headersObj, method, queryObj, cookiesObj, url }: {
497
+ postData: any;
498
+ headersObj: any;
499
+ method: any;
500
+ queryObj: any;
501
+ cookiesObj: any;
502
+ url: any;
503
+ }, options?: {}) => any;
504
+ };
505
+ };
506
+ };
507
+ powershell: {
508
+ info: {
509
+ key: string;
510
+ title: string;
511
+ extname: string;
512
+ default: string;
513
+ };
514
+ clientsById: {
515
+ webrequest: {
516
+ info: {
517
+ key: string;
518
+ title: string;
519
+ link: string;
520
+ description: string;
521
+ };
522
+ convert: ({ method, headersObj, cookies, uriObj, fullUrl, postData, allHeaders, }: {
523
+ method: any;
524
+ headersObj: any;
525
+ cookies: any;
526
+ uriObj: any;
527
+ fullUrl: any;
528
+ postData: any;
529
+ allHeaders: any;
530
+ }) => any;
531
+ };
532
+ restmethod: {
533
+ info: {
534
+ key: string;
535
+ title: string;
536
+ link: string;
537
+ description: string;
538
+ };
539
+ convert: ({ method, headersObj, cookies, uriObj, fullUrl, postData, allHeaders, }: {
540
+ method: any;
541
+ headersObj: any;
542
+ cookies: any;
543
+ uriObj: any;
544
+ fullUrl: any;
545
+ postData: any;
546
+ allHeaders: any;
547
+ }) => any;
548
+ };
549
+ };
550
+ };
551
+ python: {
552
+ info: {
553
+ key: string;
554
+ title: string;
555
+ extname: string;
556
+ default: string;
557
+ };
558
+ clientsById: {
559
+ python3: {
560
+ info: {
561
+ key: string;
562
+ title: string;
563
+ link: string;
564
+ description: string;
565
+ };
566
+ convert: ({ uriObj: { path, protocol, host }, postData, allHeaders, method }: {
567
+ uriObj: {
568
+ path: any;
569
+ protocol: any;
570
+ host: any;
571
+ };
572
+ postData: any;
573
+ allHeaders: any;
574
+ method: any;
575
+ }, options?: {}) => any;
576
+ };
577
+ requests: {
578
+ info: {
579
+ key: string;
580
+ title: string;
581
+ link: string;
582
+ description: string;
583
+ };
584
+ convert: ({ queryObj, url, postData, allHeaders, method }: {
585
+ queryObj: any;
586
+ url: any;
587
+ postData: any;
588
+ allHeaders: any;
589
+ method: any;
590
+ }, options: any) => any;
591
+ };
592
+ };
593
+ };
594
+ r: {
595
+ info: {
596
+ key: string;
597
+ title: string;
598
+ extname: string;
599
+ default: string;
600
+ };
601
+ clientsById: {
602
+ httr: {
603
+ info: {
604
+ key: string;
605
+ title: string;
606
+ link: string;
607
+ description: string;
608
+ };
609
+ convert: ({ url, queryObj, queryString, postData, allHeaders, method }: {
610
+ url: any;
611
+ queryObj: any;
612
+ queryString: any;
613
+ postData: any;
614
+ allHeaders: any;
615
+ method: any;
616
+ }, options?: {}) => any;
617
+ };
618
+ };
619
+ };
620
+ ruby: {
621
+ info: {
622
+ key: string;
623
+ title: string;
624
+ extname: string;
625
+ default: string;
626
+ };
627
+ clientsById: {
628
+ native: {
629
+ info: {
630
+ key: string;
631
+ title: string;
632
+ link: string;
633
+ description: string;
634
+ };
635
+ convert: ({ uriObj, method: rawMethod, fullUrl, postData, allHeaders }: {
636
+ uriObj: any;
637
+ method: any;
638
+ fullUrl: any;
639
+ postData: any;
640
+ allHeaders: any;
641
+ }, options?: {}) => any;
642
+ };
643
+ };
644
+ };
645
+ shell: {
646
+ info: {
647
+ key: string;
648
+ title: string;
649
+ extname: string;
650
+ default: string;
651
+ };
652
+ clientsById: {
653
+ curl: {
654
+ info: {
655
+ key: string;
656
+ title: string;
657
+ link: string;
658
+ description: string;
659
+ };
660
+ convert: ({ fullUrl, method, httpVersion, headersObj, allHeaders, postData }: {
661
+ fullUrl: any;
662
+ method: any;
663
+ httpVersion: any;
664
+ headersObj: any;
665
+ allHeaders: any;
666
+ postData: any;
667
+ }, options?: {}) => any;
668
+ };
669
+ httpie: {
670
+ info: {
671
+ key: string;
672
+ title: string;
673
+ link: string;
674
+ description: string;
675
+ };
676
+ convert: ({ allHeaders, postData, queryObj, fullUrl, method, url }: {
677
+ allHeaders: any;
678
+ postData: any;
679
+ queryObj: any;
680
+ fullUrl: any;
681
+ method: any;
682
+ url: any;
683
+ }, options: any) => any;
684
+ };
685
+ wget: {
686
+ info: {
687
+ key: string;
688
+ title: string;
689
+ link: string;
690
+ description: string;
691
+ };
692
+ convert: ({ method, postData, allHeaders, fullUrl }: {
693
+ method: any;
694
+ postData: any;
695
+ allHeaders: any;
696
+ fullUrl: any;
697
+ }, options: any) => any;
698
+ };
699
+ };
700
+ };
701
+ swift: {
702
+ info: {
703
+ key: string;
704
+ title: string;
705
+ extname: string;
706
+ default: string;
707
+ };
708
+ clientsById: {
709
+ nsurlsession: {
710
+ info: {
711
+ key: string;
712
+ title: string;
713
+ link: string;
714
+ description: string;
715
+ };
716
+ convert: ({ allHeaders, postData, fullUrl, method }: {
717
+ allHeaders: any;
718
+ postData: any;
719
+ fullUrl: any;
720
+ method: any;
721
+ }, options: any) => any;
722
+ };
723
+ };
724
+ };
725
+ };
726
+ export declare const isTarget: (target: any) => boolean;
727
+ export declare function isValidTargetId(value: any): boolean;
728
+ export declare const addTarget: (target: any) => void;
729
+ export declare const isClient: (client: any) => boolean;
730
+ export declare const addTargetClient: (targetId: any, client: any) => void;
731
+ //# sourceMappingURL=targets.d.ts.map