decocms 2.277.0 → 2.277.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 (320) hide show
  1. package/dist/client/assets/{AlertCircle-CDrkM01U.js → AlertCircle-ZN1y5-aw.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-D40KhznE.js → ArrowNarrowLeft-BPki4rs6.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-BTIsSwsN.js → CheckCircle-CzlD2NtZ.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-CYdW9NBw.js → ChevronDown-BjlYfwkz.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-YkSQYi3B.js → ChevronRight-Ers_V2D1.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-BcPC1hCC.js → ChevronUp-BFd66NER.js} +1 -1
  7. package/dist/client/assets/{Container-ChD3KoS4.js → Container-BH-IjM7q.js} +1 -1
  8. package/dist/client/assets/{LinkExternal01-l0w4_WlJ.js → LinkExternal01-Df1708RH.js} +1 -1
  9. package/dist/client/assets/{Lock01-CmojMPTn.js → Lock01-DC87zCkJ.js} +1 -1
  10. package/dist/client/assets/{Palette-D4s8zWmN.js → Palette-BAefAlJJ.js} +1 -1
  11. package/dist/client/assets/{Play-CiTVDuYt.js → Play-8RSCt4_z.js} +1 -1
  12. package/dist/client/assets/{Plus-CVdax6FK.js → Plus-D7R85tnb.js} +1 -1
  13. package/dist/client/assets/{SearchMd-DJ0JdIz3.js → SearchMd-CuF0EE4i.js} +1 -1
  14. package/dist/client/assets/{Settings02-D-hypCbK.js → Settings02-0biYSyip.js} +1 -1
  15. package/dist/client/assets/{Star01-Vcjv0Tzc.js → Star01-DG4GVqjt.js} +1 -1
  16. package/dist/client/assets/{Sun-51uZR1E5.js → Sun-bNHtETAN.js} +1 -1
  17. package/dist/client/assets/{Tool01-DCaYwllU.js → Tool01-BYIP93fl.js} +1 -1
  18. package/dist/client/assets/{Trash01-D5ZS0TOT.js → Trash01-DiVIK0OP.js} +1 -1
  19. package/dist/client/assets/{Upload01-CBYhGwn0.js → Upload01-1ZdG7oJK.js} +1 -1
  20. package/dist/client/assets/{User01-Dq3q9cE-.js → User01-ZdNcPumq.js} +1 -1
  21. package/dist/client/assets/{Users03-BIYd5t8v.js → Users03-C4Ee_frB.js} +1 -1
  22. package/dist/client/assets/{X-D_4PiiTE.js → X-DJVuZ58d.js} +1 -1
  23. package/dist/client/assets/{XCircle-rGav0QLs.js → XCircle-C-PtnVDi.js} +1 -1
  24. package/dist/client/assets/{Zap-qFCEz_qt.js → Zap-DFbFP4h9.js} +1 -1
  25. package/dist/client/assets/{ZapSquare-BYfCzFpy.js → ZapSquare-Bn1DnHGa.js} +1 -1
  26. package/dist/client/assets/{accordion-C_FjDGY7.js → accordion-BKyKwvi4.js} +1 -1
  27. package/dist/client/assets/{agent-icon-31CiXnkF.js → agent-icon-BCqNXHrJ.js} +1 -1
  28. package/dist/client/assets/{agents-list-kGMjebHK.js → agents-list-st6j9oA0.js} +1 -1
  29. package/dist/client/assets/ai-providers-Cq8P81dq.js +1 -0
  30. package/dist/client/assets/{alert-dialog-BpydK2MI.js → alert-dialog-Cce2zNSt.js} +1 -1
  31. package/dist/client/assets/{auth-catchall-I0vdEcHs.js → auth-catchall-DOZwh2ME.js} +1 -1
  32. package/dist/client/assets/{automation-list-row-mTTWiKQ6.js → automation-list-row-D3uOWcPZ.js} +1 -1
  33. package/dist/client/assets/{automations-Z179s9qX.js → automations-_4yX33cm.js} +1 -1
  34. package/dist/client/assets/{avatar-BVvDTfBW.js → avatar-DtO_DjAh.js} +1 -1
  35. package/dist/client/assets/{badge-BhfSxzi-.js → badge-y-hsEihY.js} +1 -1
  36. package/dist/client/assets/{brand-context-Bn_7uvJT.js → brand-context-zVTleDgN.js} +1 -1
  37. package/dist/client/assets/{card-BAp6Jwgi.js → card-Dgjac7df.js} +1 -1
  38. package/dist/client/assets/{chat-context-Dp5HM8R-.js → chat-context-jZHB4zZq.js} +1 -1
  39. package/dist/client/assets/{checkbox-BhkHXCse.js → checkbox-BK1FOOnx.js} +1 -1
  40. package/dist/client/assets/{collection-detail-Bm3mvhEG.js → collection-detail-x76KaTbs.js} +1 -1
  41. package/dist/client/assets/{collection-display-button-jqECsu1f.js → collection-display-button-Gr_qxtzC.js} +1 -1
  42. package/dist/client/assets/{collection-search-C0B93tJw.js → collection-search-9bv6LiW5.js} +1 -1
  43. package/dist/client/assets/{collection-table-wrapper-Bf17fkBP.js → collection-table-wrapper-BD46An7o.js} +1 -1
  44. package/dist/client/assets/{collection-tabs-CMC3SILy.js → collection-tabs-DBij18bF.js} +1 -1
  45. package/dist/client/assets/{collections-DIuw_dNV.js → collections-BZR-yDlA.js} +1 -1
  46. package/dist/client/assets/{command-CRMnQTof.js → command-DsPZNxzv.js} +1 -1
  47. package/dist/client/assets/{connection-card-CJ6uOT9E.js → connection-card-Cavj0z1s.js} +1 -1
  48. package/dist/client/assets/{connection-detail-Dj-OLW3C.js → connection-detail-B_MywG2r.js} +1 -1
  49. package/dist/client/assets/{connection-form-helpers-CDPt3S_P.js → connection-form-helpers-BickqfM0.js} +1 -1
  50. package/dist/client/assets/{connections-aYS5E8PJ.js → connections-Di7YhHpL.js} +1 -1
  51. package/dist/client/assets/{constants-BG70AVFL.js → constants-B6BlNNCv.js} +1 -1
  52. package/dist/client/assets/{constants-CdNdiXMf.js → constants-D4bpaQIy.js} +1 -1
  53. package/dist/client/assets/{dialog-C0FUDu40.js → dialog-CrC-U752.js} +1 -1
  54. package/dist/client/assets/{drawer-D4_wXu6X.js → drawer-D164IDvt.js} +1 -1
  55. package/dist/client/assets/{dropdown-menu-aG44dJsz.js → dropdown-menu-BCSsOhoD.js} +1 -1
  56. package/dist/client/assets/{dynamic-plugin-layout-pzG9mWCw.js → dynamic-plugin-layout-PtppgAts.js} +1 -1
  57. package/dist/client/assets/{empty-state-BjAjwUcB.js → empty-state-Burt6Pjq.js} +1 -1
  58. package/dist/client/assets/{empty-state-BGqwS_3w.js → empty-state-CMAHTHUe.js} +1 -1
  59. package/dist/client/assets/{extract-connection-data-CAAXAkZY.js → extract-connection-data-CIGH4JOA.js} +1 -1
  60. package/dist/client/assets/{features-DCfAHIGS.js → features-DkrqQmvn.js} +1 -1
  61. package/dist/client/assets/{form-BQFhlKGv.js → form-NpftjNqr.js} +1 -1
  62. package/dist/client/assets/{general-0YlUSUig.js → general-CPi9v1zL.js} +1 -1
  63. package/dist/client/assets/{index-C6SXa4V4.js → index-BabWp460.js} +1 -1
  64. package/dist/client/assets/{index-CN1oVHjb.js → index-C7Syt5sm.js} +4 -4
  65. package/dist/client/assets/{index-BRiQU6du.js → index-CESHAiFx.js} +1 -1
  66. package/dist/client/assets/{index-DRjT3wqk.js → index-CMJ6GQ7C.js} +3 -3
  67. package/dist/client/assets/{index-CoTOPljc.js → index-CSCpQ3nk.js} +1 -1
  68. package/dist/client/assets/{index-mdSoEPSF.js → index-ClWc2yds.js} +1 -1
  69. package/dist/client/assets/{index-CEQG3Gi2.js → index-CmG3u4sk.js} +1 -1
  70. package/dist/client/assets/{index-EE9r4ne7.js → index-D0eg_rFC.js} +2 -2
  71. package/dist/client/assets/{index-NYDZhYFt.js → index-DE-s5va1.js} +1 -1
  72. package/dist/client/assets/{index-CIlSPTSj.js → index-MDHGBKc3.js} +1 -1
  73. package/dist/client/assets/{infiniteQueryObserver-BQYXKuj2.js → infiniteQueryObserver-CpBPXtl6.js} +1 -1
  74. package/dist/client/assets/{input-r_oEqK-V.js → input-B0rO4kCw.js} +1 -1
  75. package/dist/client/assets/{integration-icon-BKKqOsd5.js → integration-icon-yOwsHf6q.js} +1 -1
  76. package/dist/client/assets/{label-CenAgqhm.js → label-DEuSkBBi.js} +1 -1
  77. package/dist/client/assets/{layout-DB6YepVn.js → layout-CEdjROI5.js} +1 -1
  78. package/dist/client/assets/{lean-canvas-recruit-modal-TnasvQfT.js → lean-canvas-recruit-modal-BMnsbvdl.js} +1 -1
  79. package/dist/client/assets/{login-DDMVtz0x.js → login-vu3mdB5z.js} +1 -1
  80. package/dist/client/assets/{members-BH6aFn0i.js → members-DtGUx-F1.js} +1 -1
  81. package/dist/client/assets/{monaco-editor-C3TYqqnp.js → monaco-editor-wLqdDZ5S.js} +1 -1
  82. package/dist/client/assets/{monitoring-stats-row-DosCpU_L.js → monitoring-stats-row-5HVh1Gjz.js} +1 -1
  83. package/dist/client/assets/{oauth-callback-BV7Kg1aN.js → oauth-callback-DXN54EUy.js} +1 -1
  84. package/dist/client/assets/{oauth-callback-ai-provider-DjkxS6zo.js → oauth-callback-ai-provider-W7GdFBbP.js} +1 -1
  85. package/dist/client/assets/{onboarding-DmzJa5qN.js → onboarding-BeW6omQ6.js} +1 -1
  86. package/dist/client/assets/{org-layout-D05CVA_8.js → org-layout-Cp3RupKt.js} +1 -1
  87. package/dist/client/assets/{org-plugin-layout-Cv_313Tb.js → org-plugin-layout-Bnfoicc4.js} +1 -1
  88. package/dist/client/assets/{plugin-empty-state-CQeGBgOP.js → plugin-empty-state-0LwQ6R3R.js} +1 -1
  89. package/dist/client/assets/{plugin-header-BXYsY1_p.js → plugin-header-BYiR1ua4.js} +1 -1
  90. package/dist/client/assets/{plugin-layout-Do_Ws-WY.js → plugin-layout-DCOghZWx.js} +1 -1
  91. package/dist/client/assets/{popover-BktSfQG9.js → popover-DUh9iDm9.js} +1 -1
  92. package/dist/client/assets/{profile-BSS2RbEG.js → profile-Bk0bLa4g.js} +1 -1
  93. package/dist/client/assets/{project-app-view-B_z1QorU.js → project-app-view-BtOMb74o.js} +1 -1
  94. package/dist/client/assets/registry-CorCxIMC.js +2 -0
  95. package/dist/client/assets/{registry-layout-B0UM9hrK.js → registry-layout-TU21GgUM.js} +1 -1
  96. package/dist/client/assets/{required-auth-layout-C6TLzB3T.js → required-auth-layout-eS3mZHM3.js} +1 -1
  97. package/dist/client/assets/{reset-password-BV1UW9SB.js → reset-password-nmqGdy62.js} +1 -1
  98. package/dist/client/assets/{scroll-area-C6ws31M0.js → scroll-area-BPvcbDba.js} +1 -1
  99. package/dist/client/assets/{search-input-Dxw50-Fc.js → search-input-DuumYWEB.js} +1 -1
  100. package/dist/client/assets/{select-DMKL-iI9.js → select-DV6Y5fbl.js} +1 -1
  101. package/dist/client/assets/{select-model-D2d213qn.js → select-model-BhJ9eJ30.js} +1 -1
  102. package/dist/client/assets/{settings-layout-BBdiRp4e.js → settings-layout-C6WZX8H8.js} +1 -1
  103. package/dist/client/assets/{shell-layout-CDe1Q4z8.js → shell-layout-Bx85tvr4.js} +1 -1
  104. package/dist/client/assets/{skeleton-C8k5qVSG.js → skeleton-C_5kHpZw.js} +1 -1
  105. package/dist/client/assets/{sso-CChrq6HN.js → sso-Du9xnoxY.js} +1 -1
  106. package/dist/client/assets/{store-Dk4svl-0.js → store-DFSqH5M5.js} +1 -1
  107. package/dist/client/assets/store-registry-ysGrUhGY.js +2 -0
  108. package/dist/client/assets/{switch-BlmZa3uf.js → switch-CbAhbOmy.js} +1 -1
  109. package/dist/client/assets/{table-omg9OiL8.js → table-D03jqlLZ.js} +1 -1
  110. package/dist/client/assets/{tabs-ZI6fRQkw.js → tabs-DtdegoWH.js} +1 -1
  111. package/dist/client/assets/{task-status-erNd2Sbl.js → task-status-BgBSzATn.js} +1 -1
  112. package/dist/client/assets/{textarea-CpW5pfml.js → textarea-D_j-5IAu.js} +1 -1
  113. package/dist/client/assets/{toggle-group-By5F9baT.js → toggle-group-DDh5VZ6f.js} +1 -1
  114. package/dist/client/assets/{tools-list-2T2hc8nL.js → tools-list-CJJNUxfe.js} +1 -1
  115. package/dist/client/assets/{types-BOQuLrVp.js → types-CXkK-iOI.js} +1 -1
  116. package/dist/client/assets/{use-ai-providers-CITI1iNq.js → use-ai-providers-ElYJdGU0.js} +1 -1
  117. package/dist/client/assets/{use-collections-CRzXRke9.js → use-collections-ByN3iK_-.js} +1 -1
  118. package/dist/client/assets/{use-connection-CeSGdaGP.js → use-connection-DS4JMmfK.js} +1 -1
  119. package/dist/client/assets/{use-copy-DGEKKbaG.js → use-copy-1vU78qsX.js} +1 -1
  120. package/dist/client/assets/{use-create-virtual-mcp-UIh1S6RD.js → use-create-virtual-mcp-C0ZtxKxG.js} +1 -1
  121. package/dist/client/assets/{use-decopilot-events-CN7YV5I-.js → use-decopilot-events-Dv7rn_zQ.js} +1 -1
  122. package/dist/client/assets/{use-delete-connection-DeXytvwf.js → use-delete-connection-CnPoPnuN.js} +1 -1
  123. package/dist/client/assets/{use-infinite-scroll-DjXaeUEQ.js → use-infinite-scroll-D9oxXo_y.js} +1 -1
  124. package/dist/client/assets/{use-list-state-UZMoJUvO.js → use-list-state-Bt2BkuK4.js} +1 -1
  125. package/dist/client/assets/{use-mcp-tools-BKQPDk4x.js → use-mcp-tools-CpSp-YOn.js} +1 -1
  126. package/dist/client/assets/{use-members-afZV5Me8.js → use-members-CN2GRsgZ.js} +1 -1
  127. package/dist/client/assets/{use-mobile-DP4MR1ix.js → use-mobile-D5xdghWW.js} +1 -1
  128. package/dist/client/assets/{use-navigate-to-agent-C0iuNKaP.js → use-navigate-to-agent-DC2aXNSM.js} +1 -1
  129. package/dist/client/assets/{use-org-sso-B4mWsSMh.js → use-org-sso-HLMtUxyI.js} +1 -1
  130. package/dist/client/assets/{use-organization-settings-CcvcpCtE.js → use-organization-settings-CRVxUE8d.js} +1 -1
  131. package/dist/client/assets/{use-registry-connections-Bj_DPVwf.js → use-registry-connections-DiPCzdOz.js} +1 -1
  132. package/dist/client/assets/{use-status-sounds-ChUYFOhF.js → use-status-sounds-CepswEV9.js} +1 -1
  133. package/dist/client/assets/{use-tasks-DGmrkFpo.js → use-tasks-Cvm0js2U.js} +1 -1
  134. package/dist/client/assets/{use-view-mode-zFqL6G4U.js → use-view-mode-Qb4bThwm.js} +1 -1
  135. package/dist/client/assets/{use-virtual-mcp-Dn9ixQmR.js → use-virtual-mcp-DmXmoSMd.js} +1 -1
  136. package/dist/client/assets/useInfiniteQuery-BmiRpP8z.js +1 -0
  137. package/dist/client/assets/{user-D7q59BB0.js → user-rEzOpeDj.js} +1 -1
  138. package/dist/client/assets/{view-mode-toggle-BTfIGFL4.js → view-mode-toggle-EUXERI9v.js} +1 -1
  139. package/dist/client/assets/{workflow-DXb2lFI1.js → workflow-CD3p-F8j.js} +1 -1
  140. package/dist/client/assets/workflow-detail-DH47DpCR.js +1 -0
  141. package/dist/client/index.html +1 -1
  142. package/dist/server/cli.js +1 -1
  143. package/dist/server/node_modules/deepmerge/.editorconfig +7 -0
  144. package/dist/server/node_modules/deepmerge/.eslintcache +1 -0
  145. package/dist/server/node_modules/deepmerge/changelog.md +167 -0
  146. package/dist/server/node_modules/deepmerge/dist/cjs.js +133 -0
  147. package/dist/server/node_modules/deepmerge/dist/umd.js +139 -0
  148. package/dist/server/node_modules/deepmerge/index.d.ts +20 -0
  149. package/dist/server/node_modules/deepmerge/index.js +106 -0
  150. package/dist/server/node_modules/{postgres-date/license → deepmerge/license.txt} +1 -1
  151. package/dist/server/node_modules/deepmerge/package.json +42 -0
  152. package/dist/server/node_modules/deepmerge/readme.md +264 -0
  153. package/dist/server/node_modules/deepmerge/rollup.config.js +22 -0
  154. package/dist/server/node_modules/onetime/index.d.ts +64 -0
  155. package/dist/server/node_modules/onetime/index.js +44 -0
  156. package/dist/server/node_modules/{mimic-fn → onetime}/package.json +16 -15
  157. package/dist/server/node_modules/onetime/readme.md +94 -0
  158. package/package.json +1 -1
  159. package/dist/client/assets/ai-providers-Bykzb-xW.js +0 -1
  160. package/dist/client/assets/registry-B_QfL3wE.js +0 -2
  161. package/dist/client/assets/store-registry-DNqLsJlQ.js +0 -2
  162. package/dist/client/assets/useInfiniteQuery-7hq96Va6.js +0 -1
  163. package/dist/client/assets/workflow-detail-CC_ctEsy.js +0 -1
  164. package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
  165. package/dist/server/node_modules/ansi-styles/index.js +0 -223
  166. package/dist/server/node_modules/ansi-styles/package.json +0 -54
  167. package/dist/server/node_modules/ansi-styles/readme.md +0 -173
  168. package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +0 -2
  169. package/dist/server/node_modules/convert-to-spaces/dist/index.js +0 -4
  170. package/dist/server/node_modules/convert-to-spaces/license +0 -21
  171. package/dist/server/node_modules/convert-to-spaces/package.json +0 -40
  172. package/dist/server/node_modules/convert-to-spaces/readme.md +0 -39
  173. package/dist/server/node_modules/environment/index.d.ts +0 -74
  174. package/dist/server/node_modules/environment/index.js +0 -47
  175. package/dist/server/node_modules/environment/license +0 -9
  176. package/dist/server/node_modules/environment/package.json +0 -74
  177. package/dist/server/node_modules/environment/readme.md +0 -94
  178. package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
  179. package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
  180. package/dist/server/node_modules/escape-string-regexp/license +0 -9
  181. package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
  182. package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
  183. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  184. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  185. package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
  186. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  187. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  188. package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
  189. package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
  190. package/dist/server/node_modules/is-unicode-supported/license +0 -9
  191. package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
  192. package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
  193. package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
  194. package/dist/server/node_modules/mimic-fn/index.js +0 -13
  195. package/dist/server/node_modules/mimic-fn/license +0 -9
  196. package/dist/server/node_modules/mimic-fn/readme.md +0 -69
  197. package/dist/server/node_modules/pg-cloudflare/LICENSE +0 -21
  198. package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
  199. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
  200. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
  201. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
  202. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
  203. package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
  204. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
  205. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
  206. package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
  207. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
  208. package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
  209. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
  210. package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
  211. package/dist/server/node_modules/pg-connection-string/README.md +0 -105
  212. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
  213. package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
  214. package/dist/server/node_modules/pg-connection-string/index.js +0 -231
  215. package/dist/server/node_modules/pg-connection-string/package.json +0 -52
  216. package/dist/server/node_modules/pg-int8/LICENSE +0 -13
  217. package/dist/server/node_modules/pg-int8/README.md +0 -16
  218. package/dist/server/node_modules/pg-int8/index.js +0 -100
  219. package/dist/server/node_modules/pg-int8/package.json +0 -24
  220. package/dist/server/node_modules/pg-protocol/LICENSE +0 -21
  221. package/dist/server/node_modules/pg-protocol/README.md +0 -3
  222. package/dist/server/node_modules/pg-protocol/dist/b.d.ts +0 -1
  223. package/dist/server/node_modules/pg-protocol/dist/b.js +0 -23
  224. package/dist/server/node_modules/pg-protocol/dist/b.js.map +0 -1
  225. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -15
  226. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +0 -55
  227. package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +0 -1
  228. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +0 -16
  229. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +0 -81
  230. package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +0 -1
  231. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +0 -1
  232. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +0 -530
  233. package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +0 -1
  234. package/dist/server/node_modules/pg-protocol/dist/index.d.ts +0 -6
  235. package/dist/server/node_modules/pg-protocol/dist/index.js +0 -15
  236. package/dist/server/node_modules/pg-protocol/dist/index.js.map +0 -1
  237. package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +0 -162
  238. package/dist/server/node_modules/pg-protocol/dist/messages.js +0 -160
  239. package/dist/server/node_modules/pg-protocol/dist/messages.js.map +0 -1
  240. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +0 -1
  241. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +0 -252
  242. package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +0 -1
  243. package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +0 -24
  244. package/dist/server/node_modules/pg-protocol/dist/parser.js +0 -324
  245. package/dist/server/node_modules/pg-protocol/dist/parser.js.map +0 -1
  246. package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +0 -42
  247. package/dist/server/node_modules/pg-protocol/dist/serializer.js +0 -189
  248. package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +0 -1
  249. package/dist/server/node_modules/pg-protocol/esm/index.js +0 -11
  250. package/dist/server/node_modules/pg-protocol/package.json +0 -45
  251. package/dist/server/node_modules/pg-protocol/src/b.ts +0 -25
  252. package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +0 -58
  253. package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +0 -85
  254. package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +0 -575
  255. package/dist/server/node_modules/pg-protocol/src/index.ts +0 -11
  256. package/dist/server/node_modules/pg-protocol/src/messages.ts +0 -262
  257. package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +0 -276
  258. package/dist/server/node_modules/pg-protocol/src/parser.ts +0 -413
  259. package/dist/server/node_modules/pg-protocol/src/serializer.ts +0 -274
  260. package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +0 -67
  261. package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +0 -166
  262. package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +0 -1
  263. package/dist/server/node_modules/pg-types/.travis.yml +0 -7
  264. package/dist/server/node_modules/pg-types/Makefile +0 -14
  265. package/dist/server/node_modules/pg-types/README.md +0 -75
  266. package/dist/server/node_modules/pg-types/index.d.ts +0 -137
  267. package/dist/server/node_modules/pg-types/index.js +0 -47
  268. package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
  269. package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
  270. package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
  271. package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
  272. package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
  273. package/dist/server/node_modules/pg-types/package.json +0 -42
  274. package/dist/server/node_modules/pg-types/test/index.js +0 -24
  275. package/dist/server/node_modules/pg-types/test/types.js +0 -597
  276. package/dist/server/node_modules/pgpass/README.md +0 -74
  277. package/dist/server/node_modules/pgpass/lib/helper.js +0 -233
  278. package/dist/server/node_modules/pgpass/lib/index.js +0 -23
  279. package/dist/server/node_modules/pgpass/package.json +0 -41
  280. package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
  281. package/dist/server/node_modules/postgres-array/index.js +0 -97
  282. package/dist/server/node_modules/postgres-array/license +0 -21
  283. package/dist/server/node_modules/postgres-array/package.json +0 -35
  284. package/dist/server/node_modules/postgres-array/readme.md +0 -43
  285. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  286. package/dist/server/node_modules/postgres-bytea/license +0 -21
  287. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  288. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
  289. package/dist/server/node_modules/postgres-date/index.js +0 -116
  290. package/dist/server/node_modules/postgres-date/package.json +0 -33
  291. package/dist/server/node_modules/postgres-date/readme.md +0 -49
  292. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  293. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  294. package/dist/server/node_modules/postgres-interval/license +0 -21
  295. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  296. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  297. package/dist/server/node_modules/restore-cursor/index.d.ts +0 -11
  298. package/dist/server/node_modules/restore-cursor/index.js +0 -11
  299. package/dist/server/node_modules/restore-cursor/license +0 -9
  300. package/dist/server/node_modules/restore-cursor/package.json +0 -55
  301. package/dist/server/node_modules/restore-cursor/readme.md +0 -31
  302. package/dist/server/node_modules/split2/LICENSE +0 -13
  303. package/dist/server/node_modules/split2/README.md +0 -85
  304. package/dist/server/node_modules/split2/bench.js +0 -27
  305. package/dist/server/node_modules/split2/index.js +0 -141
  306. package/dist/server/node_modules/split2/package.json +0 -39
  307. package/dist/server/node_modules/split2/test.js +0 -409
  308. package/dist/server/node_modules/string-width/index.d.ts +0 -39
  309. package/dist/server/node_modules/string-width/index.js +0 -82
  310. package/dist/server/node_modules/string-width/license +0 -9
  311. package/dist/server/node_modules/string-width/package.json +0 -64
  312. package/dist/server/node_modules/string-width/readme.md +0 -66
  313. package/dist/server/node_modules/xtend/.jshintrc +0 -30
  314. package/dist/server/node_modules/xtend/LICENSE +0 -20
  315. package/dist/server/node_modules/xtend/README.md +0 -32
  316. package/dist/server/node_modules/xtend/immutable.js +0 -19
  317. package/dist/server/node_modules/xtend/mutable.js +0 -17
  318. package/dist/server/node_modules/xtend/package.json +0 -55
  319. package/dist/server/node_modules/xtend/test.js +0 -103
  320. /package/dist/server/node_modules/{ansi-styles → onetime}/license +0 -0
