decocms 2.310.5 → 2.310.7

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 (227) hide show
  1. package/dist/client/assets/{AlertCircle-Cxcba8DN.js → AlertCircle-CuM-KdHk.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-CtUMVsB_.js → ArrowNarrowLeft-Cpx9xeWT.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-ZaII7u8u.js → ArrowUpRight-249OOcyE.js} +1 -1
  4. package/dist/client/assets/{Check-BStFjKto.js → Check-BftHRhey.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-CkSmS6Cg.js → CheckCircle-WEIo-pCW.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-CJ0icK2r.js → ChevronDown-GuQCCVxY.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-Dw3Db6I0.js → ChevronRight-D70BcWp3.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-BDsNPBis.js → ChevronUp-f3bNd3s4.js} +1 -1
  9. package/dist/client/assets/{Container-WBb7qbdD.js → Container-B853p6Qb.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-BPk38qYQ.js → DotsVertical-BK6Ncov6.js} +1 -1
  11. package/dist/client/assets/{LinkExternal01-6x3Iy4Gd.js → LinkExternal01-BMfICpRK.js} +1 -1
  12. package/dist/client/assets/{Lock01-DA0MuRwj.js → Lock01-CGQL-Jok.js} +1 -1
  13. package/dist/client/assets/{Palette-DfzN4-9K.js → Palette-EnAmXQki.js} +1 -1
  14. package/dist/client/assets/{Play-QsP1MGXe.js → Play-CeXfJiKt.js} +1 -1
  15. package/dist/client/assets/{Plus-QZEpDFDV.js → Plus-CqZ4EiBG.js} +1 -1
  16. package/dist/client/assets/{RefreshCcw01-DKtPikGx.js → RefreshCcw01-D2OKMf0j.js} +1 -1
  17. package/dist/client/assets/{SearchMd-BHubyM0S.js → SearchMd-CUGu5-TB.js} +1 -1
  18. package/dist/client/assets/{Settings02-DpkRLLNd.js → Settings02-CM8ahLMq.js} +1 -1
  19. package/dist/client/assets/{Shield01-BvsHGINb.js → Shield01-CSkk6eDR.js} +1 -1
  20. package/dist/client/assets/{Star01-DduN7cUl.js → Star01-B5RsCrRO.js} +1 -1
  21. package/dist/client/assets/{Sun-k7d5io6k.js → Sun-Cu9dTjRD.js} +1 -1
  22. package/dist/client/assets/{Tool01-BPmEF3oC.js → Tool01-CB1zRrL_.js} +1 -1
  23. package/dist/client/assets/{Trash01-DhkmMJFO.js → Trash01-BW8j59II.js} +1 -1
  24. package/dist/client/assets/{User01-76gT3tOW.js → User01-A6UwBQ-e.js} +1 -1
  25. package/dist/client/assets/{Users03-DDHNU2o0.js → Users03-BnwUv15H.js} +1 -1
  26. package/dist/client/assets/{X-C_O1kj8t.js → X-D4KaZVfd.js} +1 -1
  27. package/dist/client/assets/{XCircle-D9VV2CKm.js → XCircle-UCUjM7Eq.js} +1 -1
  28. package/dist/client/assets/{XClose-C21czImH.js → XClose-1wiy-s9o.js} +1 -1
  29. package/dist/client/assets/{Zap-TR29R2LK.js → Zap-Bsi89W3L.js} +1 -1
  30. package/dist/client/assets/{ZapSquare-OxHp4t0m.js → ZapSquare-0Qax0OwU.js} +1 -1
  31. package/dist/client/assets/{accordion-CTsJVvtX.js → accordion-DqPDFaJZ.js} +1 -1
  32. package/dist/client/assets/{agent-icon-s17W0wUB.js → agent-icon-D9WuJUII.js} +1 -1
  33. package/dist/client/assets/{agents-list-VvrcV5iJ.js → agents-list-DpkO7yZR.js} +1 -1
  34. package/dist/client/assets/ai-providers-Ywzpw7uX.js +1 -0
  35. package/dist/client/assets/{alert-dialog-CmK4A6kC.js → alert-dialog-DQcedblR.js} +1 -1
  36. package/dist/client/assets/{auth-catchall-8ZQwpXp5.js → auth-catchall-CWQ9Q5iz.js} +1 -1
  37. package/dist/client/assets/{automation-list-row-BCSS4QUj.js → automation-list-row-B1jjSmJv.js} +1 -1
  38. package/dist/client/assets/{automations-DeCusdy6.js → automations-DfJtns8H.js} +1 -1
  39. package/dist/client/assets/{avatar-CSILDiJX.js → avatar-SKC88Sxz.js} +1 -1
  40. package/dist/client/assets/{badge-COxphYel.js → badge-kY5LxHTQ.js} +1 -1
  41. package/dist/client/assets/{brand-context-CWfr5DVG.js → brand-context-CbSlx523.js} +1 -1
  42. package/dist/client/assets/{card-CBJhlNRB.js → card-TtML1gcR.js} +1 -1
  43. package/dist/client/assets/{chat-context-De5Jlj4X.js → chat-context-BmkwuEFL.js} +1 -1
  44. package/dist/client/assets/{checkbox-DjVRr70r.js → checkbox-DlYJ2ZBs.js} +1 -1
  45. package/dist/client/assets/{collection-detail-DpmRlPMa.js → collection-detail-DPirBiaX.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-BbDt8MHw.js → collection-display-button-BBpuX0HX.js} +1 -1
  47. package/dist/client/assets/{collection-search-Qnmn9Jjl.js → collection-search-DN4pxib6.js} +1 -1
  48. package/dist/client/assets/{collection-search-CfovRENW.js → collection-search-qJ82EBGR.js} +1 -1
  49. package/dist/client/assets/{collection-table-wrapper-CnIJP88L.js → collection-table-wrapper-P0Rplkr8.js} +1 -1
  50. package/dist/client/assets/{collection-tabs-BJ2mAaff.js → collection-tabs-BmIH3xCD.js} +1 -1
  51. package/dist/client/assets/{collections-BNKaenRk.js → collections-DMhUCG9N.js} +1 -1
  52. package/dist/client/assets/{command-DPlcxMzI.js → command-Z3q4rFoy.js} +1 -1
  53. package/dist/client/assets/{connection-card-CuHLr6qd.js → connection-card-ByU6yk0P.js} +1 -1
  54. package/dist/client/assets/{connection-detail-b2gPCepr.js → connection-detail-B5aCLk9i.js} +1 -1
  55. package/dist/client/assets/{connection-form-helpers-CAZC18NZ.js → connection-form-helpers-Dd44S7DP.js} +1 -1
  56. package/dist/client/assets/{connections-BQvZQo8B.js → connections-DfA8tIjw.js} +1 -1
  57. package/dist/client/assets/{constants-BKat4sJw.js → constants-BMcKXekw.js} +1 -1
  58. package/dist/client/assets/{constants-B_3LNOq3.js → constants-CbCoNlv2.js} +1 -1
  59. package/dist/client/assets/{dialog-DxHqBK-g.js → dialog-Bsa12dnh.js} +1 -1
  60. package/dist/client/assets/{domain-settings-Dj6mogBD.js → domain-settings-CuH-hR5V.js} +1 -1
  61. package/dist/client/assets/{drawer-CPYawKkb.js → drawer-C9LOrKKv.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-Do_6-JC4.js → dropdown-menu-DX6piJPz.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-CGObbc--.js → dynamic-plugin-layout-DsDJowIk.js} +1 -1
  64. package/dist/client/assets/{empty-state-DDT6Axd2.js → empty-state-BEfgeDDv.js} +1 -1
  65. package/dist/client/assets/{empty-state-Bmp0M8wH.js → empty-state-eV9SJi-n.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-ooIvzjyZ.js → extract-connection-data-DZcp9t86.js} +1 -1
  67. package/dist/client/assets/{features-Ck3YVx8z.js → features-W6V84sFg.js} +1 -1
  68. package/dist/client/assets/{form-BV__Eo4v.js → form-DY1_Jgim.js} +1 -1
  69. package/dist/client/assets/{general-J5FLwmfS.js → general-rRhII39P.js} +1 -1
  70. package/dist/client/assets/{index-DO6HBQ4K.js → index-BSUNMY5I.js} +1 -1
  71. package/dist/client/assets/{index-BKcT0ut5.js → index-B_htqWBy.js} +1 -1
  72. package/dist/client/assets/{index-D9tByeUz.js → index-Bmi_mUSE.js} +1 -1
  73. package/dist/client/assets/{index-CjZClkan.js → index-BoYlssuV.js} +1 -1
  74. package/dist/client/assets/{index-Baly1FX_.js → index-BqI6xi4u.js} +1 -1
  75. package/dist/client/assets/{index-D075V-Aw.js → index-C0J23kLF.js} +1 -1
  76. package/dist/client/assets/{index-CQAZn3EK.js → index-CetGUzKn.js} +1 -1
  77. package/dist/client/assets/{index-BZ3dhBMg.js → index-D-fGzoLx.js} +1 -1
  78. package/dist/client/assets/{index-DJnCb9MX.js → index-D3dQV2Na.js} +3 -3
  79. package/dist/client/assets/index-D6KVQzCH.js +1 -0
  80. package/dist/client/assets/{index-Dt0vRnUx.js → index-DYRpe8uX.js} +1 -1
  81. package/dist/client/assets/{index-CFiXkeYB.js → index-DduxrpHL.js} +1 -1
  82. package/dist/client/assets/{index-BrMQgHVf.js → index-Dt3SogcY.js} +1 -1
  83. package/dist/client/assets/{index-CKPYZoPD.js → index-O5phU7w5.js} +1 -1
  84. package/dist/client/assets/{index-CkXbIQAg.js → index-n4_lUB4K.js} +1 -1
  85. package/dist/client/assets/{index-BjqwKAPh.js → index-yXs9tGmK.js} +2 -2
  86. package/dist/client/assets/{infiniteQueryObserver-BOOXGQo2.js → infiniteQueryObserver-Dzb7byYS.js} +1 -1
  87. package/dist/client/assets/{input-BY95D9hS.js → input-D1idVude.js} +1 -1
  88. package/dist/client/assets/{integration-icon-BTq6hO7n.js → integration-icon-Gxu1dVQn.js} +1 -1
  89. package/dist/client/assets/{label-Z9ad9sg6.js → label-B-NpBBHq.js} +1 -1
  90. package/dist/client/assets/{layout-D9TsRZCx.js → layout-CE3ZnRFE.js} +1 -1
  91. package/dist/client/assets/{lean-canvas-recruit-modal-OmMNmndT.js → lean-canvas-recruit-modal-BuEkFA9e.js} +1 -1
  92. package/dist/client/assets/{login-C9jgvn5K.js → login-CZgIiS7w.js} +1 -1
  93. package/dist/client/assets/{members-CBmW6KwZ.js → members-DmFa-0yW.js} +1 -1
  94. package/dist/client/assets/{monaco-editor-UyxFxpQH.js → monaco-editor-DAeg76lT.js} +1 -1
  95. package/dist/client/assets/{monitoring-stats-row-DdON8HAn.js → monitoring-stats-row-Baf8mFaI.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-D7SVJIig.js → oauth-callback-0KNzGhpL.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-ai-provider-D_zvQ6_C.js → oauth-callback-ai-provider-DZsn3jJ5.js} +1 -1
  98. package/dist/client/assets/{onboarding-0k8ZSX_k.js → onboarding-Dd1-NQeo.js} +1 -1
  99. package/dist/client/assets/{org-layout-D_IQBqiz.js → org-layout-DJ9czyeH.js} +1 -1
  100. package/dist/client/assets/{org-plugin-layout-CSiRNaTu.js → org-plugin-layout-uvsHzPY8.js} +1 -1
  101. package/dist/client/assets/{pair-DxZ7l3-Z.js → pair-HYXYczNm.js} +1 -1
  102. package/dist/client/assets/{plugin-empty-state-Dp1Lzm8V.js → plugin-empty-state-DLzjDCGp.js} +1 -1
  103. package/dist/client/assets/{plugin-header-9vDTFdB9.js → plugin-header-C9GikzbP.js} +1 -1
  104. package/dist/client/assets/{plugin-layout-3ykxXUjf.js → plugin-layout-Bnj18EMa.js} +1 -1
  105. package/dist/client/assets/{popover-Zakke__8.js → popover-CEp7GMMf.js} +1 -1
  106. package/dist/client/assets/{profile-9LB06cBx.js → profile-8W-ZR4Yf.js} +1 -1
  107. package/dist/client/assets/{project-app-view-CqdnMjZ0.js → project-app-view-CZjdrpVY.js} +1 -1
  108. package/dist/client/assets/registry-CtpRMqI4.js +2 -0
  109. package/dist/client/assets/{registry-layout-CJQb6Z8y.js → registry-layout-B6_PJADn.js} +1 -1
  110. package/dist/client/assets/{required-auth-layout-BxrX3bDQ.js → required-auth-layout-m15-6OC7.js} +1 -1
  111. package/dist/client/assets/{reset-password-B5KLP3tu.js → reset-password-Cy6H396Y.js} +1 -1
  112. package/dist/client/assets/{roles-DGvkLiRr.js → roles-BoBGsz63.js} +1 -1
  113. package/dist/client/assets/{scroll-area-DkrmJo9D.js → scroll-area-CNzeHS7U.js} +1 -1
  114. package/dist/client/assets/{search-input-CdGp9qCd.js → search-input-GBle-Ult.js} +1 -1
  115. package/dist/client/assets/{select-model-CQhnH5Rx.js → select-model-BNOdxJ8T.js} +1 -1
  116. package/dist/client/assets/{select-CR2tN9TX.js → select-oksghxqd.js} +1 -1
  117. package/dist/client/assets/{settings-layout-DHX6Eu2B.js → settings-layout-B9ZAa9zJ.js} +1 -1
  118. package/dist/client/assets/{settings-section-67sbTFXw.js → settings-section-Cs-24U6X.js} +1 -1
  119. package/dist/client/assets/{shell-layout-CimuPmyV.js → shell-layout-CSAmoALJ.js} +1 -1
  120. package/dist/client/assets/{skeleton-CS-2bSP9.js → skeleton-BpPGNzvJ.js} +1 -1
  121. package/dist/client/assets/{sso-Dr2zYrCj.js → sso-BtlYNxyf.js} +1 -1
  122. package/dist/client/assets/{store-DpWEzwk_.js → store-Dm4HcekA.js} +1 -1
  123. package/dist/client/assets/store-registry-CQd3lakr.js +2 -0
  124. package/dist/client/assets/{switch-zLHY6ITD.js → switch-B5zXTxeI.js} +1 -1
  125. package/dist/client/assets/{table-CegXcKEa.js → table-B5Rxdpdr.js} +1 -1
  126. package/dist/client/assets/{tabs-CJQTWD5_.js → tabs-DVu-d_F7.js} +1 -1
  127. package/dist/client/assets/{task-status-0vcjP9bK.js → task-status-BLqgoWZd.js} +1 -1
  128. package/dist/client/assets/{textarea-fydFuW_3.js → textarea-Drt7TRCA.js} +1 -1
  129. package/dist/client/assets/{toggle-group-7VcHOdQ-.js → toggle-group-B7vXGfsJ.js} +1 -1
  130. package/dist/client/assets/{tools-list-DqqciwCd.js → tools-list-B3DYWmit.js} +1 -1
  131. package/dist/client/assets/{tooltip-D_AU3yF1.js → tooltip-BTsvCU2k.js} +1 -1
  132. package/dist/client/assets/{types-Cnb1YG8h.js → types-CF4WelHx.js} +1 -1
  133. package/dist/client/assets/{use-ai-providers-BJDLmjji.js → use-ai-providers-Btz-oJNO.js} +1 -1
  134. package/dist/client/assets/{use-collections-Gut3G1oa.js → use-collections-uI1rjz3N.js} +1 -1
  135. package/dist/client/assets/{use-connection-DPW4E_0G.js → use-connection-B2apVPPr.js} +1 -1
  136. package/dist/client/assets/{use-copy-B4TaRnHv.js → use-copy-BHTiEmhG.js} +1 -1
  137. package/dist/client/assets/{use-create-virtual-mcp-DIprfvzX.js → use-create-virtual-mcp-Dz4JCy3q.js} +1 -1
  138. package/dist/client/assets/{use-debounced-autosave-DHCyVVfx.js → use-debounced-autosave-Cn14ErNn.js} +1 -1
  139. package/dist/client/assets/{use-decopilot-events-Cbmf5tlg.js → use-decopilot-events-CngU_5lh.js} +1 -1
  140. package/dist/client/assets/{use-delete-connection-WVmPLIlj.js → use-delete-connection-BlaYzhTY.js} +1 -1
  141. package/dist/client/assets/{use-infinite-scroll-T0hVA3O9.js → use-infinite-scroll-fz986PqS.js} +1 -1
  142. package/dist/client/assets/{use-list-state-DA3cifaL.js → use-list-state-DiaLZO82.js} +1 -1
  143. package/dist/client/assets/{use-mcp-tools-iAx7skPl.js → use-mcp-tools-B607Fhr7.js} +1 -1
  144. package/dist/client/assets/{use-members-j0TSecaQ.js → use-members-DdpI-Gbm.js} +1 -1
  145. package/dist/client/assets/{use-navigate-to-agent-BCE8xoYG.js → use-navigate-to-agent-ClslGFD4.js} +1 -1
  146. package/dist/client/assets/{use-org-auth-client-Csj669Fw.js → use-org-auth-client-DU7BM5_S.js} +1 -1
  147. package/dist/client/assets/{use-org-sso-Cm8qhi19.js → use-org-sso-DWYHbe3V.js} +1 -1
  148. package/dist/client/assets/{use-organization-roles-InflUxV2.js → use-organization-roles-BPnpG1eD.js} +1 -1
  149. package/dist/client/assets/{use-organization-settings-sGFYoeez.js → use-organization-settings-ZtzlZVxc.js} +1 -1
  150. package/dist/client/assets/{use-registry-connections-CA8kz06E.js → use-registry-connections-zAvJOEhj.js} +1 -1
  151. package/dist/client/assets/{use-status-sounds-DM61lJPE.js → use-status-sounds-6j4gdGn2.js} +1 -1
  152. package/dist/client/assets/{use-tasks-C2Vyiupf.js → use-tasks-Dxg0Zcai.js} +1 -1
  153. package/dist/client/assets/{use-view-mode-BoUYdfcR.js → use-view-mode-BiFVXbzm.js} +1 -1
  154. package/dist/client/assets/{use-virtual-mcp-DER1r6QO.js → use-virtual-mcp-_eDHFLig.js} +1 -1
  155. package/dist/client/assets/useInfiniteQuery-DghSJ4Rz.js +1 -0
  156. package/dist/client/assets/useSuspenseInfiniteQuery-4RlTfnKq.js +1 -0
  157. package/dist/client/assets/{user-Di0TXJ3H.js → user-DRweJsjF.js} +1 -1
  158. package/dist/client/assets/{view-mode-toggle-DoU7eK15.js → view-mode-toggle-DK6IbcjP.js} +1 -1
  159. package/dist/client/assets/{workflow-DkCqRbGa.js → workflow-JooO4yeK.js} +1 -1
  160. package/dist/client/assets/workflow-detail-DnZUxGMw.js +1 -0
  161. package/dist/client/index.html +1 -1
  162. package/dist/server/cli.js +48 -8
  163. package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
  164. package/dist/server/node_modules/ansi-regex/index.js +14 -0
  165. package/dist/server/node_modules/{ansi-styles → ansi-regex}/package.json +20 -13
  166. package/dist/server/node_modules/ansi-regex/readme.md +66 -0
  167. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  168. package/dist/server/node_modules/emoji-regex/README.md +107 -0
  169. package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
  170. package/dist/server/node_modules/emoji-regex/index.js +4 -0
  171. package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
  172. package/dist/server/node_modules/emoji-regex/package.json +45 -0
  173. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  174. package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
  175. package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
  176. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
  177. package/dist/server/node_modules/onetime/index.d.ts +64 -0
  178. package/dist/server/node_modules/onetime/index.js +44 -0
  179. package/dist/server/node_modules/{mimic-fn → onetime}/license +1 -1
  180. package/dist/server/node_modules/{mimic-fn → onetime}/package.json +16 -15
  181. package/dist/server/node_modules/onetime/readme.md +94 -0
  182. package/dist/server/server.js +47 -7
  183. package/package.json +1 -1
  184. package/dist/client/assets/ai-providers-CW7mNid6.js +0 -1
  185. package/dist/client/assets/index-DxiAr3ci.js +0 -1
  186. package/dist/client/assets/registry-DqBhBsD3.js +0 -2
  187. package/dist/client/assets/store-registry-CQpdN133.js +0 -2
  188. package/dist/client/assets/useInfiniteQuery-BjzmzsUJ.js +0 -1
  189. package/dist/client/assets/useSuspenseInfiniteQuery-SvwkjZhj.js +0 -1
  190. package/dist/client/assets/workflow-detail-CbEkNnBb.js +0 -1
  191. package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
  192. package/dist/server/node_modules/ansi-styles/index.js +0 -223
  193. package/dist/server/node_modules/ansi-styles/readme.md +0 -173
  194. package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
  195. package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
  196. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
  197. package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
  198. package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
  199. package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
  200. package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
  201. package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
  202. package/dist/server/node_modules/mimic-fn/index.js +0 -13
  203. package/dist/server/node_modules/mimic-fn/readme.md +0 -69
  204. package/dist/server/node_modules/pg/LICENSE +0 -21
  205. package/dist/server/node_modules/pg/README.md +0 -95
  206. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  207. package/dist/server/node_modules/pg/lib/client.js +0 -743
  208. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  209. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  210. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  211. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  212. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  213. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  214. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  215. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  216. package/dist/server/node_modules/pg/lib/index.js +0 -73
  217. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  218. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  219. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  220. package/dist/server/node_modules/pg/lib/query.js +0 -252
  221. package/dist/server/node_modules/pg/lib/result.js +0 -109
  222. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  223. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  224. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  225. package/dist/server/node_modules/pg/package.json +0 -76
  226. /package/dist/server/node_modules/{ansi-styles → ansi-regex}/license +0 -0
  227. /package/dist/server/node_modules/{get-east-asian-width → is-fullwidth-code-point}/license +0 -0
