@st-gr/sail-proxy 0.9.2 → 0.9.3

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 (213) hide show
  1. package/bundled/gateway/node_modules/.package-lock.json +132 -83
  2. package/bundled/gateway/node_modules/axios/CHANGELOG.md +0 -42
  3. package/bundled/gateway/node_modules/axios/README.md +237 -237
  4. package/bundled/gateway/node_modules/axios/dist/axios.js +21 -113
  5. package/bundled/gateway/node_modules/axios/dist/axios.js.map +1 -0
  6. package/bundled/gateway/node_modules/axios/dist/axios.min.js +2 -2
  7. package/bundled/gateway/node_modules/axios/dist/axios.min.js.map +1 -1
  8. package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs +15 -121
  9. package/bundled/gateway/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  10. package/bundled/gateway/node_modules/axios/dist/esm/axios.js +15 -121
  11. package/bundled/gateway/node_modules/axios/dist/esm/axios.js.map +1 -0
  12. package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js +2 -2
  13. package/bundled/gateway/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  14. package/bundled/gateway/node_modules/axios/dist/node/axios.cjs +107 -249
  15. package/bundled/gateway/node_modules/axios/dist/node/axios.cjs.map +1 -0
  16. package/bundled/gateway/node_modules/axios/index.d.cts +3 -8
  17. package/bundled/gateway/node_modules/axios/index.d.ts +1 -4
  18. package/bundled/gateway/node_modules/axios/lib/adapters/fetch.js +0 -79
  19. package/bundled/gateway/node_modules/axios/lib/adapters/http.js +118 -62
  20. package/bundled/gateway/node_modules/axios/lib/core/Axios.js +0 -1
  21. package/bundled/gateway/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
  22. package/bundled/gateway/node_modules/axios/lib/defaults/transitional.js +0 -1
  23. package/bundled/gateway/node_modules/axios/lib/env/data.js +1 -1
  24. package/bundled/gateway/node_modules/axios/lib/helpers/buildURL.js +1 -1
  25. package/bundled/gateway/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
  26. package/bundled/gateway/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
  27. package/bundled/gateway/node_modules/axios/lib/helpers/toFormData.js +1 -1
  28. package/bundled/gateway/node_modules/axios/lib/utils.js +2 -23
  29. package/bundled/gateway/node_modules/axios/package.json +13 -29
  30. package/bundled/gateway/node_modules/body-parser/HISTORY.md +0 -14
  31. package/bundled/gateway/node_modules/body-parser/SECURITY.md +25 -0
  32. package/bundled/gateway/node_modules/body-parser/lib/types/json.js +5 -1
  33. package/bundled/gateway/node_modules/body-parser/lib/types/urlencoded.js +15 -7
  34. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.editorconfig +46 -0
  35. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.eslintrc +38 -0
  36. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.github/FUNDING.yml +12 -0
  37. package/bundled/gateway/node_modules/body-parser/node_modules/qs/.nycrc +13 -0
  38. package/bundled/gateway/node_modules/body-parser/node_modules/qs/CHANGELOG.md +600 -0
  39. package/bundled/gateway/node_modules/body-parser/node_modules/qs/LICENSE.md +29 -0
  40. package/bundled/gateway/node_modules/body-parser/node_modules/qs/README.md +709 -0
  41. package/bundled/gateway/node_modules/body-parser/node_modules/qs/dist/qs.js +90 -0
  42. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/formats.js +23 -0
  43. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/index.js +11 -0
  44. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/parse.js +296 -0
  45. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/stringify.js +351 -0
  46. package/bundled/gateway/node_modules/body-parser/node_modules/qs/lib/utils.js +265 -0
  47. package/bundled/gateway/node_modules/body-parser/node_modules/qs/package.json +91 -0
  48. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/empty-keys-cases.js +267 -0
  49. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/parse.js +1170 -0
  50. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/stringify.js +1298 -0
  51. package/bundled/gateway/node_modules/body-parser/node_modules/qs/test/utils.js +136 -0
  52. package/bundled/gateway/node_modules/body-parser/package.json +10 -9
  53. package/bundled/gateway/node_modules/cookie/index.js +35 -24
  54. package/bundled/gateway/node_modules/cookie/package.json +1 -1
  55. package/bundled/gateway/node_modules/cookie-signature/History.md +1 -5
  56. package/bundled/gateway/node_modules/cookie-signature/index.js +6 -6
  57. package/bundled/gateway/node_modules/cookie-signature/package.json +2 -2
  58. package/bundled/gateway/node_modules/express/History.md +0 -43
  59. package/bundled/gateway/node_modules/express/lib/response.js +0 -1
  60. package/bundled/gateway/node_modules/express/lib/utils.js +1 -2
  61. package/bundled/gateway/node_modules/express/node_modules/qs/.editorconfig +43 -0
  62. package/bundled/gateway/node_modules/express/node_modules/qs/.eslintrc +38 -0
  63. package/bundled/gateway/node_modules/express/node_modules/qs/.github/FUNDING.yml +12 -0
  64. package/bundled/gateway/node_modules/express/node_modules/qs/.nycrc +13 -0
  65. package/bundled/gateway/node_modules/express/node_modules/qs/CHANGELOG.md +546 -0
  66. package/bundled/gateway/node_modules/express/node_modules/qs/LICENSE.md +29 -0
  67. package/bundled/gateway/node_modules/express/node_modules/qs/README.md +625 -0
  68. package/bundled/gateway/node_modules/express/node_modules/qs/dist/qs.js +2054 -0
  69. package/bundled/gateway/node_modules/express/node_modules/qs/lib/formats.js +23 -0
  70. package/bundled/gateway/node_modules/express/node_modules/qs/lib/index.js +11 -0
  71. package/bundled/gateway/node_modules/express/node_modules/qs/lib/parse.js +263 -0
  72. package/bundled/gateway/node_modules/express/node_modules/qs/lib/stringify.js +326 -0
  73. package/bundled/gateway/node_modules/express/node_modules/qs/lib/utils.js +252 -0
  74. package/bundled/gateway/node_modules/express/node_modules/qs/package.json +77 -0
  75. package/bundled/gateway/node_modules/express/node_modules/qs/test/parse.js +855 -0
  76. package/bundled/gateway/node_modules/express/node_modules/qs/test/stringify.js +909 -0
  77. package/bundled/gateway/node_modules/express/node_modules/qs/test/utils.js +136 -0
  78. package/bundled/gateway/node_modules/express/package.json +17 -21
  79. package/bundled/gateway/node_modules/finalhandler/HISTORY.md +0 -21
  80. package/bundled/gateway/node_modules/finalhandler/README.md +2 -2
  81. package/bundled/gateway/node_modules/finalhandler/index.js +2 -7
  82. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
  83. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
  84. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
  85. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
  86. package/bundled/gateway/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
  87. package/bundled/gateway/node_modules/finalhandler/package.json +9 -10
  88. package/bundled/gateway/node_modules/http-errors/HISTORY.md +0 -6
  89. package/bundled/gateway/node_modules/http-errors/index.js +3 -4
  90. package/bundled/gateway/node_modules/http-errors/package.json +8 -12
  91. package/bundled/gateway/node_modules/qs/CHANGELOG.md +0 -16
  92. package/bundled/gateway/node_modules/qs/README.md +1 -1
  93. package/bundled/gateway/node_modules/qs/dist/qs.js +15 -15
  94. package/bundled/gateway/node_modules/qs/eslint.config.mjs +0 -1
  95. package/bundled/gateway/node_modules/qs/lib/parse.js +24 -54
  96. package/bundled/gateway/node_modules/qs/lib/stringify.js +4 -11
  97. package/bundled/gateway/node_modules/qs/package.json +3 -3
  98. package/bundled/gateway/node_modules/qs/test/parse.js +0 -135
  99. package/bundled/gateway/node_modules/qs/test/stringify.js +0 -138
  100. package/bundled/gateway/node_modules/qs/test/utils.js +3 -31
  101. package/bundled/gateway/node_modules/raw-body/HISTORY.md +308 -0
  102. package/bundled/gateway/node_modules/raw-body/SECURITY.md +24 -0
  103. package/bundled/gateway/node_modules/raw-body/package.json +7 -5
  104. package/bundled/gateway/node_modules/send/HISTORY.md +7 -19
  105. package/bundled/gateway/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
  106. package/bundled/gateway/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
  107. package/bundled/gateway/node_modules/send/node_modules/encodeurl/README.md +128 -0
  108. package/bundled/gateway/node_modules/send/node_modules/encodeurl/index.js +60 -0
  109. package/bundled/gateway/node_modules/send/node_modules/encodeurl/package.json +40 -0
  110. package/bundled/gateway/node_modules/send/package.json +6 -6
  111. package/bundled/gateway/node_modules/serve-static/HISTORY.md +0 -16
  112. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
  113. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
  114. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
  115. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
  116. package/bundled/gateway/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
  117. package/bundled/gateway/node_modules/serve-static/package.json +3 -3
  118. package/bundled/gateway/node_modules/statuses/HISTORY.md +0 -5
  119. package/bundled/gateway/node_modules/statuses/README.md +0 -3
  120. package/bundled/gateway/node_modules/statuses/package.json +7 -7
  121. package/bundled/gateway/package-lock.json +137 -88
  122. package/bundled/gateway/package.json +23 -5
  123. package/bundled/ollama/node_modules/.package-lock.json +104 -85
  124. package/bundled/ollama/node_modules/axios/CHANGELOG.md +0 -42
  125. package/bundled/ollama/node_modules/axios/README.md +237 -237
  126. package/bundled/ollama/node_modules/axios/dist/axios.js +21 -113
  127. package/bundled/ollama/node_modules/axios/dist/axios.js.map +1 -0
  128. package/bundled/ollama/node_modules/axios/dist/axios.min.js +2 -2
  129. package/bundled/ollama/node_modules/axios/dist/axios.min.js.map +1 -1
  130. package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs +15 -121
  131. package/bundled/ollama/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  132. package/bundled/ollama/node_modules/axios/dist/esm/axios.js +15 -121
  133. package/bundled/ollama/node_modules/axios/dist/esm/axios.js.map +1 -0
  134. package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js +2 -2
  135. package/bundled/ollama/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  136. package/bundled/ollama/node_modules/axios/dist/node/axios.cjs +107 -249
  137. package/bundled/ollama/node_modules/axios/dist/node/axios.cjs.map +1 -0
  138. package/bundled/ollama/node_modules/axios/index.d.cts +3 -8
  139. package/bundled/ollama/node_modules/axios/index.d.ts +1 -4
  140. package/bundled/ollama/node_modules/axios/lib/adapters/fetch.js +0 -79
  141. package/bundled/ollama/node_modules/axios/lib/adapters/http.js +118 -62
  142. package/bundled/ollama/node_modules/axios/lib/core/Axios.js +0 -1
  143. package/bundled/ollama/node_modules/axios/lib/core/AxiosHeaders.js +2 -2
  144. package/bundled/ollama/node_modules/axios/lib/defaults/transitional.js +0 -1
  145. package/bundled/ollama/node_modules/axios/lib/env/data.js +1 -1
  146. package/bundled/ollama/node_modules/axios/lib/helpers/buildURL.js +1 -1
  147. package/bundled/ollama/node_modules/axios/lib/helpers/formDataToStream.js +2 -2
  148. package/bundled/ollama/node_modules/axios/lib/helpers/resolveConfig.js +6 -12
  149. package/bundled/ollama/node_modules/axios/lib/helpers/toFormData.js +1 -1
  150. package/bundled/ollama/node_modules/axios/lib/utils.js +2 -23
  151. package/bundled/ollama/node_modules/axios/package.json +13 -29
  152. package/bundled/ollama/node_modules/body-parser/HISTORY.md +0 -14
  153. package/bundled/ollama/node_modules/body-parser/SECURITY.md +25 -0
  154. package/bundled/ollama/node_modules/body-parser/lib/types/json.js +5 -1
  155. package/bundled/ollama/node_modules/body-parser/lib/types/urlencoded.js +15 -7
  156. package/bundled/ollama/node_modules/body-parser/package.json +10 -9
  157. package/bundled/ollama/node_modules/cookie/index.js +35 -24
  158. package/bundled/ollama/node_modules/cookie/package.json +1 -1
  159. package/bundled/ollama/node_modules/cookie-signature/History.md +1 -5
  160. package/bundled/ollama/node_modules/cookie-signature/index.js +6 -6
  161. package/bundled/ollama/node_modules/cookie-signature/package.json +2 -2
  162. package/bundled/ollama/node_modules/express/History.md +0 -43
  163. package/bundled/ollama/node_modules/express/lib/response.js +0 -1
  164. package/bundled/ollama/node_modules/express/lib/utils.js +1 -2
  165. package/bundled/ollama/node_modules/express/package.json +17 -21
  166. package/bundled/ollama/node_modules/finalhandler/HISTORY.md +0 -21
  167. package/bundled/ollama/node_modules/finalhandler/README.md +2 -2
  168. package/bundled/ollama/node_modules/finalhandler/index.js +2 -7
  169. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/HISTORY.md +14 -0
  170. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/LICENSE +22 -0
  171. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/README.md +128 -0
  172. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/index.js +60 -0
  173. package/bundled/ollama/node_modules/finalhandler/node_modules/encodeurl/package.json +40 -0
  174. package/bundled/ollama/node_modules/finalhandler/package.json +9 -10
  175. package/bundled/ollama/node_modules/http-errors/HISTORY.md +0 -6
  176. package/bundled/ollama/node_modules/http-errors/index.js +3 -4
  177. package/bundled/ollama/node_modules/http-errors/package.json +8 -12
  178. package/bundled/ollama/node_modules/qs/CHANGELOG.md +0 -16
  179. package/bundled/ollama/node_modules/qs/README.md +1 -1
  180. package/bundled/ollama/node_modules/qs/dist/qs.js +15 -15
  181. package/bundled/ollama/node_modules/qs/eslint.config.mjs +0 -1
  182. package/bundled/ollama/node_modules/qs/lib/parse.js +24 -54
  183. package/bundled/ollama/node_modules/qs/lib/stringify.js +4 -11
  184. package/bundled/ollama/node_modules/qs/package.json +3 -3
  185. package/bundled/ollama/node_modules/qs/test/parse.js +0 -135
  186. package/bundled/ollama/node_modules/qs/test/stringify.js +0 -138
  187. package/bundled/ollama/node_modules/qs/test/utils.js +3 -31
  188. package/bundled/ollama/node_modules/raw-body/HISTORY.md +308 -0
  189. package/bundled/ollama/node_modules/raw-body/SECURITY.md +24 -0
  190. package/bundled/ollama/node_modules/raw-body/package.json +7 -5
  191. package/bundled/ollama/node_modules/send/HISTORY.md +7 -19
  192. package/bundled/ollama/node_modules/send/node_modules/encodeurl/HISTORY.md +14 -0
  193. package/bundled/ollama/node_modules/send/node_modules/encodeurl/LICENSE +22 -0
  194. package/bundled/ollama/node_modules/send/node_modules/encodeurl/README.md +128 -0
  195. package/bundled/ollama/node_modules/send/node_modules/encodeurl/index.js +60 -0
  196. package/bundled/ollama/node_modules/send/node_modules/encodeurl/package.json +40 -0
  197. package/bundled/ollama/node_modules/send/package.json +6 -6
  198. package/bundled/ollama/node_modules/serve-static/HISTORY.md +0 -16
  199. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/HISTORY.md +14 -0
  200. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/LICENSE +22 -0
  201. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/README.md +128 -0
  202. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/index.js +60 -0
  203. package/bundled/ollama/node_modules/serve-static/node_modules/encodeurl/package.json +40 -0
  204. package/bundled/ollama/node_modules/serve-static/package.json +3 -3
  205. package/bundled/ollama/node_modules/statuses/HISTORY.md +0 -5
  206. package/bundled/ollama/node_modules/statuses/README.md +0 -3
  207. package/bundled/ollama/node_modules/statuses/package.json +7 -7
  208. package/bundled/ollama/package-lock.json +107 -88
  209. package/bundled/ollama/package.json +24 -4
  210. package/node_modules/@sap-llm-gateway/service-key-parser/package.json +1 -1
  211. package/package.json +2 -2
  212. package/bundled/gateway/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
  213. package/bundled/ollama/node_modules/axios/lib/helpers/Http2Sessions.js +0 -119
