modelmix 2.5.8 → 2.6.2

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 (594) hide show
  1. package/README.md +37 -4
  2. package/demo/demo.mjs +1 -1
  3. package/demo/lmstudio.mjs +1 -1
  4. package/demo/parallel.mjs +22 -21
  5. package/index.js +31 -7
  6. package/package.json +5 -4
  7. package/demo/node_modules/.package-lock.json +0 -254
  8. package/demo/node_modules/@anthropic-ai/sdk/CHANGELOG.md +0 -859
  9. package/demo/node_modules/@anthropic-ai/sdk/LICENSE +0 -8
  10. package/demo/node_modules/@anthropic-ai/sdk/README.md +0 -424
  11. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts +0 -9
  12. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts.map +0 -1
  13. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js +0 -16
  14. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js.map +0 -1
  15. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs +0 -12
  16. package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs.map +0 -1
  17. package/demo/node_modules/@anthropic-ai/sdk/_shims/README.md +0 -46
  18. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts +0 -5
  19. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts.map +0 -1
  20. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js +0 -21
  21. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js.map +0 -1
  22. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs +0 -2
  23. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs.map +0 -1
  24. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts +0 -5
  25. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts.map +0 -1
  26. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js +0 -21
  27. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js.map +0 -1
  28. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs +0 -2
  29. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs.map +0 -1
  30. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts +0 -5
  31. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts.map +0 -1
  32. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js +0 -21
  33. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js.map +0 -1
  34. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs +0 -2
  35. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs.map +0 -1
  36. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts +0 -5
  37. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts.map +0 -1
  38. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js +0 -21
  39. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js.map +0 -1
  40. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs +0 -2
  41. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs.map +0 -1
  42. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.d.ts +0 -101
  43. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.js +0 -3
  44. package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.mjs +0 -3
  45. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts +0 -6
  46. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts.map +0 -1
  47. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js +0 -14
  48. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js.map +0 -1
  49. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs +0 -10
  50. package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs.map +0 -1
  51. package/demo/node_modules/@anthropic-ai/sdk/_shims/index.d.ts +0 -81
  52. package/demo/node_modules/@anthropic-ai/sdk/_shims/index.js +0 -13
  53. package/demo/node_modules/@anthropic-ai/sdk/_shims/index.mjs +0 -7
  54. package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.d.ts +0 -12
  55. package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.js +0 -3
  56. package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.mjs +0 -3
  57. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts +0 -3
  58. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts.map +0 -1
  59. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js +0 -90
  60. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js.map +0 -1
  61. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs +0 -56
  62. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs.map +0 -1
  63. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.d.ts +0 -42
  64. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.js +0 -3
  65. package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.mjs +0 -3
  66. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts +0 -37
  67. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts.map +0 -1
  68. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js +0 -41
  69. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js.map +0 -1
  70. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs +0 -37
  71. package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs.map +0 -1
  72. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts +0 -5
  73. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts.map +0 -1
  74. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js +0 -78
  75. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js.map +0 -1
  76. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs +0 -71
  77. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs.map +0 -1
  78. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.d.ts +0 -83
  79. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.js +0 -3
  80. package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.mjs +0 -3
  81. package/demo/node_modules/@anthropic-ai/sdk/core.d.ts +0 -239
  82. package/demo/node_modules/@anthropic-ai/sdk/core.d.ts.map +0 -1
  83. package/demo/node_modules/@anthropic-ai/sdk/core.js +0 -879
  84. package/demo/node_modules/@anthropic-ai/sdk/core.js.map +0 -1
  85. package/demo/node_modules/@anthropic-ai/sdk/core.mjs +0 -848
  86. package/demo/node_modules/@anthropic-ai/sdk/core.mjs.map +0 -1
  87. package/demo/node_modules/@anthropic-ai/sdk/error.d.ts +0 -53
  88. package/demo/node_modules/@anthropic-ai/sdk/error.d.ts.map +0 -1
  89. package/demo/node_modules/@anthropic-ai/sdk/error.js +0 -143
  90. package/demo/node_modules/@anthropic-ai/sdk/error.js.map +0 -1
  91. package/demo/node_modules/@anthropic-ai/sdk/error.mjs +0 -127
  92. package/demo/node_modules/@anthropic-ai/sdk/error.mjs.map +0 -1
  93. package/demo/node_modules/@anthropic-ai/sdk/index.d.mts +0 -147
  94. package/demo/node_modules/@anthropic-ai/sdk/index.d.ts +0 -147
  95. package/demo/node_modules/@anthropic-ai/sdk/index.d.ts.map +0 -1
  96. package/demo/node_modules/@anthropic-ai/sdk/index.js +0 -149
  97. package/demo/node_modules/@anthropic-ai/sdk/index.js.map +0 -1
  98. package/demo/node_modules/@anthropic-ai/sdk/index.mjs +0 -121
  99. package/demo/node_modules/@anthropic-ai/sdk/index.mjs.map +0 -1
  100. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +0 -94
  101. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +0 -1
  102. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +0 -436
  103. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +0 -1
  104. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +0 -432
  105. package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +0 -1
  106. package/demo/node_modules/@anthropic-ai/sdk/package.json +0 -104
  107. package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts +0 -6
  108. package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts.map +0 -1
  109. package/demo/node_modules/@anthropic-ai/sdk/resource.js +0 -11
  110. package/demo/node_modules/@anthropic-ai/sdk/resource.js.map +0 -1
  111. package/demo/node_modules/@anthropic-ai/sdk/resource.mjs +0 -7
  112. package/demo/node_modules/@anthropic-ai/sdk/resource.mjs.map +0 -1
  113. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +0 -9
  114. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +0 -1
  115. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +0 -40
  116. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +0 -1
  117. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +0 -13
  118. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +0 -1
  119. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +0 -3
  120. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +0 -1
  121. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js +0 -9
  122. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +0 -1
  123. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +0 -4
  124. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +0 -1
  125. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts +0 -3
  126. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts.map +0 -1
  127. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js +0 -9
  128. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js.map +0 -1
  129. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs +0 -4
  130. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs.map +0 -1
  131. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts +0 -462
  132. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts.map +0 -1
  133. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js +0 -20
  134. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js.map +0 -1
  135. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs +0 -16
  136. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs.map +0 -1
  137. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts +0 -19
  138. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts.map +0 -1
  139. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js +0 -40
  140. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js.map +0 -1
  141. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs +0 -13
  142. package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs.map +0 -1
  143. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +0 -184
  144. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +0 -1
  145. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js +0 -19
  146. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js.map +0 -1
  147. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs +0 -15
  148. package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +0 -1
  149. package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts +0 -4
  150. package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +0 -1
  151. package/demo/node_modules/@anthropic-ai/sdk/resources/index.js +0 -11
  152. package/demo/node_modules/@anthropic-ai/sdk/resources/index.js.map +0 -1
  153. package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs +0 -5
  154. package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +0 -1
  155. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +0 -619
  156. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +0 -1
  157. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js +0 -28
  158. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js.map +0 -1
  159. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs +0 -23
  160. package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +0 -1
  161. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +0 -2
  162. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +0 -1
  163. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js +0 -4
  164. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +0 -1
  165. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +0 -3
  166. package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +0 -1
  167. package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts +0 -29
  168. package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts.map +0 -1
  169. package/demo/node_modules/@anthropic-ai/sdk/shims/node.js +0 -31
  170. package/demo/node_modules/@anthropic-ai/sdk/shims/node.js.map +0 -1
  171. package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs +0 -5
  172. package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs.map +0 -1
  173. package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts +0 -26
  174. package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts.map +0 -1
  175. package/demo/node_modules/@anthropic-ai/sdk/shims/web.js +0 -31
  176. package/demo/node_modules/@anthropic-ai/sdk/shims/web.js.map +0 -1
  177. package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs +0 -5
  178. package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs.map +0 -1
  179. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/MultipartBody.ts +0 -9
  180. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/README.md +0 -46
  181. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-bun.ts +0 -4
  182. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-node.ts +0 -4
  183. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime.ts +0 -4
  184. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types-node.ts +0 -4
  185. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.d.ts +0 -101
  186. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.js +0 -3
  187. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.mjs +0 -3
  188. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/bun-runtime.ts +0 -14
  189. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.d.ts +0 -81
  190. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.js +0 -13
  191. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.mjs +0 -7
  192. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.d.ts +0 -12
  193. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.js +0 -3
  194. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.mjs +0 -3
  195. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-runtime.ts +0 -83
  196. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.d.ts +0 -42
  197. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.js +0 -3
  198. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.mjs +0 -3
  199. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/registry.ts +0 -67
  200. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-runtime.ts +0 -103
  201. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.d.ts +0 -83
  202. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.js +0 -3
  203. package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.mjs +0 -3
  204. package/demo/node_modules/@anthropic-ai/sdk/src/core.ts +0 -1162
  205. package/demo/node_modules/@anthropic-ai/sdk/src/error.ts +0 -146
  206. package/demo/node_modules/@anthropic-ai/sdk/src/index.ts +0 -264
  207. package/demo/node_modules/@anthropic-ai/sdk/src/lib/.keep +0 -4
  208. package/demo/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +0 -535
  209. package/demo/node_modules/@anthropic-ai/sdk/src/resource.ts +0 -11
  210. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +0 -12
  211. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +0 -4
  212. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/index.ts +0 -16
  213. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/messages.ts +0 -531
  214. package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/tools.ts +0 -22
  215. package/demo/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +0 -223
  216. package/demo/node_modules/@anthropic-ai/sdk/src/resources/index.ts +0 -33
  217. package/demo/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +0 -729
  218. package/demo/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +0 -3
  219. package/demo/node_modules/@anthropic-ai/sdk/src/shims/node.ts +0 -50
  220. package/demo/node_modules/@anthropic-ai/sdk/src/shims/web.ts +0 -50
  221. package/demo/node_modules/@anthropic-ai/sdk/src/streaming.ts +0 -509
  222. package/demo/node_modules/@anthropic-ai/sdk/src/tsconfig.json +0 -11
  223. package/demo/node_modules/@anthropic-ai/sdk/src/uploads.ts +0 -248
  224. package/demo/node_modules/@anthropic-ai/sdk/src/version.ts +0 -1
  225. package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts +0 -41
  226. package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +0 -1
  227. package/demo/node_modules/@anthropic-ai/sdk/streaming.js +0 -431
  228. package/demo/node_modules/@anthropic-ai/sdk/streaming.js.map +0 -1
  229. package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs +0 -424
  230. package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs.map +0 -1
  231. package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts +0 -75
  232. package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +0 -1
  233. package/demo/node_modules/@anthropic-ai/sdk/uploads.js +0 -165
  234. package/demo/node_modules/@anthropic-ai/sdk/uploads.js.map +0 -1
  235. package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs +0 -152
  236. package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs.map +0 -1
  237. package/demo/node_modules/@anthropic-ai/sdk/version.d.ts +0 -2
  238. package/demo/node_modules/@anthropic-ai/sdk/version.d.ts.map +0 -1
  239. package/demo/node_modules/@anthropic-ai/sdk/version.js +0 -5
  240. package/demo/node_modules/@anthropic-ai/sdk/version.js.map +0 -1
  241. package/demo/node_modules/@anthropic-ai/sdk/version.mjs +0 -2
  242. package/demo/node_modules/@anthropic-ai/sdk/version.mjs.map +0 -1
  243. package/demo/node_modules/@types/node/LICENSE +0 -21
  244. package/demo/node_modules/@types/node/README.md +0 -15
  245. package/demo/node_modules/@types/node/assert/strict.d.ts +0 -8
  246. package/demo/node_modules/@types/node/assert.d.ts +0 -985
  247. package/demo/node_modules/@types/node/async_hooks.d.ts +0 -522
  248. package/demo/node_modules/@types/node/buffer.d.ts +0 -2353
  249. package/demo/node_modules/@types/node/child_process.d.ts +0 -1544
  250. package/demo/node_modules/@types/node/cluster.d.ts +0 -578
  251. package/demo/node_modules/@types/node/console.d.ts +0 -452
  252. package/demo/node_modules/@types/node/constants.d.ts +0 -19
  253. package/demo/node_modules/@types/node/crypto.d.ts +0 -4457
  254. package/demo/node_modules/@types/node/dgram.d.ts +0 -596
  255. package/demo/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
  256. package/demo/node_modules/@types/node/dns/promises.d.ts +0 -473
  257. package/demo/node_modules/@types/node/dns.d.ts +0 -853
  258. package/demo/node_modules/@types/node/dom-events.d.ts +0 -124
  259. package/demo/node_modules/@types/node/domain.d.ts +0 -170
  260. package/demo/node_modules/@types/node/events.d.ts +0 -819
  261. package/demo/node_modules/@types/node/fs/promises.d.ts +0 -1205
  262. package/demo/node_modules/@types/node/fs.d.ts +0 -4237
  263. package/demo/node_modules/@types/node/globals.d.ts +0 -377
  264. package/demo/node_modules/@types/node/globals.global.d.ts +0 -1
  265. package/demo/node_modules/@types/node/http.d.ts +0 -1803
  266. package/demo/node_modules/@types/node/http2.d.ts +0 -2392
  267. package/demo/node_modules/@types/node/https.d.ts +0 -544
  268. package/demo/node_modules/@types/node/index.d.ts +0 -88
  269. package/demo/node_modules/@types/node/inspector.d.ts +0 -2738
  270. package/demo/node_modules/@types/node/module.d.ts +0 -298
  271. package/demo/node_modules/@types/node/net.d.ts +0 -918
  272. package/demo/node_modules/@types/node/os.d.ts +0 -473
  273. package/demo/node_modules/@types/node/package.json +0 -222
  274. package/demo/node_modules/@types/node/path.d.ts +0 -191
  275. package/demo/node_modules/@types/node/perf_hooks.d.ts +0 -626
  276. package/demo/node_modules/@types/node/process.d.ts +0 -1548
  277. package/demo/node_modules/@types/node/punycode.d.ts +0 -117
  278. package/demo/node_modules/@types/node/querystring.d.ts +0 -141
  279. package/demo/node_modules/@types/node/readline/promises.d.ts +0 -143
  280. package/demo/node_modules/@types/node/readline.d.ts +0 -666
  281. package/demo/node_modules/@types/node/repl.d.ts +0 -430
  282. package/demo/node_modules/@types/node/stream/consumers.d.ts +0 -12
  283. package/demo/node_modules/@types/node/stream/promises.d.ts +0 -83
  284. package/demo/node_modules/@types/node/stream/web.d.ts +0 -352
  285. package/demo/node_modules/@types/node/stream.d.ts +0 -1731
  286. package/demo/node_modules/@types/node/string_decoder.d.ts +0 -67
  287. package/demo/node_modules/@types/node/test.d.ts +0 -1113
  288. package/demo/node_modules/@types/node/timers/promises.d.ts +0 -93
  289. package/demo/node_modules/@types/node/timers.d.ts +0 -126
  290. package/demo/node_modules/@types/node/tls.d.ts +0 -1203
  291. package/demo/node_modules/@types/node/trace_events.d.ts +0 -171
  292. package/demo/node_modules/@types/node/tty.d.ts +0 -206
  293. package/demo/node_modules/@types/node/url.d.ts +0 -954
  294. package/demo/node_modules/@types/node/util.d.ts +0 -2075
  295. package/demo/node_modules/@types/node/v8.d.ts +0 -753
  296. package/demo/node_modules/@types/node/vm.d.ts +0 -667
  297. package/demo/node_modules/@types/node/wasi.d.ts +0 -160
  298. package/demo/node_modules/@types/node/worker_threads.d.ts +0 -692
  299. package/demo/node_modules/@types/node/zlib.d.ts +0 -517
  300. package/demo/node_modules/@types/node-fetch/LICENSE +0 -21
  301. package/demo/node_modules/@types/node-fetch/README.md +0 -15
  302. package/demo/node_modules/@types/node-fetch/externals.d.ts +0 -32
  303. package/demo/node_modules/@types/node-fetch/index.d.ts +0 -238
  304. package/demo/node_modules/@types/node-fetch/package.json +0 -83
  305. package/demo/node_modules/abort-controller/LICENSE +0 -21
  306. package/demo/node_modules/abort-controller/README.md +0 -98
  307. package/demo/node_modules/abort-controller/browser.js +0 -13
  308. package/demo/node_modules/abort-controller/browser.mjs +0 -11
  309. package/demo/node_modules/abort-controller/package.json +0 -97
  310. package/demo/node_modules/abort-controller/polyfill.js +0 -21
  311. package/demo/node_modules/abort-controller/polyfill.mjs +0 -19
  312. package/demo/node_modules/agentkeepalive/History.md +0 -268
  313. package/demo/node_modules/agentkeepalive/LICENSE +0 -23
  314. package/demo/node_modules/agentkeepalive/README.md +0 -256
  315. package/demo/node_modules/agentkeepalive/browser.js +0 -5
  316. package/demo/node_modules/agentkeepalive/index.d.ts +0 -65
  317. package/demo/node_modules/agentkeepalive/index.js +0 -5
  318. package/demo/node_modules/agentkeepalive/lib/agent.js +0 -402
  319. package/demo/node_modules/agentkeepalive/lib/constants.js +0 -14
  320. package/demo/node_modules/agentkeepalive/lib/https_agent.js +0 -51
  321. package/demo/node_modules/agentkeepalive/package.json +0 -56
  322. package/demo/node_modules/asynckit/LICENSE +0 -21
  323. package/demo/node_modules/asynckit/README.md +0 -233
  324. package/demo/node_modules/asynckit/bench.js +0 -76
  325. package/demo/node_modules/asynckit/index.js +0 -6
  326. package/demo/node_modules/asynckit/lib/abort.js +0 -29
  327. package/demo/node_modules/asynckit/lib/async.js +0 -34
  328. package/demo/node_modules/asynckit/lib/defer.js +0 -26
  329. package/demo/node_modules/asynckit/lib/iterate.js +0 -75
  330. package/demo/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  331. package/demo/node_modules/asynckit/lib/readable_parallel.js +0 -25
  332. package/demo/node_modules/asynckit/lib/readable_serial.js +0 -25
  333. package/demo/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  334. package/demo/node_modules/asynckit/lib/state.js +0 -37
  335. package/demo/node_modules/asynckit/lib/streamify.js +0 -141
  336. package/demo/node_modules/asynckit/lib/terminator.js +0 -29
  337. package/demo/node_modules/asynckit/package.json +0 -63
  338. package/demo/node_modules/asynckit/parallel.js +0 -43
  339. package/demo/node_modules/asynckit/serial.js +0 -17
  340. package/demo/node_modules/asynckit/serialOrdered.js +0 -75
  341. package/demo/node_modules/asynckit/stream.js +0 -21
  342. package/demo/node_modules/combined-stream/License +0 -19
  343. package/demo/node_modules/combined-stream/Readme.md +0 -138
  344. package/demo/node_modules/combined-stream/lib/combined_stream.js +0 -208
  345. package/demo/node_modules/combined-stream/package.json +0 -25
  346. package/demo/node_modules/combined-stream/yarn.lock +0 -17
  347. package/demo/node_modules/delayed-stream/License +0 -19
  348. package/demo/node_modules/delayed-stream/Makefile +0 -7
  349. package/demo/node_modules/delayed-stream/Readme.md +0 -141
  350. package/demo/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  351. package/demo/node_modules/delayed-stream/package.json +0 -27
  352. package/demo/node_modules/dotenv/CHANGELOG.md +0 -475
  353. package/demo/node_modules/dotenv/LICENSE +0 -23
  354. package/demo/node_modules/dotenv/README-es.md +0 -448
  355. package/demo/node_modules/dotenv/README.md +0 -728
  356. package/demo/node_modules/dotenv/config.d.ts +0 -1
  357. package/demo/node_modules/dotenv/config.js +0 -9
  358. package/demo/node_modules/dotenv/lib/cli-options.js +0 -11
  359. package/demo/node_modules/dotenv/lib/env-options.js +0 -24
  360. package/demo/node_modules/dotenv/lib/main.d.ts +0 -153
  361. package/demo/node_modules/dotenv/lib/main.js +0 -361
  362. package/demo/node_modules/dotenv/package.json +0 -65
  363. package/demo/node_modules/event-target-shim/LICENSE +0 -22
  364. package/demo/node_modules/event-target-shim/README.md +0 -293
  365. package/demo/node_modules/event-target-shim/index.d.ts +0 -399
  366. package/demo/node_modules/event-target-shim/package.json +0 -82
  367. package/demo/node_modules/form-data/License +0 -19
  368. package/demo/node_modules/form-data/README.md.bak +0 -358
  369. package/demo/node_modules/form-data/Readme.md +0 -358
  370. package/demo/node_modules/form-data/index.d.ts +0 -62
  371. package/demo/node_modules/form-data/lib/browser.js +0 -2
  372. package/demo/node_modules/form-data/lib/form_data.js +0 -501
  373. package/demo/node_modules/form-data/lib/populate.js +0 -10
  374. package/demo/node_modules/form-data/package.json +0 -68
  375. package/demo/node_modules/form-data-encoder/@type/FileLike.d.ts +0 -23
  376. package/demo/node_modules/form-data-encoder/@type/FormDataEncoder.d.ts +0 -160
  377. package/demo/node_modules/form-data-encoder/@type/FormDataLike.d.ts +0 -40
  378. package/demo/node_modules/form-data-encoder/@type/index.d.ts +0 -5
  379. package/demo/node_modules/form-data-encoder/@type/util/createBoundary.d.ts +0 -13
  380. package/demo/node_modules/form-data-encoder/@type/util/escapeName.d.ts +0 -11
  381. package/demo/node_modules/form-data-encoder/@type/util/isFileLike.d.ts +0 -28
  382. package/demo/node_modules/form-data-encoder/@type/util/isFormData.d.ts +0 -15
  383. package/demo/node_modules/form-data-encoder/@type/util/isFunction.d.ts +0 -7
  384. package/demo/node_modules/form-data-encoder/@type/util/isPlainObject.d.ts +0 -2
  385. package/demo/node_modules/form-data-encoder/@type/util/normalizeValue.d.ts +0 -11
  386. package/demo/node_modules/form-data-encoder/lib/cjs/FileLike.js +0 -2
  387. package/demo/node_modules/form-data-encoder/lib/cjs/FormDataEncoder.js +0 -126
  388. package/demo/node_modules/form-data-encoder/lib/cjs/FormDataLike.js +0 -2
  389. package/demo/node_modules/form-data-encoder/lib/cjs/index.js +0 -17
  390. package/demo/node_modules/form-data-encoder/lib/cjs/package.json +0 -3
  391. package/demo/node_modules/form-data-encoder/lib/cjs/util/createBoundary.js +0 -12
  392. package/demo/node_modules/form-data-encoder/lib/cjs/util/escapeName.js +0 -7
  393. package/demo/node_modules/form-data-encoder/lib/cjs/util/isFileLike.js +0 -16
  394. package/demo/node_modules/form-data-encoder/lib/cjs/util/isFormData.js +0 -16
  395. package/demo/node_modules/form-data-encoder/lib/cjs/util/isFunction.js +0 -4
  396. package/demo/node_modules/form-data-encoder/lib/cjs/util/isPlainObject.js +0 -15
  397. package/demo/node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js +0 -11
  398. package/demo/node_modules/form-data-encoder/lib/esm/FileLike.js +0 -1
  399. package/demo/node_modules/form-data-encoder/lib/esm/FormDataEncoder.js +0 -119
  400. package/demo/node_modules/form-data-encoder/lib/esm/FormDataLike.js +0 -1
  401. package/demo/node_modules/form-data-encoder/lib/esm/index.js +0 -5
  402. package/demo/node_modules/form-data-encoder/lib/esm/package.json +0 -3
  403. package/demo/node_modules/form-data-encoder/lib/esm/util/createBoundary.js +0 -10
  404. package/demo/node_modules/form-data-encoder/lib/esm/util/escapeName.js +0 -5
  405. package/demo/node_modules/form-data-encoder/lib/esm/util/isFileLike.js +0 -9
  406. package/demo/node_modules/form-data-encoder/lib/esm/util/isFormData.js +0 -9
  407. package/demo/node_modules/form-data-encoder/lib/esm/util/isFunction.js +0 -2
  408. package/demo/node_modules/form-data-encoder/lib/esm/util/isPlainObject.js +0 -13
  409. package/demo/node_modules/form-data-encoder/lib/esm/util/normalizeValue.js +0 -9
  410. package/demo/node_modules/form-data-encoder/license +0 -21
  411. package/demo/node_modules/form-data-encoder/package.json +0 -63
  412. package/demo/node_modules/form-data-encoder/readme.md +0 -366
  413. package/demo/node_modules/formdata-node/@type/Blob.d.ts +0 -66
  414. package/demo/node_modules/formdata-node/@type/BlobPart.d.ts +0 -2
  415. package/demo/node_modules/formdata-node/@type/File.d.ts +0 -53
  416. package/demo/node_modules/formdata-node/@type/FormData.d.ts +0 -105
  417. package/demo/node_modules/formdata-node/@type/blobHelpers.d.ts +0 -9
  418. package/demo/node_modules/formdata-node/@type/browser.d.ts +0 -10
  419. package/demo/node_modules/formdata-node/@type/deprecateConstructorEntries.d.ts +0 -1
  420. package/demo/node_modules/formdata-node/@type/fileFromPath.d.ts +0 -55
  421. package/demo/node_modules/formdata-node/@type/index.d.ts +0 -3
  422. package/demo/node_modules/formdata-node/@type/isBlob.d.ts +0 -2
  423. package/demo/node_modules/formdata-node/@type/isFile.d.ts +0 -7
  424. package/demo/node_modules/formdata-node/@type/isFunction.d.ts +0 -1
  425. package/demo/node_modules/formdata-node/@type/isPlainObject.d.ts +0 -2
  426. package/demo/node_modules/formdata-node/lib/cjs/Blob.js +0 -122
  427. package/demo/node_modules/formdata-node/lib/cjs/BlobPart.js +0 -2
  428. package/demo/node_modules/formdata-node/lib/cjs/File.js +0 -52
  429. package/demo/node_modules/formdata-node/lib/cjs/FormData.js +0 -148
  430. package/demo/node_modules/formdata-node/lib/cjs/blobHelpers.js +0 -80
  431. package/demo/node_modules/formdata-node/lib/cjs/browser.js +0 -13
  432. package/demo/node_modules/formdata-node/lib/cjs/deprecateConstructorEntries.js +0 -6
  433. package/demo/node_modules/formdata-node/lib/cjs/fileFromPath.js +0 -97
  434. package/demo/node_modules/formdata-node/lib/cjs/index.js +0 -15
  435. package/demo/node_modules/formdata-node/lib/cjs/isBlob.js +0 -6
  436. package/demo/node_modules/formdata-node/lib/cjs/isFile.js +0 -6
  437. package/demo/node_modules/formdata-node/lib/cjs/isFunction.js +0 -5
  438. package/demo/node_modules/formdata-node/lib/cjs/isPlainObject.js +0 -15
  439. package/demo/node_modules/formdata-node/lib/cjs/package.json +0 -3
  440. package/demo/node_modules/formdata-node/lib/esm/Blob.js +0 -118
  441. package/demo/node_modules/formdata-node/lib/esm/BlobPart.js +0 -1
  442. package/demo/node_modules/formdata-node/lib/esm/File.js +0 -48
  443. package/demo/node_modules/formdata-node/lib/esm/FormData.js +0 -144
  444. package/demo/node_modules/formdata-node/lib/esm/blobHelpers.js +0 -75
  445. package/demo/node_modules/formdata-node/lib/esm/browser.js +0 -10
  446. package/demo/node_modules/formdata-node/lib/esm/deprecateConstructorEntries.js +0 -3
  447. package/demo/node_modules/formdata-node/lib/esm/fileFromPath.js +0 -79
  448. package/demo/node_modules/formdata-node/lib/esm/index.js +0 -3
  449. package/demo/node_modules/formdata-node/lib/esm/isBlob.js +0 -2
  450. package/demo/node_modules/formdata-node/lib/esm/isFile.js +0 -2
  451. package/demo/node_modules/formdata-node/lib/esm/isFunction.js +0 -1
  452. package/demo/node_modules/formdata-node/lib/esm/isPlainObject.js +0 -13
  453. package/demo/node_modules/formdata-node/lib/esm/package.json +0 -3
  454. package/demo/node_modules/formdata-node/lib/node-domexception.d.ts +0 -5
  455. package/demo/node_modules/formdata-node/license +0 -21
  456. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/LICENSE +0 -22
  457. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/README.md +0 -135
  458. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/es5/package.json +0 -6
  459. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/package.json +0 -101
  460. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/es5/package.json +0 -5
  461. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/package.json +0 -5
  462. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/polyfill.d.ts +0 -62
  463. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts +0 -775
  464. package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/tsdoc-metadata.json +0 -11
  465. package/demo/node_modules/formdata-node/package.json +0 -94
  466. package/demo/node_modules/formdata-node/readme.md +0 -444
  467. package/demo/node_modules/humanize-ms/History.md +0 -25
  468. package/demo/node_modules/humanize-ms/LICENSE +0 -17
  469. package/demo/node_modules/humanize-ms/README.md +0 -40
  470. package/demo/node_modules/humanize-ms/index.js +0 -24
  471. package/demo/node_modules/humanize-ms/package.json +0 -37
  472. package/demo/node_modules/mime-db/HISTORY.md +0 -507
  473. package/demo/node_modules/mime-db/LICENSE +0 -23
  474. package/demo/node_modules/mime-db/README.md +0 -100
  475. package/demo/node_modules/mime-db/db.json +0 -8519
  476. package/demo/node_modules/mime-db/index.js +0 -12
  477. package/demo/node_modules/mime-db/package.json +0 -60
  478. package/demo/node_modules/mime-types/HISTORY.md +0 -397
  479. package/demo/node_modules/mime-types/LICENSE +0 -23
  480. package/demo/node_modules/mime-types/README.md +0 -113
  481. package/demo/node_modules/mime-types/index.js +0 -188
  482. package/demo/node_modules/mime-types/package.json +0 -44
  483. package/demo/node_modules/ms/index.js +0 -162
  484. package/demo/node_modules/ms/license.md +0 -21
  485. package/demo/node_modules/ms/package.json +0 -38
  486. package/demo/node_modules/ms/readme.md +0 -59
  487. package/demo/node_modules/node-domexception/.history/README_20210527203617.md +0 -2
  488. package/demo/node_modules/node-domexception/.history/README_20210527212714.md +0 -41
  489. package/demo/node_modules/node-domexception/.history/README_20210527213345.md +0 -36
  490. package/demo/node_modules/node-domexception/.history/README_20210527213411.md +0 -36
  491. package/demo/node_modules/node-domexception/.history/README_20210527213803.md +0 -36
  492. package/demo/node_modules/node-domexception/.history/README_20210527214323.md +0 -38
  493. package/demo/node_modules/node-domexception/.history/README_20210527214408.md +0 -38
  494. package/demo/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
  495. package/demo/node_modules/node-domexception/.history/index_20210527203947.js +0 -8
  496. package/demo/node_modules/node-domexception/.history/index_20210527204259.js +0 -9
  497. package/demo/node_modules/node-domexception/.history/index_20210527204418.js +0 -9
  498. package/demo/node_modules/node-domexception/.history/index_20210527204756.js +0 -11
  499. package/demo/node_modules/node-domexception/.history/index_20210527204833.js +0 -11
  500. package/demo/node_modules/node-domexception/.history/index_20210527211208.js +0 -15
  501. package/demo/node_modules/node-domexception/.history/index_20210527211248.js +0 -15
  502. package/demo/node_modules/node-domexception/.history/index_20210527212722.js +0 -23
  503. package/demo/node_modules/node-domexception/.history/index_20210527212731.js +0 -23
  504. package/demo/node_modules/node-domexception/.history/index_20210527212746.js +0 -15
  505. package/demo/node_modules/node-domexception/.history/index_20210527212900.js +0 -16
  506. package/demo/node_modules/node-domexception/.history/index_20210527213022.js +0 -16
  507. package/demo/node_modules/node-domexception/.history/index_20210527213822.js +0 -16
  508. package/demo/node_modules/node-domexception/.history/index_20210527213843.js +0 -17
  509. package/demo/node_modules/node-domexception/.history/index_20210527213852.js +0 -17
  510. package/demo/node_modules/node-domexception/.history/index_20210527213910.js +0 -16
  511. package/demo/node_modules/node-domexception/.history/index_20210527214034.js +0 -16
  512. package/demo/node_modules/node-domexception/.history/index_20210527214643.js +0 -41
  513. package/demo/node_modules/node-domexception/.history/index_20210527214654.js +0 -41
  514. package/demo/node_modules/node-domexception/.history/index_20210527214700.js +0 -16
  515. package/demo/node_modules/node-domexception/.history/package_20210527203733.json +0 -19
  516. package/demo/node_modules/node-domexception/.history/package_20210527203825.json +0 -16
  517. package/demo/node_modules/node-domexception/.history/package_20210527204621.json +0 -19
  518. package/demo/node_modules/node-domexception/.history/package_20210527204913.json +0 -25
  519. package/demo/node_modules/node-domexception/.history/package_20210527204925.json +0 -25
  520. package/demo/node_modules/node-domexception/.history/package_20210527205145.json +0 -29
  521. package/demo/node_modules/node-domexception/.history/package_20210527205156.json +0 -29
  522. package/demo/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
  523. package/demo/node_modules/node-domexception/.history/test_20210527205957.js +0 -3
  524. package/demo/node_modules/node-domexception/.history/test_20210527210021.js +0 -3
  525. package/demo/node_modules/node-domexception/LICENSE +0 -21
  526. package/demo/node_modules/node-domexception/README.md +0 -46
  527. package/demo/node_modules/node-domexception/index.js +0 -16
  528. package/demo/node_modules/node-domexception/package.json +0 -29
  529. package/demo/node_modules/node-fetch/LICENSE.md +0 -22
  530. package/demo/node_modules/node-fetch/README.md +0 -634
  531. package/demo/node_modules/node-fetch/browser.js +0 -25
  532. package/demo/node_modules/node-fetch/lib/index.es.js +0 -1777
  533. package/demo/node_modules/node-fetch/lib/index.js +0 -1787
  534. package/demo/node_modules/node-fetch/lib/index.mjs +0 -1775
  535. package/demo/node_modules/node-fetch/package.json +0 -89
  536. package/demo/node_modules/tr46/index.js +0 -193
  537. package/demo/node_modules/tr46/lib/.gitkeep +0 -0
  538. package/demo/node_modules/tr46/lib/mappingTable.json +0 -1
  539. package/demo/node_modules/tr46/package.json +0 -31
  540. package/demo/node_modules/undici-types/README.md +0 -6
  541. package/demo/node_modules/undici-types/agent.d.ts +0 -31
  542. package/demo/node_modules/undici-types/api.d.ts +0 -43
  543. package/demo/node_modules/undici-types/balanced-pool.d.ts +0 -18
  544. package/demo/node_modules/undici-types/cache.d.ts +0 -36
  545. package/demo/node_modules/undici-types/client.d.ts +0 -97
  546. package/demo/node_modules/undici-types/connector.d.ts +0 -34
  547. package/demo/node_modules/undici-types/content-type.d.ts +0 -21
  548. package/demo/node_modules/undici-types/cookies.d.ts +0 -28
  549. package/demo/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  550. package/demo/node_modules/undici-types/dispatcher.d.ts +0 -241
  551. package/demo/node_modules/undici-types/errors.d.ts +0 -128
  552. package/demo/node_modules/undici-types/fetch.d.ts +0 -209
  553. package/demo/node_modules/undici-types/file.d.ts +0 -39
  554. package/demo/node_modules/undici-types/filereader.d.ts +0 -54
  555. package/demo/node_modules/undici-types/formdata.d.ts +0 -108
  556. package/demo/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  557. package/demo/node_modules/undici-types/global-origin.d.ts +0 -7
  558. package/demo/node_modules/undici-types/handlers.d.ts +0 -9
  559. package/demo/node_modules/undici-types/header.d.ts +0 -4
  560. package/demo/node_modules/undici-types/index.d.ts +0 -63
  561. package/demo/node_modules/undici-types/interceptors.d.ts +0 -5
  562. package/demo/node_modules/undici-types/mock-agent.d.ts +0 -50
  563. package/demo/node_modules/undici-types/mock-client.d.ts +0 -25
  564. package/demo/node_modules/undici-types/mock-errors.d.ts +0 -12
  565. package/demo/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  566. package/demo/node_modules/undici-types/mock-pool.d.ts +0 -25
  567. package/demo/node_modules/undici-types/package.json +0 -55
  568. package/demo/node_modules/undici-types/patch.d.ts +0 -71
  569. package/demo/node_modules/undici-types/pool-stats.d.ts +0 -19
  570. package/demo/node_modules/undici-types/pool.d.ts +0 -28
  571. package/demo/node_modules/undici-types/proxy-agent.d.ts +0 -30
  572. package/demo/node_modules/undici-types/readable.d.ts +0 -61
  573. package/demo/node_modules/undici-types/webidl.d.ts +0 -220
  574. package/demo/node_modules/undici-types/websocket.d.ts +0 -131
  575. package/demo/node_modules/web-streams-polyfill/LICENSE +0 -22
  576. package/demo/node_modules/web-streams-polyfill/README.md +0 -110
  577. package/demo/node_modules/web-streams-polyfill/es2018/package.json +0 -14
  578. package/demo/node_modules/web-streams-polyfill/es6/package.json +0 -14
  579. package/demo/node_modules/web-streams-polyfill/package.json +0 -83
  580. package/demo/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +0 -13
  581. package/demo/node_modules/web-streams-polyfill/ponyfill/es6/package.json +0 -13
  582. package/demo/node_modules/web-streams-polyfill/ponyfill/package.json +0 -13
  583. package/demo/node_modules/webidl-conversions/LICENSE.md +0 -12
  584. package/demo/node_modules/webidl-conversions/README.md +0 -53
  585. package/demo/node_modules/webidl-conversions/lib/index.js +0 -189
  586. package/demo/node_modules/webidl-conversions/package.json +0 -23
  587. package/demo/node_modules/whatwg-url/LICENSE.txt +0 -21
  588. package/demo/node_modules/whatwg-url/README.md +0 -67
  589. package/demo/node_modules/whatwg-url/lib/URL-impl.js +0 -200
  590. package/demo/node_modules/whatwg-url/lib/URL.js +0 -196
  591. package/demo/node_modules/whatwg-url/lib/public-api.js +0 -11
  592. package/demo/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
  593. package/demo/node_modules/whatwg-url/lib/utils.js +0 -20
  594. package/demo/node_modules/whatwg-url/package.json +0 -32
