@scalar/snippetz 0.2.13 → 0.2.15

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 (104) hide show
  1. package/dist/httpsnippet-lite/esm/helpers/code-builder.d.ts.map +1 -1
  2. package/dist/httpsnippet-lite/esm/helpers/code-builder.js +0 -1
  3. package/dist/httpsnippet-lite/esm/helpers/escape.d.ts.map +1 -1
  4. package/dist/httpsnippet-lite/esm/helpers/escape.js +0 -1
  5. package/dist/httpsnippet-lite/esm/helpers/form-data.d.ts.map +1 -1
  6. package/dist/httpsnippet-lite/esm/helpers/headers.d.ts.map +1 -1
  7. package/dist/httpsnippet-lite/esm/helpers/headers.js +0 -1
  8. package/dist/httpsnippet-lite/esm/helpers/reducer.d.ts.map +1 -1
  9. package/dist/httpsnippet-lite/esm/helpers/shell.d.ts.map +1 -1
  10. package/dist/httpsnippet-lite/esm/helpers/shell.js +0 -1
  11. package/dist/httpsnippet-lite/esm/helpers/url.d.ts.map +1 -1
  12. package/dist/httpsnippet-lite/esm/helpers/utils.d.ts.map +1 -1
  13. package/dist/httpsnippet-lite/esm/targets/c/libcurl/client.d.ts.map +1 -1
  14. package/dist/httpsnippet-lite/esm/targets/c/libcurl/client.js +0 -1
  15. package/dist/httpsnippet-lite/esm/targets/c/target.d.ts.map +1 -1
  16. package/dist/httpsnippet-lite/esm/targets/clojure/clj_http/client.d.ts.map +1 -1
  17. package/dist/httpsnippet-lite/esm/targets/clojure/clj_http/client.js +0 -1
  18. package/dist/httpsnippet-lite/esm/targets/clojure/target.d.ts.map +1 -1
  19. package/dist/httpsnippet-lite/esm/targets/csharp/httpclient/client.d.ts.map +1 -1
  20. package/dist/httpsnippet-lite/esm/targets/csharp/httpclient/client.js +0 -1
  21. package/dist/httpsnippet-lite/esm/targets/csharp/restsharp/client.d.ts.map +1 -1
  22. package/dist/httpsnippet-lite/esm/targets/csharp/restsharp/client.js +0 -1
  23. package/dist/httpsnippet-lite/esm/targets/csharp/target.d.ts.map +1 -1
  24. package/dist/httpsnippet-lite/esm/targets/go/native/client.d.ts.map +1 -1
  25. package/dist/httpsnippet-lite/esm/targets/go/native/client.js +0 -1
  26. package/dist/httpsnippet-lite/esm/targets/java/asynchttp/client.d.ts.map +1 -1
  27. package/dist/httpsnippet-lite/esm/targets/java/asynchttp/client.js +0 -1
  28. package/dist/httpsnippet-lite/esm/targets/java/nethttp/client.d.ts.map +1 -1
  29. package/dist/httpsnippet-lite/esm/targets/java/nethttp/client.js +0 -1
  30. package/dist/httpsnippet-lite/esm/targets/java/okhttp/client.d.ts.map +1 -1
  31. package/dist/httpsnippet-lite/esm/targets/java/okhttp/client.js +0 -1
  32. package/dist/httpsnippet-lite/esm/targets/java/target.d.ts.map +1 -1
  33. package/dist/httpsnippet-lite/esm/targets/java/unirest/client.d.ts.map +1 -1
  34. package/dist/httpsnippet-lite/esm/targets/java/unirest/client.js +0 -1
  35. package/dist/httpsnippet-lite/esm/targets/javascript/axios/client.d.ts.map +1 -1
  36. package/dist/httpsnippet-lite/esm/targets/javascript/axios/client.js +0 -1
  37. package/dist/httpsnippet-lite/esm/targets/javascript/fetch/client.d.ts.map +1 -1
  38. package/dist/httpsnippet-lite/esm/targets/javascript/jquery/client.d.ts.map +1 -1
  39. package/dist/httpsnippet-lite/esm/targets/javascript/jquery/client.js +0 -1
  40. package/dist/httpsnippet-lite/esm/targets/javascript/target.d.ts.map +1 -1
  41. package/dist/httpsnippet-lite/esm/targets/javascript/xhr/client.d.ts.map +1 -1
  42. package/dist/httpsnippet-lite/esm/targets/javascript/xhr/client.js +0 -1
  43. package/dist/httpsnippet-lite/esm/targets/kotlin/okhttp/client.d.ts.map +1 -1
  44. package/dist/httpsnippet-lite/esm/targets/kotlin/okhttp/client.js +0 -1
  45. package/dist/httpsnippet-lite/esm/targets/kotlin/target.d.ts.map +1 -1
  46. package/dist/httpsnippet-lite/esm/targets/node/axios/client.d.ts.map +1 -1
  47. package/dist/httpsnippet-lite/esm/targets/node/axios/client.js +0 -1
  48. package/dist/httpsnippet-lite/esm/targets/node/fetch/client.d.ts.map +1 -1
  49. package/dist/httpsnippet-lite/esm/targets/node/native/client.d.ts.map +1 -1
  50. package/dist/httpsnippet-lite/esm/targets/node/request/client.d.ts.map +1 -1
  51. package/dist/httpsnippet-lite/esm/targets/node/target.d.ts.map +1 -1
  52. package/dist/httpsnippet-lite/esm/targets/node/unirest/client.d.ts.map +1 -1
  53. package/dist/httpsnippet-lite/esm/targets/objc/helpers.d.ts.map +1 -1
  54. package/dist/httpsnippet-lite/esm/targets/objc/helpers.js +0 -1
  55. package/dist/httpsnippet-lite/esm/targets/objc/nsurlsession/client.d.ts.map +1 -1
  56. package/dist/httpsnippet-lite/esm/targets/objc/nsurlsession/client.js +0 -1
  57. package/dist/httpsnippet-lite/esm/targets/objc/target.d.ts.map +1 -1
  58. package/dist/httpsnippet-lite/esm/targets/ocaml/cohttp/client.d.ts.map +1 -1
  59. package/dist/httpsnippet-lite/esm/targets/ocaml/cohttp/client.js +0 -1
  60. package/dist/httpsnippet-lite/esm/targets/ocaml/target.d.ts.map +1 -1
  61. package/dist/httpsnippet-lite/esm/targets/php/curl/client.d.ts.map +1 -1
  62. package/dist/httpsnippet-lite/esm/targets/php/curl/client.js +0 -1
  63. package/dist/httpsnippet-lite/esm/targets/php/guzzle/client.d.ts.map +1 -1
  64. package/dist/httpsnippet-lite/esm/targets/php/guzzle/client.js +0 -1
  65. package/dist/httpsnippet-lite/esm/targets/php/helpers.d.ts.map +1 -1
  66. package/dist/httpsnippet-lite/esm/targets/php/helpers.js +0 -1
  67. package/dist/httpsnippet-lite/esm/targets/php/http1/client.d.ts.map +1 -1
  68. package/dist/httpsnippet-lite/esm/targets/php/http2/client.d.ts.map +1 -1
  69. package/dist/httpsnippet-lite/esm/targets/php/target.d.ts.map +1 -1
  70. package/dist/httpsnippet-lite/esm/targets/powershell/common.d.ts.map +1 -1
  71. package/dist/httpsnippet-lite/esm/targets/powershell/common.js +0 -1
  72. package/dist/httpsnippet-lite/esm/targets/powershell/restmethod/client.d.ts.map +1 -1
  73. package/dist/httpsnippet-lite/esm/targets/powershell/restmethod/client.js +0 -1
  74. package/dist/httpsnippet-lite/esm/targets/powershell/target.d.ts.map +1 -1
  75. package/dist/httpsnippet-lite/esm/targets/powershell/webrequest/client.d.ts.map +1 -1
  76. package/dist/httpsnippet-lite/esm/targets/powershell/webrequest/client.js +0 -1
  77. package/dist/httpsnippet-lite/esm/targets/python/helpers.d.ts.map +1 -1
  78. package/dist/httpsnippet-lite/esm/targets/python/helpers.js +0 -1
  79. package/dist/httpsnippet-lite/esm/targets/python/python3/client.d.ts.map +1 -1
  80. package/dist/httpsnippet-lite/esm/targets/python/python3/client.js +0 -1
  81. package/dist/httpsnippet-lite/esm/targets/python/requests/client.d.ts.map +1 -1
  82. package/dist/httpsnippet-lite/esm/targets/python/requests/client.js +0 -1
  83. package/dist/httpsnippet-lite/esm/targets/python/target.d.ts.map +1 -1
  84. package/dist/httpsnippet-lite/esm/targets/r/httr/client.d.ts.map +1 -1
  85. package/dist/httpsnippet-lite/esm/targets/r/httr/client.js +0 -1
  86. package/dist/httpsnippet-lite/esm/targets/r/target.d.ts.map +1 -1
  87. package/dist/httpsnippet-lite/esm/targets/ruby/native/client.d.ts.map +1 -1
  88. package/dist/httpsnippet-lite/esm/targets/ruby/native/client.js +0 -1
  89. package/dist/httpsnippet-lite/esm/targets/ruby/target.d.ts.map +1 -1
  90. package/dist/httpsnippet-lite/esm/targets/shell/curl/client.d.ts.map +1 -1
  91. package/dist/httpsnippet-lite/esm/targets/shell/httpie/client.d.ts.map +1 -1
  92. package/dist/httpsnippet-lite/esm/targets/shell/httpie/client.js +0 -1
  93. package/dist/httpsnippet-lite/esm/targets/shell/target.d.ts.map +1 -1
  94. package/dist/httpsnippet-lite/esm/targets/shell/wget/client.d.ts.map +1 -1
  95. package/dist/httpsnippet-lite/esm/targets/shell/wget/client.js +0 -1
  96. package/dist/httpsnippet-lite/esm/targets/swift/helpers.d.ts.map +1 -1
  97. package/dist/httpsnippet-lite/esm/targets/swift/helpers.js +0 -1
  98. package/dist/httpsnippet-lite/esm/targets/swift/nsurlsession/client.d.ts.map +1 -1
  99. package/dist/httpsnippet-lite/esm/targets/swift/nsurlsession/client.js +0 -1
  100. package/dist/httpsnippet-lite/esm/targets/swift/target.d.ts.map +1 -1
  101. package/dist/utils/convertWithHttpSnippetLite.d.ts +2 -0
  102. package/dist/utils/convertWithHttpSnippetLite.d.ts.map +1 -1
  103. package/dist/utils/convertWithHttpSnippetLite.js +11 -0
  104. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"code-builder.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/code-builder.ts"],"names":[],"mappings":"AAIA,qBAAa,WAAW;IACtB;;;OAGG;gBACS,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK;CAqDlC"}