@@ -1,173 +0,0 @@
1
- # ansi-styles
2
-
3
- > [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
4
-
5
- You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
6
-
7
- ![](screenshot.png)
8
-
9
- ## Install
10
-
11
- ```sh
12
- npm install ansi-styles
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- import styles from 'ansi-styles';
19
-
20
- console.log(`${styles.green.open}Hello world!${styles.green.close}`);
21
-
22
-
23
- // Color conversion between 256/truecolor
24
- // NOTE: When converting from truecolor to 256 colors, the original color
25
- // may be degraded to fit the new color palette. This means terminals
26
- // that do not support 16 million colors will best-match the
27
- // original color.
28
- console.log(`${styles.color.ansi(styles.rgbToAnsi(199, 20, 250))}Hello World${styles.color.close}`)
29
- console.log(`${styles.color.ansi256(styles.rgbToAnsi256(199, 20, 250))}Hello World${styles.color.close}`)
30
- console.log(`${styles.color.ansi16m(...styles.hexToRgb('#abcdef'))}Hello World${styles.color.close}`)
31
- ```
32
-
33
- ## API
34
-
35
- ### `open` and `close`
36
-
37
- Each style has an `open` and `close` property.
38
-
39
- ### `modifierNames`, `foregroundColorNames`, `backgroundColorNames`, and `colorNames`
40
-
41
- All supported style strings are exposed as an array of strings for convenience. `colorNames` is the combination of `foregroundColorNames` and `backgroundColorNames`.
42
-
43
- This can be useful if you need to validate input:
44
-
45
- ```js
46
- import {modifierNames, foregroundColorNames} from 'ansi-styles';
47
-
48
- console.log(modifierNames.includes('bold'));
49
- //=> true
50
-
51
- console.log(foregroundColorNames.includes('pink'));
52
- //=> false
53
- ```
54
-
55
- ## Styles
56
-
57
- ### Modifiers
58
-
59
- - `reset`
60
- - `bold`
61
- - `dim`
62
- - `italic` *(Not widely supported)*
63
- - `underline`
64
- - `overline` *Supported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.*
65
- - `inverse`
66
- - `hidden`
67
- - `strikethrough` *(Not widely supported)*
68
-
69
- ### Colors
70
-
71
- - `black`
72
- - `red`
73
- - `green`
74
- - `yellow`
75
- - `blue`
76
- - `magenta`
77
- - `cyan`
78
- - `white`
79
- - `blackBright` (alias: `gray`, `grey`)
80
- - `redBright`
81
- - `greenBright`
82
- - `yellowBright`
83
- - `blueBright`
84
- - `magentaBright`
85
- - `cyanBright`
86
- - `whiteBright`
87
-
88
- ### Background colors
89
-
90
- - `bgBlack`
91
- - `bgRed`
92
- - `bgGreen`
93
- - `bgYellow`
94
- - `bgBlue`
95
- - `bgMagenta`
96
- - `bgCyan`
97
- - `bgWhite`
98
- - `bgBlackBright` (alias: `bgGray`, `bgGrey`)
99
- - `bgRedBright`
100
- - `bgGreenBright`
101
- - `bgYellowBright`
102
- - `bgBlueBright`
103
- - `bgMagentaBright`
104
- - `bgCyanBright`
105
- - `bgWhiteBright`
106
-
107
- ## Advanced usage
108
-
109
- By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
110
-
111
- - `styles.modifier`
112
- - `styles.color`
113
- - `styles.bgColor`
114
-
115
- ###### Example
116
-
117
- ```js
118
- import styles from 'ansi-styles';
119
-
120
- console.log(styles.color.green.open);
121
- ```
122
-
123
- Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `styles.codes`, which returns a `Map` with the open codes as keys and close codes as values.
124
-
125
- ###### Example
126
-
127
- ```js
128
- import styles from 'ansi-styles';
129
-
130
- console.log(styles.codes.get(36));
131
- //=> 39
132
- ```
133
-
134
- ## 16 / 256 / 16 million (TrueColor) support
135
-
136
- `ansi-styles` allows converting between various color formats and ANSI escapes, with support for 16, 256 and [16 million colors](https://gist.github.com/XVilka/8346728).
137
-
138
- The following color spaces are supported:
139
-
140
- - `rgb`
141
- - `hex`
142
- - `ansi256`
143
- - `ansi`
144
-
145
- To use these, call the associated conversion function with the intended output, for example:
146
-
147
- ```js
148
- import styles from 'ansi-styles';
149
-
150
- styles.color.ansi(styles.rgbToAnsi(100, 200, 15)); // RGB to 16 color ansi foreground code
151
- styles.bgColor.ansi(styles.hexToAnsi('#C0FFEE')); // HEX to 16 color ansi foreground code
152
-
153
- styles.color.ansi256(styles.rgbToAnsi256(100, 200, 15)); // RGB to 256 color ansi foreground code
154
- styles.bgColor.ansi256(styles.hexToAnsi256('#C0FFEE')); // HEX to 256 color ansi foreground code
155
-
156
- styles.color.ansi16m(100, 200, 15); // RGB to 16 million color foreground code
157
- styles.bgColor.ansi16m(...styles.hexToRgb('#C0FFEE')); // Hex (RGB) to 16 million color foreground code
158
- ```
159
-
160
- ## Related
161
-
162
- - [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
163
-
164
- ## Maintainers
165
-
166
- - [Sindre Sorhus](https://github.com/sindresorhus)
167
- - [Josh Junon](https://github.com/qix-)
168
-
169
- ## For enterprise
170
-
171
- Available as part of the Tidelift Subscription.
172
-
173
- The maintainers of `ansi-styles` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-ansi-styles?utm_source=npm-ansi-styles&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
@@ -1,60 +0,0 @@
1
- export type WidthType = 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous';
2
-
3
- export type Options = {
4
- /**
5
- Whether to treat an `'ambiguous'` character as wide.
6
-
7
- @default true
8
-
9
- @example
10
- ```
11
- import {eastAsianWidth} from 'get-east-asian-width';
12
-
13
- const codePoint = '⛣'.codePointAt(0);
14
-
15
- console.log(eastAsianWidth(codePoint));
16
- //=> 1
17
-
18
- console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
19
- //=> 2
20
- ```
21
-
22
- > Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). __If the context cannot be established reliably, they should be treated as narrow characters by default.__
23
- > - http://www.unicode.org/reports/tr11/
24
- */
25
- readonly ambiguousAsWide?: boolean;
26
- };
27
-
28
- /**
29
- Returns the width as a number for the given code point.
30
-
31
- @param codePoint - A Unicode code point.
32
-
33
- @example
34
- ```
35
- import {eastAsianWidth} from 'get-east-asian-width';
36
-
37
- const codePoint = '字'.codePointAt(0);
38
-
39
- console.log(eastAsianWidth(codePoint));
40
- //=> 2
41
- ```
42
- */
43
- export function eastAsianWidth(codePoint: number, options?: Options): 1 | 2;
44
-
45
- /**
46
- Returns the type of “East Asian Width” for the given code point.
47
-
48
- @param codePoint - A Unicode code point.
49
-
50
- @example
51
- ```
52
- import {eastAsianWidthType} from 'get-east-asian-width';
53
-
54
- const codePoint = '字'.codePointAt(0);
55
-
56
- console.log(eastAsianWidthType(codePoint));
57
- //=> 'wide'
58
- ```
59
- */
60
- export function eastAsianWidthType(codePoint: number): WidthType;
@@ -1,30 +0,0 @@
1
- import {getCategory, isAmbiguous, isFullWidth, isWide} from './lookup.js';
2
-
3
- function validate(codePoint) {
4
- if (!Number.isSafeInteger(codePoint)) {
5
- throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
6
- }
7
- }
8
-
9
- export function eastAsianWidthType(codePoint) {
10
- validate(codePoint);
11
-
12
- return getCategory(codePoint);
13
- }
14
-
15
- export function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
16
- validate(codePoint);
17
-
18
- if (
19
- isFullWidth(codePoint)
20
- || isWide(codePoint)
21
- || (ambiguousAsWide && isAmbiguous(codePoint))
22
- ) {
23
- return 2;
24
- }
25
-
26
- return 1;
27
- }
28
-
29
- // Private exports for https://github.com/sindresorhus/is-fullwidth-code-point
30
- export {isFullWidth as _isFullWidth, isWide as _isWide} from './lookup.js';
@@ -1,18 +0,0 @@
1
- // Generated by scripts/build.js
2
-
3
- // prettier-ignore
4
- const ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
5
-
6
- // prettier-ignore
7
- const fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
8
-
9
- // prettier-ignore
10
- const halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
11
-
12
- // prettier-ignore
13
- const narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
14
-
15
- // prettier-ignore
16
- const wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
17
-
18
- export {ambiguousRanges, fullwidthRanges, halfwidthRanges, narrowRanges, wideRanges};
@@ -1,135 +0,0 @@
1
- import {
2
- ambiguousRanges,
3
- fullwidthRanges,
4
- halfwidthRanges,
5
- narrowRanges,
6
- wideRanges,
7
- } from './lookup-data.js';
8
- import {isInRange} from './utilities.js';
9
-
10
- const minimumAmbiguousCodePoint = ambiguousRanges[0];
11
- const maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
12
- const minimumFullWidthCodePoint = fullwidthRanges[0];
13
- const maximumFullWidthCodePoint = fullwidthRanges.at(-1);
14
- const minimumHalfWidthCodePoint = halfwidthRanges[0];
15
- const maximumHalfWidthCodePoint = halfwidthRanges.at(-1);
16
- const minimumNarrowCodePoint = narrowRanges[0];
17
- const maximumNarrowCodePoint = narrowRanges.at(-1);
18
- const minimumWideCodePoint = wideRanges[0];
19
- const maximumWideCodePoint = wideRanges.at(-1);
20
-
21
- const commonCjkCodePoint = 0x4E_00;
22
- const [wideFastPathStart, wideFastPathEnd] = findWideFastPathRange(wideRanges);
23
-
24
- // Use a hot-path range so common `isWide` calls can skip binary search.
25
- // The range containing U+4E00 covers common CJK ideographs;
26
- // fallback to the largest range for resilience to Unicode table changes.
27
- function findWideFastPathRange(ranges) {
28
- let fastPathStart = ranges[0];
29
- let fastPathEnd = ranges[1];
30
-
31
- for (let index = 0; index < ranges.length; index += 2) {
32
- const start = ranges[index];
33
- const end = ranges[index + 1];
34
-
35
- if (
36
- commonCjkCodePoint >= start
37
- && commonCjkCodePoint <= end
38
- ) {
39
- return [start, end];
40
- }
41
-
42
- if ((end - start) > (fastPathEnd - fastPathStart)) {
43
- fastPathStart = start;
44
- fastPathEnd = end;
45
- }
46
- }
47
-
48
- return [fastPathStart, fastPathEnd];
49
- }
50
-
51
- export const isAmbiguous = codePoint => {
52
- if (
53
- codePoint < minimumAmbiguousCodePoint
54
- || codePoint > maximumAmbiguousCodePoint
55
- ) {
56
- return false;
57
- }
58
-
59
- return isInRange(ambiguousRanges, codePoint);
60
- };
61
-
62
- export const isFullWidth = codePoint => {
63
- if (
64
- codePoint < minimumFullWidthCodePoint
65
- || codePoint > maximumFullWidthCodePoint
66
- ) {
67
- return false;
68
- }
69
-
70
- return isInRange(fullwidthRanges, codePoint);
71
- };
72
-
73
- const isHalfWidth = codePoint => {
74
- if (
75
- codePoint < minimumHalfWidthCodePoint
76
- || codePoint > maximumHalfWidthCodePoint
77
- ) {
78
- return false;
79
- }
80
-
81
- return isInRange(halfwidthRanges, codePoint);
82
- };
83
-
84
- const isNarrow = codePoint => {
85
- if (
86
- codePoint < minimumNarrowCodePoint
87
- || codePoint > maximumNarrowCodePoint
88
- ) {
89
- return false;
90
- }
91
-
92
- return isInRange(narrowRanges, codePoint);
93
- };
94
-
95
- export const isWide = codePoint => {
96
- if (
97
- codePoint >= wideFastPathStart
98
- && codePoint <= wideFastPathEnd
99
- ) {
100
- return true;
101
- }
102
-
103
- if (
104
- codePoint < minimumWideCodePoint
105
- || codePoint > maximumWideCodePoint
106
- ) {
107
- return false;
108
- }
109
-
110
- return isInRange(wideRanges, codePoint);
111
- };
112
-
113
- export function getCategory(codePoint) {
114
- if (isAmbiguous(codePoint)) {
115
- return 'ambiguous';
116
- }
117
-
118
- if (isFullWidth(codePoint)) {
119
- return 'fullwidth';
120
- }
121
-
122
- if (isHalfWidth(codePoint)) {
123
- return 'halfwidth';
124
- }
125
-
126
- if (isNarrow(codePoint)) {
127
- return 'narrow';
128
- }
129
-
130
- if (isWide(codePoint)) {
131
- return 'wide';
132
- }
133
-
134
- return 'neutral';
135
- }
@@ -1,71 +0,0 @@
1
- {
2
- "name": "get-east-asian-width",
3
- "version": "1.5.0",
4
- "description": "Determine the East Asian Width of a Unicode character",
5
- "license": "MIT",
6
- "repository": "sindresorhus/get-east-asian-width",
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 && tsc index.d.ts",
24
- "build": "node scripts/build.js",
25
- "prepublish": "npm run build"
26
- },
27
- "files": [
28
- "index.js",
29
- "index.d.ts",
30
- "lookup.js",
31
- "lookup-data.js",
32
- "utilities.js"
33
- ],
34
- "keywords": [
35
- "unicode",
36
- "east-asian-width",
37
- "eastasianwidth",
38
- "character",
39
- "string",
40
- "width",
41
- "text",
42
- "layout",
43
- "alignment",
44
- "fullwidth",
45
- "halfwidth",
46
- "ambiguous",
47
- "narrow",
48
- "wide",
49
- "neutral",
50
- "typography",
51
- "japanese",
52
- "chinese",
53
- "korean",
54
- "codepoint",
55
- "text-processing",
56
- "i18n",
57
- "l10n"
58
- ],
59
- "devDependencies": {
60
- "ava": "^5.3.1",
61
- "outdent": "^0.8.0",
62
- "simplify-ranges": "^0.1.0",
63
- "typescript": "^5.2.2",
64
- "xo": "^0.56.0"
65
- },
66
- "xo": {
67
- "ignores": [
68
- "lookup-data.js"
69
- ]
70
- }
71
- }
@@ -1,65 +0,0 @@
1
- # get-east-asian-width
2
-
3
- > Determine the [East Asian Width](https://unicode.org/reports/tr11/) of a Unicode character
4
-
5
- > East Asian Width categorizes Unicode characters based on their occupied space in East Asian typography, which helps in text layout and alignment, particularly in languages like Japanese, Chinese, and Korean.
6
-
7
- Unlike other similar packages, this package uses the latest Unicode data (which changes each year).
8
-
9
- ## Install
10
-
11
- ```sh
12
- npm install get-east-asian-width
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
19
-
20
- const codePoint = '字'.codePointAt(0);
21
-
22
- console.log(eastAsianWidth(codePoint));
23
- //=> 2
24
-
25
- console.log(eastAsianWidthType(codePoint));
26
- //=> 'wide'
27
- ```
28
-
29
- ## `eastAsianWidth(codePoint: number, options?: object): 1 | 2`
30
-
31
- Returns the width as a number for the given code point.
32
-
33
- ### options
34
-
35
- Type: `object`
36
-
37
- #### ambiguousAsWide
38
-
39
- Type: `boolean`\
40
- Default: `false`
41
-
42
- Whether to treat an `'ambiguous'` character as wide.
43
-
44
- ```js
45
- import {eastAsianWidth} from 'get-east-asian-width';
46
-
47
- const codePoint = '⛣'.codePointAt(0);
48
-
49
- console.log(eastAsianWidth(codePoint));
50
- //=> 1
51
-
52
- console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
53
- //=> 2
54
- ```
55
-
56
- > Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). **If the context cannot be established reliably, they should be treated as narrow characters by default.**
57
- > - http://www.unicode.org/reports/tr11/
58
-
59
- ## `eastAsianWidthType(codePoint: number): 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous'`
60
-
61
- Returns the type of “East Asian Width” for the given code point.
62
-
63
- ## Related
64
-
65
- - [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
@@ -1,24 +0,0 @@
1
- /**
2
- Binary search on a sorted flat array of [start, end] pairs.
3
-
4
- @param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
5
- @param {number} codePoint - The value to search for.
6
- @returns {boolean} Whether the value falls within any of the ranges.
7
- */
8
- export const isInRange = (ranges, codePoint) => {
9
- let low = 0;
10
- let high = Math.floor(ranges.length / 2) - 1;
11
- while (low <= high) {
12
- const mid = Math.floor((low + high) / 2);
13
- const i = mid * 2;
14
- if (codePoint < ranges[i]) {
15
- high = mid - 1;
16
- } else if (codePoint > ranges[i + 1]) {
17
- low = mid + 1;
18
- } else {
19
- return true;
20
- }
21
- }
22
-
23
- return false;
24
- };
@@ -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;