@@ -1,144 +0,0 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _FormData_instances, _FormData_entries, _FormData_setEntry;
7
- import { inspect } from "util";
8
- import { File } from "./File.js";
9
- import { isFile } from "./isFile.js";
10
- import { isBlob } from "./isBlob.js";
11
- import { isFunction } from "./isFunction.js";
12
- import { deprecateConstructorEntries } from "./deprecateConstructorEntries.js";
13
- export class FormData {
14
- constructor(entries) {
15
- _FormData_instances.add(this);
16
- _FormData_entries.set(this, new Map());
17
- if (entries) {
18
- deprecateConstructorEntries();
19
- entries.forEach(({ name, value, fileName }) => this.append(name, value, fileName));
20
- }
21
- }
22
- static [(_FormData_entries = new WeakMap(), _FormData_instances = new WeakSet(), Symbol.hasInstance)](value) {
23
- return Boolean(value
24
- && isFunction(value.constructor)
25
- && value[Symbol.toStringTag] === "FormData"
26
- && isFunction(value.append)
27
- && isFunction(value.set)
28
- && isFunction(value.get)
29
- && isFunction(value.getAll)
30
- && isFunction(value.has)
31
- && isFunction(value.delete)
32
- && isFunction(value.entries)
33
- && isFunction(value.values)
34
- && isFunction(value.keys)
35
- && isFunction(value[Symbol.iterator])
36
- && isFunction(value.forEach));
37
- }
38
- append(name, value, fileName) {
39
- __classPrivateFieldGet(this, _FormData_instances, "m", _FormData_setEntry).call(this, {
40
- name,
41
- fileName,
42
- append: true,
43
- rawValue: value,
44
- argsLength: arguments.length
45
- });
46
- }
47
- set(name, value, fileName) {
48
- __classPrivateFieldGet(this, _FormData_instances, "m", _FormData_setEntry).call(this, {
49
- name,
50
- fileName,
51
- append: false,
52
- rawValue: value,
53
- argsLength: arguments.length
54
- });
55
- }
56
- get(name) {
57
- const field = __classPrivateFieldGet(this, _FormData_entries, "f").get(String(name));
58
- if (!field) {
59
- return null;
60
- }
61
- return field[0];
62
- }
63
- getAll(name) {
64
- const field = __classPrivateFieldGet(this, _FormData_entries, "f").get(String(name));
65
- if (!field) {
66
- return [];
67
- }
68
- return field.slice();
69
- }
70
- has(name) {
71
- return __classPrivateFieldGet(this, _FormData_entries, "f").has(String(name));
72
- }
73
- delete(name) {
74
- __classPrivateFieldGet(this, _FormData_entries, "f").delete(String(name));
75
- }
76
- *keys() {
77
- for (const key of __classPrivateFieldGet(this, _FormData_entries, "f").keys()) {
78
- yield key;
79
- }
80
- }
81
- *entries() {
82
- for (const name of this.keys()) {
83
- const values = this.getAll(name);
84
- for (const value of values) {
85
- yield [name, value];
86
- }
87
- }
88
- }
89
- *values() {
90
- for (const [, value] of this) {
91
- yield value;
92
- }
93
- }
94
- [(_FormData_setEntry = function _FormData_setEntry({ name, rawValue, append, fileName, argsLength }) {
95
- const methodName = append ? "append" : "set";
96
- if (argsLength < 2) {
97
- throw new TypeError(`Failed to execute '${methodName}' on 'FormData': `
98
- + `2 arguments required, but only ${argsLength} present.`);
99
- }
100
- name = String(name);
101
- let value;
102
- if (isFile(rawValue)) {
103
- value = fileName === undefined
104
- ? rawValue
105
- : new File([rawValue], fileName, {
106
- type: rawValue.type,
107
- lastModified: rawValue.lastModified
108
- });
109
- }
110
- else if (isBlob(rawValue)) {
111
- value = new File([rawValue], fileName === undefined ? "blob" : fileName, {
112
- type: rawValue.type
113
- });
114
- }
115
- else if (fileName) {
116
- throw new TypeError(`Failed to execute '${methodName}' on 'FormData': `
117
- + "parameter 2 is not of type 'Blob'.");
118
- }
119
- else {
120
- value = String(rawValue);
121
- }
122
- const values = __classPrivateFieldGet(this, _FormData_entries, "f").get(name);
123
- if (!values) {
124
- return void __classPrivateFieldGet(this, _FormData_entries, "f").set(name, [value]);
125
- }
126
- if (!append) {
127
- return void __classPrivateFieldGet(this, _FormData_entries, "f").set(name, [value]);
128
- }
129
- values.push(value);
130
- }, Symbol.iterator)]() {
131
- return this.entries();
132
- }
133
- forEach(callback, thisArg) {
134
- for (const [name, value] of this) {
135
- callback.call(thisArg, value, name, this);
136
- }
137
- }
138
- get [Symbol.toStringTag]() {
139
- return "FormData";
140
- }
141
- [inspect.custom]() {
142
- return this[Symbol.toStringTag];
143
- }
144
- }
@@ -1,75 +0,0 @@
1
- /*! Based on fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> & David Frank */
2
- import { isFunction } from "./isFunction.js";
3
- const CHUNK_SIZE = 65536;
4
- async function* clonePart(part) {
5
- const end = part.byteOffset + part.byteLength;
6
- let position = part.byteOffset;
7
- while (position !== end) {
8
- const size = Math.min(end - position, CHUNK_SIZE);
9
- const chunk = part.buffer.slice(position, position + size);
10
- position += chunk.byteLength;
11
- yield new Uint8Array(chunk);
12
- }
13
- }
14
- async function* consumeNodeBlob(blob) {
15
- let position = 0;
16
- while (position !== blob.size) {
17
- const chunk = blob.slice(position, Math.min(blob.size, position + CHUNK_SIZE));
18
- const buffer = await chunk.arrayBuffer();
19
- position += buffer.byteLength;
20
- yield new Uint8Array(buffer);
21
- }
22
- }
23
- export async function* consumeBlobParts(parts, clone = false) {
24
- for (const part of parts) {
25
- if (ArrayBuffer.isView(part)) {
26
- if (clone) {
27
- yield* clonePart(part);
28
- }
29
- else {
30
- yield part;
31
- }
32
- }
33
- else if (isFunction(part.stream)) {
34
- yield* part.stream();
35
- }
36
- else {
37
- yield* consumeNodeBlob(part);
38
- }
39
- }
40
- }
41
- export function* sliceBlob(blobParts, blobSize, start = 0, end) {
42
- end !== null && end !== void 0 ? end : (end = blobSize);
43
- let relativeStart = start < 0
44
- ? Math.max(blobSize + start, 0)
45
- : Math.min(start, blobSize);
46
- let relativeEnd = end < 0
47
- ? Math.max(blobSize + end, 0)
48
- : Math.min(end, blobSize);
49
- const span = Math.max(relativeEnd - relativeStart, 0);
50
- let added = 0;
51
- for (const part of blobParts) {
52
- if (added >= span) {
53
- break;
54
- }
55
- const partSize = ArrayBuffer.isView(part) ? part.byteLength : part.size;
56
- if (relativeStart && partSize <= relativeStart) {
57
- relativeStart -= partSize;
58
- relativeEnd -= partSize;
59
- }
60
- else {
61
- let chunk;
62
- if (ArrayBuffer.isView(part)) {
63
- chunk = part.subarray(relativeStart, Math.min(partSize, relativeEnd));
64
- added += chunk.byteLength;
65
- }
66
- else {
67
- chunk = part.slice(relativeStart, Math.min(partSize, relativeEnd));
68
- added += chunk.size;
69
- }
70
- relativeEnd -= partSize;
71
- relativeStart = 0;
72
- yield chunk;
73
- }
74
- }
75
- }
@@ -1,10 +0,0 @@
1
- const globalObject = (function () {
2
- if (typeof globalThis !== "undefined") {
3
- return globalThis;
4
- }
5
- if (typeof self !== "undefined") {
6
- return self;
7
- }
8
- return window;
9
- }());
10
- export const { FormData, Blob, File } = globalObject;
@@ -1,3 +0,0 @@
1
- import { deprecate } from "util";
2
- export const deprecateConstructorEntries = deprecate(() => { }, "Constructor \"entries\" argument is not spec-compliant "
3
- + "and will be removed in next major release.");
@@ -1,79 +0,0 @@
1
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
- if (kind === "m") throw new TypeError("Private method is not writable");
3
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
- };
7
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
- };
12
- var _FileFromPath_path, _FileFromPath_start;
13
- import { statSync, createReadStream, promises as fs } from "fs";
14
- import { basename } from "path";
15
- import DOMException from "node-domexception";
16
- import { File } from "./File.js";
17
- import isPlainObject from "./isPlainObject.js";
18
- export * from "./isFile.js";
19
- const MESSAGE = "The requested file could not be read, "
20
- + "typically due to permission problems that have occurred after a reference "
21
- + "to a file was acquired.";
22
- class FileFromPath {
23
- constructor(input) {
24
- _FileFromPath_path.set(this, void 0);
25
- _FileFromPath_start.set(this, void 0);
26
- __classPrivateFieldSet(this, _FileFromPath_path, input.path, "f");
27
- __classPrivateFieldSet(this, _FileFromPath_start, input.start || 0, "f");
28
- this.name = basename(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
29
- this.size = input.size;
30
- this.lastModified = input.lastModified;
31
- }
32
- slice(start, end) {
33
- return new FileFromPath({
34
- path: __classPrivateFieldGet(this, _FileFromPath_path, "f"),
35
- lastModified: this.lastModified,
36
- size: end - start,
37
- start
38
- });
39
- }
40
- async *stream() {
41
- const { mtimeMs } = await fs.stat(__classPrivateFieldGet(this, _FileFromPath_path, "f"));
42
- if (mtimeMs > this.lastModified) {
43
- throw new DOMException(MESSAGE, "NotReadableError");
44
- }
45
- if (this.size) {
46
- yield* createReadStream(__classPrivateFieldGet(this, _FileFromPath_path, "f"), {
47
- start: __classPrivateFieldGet(this, _FileFromPath_start, "f"),
48
- end: __classPrivateFieldGet(this, _FileFromPath_start, "f") + this.size - 1
49
- });
50
- }
51
- }
52
- get [(_FileFromPath_path = new WeakMap(), _FileFromPath_start = new WeakMap(), Symbol.toStringTag)]() {
53
- return "File";
54
- }
55
- }
56
- function createFileFromPath(path, { mtimeMs, size }, filenameOrOptions, options = {}) {
57
- let filename;
58
- if (isPlainObject(filenameOrOptions)) {
59
- [options, filename] = [filenameOrOptions, undefined];
60
- }
61
- else {
62
- filename = filenameOrOptions;
63
- }
64
- const file = new FileFromPath({ path, size, lastModified: mtimeMs });
65
- if (!filename) {
66
- filename = file.name;
67
- }
68
- return new File([file], filename, {
69
- ...options, lastModified: file.lastModified
70
- });
71
- }
72
- export function fileFromPathSync(path, filenameOrOptions, options = {}) {
73
- const stats = statSync(path);
74
- return createFileFromPath(path, stats, filenameOrOptions, options);
75
- }
76
- export async function fileFromPath(path, filenameOrOptions, options) {
77
- const stats = await fs.stat(path);
78
- return createFileFromPath(path, stats, filenameOrOptions, options);
79
- }
@@ -1,3 +0,0 @@
1
- export * from "./FormData.js";
2
- export * from "./Blob.js";
3
- export * from "./File.js";
@@ -1,2 +0,0 @@
1
- import { Blob } from "./Blob.js";
2
- export const isBlob = (value) => value instanceof Blob;
@@ -1,2 +0,0 @@
1
- import { File } from "./File.js";
2
- export const isFile = (value) => value instanceof File;
@@ -1 +0,0 @@
1
- export const isFunction = (value) => (typeof value === "function");
@@ -1,13 +0,0 @@
1
- const getType = (value) => (Object.prototype.toString.call(value).slice(8, -1).toLowerCase());
2
- function isPlainObject(value) {
3
- if (getType(value) !== "object") {
4
- return false;
5
- }
6
- const pp = Object.getPrototypeOf(value);
7
- if (pp === null || pp === undefined) {
8
- return true;
9
- }
10
- const Ctor = pp.constructor && pp.constructor.toString();
11
- return Ctor === Object.toString();
12
- }
13
- export default isPlainObject;
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,5 +0,0 @@
1
- declare class DOMException {
2
- constructor(message: string, name: string)
3
- }
4
-
5
- export default DOMException
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017-present Nick K.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,22 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 Mattias Buelens
4
- Copyright (c) 2016 Diwank Singh Tomer
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
@@ -1,135 +0,0 @@
1
- # web-streams-polyfill
2
-
3
- Web Streams, based on the WHATWG spec reference implementation.
4
-
5
- [![build status](https://api.travis-ci.com/MattiasBuelens/web-streams-polyfill.svg?branch=master)](https://travis-ci.com/MattiasBuelens/web-streams-polyfill)
6
- [![npm version](https://img.shields.io/npm/v/web-streams-polyfill.svg)](https://www.npmjs.com/package/web-streams-polyfill)
7
- [![license](https://img.shields.io/npm/l/web-streams-polyfill.svg)](https://github.com/MattiasBuelens/web-streams-polyfill/blob/master/LICENSE)
8
- [![Join the chat at https://gitter.im/web-streams-polyfill/Lobby](https://badges.gitter.im/web-streams-polyfill/Lobby.svg)](https://gitter.im/web-streams-polyfill/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9
-
10
- ## Links
11
-
12
- - [Official spec][spec]
13
- - [Reference implementation][ref-impl]
14
-
15
- ## Usage
16
-
17
- This library comes in multiple variants:
18
- * `web-streams-polyfill`: a [ponyfill] that provides the stream implementations
19
- without replacing any globals, targeting ES2015+ environments.
20
- * ✅ Node 6+ through `import` or `require()`
21
- * ✅ Modern web browsers through `import`/`export` or `<script type="module">`
22
- * ✅ Web apps for modern browsers using a bundler (like webpack or Rollup)
23
- * `web-streams-polyfill/es5`: a ponyfill targeting ES5+ environments.
24
- * ✅ Legacy Node through `require()`
25
- * ✅ Legacy web browsers through [AMD][amd]
26
- * ✅ Web apps for legacy browsers using a bundler (like webpack or Rollup)
27
- * `web-streams-polyfill/polyfill`: a polyfill that replaces the native stream implementations,
28
- targeting ES2015+ environments.
29
- * ✅ Modern web browsers through regular `<script>`
30
- * `web-streams-polyfill/polyfill/es5`: a polyfill targeting ES5+ environments.
31
- * ✅ Legacy web browsers through regular `<script>`
32
-
33
- Each variant also includes TypeScript type definitions, compatible with the DOM type definitions for streams included in TypeScript.
34
-
35
- In version 4, the list of variants was reworked to have more modern defaults and to reduce the download size of the package.
36
- See the [migration guide][migrating] for more information.
37
-
38
- Usage as a polyfill:
39
- ```html
40
- <!-- option 1: hosted by unpkg CDN -->
41
- <script src="https://unpkg.com/web-streams-polyfill/dist/polyfill.js"></script>
42
- <!-- option 2: self hosted -->
43
- <script src="/path/to/web-streams-polyfill/dist/polyfill.js"></script>
44
- <script>
45
- var readable = new ReadableStream();
46
- </script>
47
- ```
48
- Usage as a Node module:
49
- ```js
50
- var streams = require("web-streams-polyfill");
51
- var readable = new streams.ReadableStream();
52
- ```
53
- Usage as a ponyfill from within a ES2015 module:
54
- ```js
55
- import { ReadableStream } from "web-streams-polyfill";
56
- const readable = new ReadableStream();
57
- ```
58
- Usage as a polyfill from within an ES2015 module:
59
- ```js
60
- import "web-streams-polyfill/polyfill";
61
- const readable = new ReadableStream();
62
- ```
63
-
64
- ## Compatibility
65
-
66
- The default and `polyfill` variants work in any ES2015-compatible environment.
67
-
68
- The `es5` and `polyfill/es5` variants work in any ES5-compatible environment that has a global `Promise`.
69
- If you need to support older browsers or Node versions that do not have a native `Promise` implementation
70
- (check the [support table][promise-support]), you must first include a `Promise` polyfill
71
- (e.g. [promise-polyfill][promise-polyfill]).
72
-
73
- [Async iterable support for `ReadableStream`][rs-asynciterator] is available in all variants, but requires an ES2018-compatible environment or a polyfill for `Symbol.asyncIterator`.
74
-
75
- [`WritableStreamDefaultController.signal`][ws-controller-signal] is available in all variants, but requires a global `AbortController` constructor. If necessary, consider using a polyfill such as [abortcontroller-polyfill].
76
-
77
- ## Compliance
78
-
79
- The polyfill implements [version `e9355ce` (18 Apr 2022)][spec-snapshot] of the streams specification.
80
-
81
- The polyfill is tested against the same [web platform tests][wpt] that are used by browsers to test their native implementations.
82
- It aims to pass all tests, although it allows some exceptions for practical reasons:
83
- * The default (ES2015) variant passes all of the tests, except for:
84
- * The ["bad buffers and views" tests for readable byte streams][wpt-bad-buffers].
85
- These tests require the implementation to synchronously transfer the contents of an `ArrayBuffer`, which is not yet possible from JavaScript (although there is a [proposal][proposal-arraybuffer-transfer] to make it possible).
86
- The reference implementation "cheats" on these tests [by making a copy instead][ref-impl-transferarraybuffer], but that is unacceptable for the polyfill's performance ([#3][issue-3]).
87
- * The [test for the prototype of `ReadableStream`'s async iterator][wpt-async-iterator-prototype].
88
- Retrieving the correct `%AsyncIteratorPrototype%` requires using an async generator (`async function* () {}`), which is invalid syntax before ES2018.
89
- Instead, the polyfill [creates its own version][stub-async-iterator-prototype] which is functionally equivalent to the real prototype.
90
- * The tests [with patched globals][wpt-rs-patched-global] and [with `Object.prototype.then`][wpt-then-interception].
91
- These tests are meant for browsers to ensure user-land modifications cannot affect the internal logic of `pipeTo()` and `tee()`.
92
- However, it's not reasonable or desirable for a user-land polyfill to try and isolate itself completely from using the global `Object`.
93
- * Certain `pipeTo()` tests that require synchronous inspection of the stream's state ([1][wpt-pipe-sync-state-1], [2][wpt-pipe-sync-state-2]).
94
- Because the polyfill uses the public `getReader()` and `getWriter()` API to implement `pipeTo()`, it can only *asynchronously* observe if and when a stream becomes closed or errored.
95
- Therefore, when the readable and the writable end become errored *at the exact same time*, it's difficult for the polyfill to observe these state changes in exactly the same order.
96
- * The ES5 variant passes the same tests as the ES2015 variant, except for various tests about specific characteristics of the constructors, properties and methods.
97
- These test failures do not affect the run-time behavior of the polyfill.
98
- For example:
99
- * The `name` property of down-leveled constructors is incorrect.
100
- * The `length` property of down-leveled constructors and methods with optional arguments is incorrect.
101
- * Not all properties and methods are correctly marked as non-enumerable.
102
- * Down-leveled class methods are not correctly marked as non-constructable.
103
-
104
- The type definitions are compatible with the built-in stream types of TypeScript 3.3 and higher.
105
-
106
- ## Contributors
107
-
108
- Thanks to these people for their work on [the original polyfill][creatorrr-polyfill]:
109
-
110
- - Diwank Singh Tomer ([creatorrr](https://github.com/creatorrr))
111
- - Anders Riutta ([ariutta](https://github.com/ariutta))
112
-
113
- [spec]: https://streams.spec.whatwg.org
114
- [ref-impl]: https://github.com/whatwg/streams
115
- [ponyfill]: https://github.com/sindresorhus/ponyfill
116
- [amd]: https://requirejs.org/docs/whyamd.html
117
- [migrating]: https://github.com/MattiasBuelens/web-streams-polyfill/blob/v4.0.0-beta.3/MIGRATING.md
118
- [promise-support]: https://kangax.github.io/compat-table/es6/#test-Promise
119
- [promise-polyfill]: https://www.npmjs.com/package/promise-polyfill
120
- [rs-asynciterator]: https://streams.spec.whatwg.org/#rs-asynciterator
121
- [ws-controller-signal]: https://streams.spec.whatwg.org/#ws-default-controller-signal
122
- [abortcontroller-polyfill]: https://www.npmjs.com/package/abortcontroller-polyfill
123
- [spec-snapshot]: https://streams.spec.whatwg.org/commit-snapshots/e9355ce79925947e8eb496563d599c329769d315/
124
- [wpt]: https://github.com/web-platform-tests/wpt/tree/6a46d9cb8d20c510a620141c721b81b460a4ee55/streams
125
- [wpt-bad-buffers]: https://github.com/web-platform-tests/wpt/blob/6a46d9cb8d20c510a620141c721b81b460a4ee55/streams/readable-byte-streams/bad-buffers-and-views.any.js
126
- [proposal-arraybuffer-transfer]: https://github.com/domenic/proposal-arraybuffer-transfer
127
- [ref-impl-transferarraybuffer]: https://github.com/whatwg/streams/blob/e9355ce79925947e8eb496563d599c329769d315/reference-implementation/lib/abstract-ops/ecmascript.js#L16
128
- [issue-3]: https://github.com/MattiasBuelens/web-streams-polyfill/issues/3
129
- [wpt-async-iterator-prototype]: https://github.com/web-platform-tests/wpt/blob/6a46d9cb8d20c510a620141c721b81b460a4ee55/streams/readable-streams/async-iterator.any.js#L24
130
- [stub-async-iterator-prototype]: https://github.com/MattiasBuelens/web-streams-polyfill/blob/v4.0.0-beta.3/src/lib/readable-stream/async-iterator.ts#L126-L134
131
- [wpt-rs-patched-global]: https://github.com/web-platform-tests/wpt/blob/887350c2f46def5b01c4dd1f8d2eee35dfb9c5bb/streams/readable-streams/patched-global.any.js
132
- [wpt-then-interception]: https://github.com/web-platform-tests/wpt/blob/cf33f00596af295ee0f207c88e23b5f8b0791307/streams/piping/then-interception.any.js
133
- [wpt-pipe-sync-state-1]: https://github.com/web-platform-tests/wpt/blob/e1e713c842e54ea0a9410ddc988b63d0e1d31973/streams/piping/multiple-propagation.any.js#L30-L53
134
- [wpt-pipe-sync-state-2]: https://github.com/web-platform-tests/wpt/blob/e1e713c842e54ea0a9410ddc988b63d0e1d31973/streams/piping/multiple-propagation.any.js#L114-L138
135
- [creatorrr-polyfill]: https://github.com/creatorrr/web-streams-polyfill
@@ -1,6 +0,0 @@
1
- {
2
- "name": "web-streams-polyfill",
3
- "main": "../dist/ponyfill.es5.js",
4
- "module": "../dist/ponyfill.es5.mjs",
5
- "types": "../types/ponyfill.d.ts"
6
- }
@@ -1,101 +0,0 @@
1
- {
2
- "name": "web-streams-polyfill",
3
- "version": "4.0.0-beta.3",
4
- "description": "Web Streams, based on the WHATWG spec reference implementation",
5
- "main": "dist/ponyfill.js",
6
- "module": "dist/ponyfill.mjs",
7
- "types": "types/ponyfill.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./types/ponyfill.d.ts",
11
- "import": "./dist/ponyfill.mjs",
12
- "require": "./dist/ponyfill.js"
13
- },
14
- "./es5": {
15
- "types": "./types/ponyfill.d.ts",
16
- "import": "./dist/ponyfill.es5.mjs",
17
- "require": "./dist/ponyfill.es5.js"
18
- },
19
- "./polyfill": {
20
- "types": "./types/polyfill.d.ts",
21
- "default": "./dist/polyfill.js"
22
- },
23
- "./polyfill/es5": {
24
- "types": "./types/polyfill.d.ts",
25
- "default": "./dist/polyfill.es5.js"
26
- },
27
- "./dist/*": "./dist/*",
28
- "./types/*": "./types/*",
29
- "./package": "./package.json",
30
- "./package.json": "./package.json"
31
- },
32
- "scripts": {
33
- "test": "npm run test:types && npm run test:unit && npm run test:wpt && npm run test:bundler",
34
- "test:wpt": "npm run test:wpt:node && npm run test:wpt:chromium && npm run test:wpt:firefox",
35
- "test:wpt:node": "node --expose_gc ./test/wpt/node/run.js",
36
- "test:wpt:chromium": "node ./test/wpt/browser/run.js --browser chromium",
37
- "test:wpt:firefox": "node ./test/wpt/browser/run.js --browser firefox",
38
- "test:bundler": "npm run test:bundler:rollup && npm run test:bundler:webpack",
39
- "test:bundler:rollup": "cd test/rollup && npm ci && npm test",
40
- "test:bundler:webpack": "cd test/webpack && npm ci && npm test",
41
- "test:types": "tsc -p ./test/types/tsconfig.json",
42
- "test:unit": "node --experimental-import-meta-resolve ./node_modules/jasmine/bin/jasmine.js --config=test/unit/jasmine.json",
43
- "lint": "eslint \"src/**/*.ts\"",
44
- "build": "npm run build:bundle && npm run build:types",
45
- "build:bundle": "rollup -c",
46
- "build:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run",
47
- "accept:types": "tsc --project . --emitDeclarationOnly --declarationDir ./lib && api-extractor run --local",
48
- "prepare": "npm run build"
49
- },
50
- "files": [
51
- "dist",
52
- "es5",
53
- "polyfill",
54
- "types"
55
- ],
56
- "engines": {
57
- "node": ">= 14"
58
- },
59
- "repository": {
60
- "type": "git",
61
- "url": "git+https://github.com/MattiasBuelens/web-streams-polyfill.git"
62
- },
63
- "keywords": [
64
- "streams",
65
- "whatwg",
66
- "polyfill"
67
- ],
68
- "author": "Mattias Buelens <mattias@buelens.com>",
69
- "contributors": [
70
- "Diwank Singh <diwank.singh@gmail.com>"
71
- ],
72
- "license": "MIT",
73
- "bugs": {
74
- "url": "https://github.com/MattiasBuelens/web-streams-polyfill/issues"
75
- },
76
- "homepage": "https://github.com/MattiasBuelens/web-streams-polyfill#readme",
77
- "devDependencies": {
78
- "@microsoft/api-extractor": "^7.21.2",
79
- "@rollup/plugin-inject": "^4.0.4",
80
- "@rollup/plugin-replace": "^4.0.0",
81
- "@rollup/plugin-strip": "^2.1.0",
82
- "@rollup/plugin-typescript": "^8.3.1",
83
- "@types/jasmine": "^4.0.2",
84
- "@types/node": "^14.18.12",
85
- "@typescript-eslint/eslint-plugin": "^5.19.0",
86
- "@typescript-eslint/parser": "^5.19.0",
87
- "@ungap/promise-all-settled": "^1.1.2",
88
- "abort-controller": "^3.0.0",
89
- "eslint": "^8.13.0",
90
- "jasmine": "^4.0.2",
91
- "micromatch": "^4.0.5",
92
- "minimist": "^1.2.6",
93
- "playwright": "^1.20.2",
94
- "recursive-readdir": "^2.2.2",
95
- "rollup": "^2.70.1",
96
- "rollup-plugin-terser": "^7.0.2",
97
- "tslib": "^2.3.1",
98
- "typescript": "^4.7.0-beta",
99
- "wpt-runner": "^4.1.0"
100
- }
101
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "web-streams-polyfill",
3
- "main": "../../dist/polyfill.es5.js",
4
- "types": "../../types/polyfill.d.ts"
5
- }