decocms 2.306.12 → 2.306.13

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 (214) hide show
  1. package/dist/client/assets/{AlertCircle-Ot2CLMxw.js → AlertCircle-UghQPlAa.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-CA2U4-LB.js → ArrowNarrowLeft-1BfkUm85.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-D_v7OVFz.js → ArrowUpRight-1rqShrTM.js} +1 -1
  4. package/dist/client/assets/{Check-B7lQX-U6.js → Check-DBWnyOFJ.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-DQVTFDuD.js → CheckCircle-CBMgXE-F.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-BHHmj_90.js → ChevronDown-D452dgSU.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-CMwA4MWg.js → ChevronRight-DoY3rcf9.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-DZMg9j3Z.js → ChevronUp-BlZFoG59.js} +1 -1
  9. package/dist/client/assets/{Container-BPn2KqkB.js → Container-BQVUd9tN.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-C0-av-w_.js → DotsVertical-CAgAGLKz.js} +1 -1
  11. package/dist/client/assets/{LinkExternal01-Cr974KZi.js → LinkExternal01-CGcDVdEi.js} +1 -1
  12. package/dist/client/assets/{Lock01-chX0YN7M.js → Lock01-FiMk9Cv6.js} +1 -1
  13. package/dist/client/assets/{Palette-Cmsuc3m0.js → Palette-DXyBGBQu.js} +1 -1
  14. package/dist/client/assets/{Play-C_yrNjMw.js → Play-CDjH79to.js} +1 -1
  15. package/dist/client/assets/{Plus-BHVhclrE.js → Plus-FC_C8qkl.js} +1 -1
  16. package/dist/client/assets/{RefreshCcw01-Yl__XBgH.js → RefreshCcw01-Cd8Km121.js} +1 -1
  17. package/dist/client/assets/{SearchMd-BJVwn_ke.js → SearchMd-B780aQOS.js} +1 -1
  18. package/dist/client/assets/{Settings02-BCqAnzCC.js → Settings02--XuHa5eI.js} +1 -1
  19. package/dist/client/assets/{Shield01-BzDWvNLz.js → Shield01-Bg1T1EGa.js} +1 -1
  20. package/dist/client/assets/{Star01-t5c8OzJ1.js → Star01-DRidtrYn.js} +1 -1
  21. package/dist/client/assets/{Sun-fUlV2CSc.js → Sun-Bpli4t2N.js} +1 -1
  22. package/dist/client/assets/{Tool01-DHF_L3KH.js → Tool01-NWIcFn9q.js} +1 -1
  23. package/dist/client/assets/{Trash01-12UJulVC.js → Trash01-4w6_aW9X.js} +1 -1
  24. package/dist/client/assets/{User01-BjX-G1vE.js → User01-CxpWRrdM.js} +1 -1
  25. package/dist/client/assets/{Users03-CZn6wNJ2.js → Users03-CK1Aa1HI.js} +1 -1
  26. package/dist/client/assets/{X-DRGbU-sk.js → X-BGh8G2l7.js} +1 -1
  27. package/dist/client/assets/{XCircle-DH7bOaGY.js → XCircle-CYGTZyzW.js} +1 -1
  28. package/dist/client/assets/{XClose-CdyVyCLn.js → XClose-Dz5yGfpm.js} +1 -1
  29. package/dist/client/assets/{Zap-DVRtpQ6o.js → Zap-Druw6RpX.js} +1 -1
  30. package/dist/client/assets/{ZapSquare-CU44MpAH.js → ZapSquare-BLhBRchY.js} +1 -1
  31. package/dist/client/assets/{accordion-o4uEL-I1.js → accordion-DdQd4o33.js} +1 -1
  32. package/dist/client/assets/{agent-icon-C1jmOFVg.js → agent-icon-CznXZlOI.js} +1 -1
  33. package/dist/client/assets/{agents-list-ksM75Z6l.js → agents-list-CaQhK_9Q.js} +1 -1
  34. package/dist/client/assets/ai-providers-C_QaV2LV.js +1 -0
  35. package/dist/client/assets/{alert-dialog-DKLXK-1u.js → alert-dialog-BiN56dOX.js} +1 -1
  36. package/dist/client/assets/{auth-catchall-GUJWINn8.js → auth-catchall-6Av77aQi.js} +1 -1
  37. package/dist/client/assets/{automation-list-row-CKsxLzIm.js → automation-list-row-DdlSuO-v.js} +1 -1
  38. package/dist/client/assets/{automations-CMxgpl5P.js → automations-BMuo3AXx.js} +1 -1
  39. package/dist/client/assets/{avatar-BHCqEDVT.js → avatar-Z1wN1pq-.js} +1 -1
  40. package/dist/client/assets/{badge-CkKVCYBi.js → badge-CTmf2TW8.js} +1 -1
  41. package/dist/client/assets/{brand-context-BlmY1E4z.js → brand-context-CUDRGuTh.js} +1 -1
  42. package/dist/client/assets/{card-BPF7ycIj.js → card-Bd8klEwI.js} +1 -1
  43. package/dist/client/assets/{chat-context-cuD-y97U.js → chat-context-DGU47jw7.js} +1 -1
  44. package/dist/client/assets/{checkbox-nNLHENdc.js → checkbox-B3EwrxkO.js} +1 -1
  45. package/dist/client/assets/{collection-detail-RicC_Sa1.js → collection-detail-Cgmw3RVY.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-DluRs55o.js → collection-display-button-DMmbKfya.js} +1 -1
  47. package/dist/client/assets/{collection-search-c41oWBJf.js → collection-search-D-x3SJ1z.js} +1 -1
  48. package/dist/client/assets/{collection-search-fbQaa98h.js → collection-search-Do2r8Bif.js} +1 -1
  49. package/dist/client/assets/{collection-table-wrapper-D5c_AqvG.js → collection-table-wrapper-CtvRahI-.js} +1 -1
  50. package/dist/client/assets/{collection-tabs-DqCBG7jb.js → collection-tabs-BKqleLTU.js} +1 -1
  51. package/dist/client/assets/{collections-DdU4I50l.js → collections-67ZnQ_LS.js} +1 -1
  52. package/dist/client/assets/{command-DbmRiBqo.js → command-BAMG06m5.js} +1 -1
  53. package/dist/client/assets/{connection-card-QcsFV35H.js → connection-card-DQm8aezN.js} +1 -1
  54. package/dist/client/assets/{connection-detail-CU37TDrz.js → connection-detail-BhxCMY6j.js} +1 -1
  55. package/dist/client/assets/{connection-form-helpers-Ub-yYKls.js → connection-form-helpers--6zqXj9i.js} +1 -1
  56. package/dist/client/assets/{connections-Cx1j-a9X.js → connections-C0gQbHBs.js} +1 -1
  57. package/dist/client/assets/{constants-xZGcpYKv.js → constants-BDk5hb7z.js} +1 -1
  58. package/dist/client/assets/{constants-ggwtj_b2.js → constants-DXQgV2hu.js} +1 -1
  59. package/dist/client/assets/{dialog-CNOF2ZMK.js → dialog-DUgfuVrb.js} +1 -1
  60. package/dist/client/assets/{domain-settings-sx9KWI1e.js → domain-settings-DpONcUPd.js} +1 -1
  61. package/dist/client/assets/{drawer-Df34zS04.js → drawer-DeyjQQc7.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-C3kAm_Er.js → dropdown-menu-Cbx_bdO_.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-C8WyvfVv.js → dynamic-plugin-layout-D7HG8B_t.js} +1 -1
  64. package/dist/client/assets/{empty-state-DyTFpS0l.js → empty-state-BIAZXmQO.js} +1 -1
  65. package/dist/client/assets/{empty-state-Dw_gVxIS.js → empty-state-BnjbbhBR.js} +1 -1
  66. package/dist/client/assets/{extract-connection-data-C7nRmph4.js → extract-connection-data-Dgw7Sgd3.js} +1 -1
  67. package/dist/client/assets/{features-CbtmnrZ6.js → features-De6GvAAs.js} +1 -1
  68. package/dist/client/assets/{form-B11RrkrM.js → form-O0xus6j8.js} +1 -1
  69. package/dist/client/assets/{general-DSgFWSrp.js → general-tEcdYerZ.js} +1 -1
  70. package/dist/client/assets/index-BZ6nkz4a.js +1 -0
  71. package/dist/client/assets/{index-BB5P8isj.js → index-CG3ceZHc.js} +1 -1
  72. package/dist/client/assets/{index-CDVvjofj.js → index-CZLTTN-z.js} +1 -1
  73. package/dist/client/assets/{index-BsrxFreR.js → index-CdFJkiAN.js} +1 -1
  74. package/dist/client/assets/{index-3PRXeBfP.js → index-CqFBXkjQ.js} +1 -1
  75. package/dist/client/assets/{index-BM8jECEp.js → index-CuVn0uMY.js} +1 -1
  76. package/dist/client/assets/{index-Cy0GY2u3.js → index-DJiWK6lj.js} +1 -1
  77. package/dist/client/assets/{index-CnlV8NnU.js → index-DPM8__xA.js} +1 -1
  78. package/dist/client/assets/{index-C3ldIVUr.js → index-DV-VioVg.js} +1 -1
  79. package/dist/client/assets/{index-DANPLo87.js → index-DZjKh5eS.js} +3 -3
  80. package/dist/client/assets/{index-BkiajC9R.js → index-Dcg8Qevd.js} +2 -2
  81. package/dist/client/assets/{index-BJIwjxxl.js → index-DdsW868M.js} +1 -1
  82. package/dist/client/assets/{index-Bq9Gbm0H.js → index-DtUGvIts.js} +1 -1
  83. package/dist/client/assets/{index-DFlPdciX.js → index-EV8zcDnc.js} +1 -1
  84. package/dist/client/assets/{index-SKWAKGeB.js → index-XGdWuQyL.js} +1 -1
  85. package/dist/client/assets/{index-BFicVTdP.js → index-i68m5nvc.js} +1 -1
  86. package/dist/client/assets/{infiniteQueryObserver-DapJgjCy.js → infiniteQueryObserver-D9yYekai.js} +1 -1
  87. package/dist/client/assets/{input-jGTjkEgf.js → input-Cvo2jJQf.js} +1 -1
  88. package/dist/client/assets/{integration-icon-BvsSfF2G.js → integration-icon-DTJ2wb4X.js} +1 -1
  89. package/dist/client/assets/{label-BwHLLLjG.js → label-_jNQo8Ll.js} +1 -1
  90. package/dist/client/assets/{layout-yZTsEXBs.js → layout-DbwGS2qx.js} +1 -1
  91. package/dist/client/assets/{lean-canvas-recruit-modal-cCvcDvSF.js → lean-canvas-recruit-modal-tP8fRQib.js} +1 -1
  92. package/dist/client/assets/{login-46RSYdDj.js → login-DehPjhCM.js} +1 -1
  93. package/dist/client/assets/{members-D4Mf2IQe.js → members-BMPf1BpS.js} +1 -1
  94. package/dist/client/assets/{monaco-editor-ymd_jUTr.js → monaco-editor-BVARKKWN.js} +1 -1
  95. package/dist/client/assets/{monitoring-stats-row-D9yNQE2b.js → monitoring-stats-row-D7tWgW-Q.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-ai-provider-DZRkgpAw.js → oauth-callback-ai-provider-DC-UED8v.js} +1 -1
  97. package/dist/client/assets/{oauth-callback-Dd82POES.js → oauth-callback-l4PY6t1A.js} +1 -1
  98. package/dist/client/assets/{onboarding-BIO4cqmI.js → onboarding-Bd6pQbk3.js} +1 -1
  99. package/dist/client/assets/{org-layout-CN2fB-vu.js → org-layout-COoj2PVG.js} +1 -1
  100. package/dist/client/assets/{org-plugin-layout-CKCTv0lC.js → org-plugin-layout-DGnpwRtk.js} +1 -1
  101. package/dist/client/assets/{pair-CkdIVJLN.js → pair-_253DGSq.js} +1 -1
  102. package/dist/client/assets/{plugin-empty-state-C2sVpvFW.js → plugin-empty-state-CakFVZ2i.js} +1 -1
  103. package/dist/client/assets/{plugin-header-DqxMpFAT.js → plugin-header-6TMFE3Ls.js} +1 -1
  104. package/dist/client/assets/{plugin-layout-sfjMan0F.js → plugin-layout-3m9okTPI.js} +1 -1
  105. package/dist/client/assets/{popover-Qhd5GKAf.js → popover-DNu8C4Ll.js} +1 -1
  106. package/dist/client/assets/{profile-CVXH0cog.js → profile-CLBWN3L8.js} +1 -1
  107. package/dist/client/assets/{project-app-view-Dr4s0FIv.js → project-app-view-5ZnU4fo7.js} +1 -1
  108. package/dist/client/assets/registry-D_jmaKr2.js +2 -0
  109. package/dist/client/assets/{registry-layout-xR6rLrDK.js → registry-layout-Hazgpecz.js} +1 -1
  110. package/dist/client/assets/{required-auth-layout-CwLXPn7_.js → required-auth-layout-Cg8CZTlk.js} +1 -1
  111. package/dist/client/assets/{reset-password-Mf0kA3DN.js → reset-password-CzwUFBho.js} +1 -1
  112. package/dist/client/assets/{roles-CHPJSwkL.js → roles-DUtgWupV.js} +1 -1
  113. package/dist/client/assets/{scroll-area-BEarfPUC.js → scroll-area-DGEAK3pH.js} +1 -1
  114. package/dist/client/assets/{search-input-BNv3WxnU.js → search-input-C50ImRzg.js} +1 -1
  115. package/dist/client/assets/{select-1F7nfWqc.js → select-DkBE5ypj.js} +1 -1
  116. package/dist/client/assets/{select-model-CG5HxXo0.js → select-model-B9xghDV8.js} +1 -1
  117. package/dist/client/assets/{settings-layout-DxEs_4Uz.js → settings-layout-u6gOtHmU.js} +1 -1
  118. package/dist/client/assets/{settings-section-DV5Tzhsa.js → settings-section-DeAx6MsQ.js} +1 -1
  119. package/dist/client/assets/{shell-layout-Bvmr4Ir9.js → shell-layout-xLg1cKrj.js} +1 -1
  120. package/dist/client/assets/{skeleton-Bx5y3Xmp.js → skeleton-BL7idETO.js} +1 -1
  121. package/dist/client/assets/{sso-2Feex-XD.js → sso-UHrPOY4-.js} +1 -1
  122. package/dist/client/assets/{store-Cipg9Lj9.js → store-CCrp-zDu.js} +1 -1
  123. package/dist/client/assets/store-registry-dlSCWL84.js +2 -0
  124. package/dist/client/assets/{switch-BMcphIES.js → switch-Ba2DX0J8.js} +1 -1
  125. package/dist/client/assets/{table-BpJjOmgy.js → table-Dpjp6sno.js} +1 -1
  126. package/dist/client/assets/{tabs-BlzUVMC9.js → tabs-CUXWIghp.js} +1 -1
  127. package/dist/client/assets/{task-status-BLDsdEd0.js → task-status-D6HaLDfU.js} +1 -1
  128. package/dist/client/assets/{textarea-s7PVXilr.js → textarea-e7WVG0Uq.js} +1 -1
  129. package/dist/client/assets/{toggle-group-Dj05trYJ.js → toggle-group-Bzjy8IQq.js} +1 -1
  130. package/dist/client/assets/{tools-list-CR_2tWrg.js → tools-list-ddVo-6Vs.js} +1 -1
  131. package/dist/client/assets/{tooltip-CZbLg-Hf.js → tooltip-sn7TXXXA.js} +1 -1
  132. package/dist/client/assets/{types-wbD5gTmt.js → types-ClFDwb3j.js} +1 -1
  133. package/dist/client/assets/{use-ai-providers-by3zafwF.js → use-ai-providers-D1ZzNZfi.js} +1 -1
  134. package/dist/client/assets/{use-collections-BIsV5dcA.js → use-collections-DDocavcC.js} +1 -1
  135. package/dist/client/assets/{use-connection-BLJ6BaWy.js → use-connection-wzOJDB7e.js} +1 -1
  136. package/dist/client/assets/{use-copy-ORR4yHnB.js → use-copy-D0VCYdzD.js} +1 -1
  137. package/dist/client/assets/{use-create-virtual-mcp-BjiLekp8.js → use-create-virtual-mcp-BQ9UAVGc.js} +1 -1
  138. package/dist/client/assets/{use-debounced-autosave-DmAET555.js → use-debounced-autosave-vxXjJ2-V.js} +1 -1
  139. package/dist/client/assets/{use-decopilot-events-D1WuhDgD.js → use-decopilot-events-CQn9-0iO.js} +1 -1
  140. package/dist/client/assets/{use-delete-connection-DaROE5av.js → use-delete-connection-C1mV-M2x.js} +1 -1
  141. package/dist/client/assets/{use-infinite-scroll-jzFqUD4-.js → use-infinite-scroll-CyUixfAd.js} +1 -1
  142. package/dist/client/assets/{use-list-state-DhHkWiyj.js → use-list-state-BkqBgDIi.js} +1 -1
  143. package/dist/client/assets/{use-mcp-tools-henGoqsi.js → use-mcp-tools-Cu2GPPjO.js} +1 -1
  144. package/dist/client/assets/{use-members-DBih95tA.js → use-members-Bw_9meIY.js} +1 -1
  145. package/dist/client/assets/{use-navigate-to-agent-CucJsCgb.js → use-navigate-to-agent-BvnJAyr6.js} +1 -1
  146. package/dist/client/assets/{use-org-auth-client-B3WZtWV1.js → use-org-auth-client-uXh4lV5h.js} +1 -1
  147. package/dist/client/assets/{use-org-sso-guN7zSCH.js → use-org-sso-Co0XjU-j.js} +1 -1
  148. package/dist/client/assets/{use-organization-roles-BE030zs4.js → use-organization-roles-CXi0dKrO.js} +1 -1
  149. package/dist/client/assets/{use-organization-settings-ro4iJPpY.js → use-organization-settings-OER3kM7D.js} +1 -1
  150. package/dist/client/assets/{use-registry-connections-B-EpYSQR.js → use-registry-connections-LYUFCGgQ.js} +1 -1
  151. package/dist/client/assets/{use-status-sounds-0D0UbNhQ.js → use-status-sounds-CQVr-jwf.js} +1 -1
  152. package/dist/client/assets/{use-tasks-CCgL71pE.js → use-tasks-B8ZzLgVK.js} +1 -1
  153. package/dist/client/assets/{use-view-mode-Dq8SK5jL.js → use-view-mode-ti5AMLDX.js} +1 -1
  154. package/dist/client/assets/{use-virtual-mcp-DnJsvDcW.js → use-virtual-mcp-Cvy2Xx_N.js} +1 -1
  155. package/dist/client/assets/useInfiniteQuery-eCacXMD5.js +1 -0
  156. package/dist/client/assets/useSuspenseInfiniteQuery-Ck-t1SMi.js +1 -0
  157. package/dist/client/assets/{user-Cifqeo4n.js → user-Dst4Prvf.js} +1 -1
  158. package/dist/client/assets/{view-mode-toggle-DgvGEUt1.js → view-mode-toggle-Ca3EQ8LL.js} +1 -1
  159. package/dist/client/assets/{workflow-oA9SWgD2.js → workflow-BUQXpyzH.js} +1 -1
  160. package/dist/client/assets/workflow-detail-DLo-hD09.js +1 -0
  161. package/dist/client/index.html +1 -1
  162. package/dist/server/cli.js +7 -1
  163. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  164. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  165. package/dist/server/node_modules/ansi-styles/license +9 -0
  166. package/dist/server/node_modules/ansi-styles/package.json +54 -0
  167. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  168. package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
  169. package/dist/server/node_modules/mimic-fn/index.js +13 -0
  170. package/dist/server/node_modules/mimic-fn/license +9 -0
  171. package/dist/server/node_modules/mimic-fn/package.json +42 -0
  172. package/dist/server/node_modules/mimic-fn/readme.md +69 -0
  173. package/dist/server/node_modules/onetime/index.d.ts +64 -0
  174. package/dist/server/node_modules/onetime/index.js +44 -0
  175. package/dist/server/node_modules/onetime/license +9 -0
  176. package/dist/server/node_modules/onetime/package.json +43 -0
  177. package/dist/server/node_modules/onetime/readme.md +94 -0
  178. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  179. package/dist/server/node_modules/pg-int8/README.md +16 -0
  180. package/dist/server/node_modules/pg-int8/index.js +100 -0
  181. package/dist/server/node_modules/pg-int8/package.json +24 -0
  182. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  183. package/dist/server/node_modules/postgres-array/index.js +97 -0
  184. package/dist/server/node_modules/postgres-array/license +21 -0
  185. package/dist/server/node_modules/postgres-array/package.json +35 -0
  186. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  187. package/dist/server/node_modules/postgres-bytea/index.js +33 -0
  188. package/dist/server/node_modules/postgres-bytea/license +21 -0
  189. package/dist/server/node_modules/postgres-bytea/package.json +34 -0
  190. package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
  191. package/dist/server/node_modules/postgres-date/index.js +116 -0
  192. package/dist/server/node_modules/postgres-date/license +21 -0
  193. package/dist/server/node_modules/postgres-date/package.json +33 -0
  194. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  195. package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
  196. package/dist/server/node_modules/postgres-interval/index.js +125 -0
  197. package/dist/server/node_modules/postgres-interval/license +21 -0
  198. package/dist/server/node_modules/postgres-interval/package.json +36 -0
  199. package/dist/server/node_modules/postgres-interval/readme.md +48 -0
  200. package/dist/server/node_modules/split2/LICENSE +13 -0
  201. package/dist/server/node_modules/split2/README.md +85 -0
  202. package/dist/server/node_modules/split2/bench.js +27 -0
  203. package/dist/server/node_modules/split2/index.js +141 -0
  204. package/dist/server/node_modules/split2/package.json +39 -0
  205. package/dist/server/node_modules/split2/test.js +409 -0
  206. package/dist/server/server.js +6 -0
  207. package/package.json +1 -1
  208. package/dist/client/assets/ai-providers-Crvwlm_n.js +0 -1
  209. package/dist/client/assets/index-CXY3EUsW.js +0 -1
  210. package/dist/client/assets/registry-C6e5KXgL.js +0 -2
  211. package/dist/client/assets/store-registry-aUgT6Hv2.js +0 -2
  212. package/dist/client/assets/useInfiniteQuery-BJJhbE0g.js +0 -1
  213. package/dist/client/assets/useSuspenseInfiniteQuery-Bjt0Pxxe.js +0 -1
  214. package/dist/client/assets/workflow-detail-DTRwxa9v.js +0 -1