1
+ {"version":3,"file":"code-builder.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/code-builder.ts"],"names":[],"mappings":"AAGA,qBAAa,WAAW;IACtB;;;OAGG;gBACS,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK;CAqDlC"}
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
1
  // @ts-nocheck
3
2
  const DEFAULT_INDENTATION_CHARACTER = '';
4
3
  const DEFAULT_LINE_JOIN = '\n';
@@ -1 +1 @@
1
- {"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/escape.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAK,UAmClD;AACD;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,wBACO,CAAA;AACzC;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,wBACO,CAAA"}
1
+ {"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/escape.ts"],"names":[],"mappings":"AACA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,QAAQ,KAAA,EAAE,OAAO,KAAK,UAmClD;AACD;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,wBACO,CAAA;AACzC;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,wBACO,CAAA"}
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
1
  // @ts-nocheck
3
2
  /**
4
3
  * Escape characters within a value to make it safe to insert directly into a
@@ -1 +1 @@
1
- {"version":3,"file":"form-data.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/form-data.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,MAAM,0BAMiB,CAAA;AAapC,eAAO,MAAM,gBAAgB,kEAW5B,CAAA"}
1
+ {"version":3,"file":"form-data.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/form-data.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,MAAM,0BAMiB,CAAA;AAapC,eAAO,MAAM,gBAAgB,kEAW5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/headers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,aAAa,iDAGvB,CAAA;AACH;;GAEG;AACH,eAAO,MAAM,SAAS,kCAMrB,CAAA;AACD;;GAEG;AACH,eAAO,MAAM,SAAS,sCACiB,CAAA;AAQvC;;GAEG;AACH,eAAO,MAAM,cAAc,4BAC2B,CAAA"}
1
+ {"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/headers.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,aAAa,iDAGvB,CAAA;AACH;;GAEG;AACH,eAAO,MAAM,SAAS,kCAMrB,CAAA;AACD;;GAEG;AACH,eAAO,MAAM,SAAS,sCACiB,CAAA;AAQvC;;GAEG;AACH,eAAO,MAAM,cAAc,4BAC2B,CAAA"}
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
1
  // @ts-nocheck
3
2
  /**
4
3
  * Given a headers object retrieve a specific header out of it via a case-insensitive key.
@@ -1 +1 @@
1
- {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/reducer.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,sCAiBnB,CAAA"}
1
+ {"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/reducer.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,sCAiBnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/shell.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,KAAK,4BAQjB,CAAA;AACD,eAAO,MAAM,MAAM,qBACgC,CAAA"}
1
+ {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/shell.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,eAAO,MAAM,KAAK,4BAQjB,CAAA;AACD,eAAO,MAAM,MAAM,qBACgC,CAAA"}
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
1
  // @ts-nocheck
3
2
  /**
4
3
  * Use 'strong quoting' using single quotes so that we only need to deal with nested single quote characters.
@@ -1 +1 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/url.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,GAAG,KAAA,mBAUjC;AACD,qBAAa,WAAY,SAAQ,GAAG;IAClC,IAAI,IAAI,WAEP;CACF"}
1
+ {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/url.ts"],"names":[],"mappings":"AACA,wBAAgB,cAAc,CAAC,GAAG,KAAA,mBAUjC;AACD,qBAAa,WAAY,SAAQ,GAAG;IAClC,IAAI,IAAI,WAEP;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,aAMxB,CAAA;AACL,eAAO,MAAM,OAAO,wBAOnB,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/httpsnippet-lite/esm/helpers/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,aAMxB,CAAA;AACL,eAAO,MAAM,OAAO,wBAOnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/c/libcurl/client.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;CA2CnB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/c/libcurl/client.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;CA2CnB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  const libcurl = {
7
6
  info: {
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/c/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;CAUb,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/c/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;CAUb,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/clojure/clj_http/client.ts"],"names":[],"mappings":"AAwFA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAqGpB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/clojure/clj_http/client.ts"],"names":[],"mappings":"AAuFA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAqGpB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { getHeaderName, getHeader } from '../../../helpers/headers.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/clojure/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAUnB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/clojure/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAUnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/csharp/httpclient/client.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAoJtB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/csharp/httpclient/client.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAoJtB,CAAA"}
@@ -2,7 +2,6 @@ import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
  import { getHeader } from '../../../helpers/headers.js';
4
4
 
5
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
5
  // @ts-nocheck
7
6
  const getDecompressionMethods = (allHeaders) => {
8
7
  let acceptEncodings = getHeader(allHeaders, 'accept-encoding');
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/csharp/restsharp/client.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CA4CrB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/csharp/restsharp/client.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CA4CrB,CAAA"}
@@ -2,7 +2,6 @@ import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
  import { getHeader } from '../../../helpers/headers.js';
4
4
 
5
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
5
  // @ts-nocheck
7
6
  const restsharp = {
8
7
  info: {
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/csharp/target.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWlB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/csharp/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/go/native/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAkIlB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/go/native/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAkIlB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/asynchttp/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAiCrB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/asynchttp/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAiCrB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/nethttp/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAoCnB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/nethttp/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAoCnB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/okhttp/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA0DlB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/okhttp/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA0DlB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/java/target.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAahB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/java/target.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAahB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/unirest/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAiCnB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/java/unirest/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAiCnB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/axios/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAgFjB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/axios/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAgFjB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import stringifyObject from 'stringify-object';
2
2
  import { CodeBuilder } from '../../../helpers/code-builder.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/fetch/client.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CA8FjB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/fetch/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,KAAK;;;;;;;;;;;;;CA6FjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/jquery/client.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA4ElB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/jquery/client.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA4ElB,CAAA"}
@@ -2,7 +2,6 @@ import stringifyObject from 'stringify-object';
2
2
  import { CodeBuilder } from '../../../helpers/code-builder.js';
3
3
  import { hasHeader, getHeader, getHeaderName } from '../../../helpers/headers.js';
4
4
 
5
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
5
  // @ts-nocheck
7
6
  /**
8
7
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/javascript/target.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAatB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/javascript/target.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAatB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/xhr/client.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,GAAG;;;;;;;;;;;;;CA+Ef,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/javascript/xhr/client.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,GAAG;;;;;;;;;;;;;CA+Ef,CAAA"}
@@ -3,7 +3,6 @@ import { CodeBuilder } from '../../../helpers/code-builder.js';
3
3
  import { escapeForSingleQuotes } from '../../../helpers/escape.js';
4
4
  import { hasHeader, getHeader, getHeaderName } from '../../../helpers/headers.js';
5
5
 
6
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7
6
  // @ts-nocheck
8
7
  /**
9
8
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/kotlin/okhttp/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA0DlB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/kotlin/okhttp/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CA0DlB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/kotlin/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAUlB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/kotlin/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAUlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/axios/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAsEjB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/axios/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAsEjB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import stringifyObject from 'stringify-object';
2
2
  import { CodeBuilder } from '../../../helpers/code-builder.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/fetch/client.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CA6HjB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/fetch/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CA4HjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/native/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAmElB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/native/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAmElB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/request/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAqGnB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/request/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAqGnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/node/target.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAchB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/node/target.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAchB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/unirest/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAiHnB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/node/unirest/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CAiHnB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/objc/helpers.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,mEAOzB,CAAA;AACD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,uCA2BjC,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/objc/helpers.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,mEAOzB,CAAA;AACD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,uCA2BjC,CAAA"}
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
1
  // @ts-nocheck
3
2
  /**
4
3
  * Create a string corresponding to a valid declaration and initialization of an Objective-C object literal.
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/objc/nsurlsession/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAwKxB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/objc/nsurlsession/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAwKxB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { nsDeclaration } from '../helpers.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/objc/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;CAUhB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/objc/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;CAUhB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/ocaml/cohttp/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAyDlB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/ocaml/cohttp/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAyDlB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/ocaml/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/ocaml/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/curl/client.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;CAkIhB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/curl/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;CAkIhB,CAAA"}
@@ -2,7 +2,6 @@ import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
  import { convertType } from '../helpers.js';
4
4
 
5
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
5
  // @ts-nocheck
7
6
  /**
8
7
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/guzzle/client.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CA0HlB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/guzzle/client.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CA0HlB,CAAA"}
@@ -3,7 +3,6 @@ import { escapeForSingleQuotes } from '../../../helpers/escape.js';
3
3
  import { hasHeader, getHeader, getHeaderName } from '../../../helpers/headers.js';
4
4
  import { convertType } from '../helpers.js';
5
5
 
6
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7
6
  // @ts-nocheck
8
7
  /**
9
8
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/php/helpers.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,iDAgCvB,CAAA;AACD,eAAO,MAAM,gBAAgB,UA4B5B,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/php/helpers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,iDAgCvB,CAAA;AACD,eAAO,MAAM,gBAAgB,UA4B5B,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import { escapeString } from '../../helpers/escape.js';
2
2
 
3
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
3
  // @ts-nocheck
5
4
  const convertType = (obj, indent, lastIndent) => {
6
5
  lastIndent = lastIndent || '';
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/http1/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;CAmFjB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/http1/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;CAmFjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/http2/client.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;CAgIjB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/php/http2/client.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;CAgIjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/php/target.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaf,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/php/target.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaf,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/powershell/common.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB;;;;;;;;SA4DrC,CAAA"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/powershell/common.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;;;;;;;;SA4DrC,CAAA"}
@@ -2,7 +2,6 @@ import { CodeBuilder } from '../../helpers/code-builder.js';
2
2
  import { escapeString } from '../../helpers/escape.js';
3
3
  import { getHeader } from '../../helpers/headers.js';
4
4
 
5
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
5
  // @ts-nocheck
7
6
  const generatePowershellConvert = (command) => {
8
7
  const convert = ({ method, headersObj, cookies, uriObj, fullUrl, postData, allHeaders, }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/powershell/restmethod/client.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAQtB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/powershell/restmethod/client.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAQtB,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import { generatePowershellConvert } from '../common.js';
2
2
 
3
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
3
  // @ts-nocheck
5
4
  const restmethod = {
6
5
  info: {
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/powershell/target.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWtB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/powershell/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWtB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/powershell/webrequest/client.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAQtB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/powershell/webrequest/client.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;CAQtB,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import { generatePowershellConvert } from '../common.js';
2
2
 
3
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
3
  // @ts-nocheck
5
4
  const webrequest = {
6
5
  info: {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/python/helpers.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,kDA+CjC,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/python/helpers.ts"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,kDA+CjC,CAAA"}
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
1
  // @ts-nocheck
3
2
  /**
4
3
  * Create a string corresponding to a Dictionary or Array literal representation with pretty option
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/python/python3/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CA+EnB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/python/python3/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;CA+EnB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/python/requests/client.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAqJpB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/python/requests/client.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAqJpB,CAAA"}
@@ -3,7 +3,6 @@ import { escapeForDoubleQuotes } from '../../../helpers/escape.js';
3
3
  import { getHeaderName } from '../../../helpers/headers.js';
4
4
  import { literalRepresentation } from '../helpers.js';
5
5
 
6
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7
6
  // @ts-nocheck
8
7
  /**
9
8
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/python/target.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWlB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/python/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWlB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/r/httr/client.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;CAoHhB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/r/httr/client.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;CAoHhB,CAAA"}
@@ -2,7 +2,6 @@ import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForDoubleQuotes, escapeForSingleQuotes } from '../../../helpers/escape.js';
3
3
  import { getHeader } from '../../../helpers/headers.js';
4
4
 
5
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
5
  // @ts-nocheck
7
6
  /**
8
7
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/r/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAUb,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/r/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAUb,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/ruby/native/client.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAqElB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/ruby/native/client.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAqElB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { escapeForSingleQuotes } from '../../../helpers/escape.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  const native = {
7
6
  info: {
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/ruby/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAUhB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/ruby/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAUhB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/shell/curl/client.ts"],"names":[],"mappings":"AA4CA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;CAsJhB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/shell/curl/client.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;CAsJhB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/shell/httpie/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CA0GlB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/shell/httpie/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;CA0GlB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { quote } from '../../../helpers/shell.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/shell/target.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYjB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/shell/target.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/shell/wget/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAqChB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/shell/wget/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI;;;;;;;;;;;;;CAqChB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { quote, escape } from '../../../helpers/shell.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/swift/helpers.ts"],"names":[],"mappings":"AAqBA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,mDAC6B,CAAA;AAC5D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,kDA0CjC,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/swift/helpers.ts"],"names":[],"mappings":"AAoBA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,mDAC6B,CAAA;AAC5D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,kDA0CjC,CAAA"}
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
1
  // @ts-nocheck
3
2
  /**
4
3
  * Create an string of given length filled with blank spaces
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/swift/nsurlsession/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAgJxB,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../../src/httpsnippet-lite/esm/targets/swift/nsurlsession/client.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAgJxB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { CodeBuilder } from '../../../helpers/code-builder.js';
2
2
  import { literalDeclaration } from '../helpers.js';
3
3
 
4
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
5
4
  // @ts-nocheck
6
5
  /**
7
6
  * @description
@@ -1 +1 @@
1
- {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/swift/target.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAA"}
1
+ {"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../../src/httpsnippet-lite/esm/targets/swift/target.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { HarRequest } from '../types/index.js';
2
2
  /**
3
3
  * Takes a httpsnippet-lite client and converts the given request to a code example with it.
4
+ *
5
+ * @deprecated This a temporary wrapper around httpsnippet-lite. Let’s write all the generators ourselves instead.
4
6
  */