@@ -1,47 +0,0 @@
1
- {
2
- "name": "is-unicode-supported",
3
- "version": "2.1.0",
4
- "description": "Detect whether the terminal supports Unicode",
5
- "license": "MIT",
6
- "repository": "sindresorhus/is-unicode-supported",
7
- "funding": "https://github.com/sponsors/sindresorhus",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": {
15
- "types": "./index.d.ts",
16
- "default": "./index.js"
17
- },
18
- "sideEffects": false,
19
- "engines": {
20
- "node": ">=18"
21
- },
22
- "scripts": {
23
- "test": "xo && ava && tsd"
24
- },
25
- "files": [
26
- "index.js",
27
- "index.d.ts"
28
- ],
29
- "keywords": [
30
- "terminal",
31
- "unicode",
32
- "detect",
33
- "utf8",
34
- "console",
35
- "shell",
36
- "support",
37
- "supports",
38
- "supported",
39
- "check",
40
- "detection"
41
- ],
42
- "devDependencies": {
43
- "ava": "^6.1.3",
44
- "tsd": "^0.31.2",
45
- "xo": "^0.59.3"
46
- }
47
- }
@@ -1,35 +0,0 @@
1
- # is-unicode-supported
2
-
3
- > Detect whether the terminal supports Unicode
4
-
5
- This can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output.
6
-
7
- Note that the check is quite naive. It just assumes all non-Windows terminals support Unicode and hard-codes which Windows terminals that do support Unicode. However, I have been using this logic in some popular packages for years without problems.
8
-
9
- ## Install
10
-
11
- ```sh
12
- npm install is-unicode-supported
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- import isUnicodeSupported from 'is-unicode-supported';
19
-
20
- isUnicodeSupported();
21
- //=> true
22
- ```
23
-
24
- ## API
25
-
26
- ### isUnicodeSupported()
27
-
28
- Returns a `boolean` for whether the terminal supports Unicode.
29
-
30
- ## Related
31
-
32
- - [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive
33
- - [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
34
- - [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks
35
- - [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels
@@ -1,54 +0,0 @@
1
- declare const mimicFn: {
2
- /**
3
- Make a function mimic another one. It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
4
-
5
- @param to - Mimicking function.
6
- @param from - Function to mimic.
7
- @returns The modified `to` function.
8
-
9
- @example
10
- ```
11
- import mimicFn = require('mimic-fn');
12
-
13
- function foo() {}
14
- foo.unicorn = '🦄';
15
-
16
- function wrapper() {
17
- return foo();
18
- }
19
-
20
- console.log(wrapper.name);
21
- //=> 'wrapper'
22
-
23
- mimicFn(wrapper, foo);
24
-
25
- console.log(wrapper.name);
26
- //=> 'foo'
27
-
28
- console.log(wrapper.unicorn);
29
- //=> '🦄'
30
- ```
31
- */
32
- <
33
- ArgumentsType extends unknown[],
34
- ReturnType,
35
- FunctionType extends (...arguments: ArgumentsType) => ReturnType
36
- >(
37
- to: (...arguments: ArgumentsType) => ReturnType,
38
- from: FunctionType
39
- ): FunctionType;
40
-
41
- // TODO: Remove this for the next major release, refactor the whole definition to:
42
- // declare function mimicFn<
43
- // ArgumentsType extends unknown[],
44
- // ReturnType,
45
- // FunctionType extends (...arguments: ArgumentsType) => ReturnType
46
- // >(
47
- // to: (...arguments: ArgumentsType) => ReturnType,
48
- // from: FunctionType
49
- // ): FunctionType;
50
- // export = mimicFn;
51
- default: typeof mimicFn;
52
- };
53
-
54
- export = mimicFn;
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const mimicFn = (to, from) => {
4
- for (const prop of Reflect.ownKeys(from)) {
5
- Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
6
- }
7
-
8
- return to;
9
- };
10
-
11
- module.exports = mimicFn;
12
- // TODO: Remove this for the next major release
13
- module.exports.default = mimicFn;
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,69 +0,0 @@
1
- # mimic-fn [![Build Status](https://travis-ci.org/sindresorhus/mimic-fn.svg?branch=master)](https://travis-ci.org/sindresorhus/mimic-fn)
2
-
3
- > Make a function mimic another one
4
-
5
- Useful when you wrap a function in another function and like to preserve the original name and other properties.
6
-
7
-
8
- ## Install
9
-
10
- ```
11
- $ npm install mimic-fn
12
- ```
13
-
14
-
15
- ## Usage
16
-
17
- ```js
18
- const mimicFn = require('mimic-fn');
19
-
20
- function foo() {}
21
- foo.unicorn = '🦄';
22
-
23
- function wrapper() {
24
- return foo();
25
- }
26
-
27
- console.log(wrapper.name);
28
- //=> 'wrapper'
29
-
30
- mimicFn(wrapper, foo);
31
-
32
- console.log(wrapper.name);
33
- //=> 'foo'
34
-
35
- console.log(wrapper.unicorn);
36
- //=> '🦄'
37
- ```
38
-
39
-
40
- ## API
41
-
42
- It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
43
-
44
- ### mimicFn(to, from)
45
-
46
- Modifies the `to` function and returns it.
47
-
48
- #### to
49
-
50
- Type: `Function`
51
-
52
- Mimicking function.
53
-
54
- #### from
55
-
56
- Type: `Function`
57
-
58
- Function to mimic.
59
-
60
-
61
- ## Related
62
-
63
- - [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function
64
- - [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name, length and other properties
65
-
66
-
67
- ## License
68
-
69
- MIT © [Sindre Sorhus](https://sindresorhus.com)
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2010 - 2021 Brian Carlson
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,112 +0,0 @@
1
- # pg-cloudflare
2
-
3
- `pg-cloudflare` makes it easier to take an existing package that relies on `tls` and `net`, and make it work in environments where only `connect()` is supported, such as Cloudflare Workers.
4
-
5
- `pg-cloudflare` wraps `connect()`, the [TCP Socket API](https://github.com/wintercg/proposal-sockets-api) proposed within WinterCG, and implemented in [Cloudflare Workers](https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/), and exposes an interface with methods similar to what the `net` and `tls` modules in Node.js expose. (ex: `net.connect(path[, options][, callback])`). This minimizes the number of changes needed in order to make an existing package work across JavaScript runtimes.
6
-
7
- ## Installation
8
-
9
- ```
10
- npm i --save-dev pg-cloudflare
11
- ```
12
-
13
- The package uses conditional exports to support bundlers that don't know about
14
- `cloudflare:sockets`, so the consumer code by default imports an empty file. To
15
- enable the package, resolve to the `cloudflare` condition in your bundler's
16
- config. For example:
17
-
18
- - `webpack.config.js`
19
- ```js
20
- export default {
21
- ...,
22
- resolve: { conditionNames: [..., "workerd"] },
23
- plugins: [
24
- // ignore cloudflare:sockets imports
25
- new webpack.IgnorePlugin({
26
- resourceRegExp: /^cloudflare:sockets$/,
27
- }),
28
- ],
29
- }
30
- ```
31
- - `vite.config.js`
32
-
33
- > [!NOTE]
34
- > If you are using the [Cloudflare Vite plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) then the following configuration is not necessary.
35
-
36
- ```js
37
- export default defineConfig({
38
- ...,
39
- resolve: {
40
- conditions: [..., "workerd"],
41
- },
42
- build: {
43
- ...,
44
- // don't try to bundle cloudflare:sockets
45
- rollupOptions: {
46
- external: [..., 'cloudflare:sockets'],
47
- },
48
- },
49
- })
50
- ```
51
-
52
- - `rollup.config.js`
53
- ```js
54
- export default defineConfig({
55
- ...,
56
- plugins: [..., nodeResolve({ exportConditions: [..., 'workerd'] })],
57
- // don't try to bundle cloudflare:sockets
58
- external: [..., 'cloudflare:sockets'],
59
- })
60
- ```
61
- - `esbuild.config.js`
62
- ```js
63
- await esbuild.build({
64
- ...,
65
- conditions: [..., 'workerd'],
66
- })
67
- ```
68
-
69
- The concrete examples can be found in `packages/pg-bundler-test`.
70
-
71
- ## How to use conditionally, in non-Node.js environments
72
-
73
- As implemented in `pg` [here](https://github.com/brianc/node-postgres/commit/07553428e9c0eacf761a5d4541a3300ff7859578#diff-34588ad868ebcb232660aba7ee6a99d1e02f4bc93f73497d2688c3f074e60533R5-R13), a typical use case might look as follows, where in a Node.js environment the `net` module is used, while in a non-Node.js environment, where `net` is unavailable, `pg-cloudflare` is used instead, providing an equivalent interface:
74
-
75
- ```js
76
- module.exports.getStream = function getStream(ssl = false) {
77
- const net = require('net')
78
- if (typeof net.Socket === 'function') {
79
- return net.Socket()
80
- }
81
- const { CloudflareSocket } = require('pg-cloudflare')
82
- return new CloudflareSocket(ssl)
83
- }
84
- ```
85
-
86
- ## Node.js implementation of the Socket API proposal
87
-
88
- If you're looking for a way to rely on `connect()` as the interface you use to interact with raw sockets, but need this interface to be available in a Node.js environment, [`@arrowood.dev/socket`](https://github.com/Ethan-Arrowood/socket) provides a Node.js implementation of the Socket API.
89
-
90
- ### license
91
-
92
- The MIT License (MIT)
93
-
94
- Copyright (c) 2023 Brian M. Carlson
95
-
96
- Permission is hereby granted, free of charge, to any person obtaining a copy
97
- of this software and associated documentation files (the "Software"), to deal
98
- in the Software without restriction, including without limitation the rights
99
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
100
- copies of the Software, and to permit persons to whom the Software is
101
- furnished to do so, subject to the following conditions:
102
-
103
- The above copyright notice and this permission notice shall be included in
104
- all copies or substantial portions of the Software.
105
-
106
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
107
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
108
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
109
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
110
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
111
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
112
- THE SOFTWARE.
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // This is an empty module that is served up when outside of a workerd environment
4
- // See the `exports` field in package.json
5
- exports.default = {};
6
- //# sourceMappingURL=empty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty.js","sourceRoot":"","sources":["../src/empty.ts"],"names":[],"mappings":";;AAAA,kFAAkF;AAClF,0CAA0C;AAC1C,kBAAe,EAAE,CAAA"}
@@ -1,31 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import { TlsOptions } from 'cloudflare:sockets';
5
- import { EventEmitter } from 'events';
6
- /**
7
- * Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
8
- */
9
- export declare class CloudflareSocket extends EventEmitter {
10
- readonly ssl: boolean;
11
- writable: boolean;
12
- destroyed: boolean;
13
- private _upgrading;
14
- private _upgraded;
15
- private _cfSocket;
16
- private _cfWriter;
17
- private _cfReader;
18
- constructor(ssl: boolean);
19
- setNoDelay(): this;
20
- setKeepAlive(): this;
21
- ref(): this;
22
- unref(): this;
23
- connect(port: number, host: string, connectListener?: (...args: unknown[]) => void): Promise<this | undefined>;
24
- _listen(): Promise<void>;
25
- _listenOnce(): Promise<void>;
26
- write(data: Uint8Array | string, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): true | void;
27
- end(data?: Buffer, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): this;
28
- destroy(reason: string): this;
29
- startTls(options: TlsOptions): void;
30
- _addClosedHandler(): void;
31
- }
@@ -1,152 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CloudflareSocket = void 0;
4
- const events_1 = require("events");
5
- /**
6
- * Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
7
- */
8
- class CloudflareSocket extends events_1.EventEmitter {
9
- constructor(ssl) {
10
- super();
11
- this.ssl = ssl;
12
- this.writable = false;
13
- this.destroyed = false;
14
- this._upgrading = false;
15
- this._upgraded = false;
16
- this._cfSocket = null;
17
- this._cfWriter = null;
18
- this._cfReader = null;
19
- }
20
- setNoDelay() {
21
- return this;
22
- }
23
- setKeepAlive() {
24
- return this;
25
- }
26
- ref() {
27
- return this;
28
- }
29
- unref() {
30
- return this;
31
- }
32
- async connect(port, host, connectListener) {
33
- try {
34
- log('connecting');
35
- if (connectListener)
36
- this.once('connect', connectListener);
37
- const options = this.ssl ? { secureTransport: 'starttls' } : {};
38
- const mod = await import('cloudflare:sockets');
39
- const connect = mod.connect;
40
- this._cfSocket = connect(`${host}:${port}`, options);
41
- this._cfWriter = this._cfSocket.writable.getWriter();
42
- this._addClosedHandler();
43
- this._cfReader = this._cfSocket.readable.getReader();
44
- if (this.ssl) {
45
- this._listenOnce().catch((e) => this.emit('error', e));
46
- }
47
- else {
48
- this._listen().catch((e) => this.emit('error', e));
49
- }
50
- await this._cfWriter.ready;
51
- log('socket ready');
52
- this.writable = true;
53
- this.emit('connect');
54
- return this;
55
- }
56
- catch (e) {
57
- this.emit('error', e);
58
- }
59
- }
60
- async _listen() {
61
- // eslint-disable-next-line no-constant-condition
62
- while (true) {
63
- log('awaiting receive from CF socket');
64
- const { done, value } = await this._cfReader.read();
65
- log('CF socket received:', done, value);
66
- if (done) {
67
- log('done');
68
- break;
69
- }
70
- this.emit('data', Buffer.from(value));
71
- }
72
- }
73
- async _listenOnce() {
74
- log('awaiting first receive from CF socket');
75
- const { done, value } = await this._cfReader.read();
76
- log('First CF socket received:', done, value);
77
- this.emit('data', Buffer.from(value));
78
- }
79
- write(data, encoding = 'utf8', callback = () => { }) {
80
- if (data.length === 0)
81
- return callback();
82
- if (typeof data === 'string')
83
- data = Buffer.from(data, encoding);
84
- log('sending data direct:', data);
85
- this._cfWriter.write(data).then(() => {
86
- log('data sent');
87
- callback();
88
- }, (err) => {
89
- log('send error', err);
90
- callback(err);
91
- });
92
- return true;
93
- }
94
- end(data = Buffer.alloc(0), encoding = 'utf8', callback = () => { }) {
95
- log('ending CF socket');
96
- this.write(data, encoding, (err) => {
97
- this._cfSocket.close();
98
- if (callback)
99
- callback(err);
100
- });
101
- return this;
102
- }
103
- destroy(reason) {
104
- log('destroying CF socket', reason);
105
- this.destroyed = true;
106
- return this.end();
107
- }
108
- startTls(options) {
109
- if (this._upgraded) {
110
- // Don't try to upgrade again.
111
- this.emit('error', 'Cannot call `startTls()` more than once on a socket');
112
- return;
113
- }
114
- this._cfWriter.releaseLock();
115
- this._cfReader.releaseLock();
116
- this._upgrading = true;
117
- this._cfSocket = this._cfSocket.startTls(options);
118
- this._cfWriter = this._cfSocket.writable.getWriter();
119
- this._cfReader = this._cfSocket.readable.getReader();
120
- this._addClosedHandler();
121
- this._listen().catch((e) => this.emit('error', e));
122
- }
123
- _addClosedHandler() {
124
- this._cfSocket.closed.then(() => {
125
- if (!this._upgrading) {
126
- log('CF socket closed');
127
- this._cfSocket = null;
128
- this.emit('close');
129
- }
130
- else {
131
- this._upgrading = false;
132
- this._upgraded = true;
133
- }
134
- }).catch((e) => this.emit('error', e));
135
- }
136
- }
137
- exports.CloudflareSocket = CloudflareSocket;
138
- const debug = false;
139
- function dump(data) {
140
- if (data instanceof Uint8Array || data instanceof ArrayBuffer) {
141
- const hex = Buffer.from(data).toString('hex');
142
- const str = new TextDecoder().decode(data);
143
- return `\n>>> STR: "${str.replace(/\n/g, '\\n')}"\n>>> HEX: ${hex}\n`;
144
- }
145
- else {
146
- return data;
147
- }
148
- }
149
- function log(...args) {
150
- debug && console.log(...args.map(dump));
151
- }
152
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,mCAAqC;AAErC;;GAEG;AACH,MAAa,gBAAiB,SAAQ,qBAAY;IAUhD,YAAqB,GAAY;QAC/B,KAAK,EAAE,CAAA;QADY,QAAG,GAAH,GAAG,CAAS;QATjC,aAAQ,GAAG,KAAK,C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AE,CAAC,CAAC,CAAC,CAAA;IACxC,CAAC;CACF;AA/ID,4CA+IC;AAED,MAAM,KAAK,GAAG,KAAK,CAAA;AAEnB,SAAS,IAAI,CAAC,IAAa;IACzB,IAAI,IAAI,YAAY,UAAU,IAAI,IAAI,YAAY,WAAW,EAAE;QAC7D,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC7C,MAAM,GAAG,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAC1C,OAAO,eAAe,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,eAAe,GAAG,IAAI,CAAA;KACtE;SAAM;QACL,OAAO,IAAI,CAAA;KACZ;AACH,CAAC;AAED,SAAS,GAAG,CAAC,GAAG,IAAe;IAC7B,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAA;AACzC,CAAC"}
@@ -1,3 +0,0 @@
1
- import cf from '../dist/index.js'
2
-
3
- export const CloudflareSocket = cf.CloudflareSocket
@@ -1,39 +0,0 @@
1
- {
2
- "name": "pg-cloudflare",
3
- "version": "1.3.0",
4
- "description": "A socket implementation that can run on Cloudflare Workers using native TCP connections.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "license": "MIT",
8
- "devDependencies": {
9
- "ts-node": "^8.5.4",
10
- "typescript": "^4.0.3"
11
- },
12
- "exports": {
13
- ".": {
14
- "workerd": {
15
- "import": "./esm/index.mjs",
16
- "require": "./dist/index.js"
17
- },
18
- "default": "./dist/empty.js"
19
- },
20
- "./package.json": "./package.json"
21
- },
22
- "scripts": {
23
- "build": "tsc",
24
- "build:watch": "tsc --watch",
25
- "prepublish": "yarn build",
26
- "test": "echo e2e test in pg package"
27
- },
28
- "repository": {
29
- "type": "git",
30
- "url": "git://github.com/brianc/node-postgres.git",
31
- "directory": "packages/pg-cloudflare"
32
- },
33
- "files": [
34
- "/dist/*{js,ts,map}",
35
- "/src",
36
- "/esm"
37
- ],
38
- "gitHead": "d10e09c888f94abf77382aba6f353ca665a1cf09"
39
- }
@@ -1,3 +0,0 @@
1
- // This is an empty module that is served up when outside of a workerd environment
2
- // See the `exports` field in package.json
3
- export default {}