@@ -0,0 +1,64 @@
1
+ declare namespace onetime {
2
+ interface Options {
3
+ /**
4
+ Throw an error when called more than once.
5
+
6
+ @default false
7
+ */
8
+ throw?: boolean;
9
+ }
10
+ }
11
+
12
+ declare const onetime: {
13
+ /**
14
+ Ensure a function is only called once. When called multiple times it will return the return value from the first call.
15
+
16
+ @param fn - Function that should only be called once.
17
+ @returns A function that only calls `fn` once.
18
+
19
+ @example
20
+ ```
21
+ import onetime = require('onetime');
22
+
23
+ let i = 0;
24
+
25
+ const foo = onetime(() => ++i);
26
+
27
+ foo(); //=> 1
28
+ foo(); //=> 1
29
+ foo(); //=> 1
30
+
31
+ onetime.callCount(foo); //=> 3
32
+ ```
33
+ */
34
+ <ArgumentsType extends unknown[], ReturnType>(
35
+ fn: (...arguments: ArgumentsType) => ReturnType,
36
+ options?: onetime.Options
37
+ ): (...arguments: ArgumentsType) => ReturnType;
38
+
39
+ /**
40
+ Get the number of times `fn` has been called.
41
+
42
+ @param fn - Function to get call count from.
43
+ @returns A number representing how many times `fn` has been called.
44
+
45
+ @example
46
+ ```
47
+ import onetime = require('onetime');
48
+
49
+ const foo = onetime(() => {});
50
+ foo();
51
+ foo();
52
+ foo();
53
+
54
+ console.log(onetime.callCount(foo));
55
+ //=> 3
56
+ ```
57
+ */
58
+ callCount(fn: (...arguments: any[]) => unknown): number;
59
+
60
+ // TODO: Remove this for the next major release
61
+ default: typeof onetime;
62
+ };
63
+
64
+ export = onetime;
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+ const mimicFn = require('mimic-fn');
3
+
4
+ const calledFunctions = new WeakMap();
5
+
6
+ const onetime = (function_, options = {}) => {
7
+ if (typeof function_ !== 'function') {
8
+ throw new TypeError('Expected a function');
9
+ }
10
+
11
+ let returnValue;
12
+ let callCount = 0;
13
+ const functionName = function_.displayName || function_.name || '<anonymous>';
14
+
15
+ const onetime = function (...arguments_) {
16
+ calledFunctions.set(onetime, ++callCount);
17
+
18
+ if (callCount === 1) {
19
+ returnValue = function_.apply(this, arguments_);
20
+ function_ = null;
21
+ } else if (options.throw === true) {
22
+ throw new Error(`Function \`${functionName}\` can only be called once`);
23
+ }
24
+
25
+ return returnValue;
26
+ };
27
+
28
+ mimicFn(onetime, function_);
29
+ calledFunctions.set(onetime, callCount);
30
+
31
+ return onetime;
32
+ };
33
+
34
+ module.exports = onetime;
35
+ // TODO: Remove this for the next major release
36
+ module.exports.default = onetime;
37
+
38
+ module.exports.callCount = function_ => {
39
+ if (!calledFunctions.has(function_)) {
40
+ throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
41
+ }
42
+
43
+ return calledFunctions.get(function_);
44
+ };
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "onetime",
3
+ "version": "5.1.2",
4
+ "description": "Ensure a function is only called once",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/onetime",
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
+ "engines": {
14
+ "node": ">=6"
15
+ },
16
+ "scripts": {
17
+ "test": "xo && ava && tsd"
18
+ },
19
+ "files": [
20
+ "index.js",
21
+ "index.d.ts"
22
+ ],
23
+ "keywords": [
24
+ "once",
25
+ "function",
26
+ "one",
27
+ "onetime",
28
+ "func",
29
+ "fn",
30
+ "single",
31
+ "call",
32
+ "called",
33
+ "prevent"
34
+ ],
35
+ "dependencies": {
36
+ "mimic-fn": "^2.1.0"
37
+ },
38
+ "devDependencies": {
39
+ "ava": "^1.4.1",
40
+ "tsd": "^0.7.1",
41
+ "xo": "^0.24.0"
42
+ }
43
+ }
@@ -0,0 +1,94 @@
1
+ # onetime [![Build Status](https://travis-ci.com/sindresorhus/onetime.svg?branch=master)](https://travis-ci.com/github/sindresorhus/onetime)
2
+
3
+ > Ensure a function is only called once
4
+
5
+ When called multiple times it will return the return value from the first call.
6
+
7
+ *Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
8
+
9
+ ## Install
10
+
11
+ ```
12
+ $ npm install onetime
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ const onetime = require('onetime');
19
+
20
+ let i = 0;
21
+
22
+ const foo = onetime(() => ++i);
23
+
24
+ foo(); //=> 1
25
+ foo(); //=> 1
26
+ foo(); //=> 1
27
+
28
+ onetime.callCount(foo); //=> 3
29
+ ```
30
+
31
+ ```js
32
+ const onetime = require('onetime');
33
+
34
+ const foo = onetime(() => {}, {throw: true});
35
+
36
+ foo();
37
+
38
+ foo();
39
+ //=> Error: Function `foo` can only be called once
40
+ ```
41
+
42
+ ## API
43
+
44
+ ### onetime(fn, options?)
45
+
46
+ Returns a function that only calls `fn` once.
47
+
48
+ #### fn
49
+
50
+ Type: `Function`
51
+
52
+ Function that should only be called once.
53
+
54
+ #### options
55
+
56
+ Type: `object`
57
+
58
+ ##### throw
59
+
60
+ Type: `boolean`\
61
+ Default: `false`
62
+
63
+ Throw an error when called more than once.
64
+
65
+ ### onetime.callCount(fn)
66
+
67
+ Returns a number representing how many times `fn` has been called.
68
+
69
+ Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
70
+
71
+ ```js
72
+ const onetime = require('onetime');
73
+
74
+ const foo = onetime(() => {});
75
+
76
+ foo();
77
+ foo();
78
+ foo();
79
+
80
+ console.log(onetime.callCount(foo));
81
+ //=> 3
82
+ ```
83
+
84
+ #### fn
85
+
86
+ Type: `Function`
87
+
88
+ Function to get call count from.
89
+
90
+ ## onetime for enterprise
91
+
92
+ Available as part of the Tidelift Subscription.
93
+
94
+ The maintainers of onetime 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-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
@@ -0,0 +1,13 @@
1
+ Copyright © 2017, Charmander <~@charmander.me>
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 WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
9
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,16 @@
1
+ [![Build status][ci image]][ci]
2
+
3
+ 64-bit big-endian signed integer-to-string conversion designed for [pg][].
4
+
5
+ ```js
6
+ const readInt8 = require('pg-int8');
7
+
8
+ readInt8(Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]))
9
+ // '283686952306183'
10
+ ```
11
+
12
+
13
+ [pg]: https://github.com/brianc/node-postgres
14
+
15
+ [ci]: https://travis-ci.org/charmander/pg-int8
16
+ [ci image]: https://api.travis-ci.org/charmander/pg-int8.svg
@@ -0,0 +1,100 @@
1
+ 'use strict';
2
+
3
+ // selected so (BASE - 1) * 0x100000000 + 0xffffffff is a safe integer
4
+ var BASE = 1000000;
5
+
6
+ function readInt8(buffer) {
7
+ var high = buffer.readInt32BE(0);
8
+ var low = buffer.readUInt32BE(4);
9
+ var sign = '';
10
+
11
+ if (high < 0) {
12
+ high = ~high + (low === 0);
13
+ low = (~low + 1) >>> 0;
14
+ sign = '-';
15
+ }
16
+
17
+ var result = '';
18
+ var carry;
19
+ var t;
20
+ var digits;
21
+ var pad;
22
+ var l;
23
+ var i;
24
+
25
+ {
26
+ carry = high % BASE;
27
+ high = high / BASE >>> 0;
28
+
29
+ t = 0x100000000 * carry + low;
30
+ low = t / BASE >>> 0;
31
+ digits = '' + (t - BASE * low);
32
+
33
+ if (low === 0 && high === 0) {
34
+ return sign + digits + result;
35
+ }
36
+
37
+ pad = '';
38
+ l = 6 - digits.length;
39
+
40
+ for (i = 0; i < l; i++) {
41
+ pad += '0';
42
+ }
43
+
44
+ result = pad + digits + result;
45
+ }
46
+
47
+ {
48
+ carry = high % BASE;
49
+ high = high / BASE >>> 0;
50
+
51
+ t = 0x100000000 * carry + low;
52
+ low = t / BASE >>> 0;
53
+ digits = '' + (t - BASE * low);
54
+
55
+ if (low === 0 && high === 0) {
56
+ return sign + digits + result;
57
+ }
58
+
59
+ pad = '';
60
+ l = 6 - digits.length;
61
+
62
+ for (i = 0; i < l; i++) {
63
+ pad += '0';
64
+ }
65
+
66
+ result = pad + digits + result;
67
+ }
68
+
69
+ {
70
+ carry = high % BASE;
71
+ high = high / BASE >>> 0;
72
+
73
+ t = 0x100000000 * carry + low;
74
+ low = t / BASE >>> 0;
75
+ digits = '' + (t - BASE * low);
76
+
77
+ if (low === 0 && high === 0) {
78
+ return sign + digits + result;
79
+ }
80
+
81
+ pad = '';
82
+ l = 6 - digits.length;
83
+
84
+ for (i = 0; i < l; i++) {
85
+ pad += '0';
86
+ }
87
+
88
+ result = pad + digits + result;
89
+ }
90
+
91
+ {
92
+ carry = high % BASE;
93
+ t = 0x100000000 * carry + low;
94
+ digits = '' + t % BASE;
95
+
96
+ return sign + digits + result;
97
+ }
98
+ }
99
+
100
+ module.exports = readInt8;
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "pg-int8",
3
+ "version": "1.0.1",
4
+ "description": "64-bit big-endian signed integer-to-string conversion",
5
+ "bugs": "https://github.com/charmander/pg-int8/issues",
6
+ "license": "ISC",
7
+ "files": [
8
+ "index.js"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/charmander/pg-int8"
13
+ },
14
+ "scripts": {
15
+ "test": "tap test"
16
+ },
17
+ "devDependencies": {
18
+ "@charmander/eslint-config-base": "1.0.2",
19
+ "tap": "10.7.3"
20
+ },
21
+ "engines": {
22
+ "node": ">=4.0.0"
23
+ }
24
+ }
@@ -0,0 +1,4 @@
1
+
2
+ export function parse(source: string): string[];
3
+ export function parse<T>(source: string, transform: (value: string) => T): T[];
4
+
@@ -0,0 +1,97 @@
1
+ 'use strict'
2
+
3
+ exports.parse = function (source, transform) {
4
+ return new ArrayParser(source, transform).parse()
5
+ }
6
+
7
+ class ArrayParser {
8
+ constructor (source, transform) {
9
+ this.source = source
10
+ this.transform = transform || identity
11
+ this.position = 0
12
+ this.entries = []
13
+ this.recorded = []
14
+ this.dimension = 0
15
+ }
16
+
17
+ isEof () {
18
+ return this.position >= this.source.length
19
+ }
20
+
21
+ nextCharacter () {
22
+ var character = this.source[this.position++]
23
+ if (character === '\\') {
24
+ return {
25
+ value: this.source[this.position++],
26
+ escaped: true
27
+ }
28
+ }
29
+ return {
30
+ value: character,
31
+ escaped: false
32
+ }
33
+ }
34
+
35
+ record (character) {
36
+ this.recorded.push(character)
37
+ }
38
+
39
+ newEntry (includeEmpty) {
40
+ var entry
41
+ if (this.recorded.length > 0 || includeEmpty) {
42
+ entry = this.recorded.join('')
43
+ if (entry === 'NULL' && !includeEmpty) {
44
+ entry = null
45
+ }
46
+ if (entry !== null) entry = this.transform(entry)
47
+ this.entries.push(entry)
48
+ this.recorded = []
49
+ }
50
+ }
51
+
52
+ consumeDimensions () {
53
+ if (this.source[0] === '[') {
54
+ while (!this.isEof()) {
55
+ var char = this.nextCharacter()
56
+ if (char.value === '=') break
57
+ }
58
+ }
59
+ }
60
+
61
+ parse (nested) {
62
+ var character, parser, quote
63
+ this.consumeDimensions()
64
+ while (!this.isEof()) {
65
+ character = this.nextCharacter()
66
+ if (character.value === '{' && !quote) {
67
+ this.dimension++
68
+ if (this.dimension > 1) {
69
+ parser = new ArrayParser(this.source.substr(this.position - 1), this.transform)
70
+ this.entries.push(parser.parse(true))
71
+ this.position += parser.position - 2
72
+ }
73
+ } else if (character.value === '}' && !quote) {
74
+ this.dimension--
75
+ if (!this.dimension) {
76
+ this.newEntry()
77
+ if (nested) return this.entries
78
+ }
79
+ } else if (character.value === '"' && !character.escaped) {
80
+ if (quote) this.newEntry(true)
81
+ quote = !quote
82
+ } else if (character.value === ',' && !quote) {
83
+ this.newEntry()
84
+ } else {
85
+ this.record(character.value)
86
+ }
87
+ }
88
+ if (this.dimension !== 0) {
89
+ throw new Error('array dimension not balanced')
90
+ }
91
+ return this.entries
92
+ }
93
+ }
94
+
95
+ function identity (value) {
96
+ return value
97
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "postgres-array",
3
+ "main": "index.js",
4
+ "version": "2.0.0",
5
+ "description": "Parse postgres array columns",
6
+ "license": "MIT",
7
+ "repository": "bendrucker/postgres-array",
8
+ "author": {
9
+ "name": "Ben Drucker",
10
+ "email": "bvdrucker@gmail.com",
11
+ "url": "bendrucker.me"
12
+ },
13
+ "engines": {
14
+ "node": ">=4"
15
+ },
16
+ "scripts": {
17
+ "test": "standard && tape test.js"
18
+ },
19
+ "types": "index.d.ts",
20
+ "keywords": [
21
+ "postgres",
22
+ "array",
23
+ "parser"
24
+ ],
25
+ "dependencies": {},
26
+ "devDependencies": {
27
+ "standard": "^12.0.1",
28
+ "tape": "^4.0.0"
29
+ },
30
+ "files": [
31
+ "index.js",
32
+ "index.d.ts",
33
+ "readme.md"
34
+ ]
35
+ }
@@ -0,0 +1,43 @@
1
+ # postgres-array [![Build Status](https://travis-ci.org/bendrucker/postgres-array.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-array)
2
+
3
+ > Parse postgres array columns
4
+
5
+
6
+ ## Install
7
+
8
+ ```
9
+ $ npm install --save postgres-array
10
+ ```
11
+
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ var postgresArray = require('postgres-array')
17
+
18
+ postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
19
+ //=> [1, 2, 3]
20
+ ```
21
+
22
+ ## API
23
+
24
+ #### `parse(input, [transform])` -> `array`
25
+
26
+ ##### input
27
+
28
+ *Required*
29
+ Type: `string`
30
+
31
+ A Postgres array string.
32
+
33
+ ##### transform
34
+
35
+ Type: `function`
36
+ Default: `identity`
37
+
38
+ A function that transforms non-null values inserted into the array.
39
+
40
+
41
+ ## License
42
+
43
+ MIT © [Ben Drucker](http://bendrucker.me)
@@ -0,0 +1,33 @@
1
+ 'use strict'
2
+
3
+ var bufferFrom = Buffer.from || Buffer
4
+
5
+ module.exports = function parseBytea (input) {
6
+ if (/^\\x/.test(input)) {
7
+ // new 'hex' style response (pg >9.0)
8
+ return bufferFrom(input.substr(2), 'hex')
9
+ }
10
+ var output = ''
11
+ var i = 0
12
+ while (i < input.length) {
13
+ if (input[i] !== '\\') {
14
+ output += input[i]
15
+ ++i
16
+ } else {
17
+ if (/[0-7]{3}/.test(input.substr(i + 1, 3))) {
18
+ output += String.fromCharCode(parseInt(input.substr(i + 1, 3), 8))
19
+ i += 4
20
+ } else {
21
+ var backslashes = 1
22
+ while (i + backslashes < input.length && input[i + backslashes] === '\\') {
23
+ backslashes++
24
+ }
25
+ for (var k = 0; k < Math.floor(backslashes / 2); ++k) {
26
+ output += '\\'
27
+ }
28
+ i += Math.floor(backslashes / 2) * 2
29
+ }
30
+ }
31
+ }
32
+ return bufferFrom(output, 'binary')
33
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
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
13
+ all 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
21
+ THE SOFTWARE.