5
7
  export declare function convertWithHttpSnippetLite(client: Record<string, unknown>, request?: Partial<HarRequest>): string;
6
8
  //# sourceMappingURL=convertWithHttpSnippetLite.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"convertWithHttpSnippetLite.d.ts","sourceRoot":"","sources":["../../src/utils/convertWithHttpSnippetLite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;GAEG;AACH,wBAAgB,0BAA0B,CAExC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GAC5B,MAAM,CA+GR"}
1
+ {"version":3,"file":"convertWithHttpSnippetLite.d.ts","sourceRoot":"","sources":["../../src/utils/convertWithHttpSnippetLite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;GAIG;AACH,wBAAgB,0BAA0B,CAExC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,GAC5B,MAAM,CAwHR"}
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Takes a httpsnippet-lite client and converts the given request to a code example with it.
3
+ *
4
+ * @deprecated This a temporary wrapper around httpsnippet-lite. Let’s write all the generators ourselves instead.
3
5
  */
4
6
  function convertWithHttpSnippetLite(
5
7
  // Couldn’t find the proper type, there was always a mismatch.
@@ -86,6 +88,15 @@ client, request) {
86
88
  queryObj: queryObj ?? {},
87
89
  cookiesObj: cookiesObj ?? {},
88
90
  };
91
+ // If the request is a JSON request, parse the text as JSON
92
+ if (convertRequest.postData?.mimeType === 'application/json' && convertRequest.postData?.text) {
93
+ try {
94
+ convertRequest.postData.jsonObj = JSON.parse(convertRequest.postData.text);
95
+ }
96
+ catch (error) {
97
+ console.error('Error parsing JSON:', error);
98
+ }
99
+ }
89
100
  if (typeof client.convert === 'function') {
90
101
  return client.convert(convertRequest);
91
102
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "url": "git+https://github.com/scalar/scalar.git",
10
10
  "directory": "packages/snippetz"
11
11
  },
12
- "version": "0.2.13",
12
+ "version": "0.2.15",
13
13
  "engines": {
14
14
  "node": ">=18"
15
15
  },
@@ -218,7 +218,7 @@
218
218
  "devDependencies": {
219
219
  "@types/har-format": "^1.2.15",
220
220
  "vite": "^5.4.10",
221
- "@scalar/build-tooling": "0.1.13"
221
+ "@scalar/build-tooling": "0.1.15"
222
222
  },
223
223
  "scripts": {
224
224
  "build": "scalar-build-rollup",