@@ -651,49 +651,6 @@ test('stringify()', function (t) {
651
651
  st.end();
652
652
  });
653
653
 
654
- t.test('does not crash on null/undefined entries in arrayFormat=comma with encodeValuesOnly', function (st) {
655
- st.doesNotThrow(
656
- function () { qs.stringify({ a: [null, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }); },
657
- 'does not pass a raw null array entry to the encoder'
658
- );
659
- st.doesNotThrow(
660
- function () { qs.stringify({ a: [undefined, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }); },
661
- 'does not pass a raw undefined array entry to the encoder'
662
- );
663
- st.doesNotThrow(
664
- function () { qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true }); },
665
- 'does not crash on a single-null array'
666
- );
667
-
668
- st.equal(
669
- qs.stringify({ a: [null, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }),
670
- 'a=,b',
671
- 'null entry joins as empty, comma stays unencoded under encodeValuesOnly'
672
- );
673
- st.equal(
674
- qs.stringify({ a: [undefined, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true }),
675
- 'a=,b',
676
- 'undefined entry joins as empty, comma stays unencoded under encodeValuesOnly'
677
- );
678
- st.equal(
679
- qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true }),
680
- 'a=',
681
- 'single-null array stringifies as empty value'
682
- );
683
- st.equal(
684
- qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true, strictNullHandling: true }),
685
- 'a',
686
- 'strictNullHandling drops the equals sign for a single-null array'
687
- );
688
- st.equal(
689
- qs.stringify({ a: [null] }, { arrayFormat: 'comma', encodeValuesOnly: true, skipNulls: true }),
690
- '',
691
- 'skipNulls drops a single-null array entirely'
692
- );
693
-
694
- st.end();
695
- });
696
-
697
654
  t.test('stringifies a null object', { skip: !hasProto }, function (st) {
698
655
  st.equal(qs.stringify({ __proto__: null, a: 'b' }), 'a=b');
699
656
  st.end();
@@ -868,35 +825,6 @@ test('stringify()', function (t) {
868
825
  st.end();
869
826
  });
870
827
 
871
- t.test('skips null/undefined entries in filter=array', function (st) {
872
- st.doesNotThrow(
873
- function () { qs.stringify({ a: 'b', undefined: 'x' }, { filter: ['a', undefined] }); },
874
- 'does not pass a raw undefined filter entry to the encoder'
875
- );
876
- st.doesNotThrow(
877
- function () { qs.stringify({ a: 'b', 'null': 'x' }, { filter: ['a', null] }); },
878
- 'does not pass a raw null filter entry to the encoder'
879
- );
880
-
881
- st.equal(
882
- qs.stringify({ a: 'b', undefined: 'x', c: 'd' }, { filter: ['a', undefined, 'c'] }),
883
- 'a=b&c=d',
884
- 'undefined filter entry is skipped, remaining keys are kept'
885
- );
886
- st.equal(
887
- qs.stringify({ a: 'b', 'null': 'x', c: 'd' }, { filter: ['a', null, 'c'] }),
888
- 'a=b&c=d',
889
- 'null filter entry is skipped, remaining keys are kept'
890
- );
891
- st.equal(
892
- qs.stringify({ a: 'b', 'null': 'x' }, { filter: [null] }),
893
- '',
894
- 'filter array containing only null yields empty string'
895
- );
896
-
897
- st.end();
898
- });
899
-
900
828
  t.test('supports custom representations when filter=function', function (st) {
901
829
  var calls = 0;
902
830
  var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } };
@@ -1183,28 +1111,6 @@ test('stringify()', function (t) {
1183
1111
  st.end();
1184
1112
  });
1185
1113
 
1186
- t.test('strictNullHandling: applies the formatter to the encoded key (RFC1738)', function (st) {
1187
- st.equal(
1188
- qs.stringify(
1189
- { 'a b': null, 'c d': 'e f' },
1190
- { strictNullHandling: false, format: 'RFC1738' }
1191
- ),
1192
- 'a+b=&c+d=e+f',
1193
- 'without: as expected'
1194
- );
1195
-
1196
- st.equal(
1197
- qs.stringify(
1198
- { 'a b': null, 'c d': 'e f' },
1199
- { strictNullHandling: true, format: 'RFC1738' }
1200
- ),
1201
- 'a+b&c+d=e+f',
1202
- 'with: as expected'
1203
- );
1204
-
1205
- st.end();
1206
- });
1207
-
1208
1114
  t.test('throws if an invalid charset is specified', function (st) {
1209
1115
  st['throws'](function () {
1210
1116
  qs.stringify({ a: 'b' }, { charset: 'foobar' });
@@ -1240,12 +1146,6 @@ test('stringify()', function (t) {
1240
1146
  'adds the right sentinel when instructed to and the charset is iso-8859-1'
1241
1147
  );
1242
1148
 
1243
- st.equal(
1244
- qs.stringify({ a: 1, b: 2 }, { charsetSentinel: true, delimiter: ';' }),
1245
- 'utf8=%E2%9C%93;a=1;b=2',
1246
- 'uses the configured delimiter after the sentinel'
1247
- );
1248
-
1249
1149
  st.end();
1250
1150
  });
1251
1151
 
@@ -1288,15 +1188,6 @@ test('stringify()', function (t) {
1288
1188
  };
1289
1189
 
1290
1190
  st.deepEqual(qs.stringify({ KeY: 'vAlUe' }, { encoder: encoder }), 'key=VALUE');
1291
-
1292
- var noopEncoder = function () { return 'x'; };
1293
- noopEncoder();
1294
- st['throws'](
1295
- function () { encoder('x', noopEncoder, 'utf-8', 'unknown'); },
1296
- 'this should never happen! type: unknown',
1297
- 'encoder throws for unexpected type'
1298
- );
1299
-
1300
1191
  st.end();
1301
1192
  });
1302
1193
 
@@ -1416,33 +1307,4 @@ test('stringifies empty keys', function (t) {
1416
1307
 
1417
1308
  st.end();
1418
1309
  });
1419
-
1420
- t.test('round-trips keys containing percent-encoded bracket text', function (st) {
1421
- var cases = [
1422
- { 'a%5Bb': 'c' },
1423
- { 'a%5Db': 'c' },
1424
- { 'a%255Bb': 'c' },
1425
- { 'a%255Db': 'c' },
1426
- { a: { 'b%5Bc': 'd' } },
1427
- { a: { 'b%255Bc': 'd' } },
1428
- { 'a%5B%255Bb': 'c' }
1429
- ];
1430
- for (var i = 0; i < cases.length; i++) {
1431
- st.deepEqual(
1432
- qs.parse(qs.stringify(cases[i])),
1433
- cases[i],
1434
- 'round-trips ' + JSON.stringify(cases[i])
1435
- );
1436
- }
1437
-
1438
- st.end();
1439
- });
1440
-
1441
- t.test('parses input containing percent-encoded bracket text without mangling', function (st) {
1442
- st.deepEqual(qs.parse('a%25255Bb=c'), { 'a%255Bb': 'c' }, 'a%25255Bb decodes to a%255Bb, not a%5Bb');
1443
- st.deepEqual(qs.parse('a%25255Db=c'), { 'a%255Db': 'c' }, 'a%25255Db decodes to a%255Db, not a%5Db');
1444
- st.deepEqual(qs.parse('a%5Bb%25255Bc%5D=d'), { a: { 'b%255Bc': 'd' } }, 'nested %25255B decodes to %255B inside segment, not %5B');
1445
-
1446
- st.end();
1447
- });
1448
1310
  });
@@ -31,7 +31,6 @@ test('merge()', function (t) {
31
31
  t.deepEqual(noOptionsNonObjectSource, { foo: 'baz', bar: true });
32
32
 
33
33
  var func = function f() {};
34
- func();
35
34
  t.deepEqual(
36
35
  utils.merge(func, { foo: 'bar' }),
37
36
  [func, { foo: 'bar' }],
@@ -113,15 +112,6 @@ test('merge()', function (t) {
113
112
  s2t.end();
114
113
  });
115
114
 
116
- st.test('merges overflow object into primitive with plainObjects', function (s2t) {
117
- var overflow = utils.combine(['a'], 'b', 0, false);
118
- s2t.ok(utils.isOverflow(overflow), 'overflow object is marked');
119
- var merged = utils.merge('c', overflow, { plainObjects: true });
120
- s2t.ok(utils.isOverflow(merged), 'result is also marked as overflow');
121
- s2t.deepEqual(merged, { __proto__: null, 0: 'c', 1: 'a', 2: 'b' }, 'creates null-proto object with primitive at 0');
122
- s2t.end();
123
- });
124
-
125
115
  st.test('merges overflow object with multiple values into primitive', function (s2t) {
126
116
  // Create an overflow object via combine: 3 elements (indices 0-2) with limit 0
127
117
  var overflow = utils.combine(['b', 'c'], 'd', 0, false);
@@ -138,21 +128,6 @@ test('merge()', function (t) {
138
128
  s2t.end();
139
129
  });
140
130
 
141
- st.test('merges primitive into array that exceeds arrayLimit', function (s2t) {
142
- var arr = ['a', 'b', 'c'];
143
- var merged = utils.merge(arr, 'd', { arrayLimit: 1 });
144
- s2t.ok(utils.isOverflow(merged), 'result is marked as overflow');
145
- s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c', 3: 'd' }, 'converts to overflow object with primitive appended');
146
- s2t.end();
147
- });
148
-
149
- st.test('merges array into primitive that exceeds arrayLimit', function (s2t) {
150
- var merged = utils.merge('a', ['b', 'c'], { arrayLimit: 1 });
151
- s2t.ok(utils.isOverflow(merged), 'result is marked as overflow');
152
- s2t.deepEqual(merged, { 0: 'a', 1: 'b', 2: 'c' }, 'converts to overflow object');
153
- s2t.end();
154
- });
155
-
156
131
  st.end();
157
132
  });
158
133
 
@@ -401,9 +376,7 @@ test('encode', function (t) {
401
376
  });
402
377
 
403
378
  test('isBuffer()', function (t) {
404
- var fn = function () {};
405
- fn();
406
- forEach([null, undefined, true, false, '', 'abc', 42, 0, NaN, {}, [], fn, /a/g], function (x) {
379
+ forEach([null, undefined, true, false, '', 'abc', 42, 0, NaN, {}, [], function () {}, /a/g], function (x) {
407
380
  t.equal(utils.isBuffer(x), false, inspect(x) + ' is not a buffer');
408
381
  });
409
382
 
@@ -413,9 +386,8 @@ test('isBuffer()', function (t) {
413
386
  var saferBuffer = SaferBuffer.from('abc');
414
387
  t.equal(utils.isBuffer(saferBuffer), true, 'SaferBuffer instance is a buffer');
415
388
 
416
- var buffer = SaferBuffer.from('abc');
417
- t.notEqual(saferBuffer, buffer, 'different buffer instances');
418
- t.equal(utils.isBuffer(buffer), true, 'another Buffer instance is a buffer');
389
+ var buffer = Buffer.from && Buffer.alloc ? Buffer.from('abc') : new Buffer('abc');
390
+ t.equal(utils.isBuffer(buffer), true, 'real Buffer instance is a buffer');
419
391
  t.end();
420
392
  });
421
393
 
@@ -0,0 +1,308 @@
1
+ 2.5.2 / 2023-02-21
2
+ ==================
3
+
4
+ * Fix error message for non-stream argument
5
+
6
+ 2.5.1 / 2022-02-28
7
+ ==================
8
+
9
+ * Fix error on early async hooks implementations
10
+
11
+ 2.5.0 / 2022-02-21
12
+ ==================
13
+
14
+ * Prevent loss of async hooks context
15
+ * Prevent hanging when stream is not readable
16
+ * deps: http-errors@2.0.0
17
+ - deps: depd@2.0.0
18
+ - deps: statuses@2.0.1
19
+
20
+ 2.4.3 / 2022-02-14
21
+ ==================
22
+
23
+ * deps: bytes@3.1.2
24
+
25
+ 2.4.2 / 2021-11-16
26
+ ==================
27
+
28
+ * deps: bytes@3.1.1
29
+ * deps: http-errors@1.8.1
30
+ - deps: setprototypeof@1.2.0
31
+ - deps: toidentifier@1.0.1
32
+
33
+ 2.4.1 / 2019-06-25
34
+ ==================
35
+
36
+ * deps: http-errors@1.7.3
37
+ - deps: inherits@2.0.4
38
+
39
+ 2.4.0 / 2019-04-17
40
+ ==================
41
+
42
+ * deps: bytes@3.1.0
43
+ - Add petabyte (`pb`) support
44
+ * deps: http-errors@1.7.2
45
+ - Set constructor name when possible
46
+ - deps: setprototypeof@1.1.1
47
+ - deps: statuses@'>= 1.5.0 < 2'
48
+ * deps: iconv-lite@0.4.24
49
+ - Added encoding MIK
50
+
51
+ 2.3.3 / 2018-05-08
52
+ ==================
53
+
54
+ * deps: http-errors@1.6.3
55
+ - deps: depd@~1.1.2
56
+ - deps: setprototypeof@1.1.0
57
+ - deps: statuses@'>= 1.3.1 < 2'
58
+ * deps: iconv-lite@0.4.23
59
+ - Fix loading encoding with year appended
60
+ - Fix deprecation warnings on Node.js 10+
61
+
62
+ 2.3.2 / 2017-09-09
63
+ ==================
64
+
65
+ * deps: iconv-lite@0.4.19
66
+ - Fix ISO-8859-1 regression
67
+ - Update Windows-1255
68
+
69
+ 2.3.1 / 2017-09-07
70
+ ==================
71
+
72
+ * deps: bytes@3.0.0
73
+ * deps: http-errors@1.6.2
74
+ - deps: depd@1.1.1
75
+ * perf: skip buffer decoding on overage chunk
76
+
77
+ 2.3.0 / 2017-08-04
78
+ ==================
79
+
80
+ * Add TypeScript definitions
81
+ * Use `http-errors` for standard emitted errors
82
+ * deps: bytes@2.5.0
83
+ * deps: iconv-lite@0.4.18
84
+ - Add support for React Native
85
+ - Add a warning if not loaded as utf-8
86
+ - Fix CESU-8 decoding in Node.js 8
87
+ - Improve speed of ISO-8859-1 encoding
88
+
89
+ 2.2.0 / 2017-01-02
90
+ ==================
91
+
92
+ * deps: iconv-lite@0.4.15
93
+ - Added encoding MS-31J
94
+ - Added encoding MS-932
95
+ - Added encoding MS-936
96
+ - Added encoding MS-949
97
+ - Added encoding MS-950
98
+ - Fix GBK/GB18030 handling of Euro character
99
+
100
+ 2.1.7 / 2016-06-19
101
+ ==================
102
+
103
+ * deps: bytes@2.4.0
104
+ * perf: remove double-cleanup on happy path
105
+
106
+ 2.1.6 / 2016-03-07
107
+ ==================
108
+
109
+ * deps: bytes@2.3.0
110
+ - Drop partial bytes on all parsed units
111
+ - Fix parsing byte string that looks like hex
112
+
113
+ 2.1.5 / 2015-11-30
114
+ ==================
115
+
116
+ * deps: bytes@2.2.0
117
+ * deps: iconv-lite@0.4.13
118
+
119
+ 2.1.4 / 2015-09-27
120
+ ==================
121
+
122
+ * Fix masking critical errors from `iconv-lite`
123
+ * deps: iconv-lite@0.4.12
124
+ - Fix CESU-8 decoding in Node.js 4.x
125
+
126
+ 2.1.3 / 2015-09-12
127
+ ==================
128
+
129
+ * Fix sync callback when attaching data listener causes sync read
130
+ - Node.js 0.10 compatibility issue
131
+
132
+ 2.1.2 / 2015-07-05
133
+ ==================
134
+
135
+ * Fix error stack traces to skip `makeError`
136
+ * deps: iconv-lite@0.4.11
137
+ - Add encoding CESU-8
138
+
139
+ 2.1.1 / 2015-06-14
140
+ ==================
141
+
142
+ * Use `unpipe` module for unpiping requests
143
+
144
+ 2.1.0 / 2015-05-28
145
+ ==================
146
+
147
+ * deps: iconv-lite@0.4.10
148
+ - Improved UTF-16 endianness detection
149
+ - Leading BOM is now removed when decoding
150
+ - The encoding UTF-16 without BOM now defaults to UTF-16LE when detection fails
151
+
152
+ 2.0.2 / 2015-05-21
153
+ ==================
154
+
155
+ * deps: bytes@2.1.0
156
+ - Slight optimizations
157
+
158
+ 2.0.1 / 2015-05-10
159
+ ==================
160
+
161
+ * Fix a false-positive when unpiping in Node.js 0.8
162
+
163
+ 2.0.0 / 2015-05-08
164
+ ==================
165
+
166
+ * Return a promise without callback instead of thunk
167
+ * deps: bytes@2.0.1
168
+ - units no longer case sensitive when parsing
169
+
170
+ 1.3.4 / 2015-04-15
171
+ ==================
172
+
173
+ * Fix hanging callback if request aborts during read
174
+ * deps: iconv-lite@0.4.8
175
+ - Add encoding alias UNICODE-1-1-UTF-7
176
+
177
+ 1.3.3 / 2015-02-08
178
+ ==================
179
+
180
+ * deps: iconv-lite@0.4.7
181
+ - Gracefully support enumerables on `Object.prototype`
182
+
183
+ 1.3.2 / 2015-01-20
184
+ ==================
185
+
186
+ * deps: iconv-lite@0.4.6
187
+ - Fix rare aliases of single-byte encodings
188
+
189
+ 1.3.1 / 2014-11-21
190
+ ==================
191
+
192
+ * deps: iconv-lite@0.4.5
193
+ - Fix Windows-31J and X-SJIS encoding support
194
+
195
+ 1.3.0 / 2014-07-20
196
+ ==================
197
+
198
+ * Fully unpipe the stream on error
199
+ - Fixes `Cannot switch to old mode now` error on Node.js 0.10+
200
+
201
+ 1.2.3 / 2014-07-20
202
+ ==================
203
+
204
+ * deps: iconv-lite@0.4.4
205
+ - Added encoding UTF-7
206
+
207
+ 1.2.2 / 2014-06-19
208
+ ==================
209
+
210
+ * Send invalid encoding error to callback
211
+
212
+ 1.2.1 / 2014-06-15
213
+ ==================
214
+
215
+ * deps: iconv-lite@0.4.3
216
+ - Added encodings UTF-16BE and UTF-16 with BOM
217
+
218
+ 1.2.0 / 2014-06-13
219
+ ==================
220
+
221
+ * Passing string as `options` interpreted as encoding
222
+ * Support all encodings from `iconv-lite`
223
+
224
+ 1.1.7 / 2014-06-12
225
+ ==================
226
+
227
+ * use `string_decoder` module from npm
228
+
229
+ 1.1.6 / 2014-05-27
230
+ ==================
231
+
232
+ * check encoding for old streams1
233
+ * support node.js < 0.10.6
234
+
235
+ 1.1.5 / 2014-05-14
236
+ ==================
237
+
238
+ * bump bytes
239
+
240
+ 1.1.4 / 2014-04-19
241
+ ==================
242
+
243
+ * allow true as an option
244
+ * bump bytes
245
+
246
+ 1.1.3 / 2014-03-02
247
+ ==================
248
+
249
+ * fix case when length=null
250
+
251
+ 1.1.2 / 2013-12-01
252
+ ==================
253
+
254
+ * be less strict on state.encoding check
255
+
256
+ 1.1.1 / 2013-11-27
257
+ ==================
258
+
259
+ * add engines
260
+
261
+ 1.1.0 / 2013-11-27
262
+ ==================
263
+
264
+ * add err.statusCode and err.type
265
+ * allow for encoding option to be true
266
+ * pause the stream instead of dumping on error
267
+ * throw if the stream's encoding is set
268
+
269
+ 1.0.1 / 2013-11-19
270
+ ==================
271
+
272
+ * dont support streams1, throw if dev set encoding
273
+
274
+ 1.0.0 / 2013-11-17
275
+ ==================
276
+
277
+ * rename `expected` option to `length`
278
+
279
+ 0.2.0 / 2013-11-15
280
+ ==================
281
+
282
+ * republish
283
+
284
+ 0.1.1 / 2013-11-15
285
+ ==================
286
+
287
+ * use bytes
288
+
289
+ 0.1.0 / 2013-11-11
290
+ ==================
291
+
292
+ * generator support
293
+
294
+ 0.0.3 / 2013-10-10
295
+ ==================
296
+
297
+ * update repo
298
+
299
+ 0.0.2 / 2013-09-14
300
+ ==================
301
+
302
+ * dump stream on bad headers
303
+ * listen to events after defining received and buffers
304
+
305
+ 0.0.1 / 2013-09-14
306
+ ==================
307
+
308
+ * Initial release
@@ -0,0 +1,24 @@
1
+ # Security Policies and Procedures
2
+
3
+ ## Reporting a Bug
4
+
5
+ The `raw-body` team and community take all security bugs seriously. Thank you
6
+ for improving the security of Express. We appreciate your efforts and
7
+ responsible disclosure and will make every effort to acknowledge your
8
+ contributions.
9
+
10
+ Report security bugs by emailing the current owners of `raw-body`. This information
11
+ can be found in the npm registry using the command `npm owner ls raw-body`.
12
+ If unsure or unable to get the information from the above, open an issue
13
+ in the [project issue tracker](https://github.com/stream-utils/raw-body/issues)
14
+ asking for the current contact information.
15
+
16
+ To ensure the timely response to your report, please ensure that the entirety
17
+ of the report is contained within the email body and not solely behind a web
18
+ link or an attachment.
19
+
20
+ At least one owner will acknowledge your email within 48 hours, and will send a
21
+ more detailed response within 48 hours indicating the next steps in handling
22
+ your report. After the initial reply to your report, the owners will
23
+ endeavor to keep you informed of the progress towards a fix and full
24
+ announcement, and may ask for additional information or guidance.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "raw-body",
3
3
  "description": "Get and validate the raw body of a readable stream.",
4
- "version": "2.5.3",
4
+ "version": "2.5.2",
5
5
  "author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
6
6
  "contributors": [
7
7
  "Douglas Christopher Wilson <doug@somethingdoug.com>",
@@ -10,10 +10,10 @@
10
10
  "license": "MIT",
11
11
  "repository": "stream-utils/raw-body",
12
12
  "dependencies": {
13
- "bytes": "~3.1.2",
14
- "http-errors": "~2.0.1",
15
- "iconv-lite": "~0.4.24",
16
- "unpipe": "~1.0.0"
13
+ "bytes": "3.1.2",
14
+ "http-errors": "2.0.0",
15
+ "iconv-lite": "0.4.24",
16
+ "unpipe": "1.0.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "bluebird": "3.7.2",
@@ -33,8 +33,10 @@
33
33
  "node": ">= 0.8"
34
34
  },
35
35
  "files": [
36
+ "HISTORY.md",
36
37
  "LICENSE",
37
38
  "README.md",
39
+ "SECURITY.md",
38
40
  "index.d.ts",
39
41
  "index.js"
40
42
  ],
@@ -1,15 +1,3 @@
1
- 0.19.2 / 2025-12-15
2
- ===================
3
-
4
- * deps: use tilde notation for dependencies
5
- * deps: http-errors@~2.0.1
6
- * deps: statuses@~2.0.2
7
-
8
- 0.19.1 / 2024-10-09
9
- ===================
10
-
11
- * deps: encodeurl@~2.0.0
12
-
13
1
  0.19.0 / 2024-09-10
14
2
  ===================
15
3
 
@@ -497,37 +485,37 @@
497
485
 
498
486
  * update range-parser and fresh
499
487
 
500
- 0.1.4 / 2013-08-11
488
+ 0.1.4 / 2013-08-11
501
489
  ==================
502
490
 
503
491
  * update fresh
504
492
 
505
- 0.1.3 / 2013-07-08
493
+ 0.1.3 / 2013-07-08
506
494
  ==================
507
495
 
508
496
  * Revert "Fix fd leak"
509
497
 
510
- 0.1.2 / 2013-07-03
498
+ 0.1.2 / 2013-07-03
511
499
  ==================
512
500
 
513
501
  * Fix fd leak
514
502
 
515
- 0.1.0 / 2012-08-25
503
+ 0.1.0 / 2012-08-25
516
504
  ==================
517
505
 
518
506
  * add options parameter to send() that is passed to fs.createReadStream() [kanongil]
519
507
 
520
- 0.0.4 / 2012-08-16
508
+ 0.0.4 / 2012-08-16
521
509
  ==================
522
510
 
523
511
  * allow custom "Accept-Ranges" definition
524
512
 
525
- 0.0.3 / 2012-07-16
513
+ 0.0.3 / 2012-07-16
526
514
  ==================
527
515
 
528
516
  * fix normalization of the root directory. Closes #3
529
517
 
530
- 0.0.2 / 2012-07-09
518
+ 0.0.2 / 2012-07-09
531
519
  ==================
532
520
 
533
521
  * add passing of req explicitly for now (YUCK)
@@ -0,0 +1,14 @@
1
+ 1.0.2 / 2018-01-21
2
+ ==================
3
+
4
+ * Fix encoding `%` as last character
5
+
6
+ 1.0.1 / 2016-06-09
7
+ ==================
8
+
9
+ * Fix encoding unpaired surrogates at start/end of string
10
+
11
+ 1.0.0 / 2016-06-08
12
+ ==================
13
+
14
+ * Initial release