decocms 2.185.0 → 2.186.1

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 (262) hide show
  1. package/dist/client/assets/{AlertCircle-BO0kzcBv.js → AlertCircle-K-Pdcic9.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-CrI91Scn.js → ArrowLeft-DbjuKsKJ.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-FfROzAyV.js → ArrowUp-CVgf-IuM.js} +1 -1
  4. package/dist/client/assets/{Check-BXqqUm0J.js → Check-5J8pLufa.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-B6V9GzuP.js → ChevronDown-azX3X6AX.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-BSFLHUtv.js → ChevronRight-BU9wyepR.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-BYpnL-9F.js → ChevronUp-ISSymo50.js} +1 -1
  8. package/dist/client/assets/{Container-BZeblIrR.js → Container-DO3SbooR.js} +1 -1
  9. package/dist/client/assets/{Dataflow03-CTwEKVcs.js → Dataflow03-DDjLJJPt.js} +1 -1
  10. package/dist/client/assets/{Download01-D7T-WxGL.js → Download01-CSi5s7rT.js} +1 -1
  11. package/dist/client/assets/{FolderClosed-BPzjOG-5.js → FolderClosed-DG1khNab.js} +1 -1
  12. package/dist/client/assets/{Grid01-Bwsn0nh2.js → Grid01-1OtRlqYA.js} +1 -1
  13. package/dist/client/assets/{List-Bq1Yvo6z.js → List-CD8zd6Wa.js} +1 -1
  14. package/dist/client/assets/{Loading01-DCKwAh-U.js → Loading01-CYdiDh3l.js} +1 -1
  15. package/dist/client/assets/{Play-Bw_aeuhq.js → Play-3YhDYx27.js} +1 -1
  16. package/dist/client/assets/{Plus-BW2fNoEy.js → Plus-V1Th1jdv.js} +1 -1
  17. package/dist/client/assets/{RefreshCcw01-YXuL16Jx.js → RefreshCcw01-Bk3rOtaE.js} +1 -1
  18. package/dist/client/assets/{SearchMd-C_bEWIlQ.js → SearchMd-BvvZzTkV.js} +1 -1
  19. package/dist/client/assets/{Settings01-BoOhxJJj.js → Settings01-BhEewSHV.js} +1 -1
  20. package/dist/client/assets/{Trash01-D9O3UWX6.js → Trash01-DEYpLJs9.js} +1 -1
  21. package/dist/client/assets/{Type01-CjsMMlh6.js → Type01-DPCWeoOo.js} +1 -1
  22. package/dist/client/assets/{Upload01-Bpjo_QI4.js → Upload01-CVsYMTIG.js} +1 -1
  23. package/dist/client/assets/{User01-BRC1qZ-u.js → User01-B6InEsCV.js} +1 -1
  24. package/dist/client/assets/{VideoRecorder-DkcbdsZk.js → VideoRecorder-DWwuCAKx.js} +1 -1
  25. package/dist/client/assets/{X-BL1q6dsE.js → X-DSEUOZBv.js} +1 -1
  26. package/dist/client/assets/{XCircle-DxcmI8rf.js → XCircle-BDF0JqjY.js} +1 -1
  27. package/dist/client/assets/{XClose-CslgPORS.js → XClose-C-lSsuAr.js} +1 -1
  28. package/dist/client/assets/{Zap-DERWnfoj.js → Zap-Md9DJ6rv.js} +1 -1
  29. package/dist/client/assets/{agent-connections-preview-Dq0Ojrk0.js → agent-connections-preview-BjYZmjl3.js} +1 -1
  30. package/dist/client/assets/{agent-detail-YxF3rQGf.js → agent-detail-Dj0OUG-D.js} +1 -1
  31. package/dist/client/assets/{agents-C2G5xDCJ.js → agents-DZR4cSbV.js} +1 -1
  32. package/dist/client/assets/{ai-providers-logos-BbTN2hb6.js → ai-providers-logos-pBxdceXx.js} +1 -1
  33. package/dist/client/assets/{alert-dialog-yWVMNVBj.js → alert-dialog-CJVLkF8s.js} +1 -1
  34. package/dist/client/assets/{auth-catchall-CTzVQ5KH.js → auth-catchall-CyapYNp9.js} +1 -1
  35. package/dist/client/assets/{automation-detail-MKjn-Qas.js → automation-detail-DUb_NKWf.js} +1 -1
  36. package/dist/client/assets/{automations-DpKH4m8F.js → automations-B339F6Fn.js} +1 -1
  37. package/dist/client/assets/{avatar-87qJKKK_.js → avatar-BiJdl6Xf.js} +1 -1
  38. package/dist/client/assets/{badge-C2jHxnoS.js → badge-BbY1Vzps.js} +1 -1
  39. package/dist/client/assets/{binder-BaB8rAtx.js → binder-3anAL5WI.js} +1 -1
  40. package/dist/client/assets/{breadcrumb-CBpEGiAs.js → breadcrumb-BM2hSfLB.js} +1 -1
  41. package/dist/client/assets/{card-CUrYBr2J.js → card-D1l6f7HS.js} +1 -1
  42. package/dist/client/assets/{checkbox-RHvkU3ym.js → checkbox-GcV7rItk.js} +1 -1
  43. package/dist/client/assets/{collapsible-BaB71DBr.js → collapsible-E7EbAleb.js} +1 -1
  44. package/dist/client/assets/{collection-detail-iBwR9WNE.js → collection-detail-md2_reRY.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-BetF6DhL.js → collection-display-button-BN69LmBz.js} +1 -1
  46. package/dist/client/assets/{collection-search-DcVVKJ8Q.js → collection-search-CcVBsN85.js} +1 -1
  47. package/dist/client/assets/{collection-table-wrapper-D9WWtdCi.js → collection-table-wrapper-BPFLr1-v.js} +1 -1
  48. package/dist/client/assets/{collection-tabs-Df3Ptc0I.js → collection-tabs-BijGeHYB.js} +1 -1
  49. package/dist/client/assets/{command-CMOZJSSv.js → command-KtP0d-HZ.js} +1 -1
  50. package/dist/client/assets/{connection-card-CKJwNgpO.js → connection-card-DT3Fx28T.js} +1 -1
  51. package/dist/client/assets/{connection-detail-Dbycfmu5.js → connection-detail-DwgDpXcB.js} +1 -1
  52. package/dist/client/assets/{connections-jKPi1hZg.js → connections-C_kRN8jY.js} +1 -1
  53. package/dist/client/assets/{constants-Dzy_AMuL.js → constants-2OCwh60p.js} +1 -1
  54. package/dist/client/assets/constants-BwEgB5ct.js +1 -0
  55. package/dist/client/assets/{context-BL_7JbXZ.js → context-CuNDOhoh.js} +1 -1
  56. package/dist/client/assets/{create-organization-dialog-Cycga0XC.js → create-organization-dialog-Cd0g9HkW.js} +1 -1
  57. package/dist/client/assets/{create-project-dialog-BRQDkCBr.js → create-project-dialog-CU5VLoep.js} +1 -1
  58. package/dist/client/assets/{danger-D5sT_SDt.js → danger-CFl_eB5k.js} +1 -1
  59. package/dist/client/assets/{danger-zone-CI7wNXdQ.js → danger-zone-BSvLmne8.js} +1 -1
  60. package/dist/client/assets/{dependencies-XXGkpDMX.js → dependencies-DDWJJnWt.js} +1 -1
  61. package/dist/client/assets/{dialog-Dmm_af5q.js → dialog-D46ZA88r.js} +1 -1
  62. package/dist/client/assets/{drawer-SktUP7-X.js → drawer-DsEaI2mC.js} +1 -1
  63. package/dist/client/assets/{dropdown-menu-BtgYu0Kc.js → dropdown-menu-BJLjCuY0.js} +1 -1
  64. package/dist/client/assets/{dynamic-plugin-layout-DncjSb8M.js → dynamic-plugin-layout-DQu_PXGi.js} +1 -1
  65. package/dist/client/assets/{editable-task-title-DBtH_3H-.js → editable-task-title-BXxkXNIX.js} +1 -1
  66. package/dist/client/assets/{empty-state-Cx44yC3Y.js → empty-state-B7nlLEUe.js} +1 -1
  67. package/dist/client/assets/{empty-state-BgKAQr0C.js → empty-state-unH0aOxb.js} +1 -1
  68. package/dist/client/assets/{env-vars-editor-DPFQeE92.js → env-vars-editor-COVavLgR.js} +1 -1
  69. package/dist/client/assets/{extract-connection-data-Zw5RYEyS.js → extract-connection-data-BxATAvFG.js} +1 -1
  70. package/dist/client/assets/{file-browser-AWmMc57j.js → file-browser-Y37oB16s.js} +2 -2
  71. package/dist/client/assets/{form-Obbe7UIk.js → form-BC654cr0.js} +1 -1
  72. package/dist/client/assets/{general-DDuzkv9d.js → general-DnNKCd5D.js} +1 -1
  73. package/dist/client/assets/{grid-view-DsTxgJvN.js → grid-view-DBiOShLC.js} +1 -1
  74. package/dist/client/assets/{home-C1G2fDyc.js → home-DoIljK7E.js} +1 -1
  75. package/dist/client/assets/{index-DLW7tZdu.js → index-BRbdC8tb.js} +3 -3
  76. package/dist/client/assets/{index-BtvKqHu_.js → index-BbKz4tLm.js} +1 -1
  77. package/dist/client/assets/{index-CQPlxt4u.js → index-CKlHjZGl.js} +1 -1
  78. package/dist/client/assets/{index-CdQYIu_6.js → index-CvdTWVPu.js} +1 -1
  79. package/dist/client/assets/{index-CDNLqNNq.js → index-DSSbY8iZ.js} +1 -1
  80. package/dist/client/assets/{index-CdK7iTUb.js → index-DSiECZF0.js} +1 -1
  81. package/dist/client/assets/{index-B1ylaSc7.js → index-DW3Gddt1.js} +1 -1
  82. package/dist/client/assets/{index-DCtU4ndp.js → index-DhwDaiqy.js} +1 -1
  83. package/dist/client/assets/{index-C0Ne6xGI.js → index-Do980wUe.js} +1 -1
  84. package/dist/client/assets/{index-75eZ1uI1.js → index-P1BeuVDU.js} +1 -1
  85. package/dist/client/assets/{index-CUtX0cOT.js → index-Z-Bosamk.js} +1 -1
  86. package/dist/client/assets/{infiniteQueryObserver-BdQSrFrR.js → infiniteQueryObserver-DozliAIg.js} +1 -1
  87. package/dist/client/assets/{input-DgJ0xjPE.js → input-BOjviNKP.js} +1 -1
  88. package/dist/client/assets/{integration-icon-C-I4Z6Dk.js → integration-icon-BxAcqR_W.js} +1 -1
  89. package/dist/client/assets/{label-BL4fRnZZ.js → label-h0Vcc2GK.js} +1 -1
  90. package/dist/client/assets/{layout-p-PoyTJz.js → layout-B-xxTjgY.js} +1 -1
  91. package/dist/client/assets/{layout-DAuICUV3.js → layout-B1L9zKc4.js} +1 -1
  92. package/dist/client/assets/{login-Bvsz1l56.js → login-DGiUNRC7.js} +1 -1
  93. package/dist/client/assets/{logo-upload-CGF8q63h.js → logo-upload-PCOmxOCx.js} +1 -1
  94. package/dist/client/assets/{mcp-app-renderer-DzztYEVX.js → mcp-app-renderer-CRS3A1HB.js} +1 -1
  95. package/dist/client/assets/{mcp-server-card-Dz2MeUmM.js → mcp-server-card-B6PFNGFX.js} +1 -1
  96. package/dist/client/assets/{mcp-server-detail-cX9p8Afl.js → mcp-server-detail-oU638r_U.js} +2 -2
  97. package/dist/client/assets/{members-BX_g15fi.js → members-CNzL9zLR.js} +1 -1
  98. package/dist/client/assets/{monaco-editor-DX4p-sBy.js → monaco-editor-vJr8RDGl.js} +1 -1
  99. package/dist/client/assets/{monitoring-C9346vXd.js → monitoring-CxIOWArS.js} +1 -1
  100. package/dist/client/assets/{monitoring-dashboard-edit-cUuCGr6O.js → monitoring-dashboard-edit-DxfJ4WNy.js} +1 -1
  101. package/dist/client/assets/{monitoring-dashboard-view-DFc0vQzd.js → monitoring-dashboard-view-BL4nPi_-.js} +1 -1
  102. package/dist/client/assets/{monitoring-stats-row-BDkVd8_E.js → monitoring-stats-row-CrNnPzpZ.js} +1 -1
  103. package/dist/client/assets/{oauth-callback-Bt5QJgEG.js → oauth-callback-Cq38djsA.js} +1 -1
  104. package/dist/client/assets/{oauth-callback-ai-provider-DgK7Rkwm.js → oauth-callback-ai-provider-CYTOAGu5.js} +1 -1
  105. package/dist/client/assets/{org-ai-providers-DQw8Ry8m.js → org-ai-providers-DtsI9IWI.js} +1 -1
  106. package/dist/client/assets/{page-BPTnb_7u.js → page-CYpcNv9e.js} +1 -1
  107. package/dist/client/assets/{page-BNkRheIf.js → page-zavfyW1i.js} +1 -1
  108. package/dist/client/assets/{plugin-empty-state-DZ2dLLg8.js → plugin-empty-state-CgDAJvPC.js} +1 -1
  109. package/dist/client/assets/{plugin-empty-state-D5d0HyD_.js → plugin-empty-state-Dl_2Uo0y.js} +1 -1
  110. package/dist/client/assets/{plugin-header-DToCRz-E.js → plugin-header-D43xaGJs.js} +1 -1
  111. package/dist/client/assets/{plugin-header-DaNytvgS.js → plugin-header-Dv9ESxEb.js} +1 -1
  112. package/dist/client/assets/plugins-DBMyeN4D.js +1 -0
  113. package/dist/client/assets/{popover-DnM-fBUa.js → popover-DWheVeA1.js} +1 -1
  114. package/dist/client/assets/{project-app-view-BmSeum6S.js → project-app-view-9tWFjZrt.js} +1 -1
  115. package/dist/client/assets/{project-layout-B6exvEKF.js → project-layout-Dv-Q6xBk.js} +1 -1
  116. package/dist/client/assets/{project-plugins-CzyuvjoL.js → project-plugins-Bw8tiinl.js} +1 -1
  117. package/dist/client/assets/{projects-list-C1JxN737.js → projects-list-DokYG2lJ.js} +1 -1
  118. package/dist/client/assets/{registry-layout-D-kGw5vE.js → registry-layout-CxVYwTXn.js} +1 -1
  119. package/dist/client/assets/{registry-utils-D6No_i4P.js → registry-utils-BSd5ITwa.js} +1 -1
  120. package/dist/client/assets/{reset-password-CUY6IwDL.js → reset-password-C7Dj7QEf.js} +1 -1
  121. package/dist/client/assets/{resizable-CAbzuUb1.js → resizable-DixBhzs0.js} +1 -1
  122. package/dist/client/assets/{save-actions-DGqTWEQL.js → save-actions-qtl58c-n.js} +1 -1
  123. package/dist/client/assets/{scroll-area-BCIFp-8p.js → scroll-area-COTWSYpJ.js} +1 -1
  124. package/dist/client/assets/{select-DeOQOwBi.js → select-Duo4-kjU.js} +1 -1
  125. package/dist/client/assets/{select-virtual-mcp-B78FWMF5.js → select-virtual-mcp-DmwglbWt.js} +1 -1
  126. package/dist/client/assets/{shell-layout-BX9tUo-C.js → shell-layout-BKPGcmv4.js} +2 -2
  127. package/dist/client/assets/{sidebar-settings-CxzW8gJz.js → sidebar-settings-Bvnz3xIL.js} +1 -1
  128. package/dist/client/assets/{skeleton-BwiQLrEa.js → skeleton-CxmuAljC.js} +1 -1
  129. package/dist/client/assets/{spinner-D4Lh5lMu.js → spinner-Bvsf8yBr.js} +1 -1
  130. package/dist/client/assets/{store-invite-CdO_aWdO.js → store-invite-B3ZITnmR.js} +1 -1
  131. package/dist/client/assets/{switch-DqWbwfAd.js → switch-DgSoD5A_.js} +1 -1
  132. package/dist/client/assets/{table-CbTCyRX5.js → table-6Exocylh.js} +1 -1
  133. package/dist/client/assets/{tabs-zzjdf6a0.js → tabs-BawFIUQp.js} +1 -1
  134. package/dist/client/assets/{task-status-hmfgdVgC.js → task-status-DCcRj1iH.js} +32 -32
  135. package/dist/client/assets/tasks-BXLnBJIq.js +1 -0
  136. package/dist/client/assets/{tasks-panel-BKxSsDFe.js → tasks-panel-DWjSzHZC.js} +1 -1
  137. package/dist/client/assets/{textarea-CJ-1DHFH.js → textarea-DdRl57bf.js} +1 -1
  138. package/dist/client/assets/{time-range-picker-BBbi_2IF.js → time-range-picker-DOqabEZA.js} +1 -1
  139. package/dist/client/assets/{toggle-group-DaaATQ-5.js → toggle-group-B0IrEjNf.js} +1 -1
  140. package/dist/client/assets/{tools-list-DLZSPKIc.js → tools-list-DbIvei1P.js} +1 -1
  141. package/dist/client/assets/{tooltip-D-QYbPJS.js → tooltip-xl3GoSVP.js} +1 -1
  142. package/dist/client/assets/{topbar-portal-D3vr1IIh.js → topbar-portal-DVwzk_zs.js} +1 -1
  143. package/dist/client/assets/{types-vQT8OD6B.js → types-DPAE4wXV.js} +1 -1
  144. package/dist/client/assets/{use-automations-BIoacnri.js → use-automations-BTjhSzA_.js} +1 -1
  145. package/dist/client/assets/{use-collections-BJxMmWLX.js → use-collections-Bqp5H9bu.js} +1 -1
  146. package/dist/client/assets/{use-connection-DPMknCkO.js → use-connection-De5rVqrE.js} +1 -1
  147. package/dist/client/assets/{use-copy-CkgWv__W.js → use-copy-CogCWJQ7.js} +1 -1
  148. package/dist/client/assets/{use-create-virtual-mcp-pWj6n63S.js → use-create-virtual-mcp-CdSUPhk5.js} +1 -1
  149. package/dist/client/assets/{use-infinite-scroll-BU1rPA0T.js → use-infinite-scroll-CQVKBMoy.js} +1 -1
  150. package/dist/client/assets/{use-install-from-registry-C1XqHuwX.js → use-install-from-registry-D7V-rpJ0.js} +1 -1
  151. package/dist/client/assets/{use-list-state-B6nYBLyk.js → use-list-state-BtvQgv8T.js} +1 -1
  152. package/dist/client/assets/{use-mcp-prompts-BmK_9UQh.js → use-mcp-prompts-k7CgkVwI.js} +1 -1
  153. package/dist/client/assets/{use-mcp-resources-DQ2GW_FE.js → use-mcp-resources-BfKeTtfq.js} +1 -1
  154. package/dist/client/assets/{use-mcp-tools-KIPxuDyk.js → use-mcp-tools-iD-VGNhw.js} +1 -1
  155. package/dist/client/assets/{use-members-BRZ5u_Eq.js → use-members-CYI2sNHs.js} +1 -1
  156. package/dist/client/assets/{use-project-DVq_144v.js → use-project-DdgxiICX.js} +1 -1
  157. package/dist/client/assets/{use-store-discovery-aQCBFuCU.js → use-store-discovery-DdbArpnw.js} +1 -1
  158. package/dist/client/assets/{use-view-mode-lmHuCoZm.js → use-view-mode-BiSEdh0M.js} +1 -1
  159. package/dist/client/assets/{use-virtual-mcp-BEia5q72.js → use-virtual-mcp-DxTKYWLn.js} +1 -1
  160. package/dist/client/assets/useInfiniteQuery-DMnx1-Vs.js +1 -0
  161. package/dist/client/assets/{useMutation-BatnVMWS.js → useMutation-C_Uj7oOe.js} +1 -1
  162. package/dist/client/assets/useQuery-C31bP6Ck.js +1 -0
  163. package/dist/client/assets/useSuspenseInfiniteQuery-D-WGLpBh.js +1 -0
  164. package/dist/client/assets/{user-Aw6SqZpK.js → user-tg9kwvXU.js} +1 -1
  165. package/dist/client/assets/{workflow-CRjl6sOP.js → workflow-D6TrKvm2.js} +1 -1
  166. package/dist/client/index.html +1 -1
  167. package/package.json +1 -1
  168. package/dist/client/assets/constants-BTMGn0Px.js +0 -1
  169. package/dist/client/assets/plugins-LyhHmrtr.js +0 -1
  170. package/dist/client/assets/tasks-C6cfAkGR.js +0 -1
  171. package/dist/client/assets/useInfiniteQuery-DpWHrz5z.js +0 -1
  172. package/dist/client/assets/useQuery-YHvrmKkI.js +0 -1
  173. package/dist/client/assets/useSuspenseInfiniteQuery-Cv31oWYI.js +0 -1
  174. package/dist/server/node_modules/pg-int8/LICENSE +0 -13
  175. package/dist/server/node_modules/pg-int8/README.md +0 -16
  176. package/dist/server/node_modules/pg-int8/index.js +0 -100
  177. package/dist/server/node_modules/pg-int8/package.json +0 -24
  178. package/dist/server/node_modules/pg-pool/LICENSE +0 -21
  179. package/dist/server/node_modules/pg-pool/README.md +0 -357
  180. package/dist/server/node_modules/pg-pool/esm/index.mjs +0 -5
  181. package/dist/server/node_modules/pg-pool/index.js +0 -517
  182. package/dist/server/node_modules/pg-pool/package.json +0 -51
  183. package/dist/server/node_modules/pg-protocol/LICENSE +0 -21
  184. package/dist/server/node_modules/pg-protocol/README.md +0 -3
  185. package/dist/server/node_modules/pg-protocol/dist/b.d.ts +0 -1
  186. package/dist/server/node_modules/pg-protocol/dist/b.js +0 -23
  187. package/dist/server/node_modules/pg-protocol/dist/b.js.map +0 -1
  188. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -15
  189. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +0 -55
  190. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +0 -1
  191. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +0 -16
  192. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +0 -81
  193. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +0 -1
  194. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +0 -1
  195. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +0 -530
  196. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +0 -1
  197. package/dist/server/node_modules/pg-protocol/dist/index.d.ts +0 -6
  198. package/dist/server/node_modules/pg-protocol/dist/index.js +0 -15
  199. package/dist/server/node_modules/pg-protocol/dist/index.js.map +0 -1
  200. package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +0 -162
  201. package/dist/server/node_modules/pg-protocol/dist/messages.js +0 -160
  202. package/dist/server/node_modules/pg-protocol/dist/messages.js.map +0 -1
  203. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +0 -1
  204. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +0 -252
  205. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +0 -1
  206. package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +0 -24
  207. package/dist/server/node_modules/pg-protocol/dist/parser.js +0 -324
  208. package/dist/server/node_modules/pg-protocol/dist/parser.js.map +0 -1
  209. package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +0 -42
  210. package/dist/server/node_modules/pg-protocol/dist/serializer.js +0 -189
  211. package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +0 -1
  212. package/dist/server/node_modules/pg-protocol/esm/index.js +0 -11
  213. package/dist/server/node_modules/pg-protocol/package.json +0 -45
  214. package/dist/server/node_modules/pg-protocol/src/b.ts +0 -25
  215. package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +0 -58
  216. package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +0 -85
  217. package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +0 -575
  218. package/dist/server/node_modules/pg-protocol/src/index.ts +0 -11
  219. package/dist/server/node_modules/pg-protocol/src/messages.ts +0 -262
  220. package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +0 -276
  221. package/dist/server/node_modules/pg-protocol/src/parser.ts +0 -413
  222. package/dist/server/node_modules/pg-protocol/src/serializer.ts +0 -274
  223. package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +0 -67
  224. package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +0 -166
  225. package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +0 -1
  226. package/dist/server/node_modules/pg-types/.travis.yml +0 -7
  227. package/dist/server/node_modules/pg-types/Makefile +0 -14
  228. package/dist/server/node_modules/pg-types/README.md +0 -75
  229. package/dist/server/node_modules/pg-types/index.d.ts +0 -137
  230. package/dist/server/node_modules/pg-types/index.js +0 -47
  231. package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
  232. package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
  233. package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
  234. package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
  235. package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
  236. package/dist/server/node_modules/pg-types/package.json +0 -42
  237. package/dist/server/node_modules/pg-types/test/index.js +0 -24
  238. package/dist/server/node_modules/pg-types/test/types.js +0 -597
  239. package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
  240. package/dist/server/node_modules/postgres-array/index.js +0 -97
  241. package/dist/server/node_modules/postgres-array/license +0 -21
  242. package/dist/server/node_modules/postgres-array/package.json +0 -35
  243. package/dist/server/node_modules/postgres-array/readme.md +0 -43
  244. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  245. package/dist/server/node_modules/postgres-bytea/license +0 -21
  246. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  247. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
  248. package/dist/server/node_modules/postgres-date/index.js +0 -116
  249. package/dist/server/node_modules/postgres-date/license +0 -21
  250. package/dist/server/node_modules/postgres-date/package.json +0 -33
  251. package/dist/server/node_modules/postgres-date/readme.md +0 -49
  252. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  253. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  254. package/dist/server/node_modules/postgres-interval/license +0 -21
  255. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  256. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  257. package/dist/server/node_modules/split2/LICENSE +0 -13
  258. package/dist/server/node_modules/split2/README.md +0 -85
  259. package/dist/server/node_modules/split2/bench.js +0 -27
  260. package/dist/server/node_modules/split2/index.js +0 -141
  261. package/dist/server/node_modules/split2/package.json +0 -39
  262. package/dist/server/node_modules/split2/test.js +0 -409
@@ -1,13 +0,0 @@
1
- Copyright (c) 2014-2018, Matteo Collina <hello@matteocollina.com>
2
-
3
- Permission to use, copy, modify, and/or distribute this software for any
4
- purpose with or without fee is hereby granted, provided that the above
5
- copyright notice and this permission notice appear in all copies.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
13
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,85 +0,0 @@
1
- # Split2(matcher, mapper, options)
2
-
3
- ![ci](https://github.com/mcollina/split2/workflows/ci/badge.svg)
4
-
5
- Break up a stream and reassemble it so that each line is a chunk.
6
- `split2` is inspired by [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) module,
7
- and it is totally API compatible with it.
8
- However, it is based on Node.js core [`Transform`](https://nodejs.org/api/stream.html#stream_new_stream_transform_options).
9
-
10
- `matcher` may be a `String`, or a `RegExp`. Example, read every line in a file ...
11
-
12
- ``` js
13
- fs.createReadStream(file)
14
- .pipe(split2())
15
- .on('data', function (line) {
16
- //each chunk now is a separate line!
17
- })
18
-
19
- ```
20
-
21
- `split` takes the same arguments as `string.split` except it defaults to '/\r?\n/', and the optional `limit` paremeter is ignored.
22
- [String#split](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split)
23
-
24
- `split` takes an optional options object on it's third argument, which
25
- is directly passed as a
26
- [Transform](https://nodejs.org/api/stream.html#stream_new_stream_transform_options)
27
- option.
28
-
29
- Additionally, the `.maxLength` and `.skipOverflow` options are implemented, which set limits on the internal
30
- buffer size and the stream's behavior when the limit is exceeded. There is no limit unless `maxLength` is set. When
31
- the internal buffer size exceeds `maxLength`, the stream emits an error by default. You may also set `skipOverflow` to
32
- true to suppress the error and instead skip past any lines that cause the internal buffer to exceed `maxLength`.
33
-
34
- Calling `.destroy` will make the stream emit `close`. Use this to perform cleanup logic
35
-
36
- ``` js
37
- var splitFile = function(filename) {
38
- var file = fs.createReadStream(filename)
39
-
40
- return file
41
- .pipe(split2())
42
- .on('close', function() {
43
- // destroy the file stream in case the split stream was destroyed
44
- file.destroy()
45
- })
46
- }
47
-
48
- var stream = splitFile('my-file.txt')
49
-
50
- stream.destroy() // will destroy the input file stream
51
- ```
52
-
53
- # NDJ - Newline Delimited Json
54
-
55
- `split2` accepts a function which transforms each line.
56
-
57
- ``` js
58
- fs.createReadStream(file)
59
- .pipe(split2(JSON.parse))
60
- .on('data', function (obj) {
61
- //each chunk now is a js object
62
- })
63
- .on("error", function(error) {
64
- //handling parsing errors
65
- })
66
- ```
67
-
68
- However, in [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) the mapper
69
- is wrapped in a try-catch, while here it is not: if your parsing logic can throw, wrap it yourself. Otherwise, you can also use the stream error handling when mapper function throw.
70
-
71
- # License
72
-
73
- Copyright (c) 2014-2021, Matteo Collina <hello@matteocollina.com>
74
-
75
- Permission to use, copy, modify, and/or distribute this software for any
76
- purpose with or without fee is hereby granted, provided that the above
77
- copyright notice and this permission notice appear in all copies.
78
-
79
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
80
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
81
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
82
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
83
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
84
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
85
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,27 +0,0 @@
1
- 'use strict'
2
-
3
- const split = require('./')
4
- const bench = require('fastbench')
5
- const binarySplit = require('binary-split')
6
- const fs = require('fs')
7
-
8
- function benchSplit (cb) {
9
- fs.createReadStream('package.json')
10
- .pipe(split())
11
- .on('end', cb)
12
- .resume()
13
- }
14
-
15
- function benchBinarySplit (cb) {
16
- fs.createReadStream('package.json')
17
- .pipe(binarySplit())
18
- .on('end', cb)
19
- .resume()
20
- }
21
-
22
- const run = bench([
23
- benchSplit,
24
- benchBinarySplit
25
- ], 10000)
26
-
27
- run(run)
@@ -1,141 +0,0 @@
1
- /*
2
- Copyright (c) 2014-2021, Matteo Collina <hello@matteocollina.com>
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted, provided that the above
6
- copyright notice and this permission notice appear in all copies.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
14
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
- */
16
-
17
- 'use strict'
18
-
19
- const { Transform } = require('stream')
20
- const { StringDecoder } = require('string_decoder')
21
- const kLast = Symbol('last')
22
- const kDecoder = Symbol('decoder')
23
-
24
- function transform (chunk, enc, cb) {
25
- let list
26
- if (this.overflow) { // Line buffer is full. Skip to start of next line.
27
- const buf = this[kDecoder].write(chunk)
28
- list = buf.split(this.matcher)
29
-
30
- if (list.length === 1) return cb() // Line ending not found. Discard entire chunk.
31
-
32
- // Line ending found. Discard trailing fragment of previous line and reset overflow state.
33
- list.shift()
34
- this.overflow = false
35
- } else {
36
- this[kLast] += this[kDecoder].write(chunk)
37
- list = this[kLast].split(this.matcher)
38
- }
39
-
40
- this[kLast] = list.pop()
41
-
42
- for (let i = 0; i < list.length; i++) {
43
- try {
44
- push(this, this.mapper(list[i]))
45
- } catch (error) {
46
- return cb(error)
47
- }
48
- }
49
-
50
- this.overflow = this[kLast].length > this.maxLength
51
- if (this.overflow && !this.skipOverflow) {
52
- cb(new Error('maximum buffer reached'))
53
- return
54
- }
55
-
56
- cb()
57
- }
58
-
59
- function flush (cb) {
60
- // forward any gibberish left in there
61
- this[kLast] += this[kDecoder].end()
62
-
63
- if (this[kLast]) {
64
- try {
65
- push(this, this.mapper(this[kLast]))
66
- } catch (error) {
67
- return cb(error)
68
- }
69
- }
70
-
71
- cb()
72
- }
73
-
74
- function push (self, val) {
75
- if (val !== undefined) {
76
- self.push(val)
77
- }
78
- }
79
-
80
- function noop (incoming) {
81
- return incoming
82
- }
83
-
84
- function split (matcher, mapper, options) {
85
- // Set defaults for any arguments not supplied.
86
- matcher = matcher || /\r?\n/
87
- mapper = mapper || noop
88
- options = options || {}
89
-
90
- // Test arguments explicitly.
91
- switch (arguments.length) {
92
- case 1:
93
- // If mapper is only argument.
94
- if (typeof matcher === 'function') {
95
- mapper = matcher
96
- matcher = /\r?\n/
97
- // If options is only argument.
98
- } else if (typeof matcher === 'object' && !(matcher instanceof RegExp) && !matcher[Symbol.split]) {
99
- options = matcher
100
- matcher = /\r?\n/
101
- }
102
- break
103
-
104
- case 2:
105
- // If mapper and options are arguments.
106
- if (typeof matcher === 'function') {
107
- options = mapper
108
- mapper = matcher
109
- matcher = /\r?\n/
110
- // If matcher and options are arguments.
111
- } else if (typeof mapper === 'object') {
112
- options = mapper
113
- mapper = noop
114
- }
115
- }
116
-
117
- options = Object.assign({}, options)
118
- options.autoDestroy = true
119
- options.transform = transform
120
- options.flush = flush
121
- options.readableObjectMode = true
122
-
123
- const stream = new Transform(options)
124
-
125
- stream[kLast] = ''
126
- stream[kDecoder] = new StringDecoder('utf8')
127
- stream.matcher = matcher
128
- stream.mapper = mapper
129
- stream.maxLength = options.maxLength
130
- stream.skipOverflow = options.skipOverflow || false
131
- stream.overflow = false
132
- stream._destroy = function (err, cb) {
133
- // Weird Node v12 bug that we need to work around
134
- this._writableState.errorEmitted = false
135
- cb(err)
136
- }
137
-
138
- return stream
139
- }
140
-
141
- module.exports = split
@@ -1,39 +0,0 @@
1
- {
2
- "name": "split2",
3
- "version": "4.2.0",
4
- "description": "split a Text Stream into a Line Stream, using Stream 3",
5
- "main": "index.js",
6
- "scripts": {
7
- "lint": "standard --verbose",
8
- "unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js",
9
- "coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js",
10
- "test:report": "npm run lint && npm run unit:report",
11
- "test": "npm run lint && npm run unit",
12
- "legacy": "tape test.js"
13
- },
14
- "pre-commit": [
15
- "test"
16
- ],
17
- "website": "https://github.com/mcollina/split2",
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/mcollina/split2.git"
21
- },
22
- "bugs": {
23
- "url": "http://github.com/mcollina/split2/issues"
24
- },
25
- "engines": {
26
- "node": ">= 10.x"
27
- },
28
- "author": "Matteo Collina <hello@matteocollina.com>",
29
- "license": "ISC",
30
- "devDependencies": {
31
- "binary-split": "^1.0.3",
32
- "callback-stream": "^1.1.0",
33
- "fastbench": "^1.0.0",
34
- "nyc": "^15.0.1",
35
- "pre-commit": "^1.1.2",
36
- "standard": "^17.0.0",
37
- "tape": "^5.0.0"
38
- }
39
- }
@@ -1,409 +0,0 @@
1
- 'use strict'
2
-
3
- const test = require('tape')
4
- const split = require('./')
5
- const callback = require('callback-stream')
6
- const strcb = callback.bind(null, { decodeStrings: false })
7
- const objcb = callback.bind(null, { objectMode: true })
8
-
9
- test('split two lines on end', function (t) {
10
- t.plan(2)
11
-
12
- const input = split()
13
-
14
- input.pipe(strcb(function (err, list) {
15
- t.error(err)
16
- t.deepEqual(list, ['hello', 'world'])
17
- }))
18
-
19
- input.end('hello\nworld')
20
- })
21
-
22
- test('split two lines on two writes', function (t) {
23
- t.plan(2)
24
-
25
- const input = split()
26
-
27
- input.pipe(strcb(function (err, list) {
28
- t.error(err)
29
- t.deepEqual(list, ['hello', 'world'])
30
- }))
31
-
32
- input.write('hello')
33
- input.write('\nworld')
34
- input.end()
35
- })
36
-
37
- test('split four lines on three writes', function (t) {
38
- t.plan(2)
39
-
40
- const input = split()
41
-
42
- input.pipe(strcb(function (err, list) {
43
- t.error(err)
44
- t.deepEqual(list, ['hello', 'world', 'bye', 'world'])
45
- }))
46
-
47
- input.write('hello\nwor')
48
- input.write('ld\nbye\nwo')
49
- input.write('rld')
50
- input.end()
51
- })
52
-
53
- test('accumulate multiple writes', function (t) {
54
- t.plan(2)
55
-
56
- const input = split()
57
-
58
- input.pipe(strcb(function (err, list) {
59
- t.error(err)
60
- t.deepEqual(list, ['helloworld'])
61
- }))
62
-
63
- input.write('hello')
64
- input.write('world')
65
- input.end()
66
- })
67
-
68
- test('split using a custom string matcher', function (t) {
69
- t.plan(2)
70
-
71
- const input = split('~')
72
-
73
- input.pipe(strcb(function (err, list) {
74
- t.error(err)
75
- t.deepEqual(list, ['hello', 'world'])
76
- }))
77
-
78
- input.end('hello~world')
79
- })
80
-
81
- test('split using a custom regexp matcher', function (t) {
82
- t.plan(2)
83
-
84
- const input = split(/~/)
85
-
86
- input.pipe(strcb(function (err, list) {
87
- t.error(err)
88
- t.deepEqual(list, ['hello', 'world'])
89
- }))
90
-
91
- input.end('hello~world')
92
- })
93
-
94
- test('support an option argument', function (t) {
95
- t.plan(2)
96
-
97
- const input = split({ highWaterMark: 2 })
98
-
99
- input.pipe(strcb(function (err, list) {
100
- t.error(err)
101
- t.deepEqual(list, ['hello', 'world'])
102
- }))
103
-
104
- input.end('hello\nworld')
105
- })
106
-
107
- test('support a mapper function', function (t) {
108
- t.plan(2)
109
-
110
- const a = { a: '42' }
111
- const b = { b: '24' }
112
-
113
- const input = split(JSON.parse)
114
-
115
- input.pipe(objcb(function (err, list) {
116
- t.error(err)
117
- t.deepEqual(list, [a, b])
118
- }))
119
-
120
- input.write(JSON.stringify(a))
121
- input.write('\n')
122
- input.end(JSON.stringify(b))
123
- })
124
-
125
- test('split lines windows-style', function (t) {
126
- t.plan(2)
127
-
128
- const input = split()
129
-
130
- input.pipe(strcb(function (err, list) {
131
- t.error(err)
132
- t.deepEqual(list, ['hello', 'world'])
133
- }))
134
-
135
- input.end('hello\r\nworld')
136
- })
137
-
138
- test('splits a buffer', function (t) {
139
- t.plan(2)
140
-
141
- const input = split()
142
-
143
- input.pipe(strcb(function (err, list) {
144
- t.error(err)
145
- t.deepEqual(list, ['hello', 'world'])
146
- }))
147
-
148
- input.end(Buffer.from('hello\nworld'))
149
- })
150
-
151
- test('do not end on undefined', function (t) {
152
- t.plan(2)
153
-
154
- const input = split(function (line) { })
155
-
156
- input.pipe(strcb(function (err, list) {
157
- t.error(err)
158
- t.deepEqual(list, [])
159
- }))
160
-
161
- input.end(Buffer.from('hello\nworld'))
162
- })
163
-
164
- test('has destroy method', function (t) {
165
- t.plan(1)
166
-
167
- const input = split(function (line) { })
168
-
169
- input.on('close', function () {
170
- t.ok(true, 'close emitted')
171
- t.end()
172
- })
173
-
174
- input.destroy()
175
- })
176
-
177
- test('support custom matcher and mapper', function (t) {
178
- t.plan(4)
179
-
180
- const a = { a: '42' }
181
- const b = { b: '24' }
182
- const input = split('~', JSON.parse)
183
-
184
- t.equal(input.matcher, '~')
185
- t.equal(typeof input.mapper, 'function')
186
-
187
- input.pipe(objcb(function (err, list) {
188
- t.notOk(err, 'no errors')
189
- t.deepEqual(list, [a, b])
190
- }))
191
-
192
- input.write(JSON.stringify(a))
193
- input.write('~')
194
- input.end(JSON.stringify(b))
195
- })
196
-
197
- test('support custom matcher and options', function (t) {
198
- t.plan(6)
199
-
200
- const input = split('~', { highWaterMark: 1024 })
201
-
202
- t.equal(input.matcher, '~')
203
- t.equal(typeof input.mapper, 'function')
204
- t.equal(input._readableState.highWaterMark, 1024)
205
- t.equal(input._writableState.highWaterMark, 1024)
206
-
207
- input.pipe(strcb(function (err, list) {
208
- t.error(err)
209
- t.deepEqual(list, ['hello', 'world'])
210
- }))
211
-
212
- input.end('hello~world')
213
- })
214
-
215
- test('support mapper and options', function (t) {
216
- t.plan(6)
217
-
218
- const a = { a: '42' }
219
- const b = { b: '24' }
220
- const input = split(JSON.parse, { highWaterMark: 1024 })
221
-
222
- t.ok(input.matcher instanceof RegExp, 'matcher is RegExp')
223
- t.equal(typeof input.mapper, 'function')
224
- t.equal(input._readableState.highWaterMark, 1024)
225
- t.equal(input._writableState.highWaterMark, 1024)
226
-
227
- input.pipe(objcb(function (err, list) {
228
- t.error(err)
229
- t.deepEqual(list, [a, b])
230
- }))
231
-
232
- input.write(JSON.stringify(a))
233
- input.write('\n')
234
- input.end(JSON.stringify(b))
235
- })
236
-
237
- test('split utf8 chars', function (t) {
238
- t.plan(2)
239
-
240
- const input = split()
241
-
242
- input.pipe(strcb(function (err, list) {
243
- t.error(err)
244
- t.deepEqual(list, ['烫烫烫', '锟斤拷'])
245
- }))
246
-
247
- const buf = Buffer.from('烫烫烫\r\n锟斤拷', 'utf8')
248
- for (let i = 0; i < buf.length; ++i) {
249
- input.write(buf.slice(i, i + 1))
250
- }
251
- input.end()
252
- })
253
-
254
- test('split utf8 chars 2by2', function (t) {
255
- t.plan(2)
256
-
257
- const input = split()
258
-
259
- input.pipe(strcb(function (err, list) {
260
- t.error(err)
261
- t.deepEqual(list, ['烫烫烫', '烫烫烫'])
262
- }))
263
-
264
- const str = '烫烫烫\r\n烫烫烫'
265
- const buf = Buffer.from(str, 'utf8')
266
- for (let i = 0; i < buf.length; i += 2) {
267
- input.write(buf.slice(i, i + 2))
268
- }
269
- input.end()
270
- })
271
-
272
- test('split lines when the \n comes at the end of a chunk', function (t) {
273
- t.plan(2)
274
-
275
- const input = split()
276
-
277
- input.pipe(strcb(function (err, list) {
278
- t.error(err)
279
- t.deepEqual(list, ['hello', 'world'])
280
- }))
281
-
282
- input.write('hello\n')
283
- input.end('world')
284
- })
285
-
286
- test('truncated utf-8 char', function (t) {
287
- t.plan(2)
288
-
289
- const input = split()
290
-
291
- input.pipe(strcb(function (err, list) {
292
- t.error(err)
293
- t.deepEqual(list, ['烫' + Buffer.from('e7', 'hex').toString()])
294
- }))
295
-
296
- const str = '烫烫'
297
- const buf = Buffer.from(str, 'utf8')
298
-
299
- input.write(buf.slice(0, 3))
300
- input.end(buf.slice(3, 4))
301
- })
302
-
303
- test('maximum buffer limit', function (t) {
304
- t.plan(1)
305
-
306
- const input = split({ maxLength: 2 })
307
- input.on('error', function (err) {
308
- t.ok(err)
309
- })
310
-
311
- input.resume()
312
-
313
- input.write('hey')
314
- })
315
-
316
- test('readable highWaterMark', function (t) {
317
- const input = split()
318
- t.equal(input._readableState.highWaterMark, 16)
319
- t.end()
320
- })
321
-
322
- test('maxLength < chunk size', function (t) {
323
- t.plan(2)
324
-
325
- const input = split({ maxLength: 2 })
326
-
327
- input.pipe(strcb(function (err, list) {
328
- t.error(err)
329
- t.deepEqual(list, ['a', 'b'])
330
- }))
331
-
332
- input.end('a\nb')
333
- })
334
-
335
- test('maximum buffer limit w/skip', function (t) {
336
- t.plan(2)
337
-
338
- const input = split({ maxLength: 2, skipOverflow: true })
339
-
340
- input.pipe(strcb(function (err, list) {
341
- t.error(err)
342
- t.deepEqual(list, ['a', 'b', 'c'])
343
- }))
344
-
345
- input.write('a\n123')
346
- input.write('456')
347
- input.write('789\nb\nc')
348
- input.end()
349
- })
350
-
351
- test("don't modify the options object", function (t) {
352
- t.plan(2)
353
-
354
- const options = {}
355
- const input = split(options)
356
-
357
- input.pipe(strcb(function (err, list) {
358
- t.error(err)
359
- t.same(options, {})
360
- }))
361
-
362
- input.end()
363
- })
364
-
365
- test('mapper throws flush', function (t) {
366
- t.plan(1)
367
- const error = new Error()
368
- const input = split(function () {
369
- throw error
370
- })
371
-
372
- input.on('error', (err, list) => {
373
- t.same(err, error)
374
- })
375
- input.end('hello')
376
- })
377
-
378
- test('mapper throws on transform', function (t) {
379
- t.plan(1)
380
-
381
- const error = new Error()
382
- const input = split(function (l) {
383
- throw error
384
- })
385
-
386
- input.on('error', (err) => {
387
- t.same(err, error)
388
- })
389
- input.write('a')
390
- input.write('\n')
391
- input.end('b')
392
- })
393
-
394
- test('supports Symbol.split', function (t) {
395
- t.plan(2)
396
-
397
- const input = split({
398
- [Symbol.split] (str) {
399
- return str.split('~')
400
- }
401
- })
402
-
403
- input.pipe(strcb(function (err, list) {
404
- t.error(err)
405
- t.deepEqual(list, ['hello', 'world'])
406
- }))
407
-
408
- input.end('hello~world')
409
- })