decocms 2.293.7 → 2.293.8

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 (219) hide show
  1. package/dist/client/assets/{AlertCircle-DXfdk9MK.js → AlertCircle-DveGq_Ka.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-m25Ex3xE.js → ArrowNarrowLeft-DHWYg1cd.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-DOO4R0VI.js → ArrowUpRight-CCBySLzZ.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-BC9E8CH0.js → CheckCircle-6bGazfo7.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-0xFW1Tjk.js → ChevronDown-Bg0fGsAy.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-Da2pMeyD.js → ChevronRight-DMa-ECep.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-C8WLqMFJ.js → ChevronUp-hL_C00tb.js} +1 -1
  8. package/dist/client/assets/{Container-BuB3esl0.js → Container-L4zxxTEg.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-C2eXnxdz.js → DotsVertical-DCxBI0BW.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-BoMA8nX9.js → LinkExternal01-BQ6T0Nws.js} +1 -1
  11. package/dist/client/assets/{Lock01-D-9xfOJy.js → Lock01-0zry6wgC.js} +1 -1
  12. package/dist/client/assets/{Palette-B95ZD3_M.js → Palette-Cd-fSUE0.js} +1 -1
  13. package/dist/client/assets/{Play-DINvkeGT.js → Play-PF2rNc4W.js} +1 -1
  14. package/dist/client/assets/{Plus-Cz_QF-nO.js → Plus-DYo953wk.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-C9pW6sTt.js → RefreshCcw01-D1Vi0tae.js} +1 -1
  16. package/dist/client/assets/{SearchMd-BRBTca_N.js → SearchMd-BxcVY0hk.js} +1 -1
  17. package/dist/client/assets/{Settings02-rRANi0Px.js → Settings02-DfEUH8Vu.js} +1 -1
  18. package/dist/client/assets/{Shield01-Ca51KHJr.js → Shield01-DkQy31Nt.js} +1 -1
  19. package/dist/client/assets/{Star01-DeIf7B7B.js → Star01-B6ksoZr0.js} +1 -1
  20. package/dist/client/assets/{Sun-DhTV9qec.js → Sun-vFyK4_Ll.js} +1 -1
  21. package/dist/client/assets/{Tool01-Ba9DB62y.js → Tool01-Cb8li5k6.js} +1 -1
  22. package/dist/client/assets/{Trash01--9QdImzp.js → Trash01-CqSlmOZQ.js} +1 -1
  23. package/dist/client/assets/{User01-Blfyt5S4.js → User01-BHjwWDd7.js} +1 -1
  24. package/dist/client/assets/{Users03-BFWP6Eo7.js → Users03-CsGzKQhD.js} +1 -1
  25. package/dist/client/assets/{X-Bq9xP96R.js → X-BSw526sh.js} +1 -1
  26. package/dist/client/assets/{XCircle-Cc09MSdO.js → XCircle-DGL-4U6P.js} +1 -1
  27. package/dist/client/assets/{XClose-CVgNkrOC.js → XClose-DfM5GjZF.js} +1 -1
  28. package/dist/client/assets/{Zap-jDm5-swv.js → Zap-D55ucbXC.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-CLMBz7MJ.js → ZapSquare-T3gHYvlz.js} +1 -1
  30. package/dist/client/assets/{accordion-DAgtJ1RN.js → accordion-BEf7bBJ7.js} +1 -1
  31. package/dist/client/assets/{agent-icon-Bei3Y6Nv.js → agent-icon-ChIrIWeW.js} +1 -1
  32. package/dist/client/assets/{agents-list-BEcGQnnc.js → agents-list-DdL2YfiV.js} +1 -1
  33. package/dist/client/assets/ai-providers-ObNEA0nx.js +1 -0
  34. package/dist/client/assets/{alert-dialog-BVSxM9YJ.js → alert-dialog-D6jDWQW-.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-DsAh3g7W.js → auth-catchall-M0Jr5kFb.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-OM3ZLG5b.js → automation-list-row-Csh5lumM.js} +1 -1
  37. package/dist/client/assets/{automations-Bfdp-lBm.js → automations-obZ5ZVAW.js} +1 -1
  38. package/dist/client/assets/{avatar-LDMZpKRg.js → avatar-CKkXwPlY.js} +1 -1
  39. package/dist/client/assets/{badge-D4FFGy4o.js → badge-yfBx4pKw.js} +1 -1
  40. package/dist/client/assets/{brand-context-DoIQ0i3H.js → brand-context-DVAt0TKP.js} +1 -1
  41. package/dist/client/assets/{card-Du9Iuv0G.js → card-e-NpS5kl.js} +1 -1
  42. package/dist/client/assets/{chat-context-Cu3HdQoP.js → chat-context-GRw0JUF-.js} +1 -1
  43. package/dist/client/assets/{checkbox-D3HYUnZN.js → checkbox-BWpfDwfi.js} +1 -1
  44. package/dist/client/assets/{collection-detail-C_Qc4MbL.js → collection-detail-DOCM2IPO.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-SRtbYzi1.js → collection-display-button-BANI3stw.js} +1 -1
  46. package/dist/client/assets/{collection-search-BvT81eua.js → collection-search-DyFOds5R.js} +1 -1
  47. package/dist/client/assets/{collection-search-jeIjsobA.js → collection-search-w3FCfjcj.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-D1vIquPS.js → collection-table-wrapper-Ro_jHI87.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-DPgWxe2m.js → collection-tabs-BI0p7qpI.js} +1 -1
  50. package/dist/client/assets/{collections-Di3Xclr5.js → collections-FijcH0pF.js} +1 -1
  51. package/dist/client/assets/{command-CqgC97xW.js → command-nLSAlSuK.js} +1 -1
  52. package/dist/client/assets/{connection-card-DqAomVSf.js → connection-card-wj_vHsSr.js} +1 -1
  53. package/dist/client/assets/{connection-detail-CGFhkom4.js → connection-detail-BvUUuCYo.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-Bf4nHE9_.js → connection-form-helpers-WMrQb6eb.js} +1 -1
  55. package/dist/client/assets/{connections-nP3l3Xn5.js → connections-D0bzAtOI.js} +1 -1
  56. package/dist/client/assets/{constants-Bymra3Z3.js → constants-ChdU9xvz.js} +1 -1
  57. package/dist/client/assets/{constants-CRmflr8M.js → constants-D7vrREO4.js} +1 -1
  58. package/dist/client/assets/{dialog-Bnn50qLi.js → dialog-B0QYUD88.js} +1 -1
  59. package/dist/client/assets/{domain-settings-DyvTdw8S.js → domain-settings-9Q2boaGd.js} +1 -1
  60. package/dist/client/assets/{drawer-t00j5Ew9.js → drawer-B9QExE6j.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-CqTx-nNo.js → dropdown-menu-Dqqv-DxC.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-aon9v2dL.js → dynamic-plugin-layout-BVAHZf_l.js} +1 -1
  63. package/dist/client/assets/{empty-state-DQOABzrz.js → empty-state-Brbj3WdC.js} +1 -1
  64. package/dist/client/assets/{empty-state-BCisGTAH.js → empty-state-CtpU7jLB.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-Db8ZLaq1.js → extract-connection-data-BdGRQa2R.js} +1 -1
  66. package/dist/client/assets/{features-B0-ag3C3.js → features-CW2iqt4o.js} +1 -1
  67. package/dist/client/assets/{form-B5N66yji.js → form-CEqJ4N_7.js} +1 -1
  68. package/dist/client/assets/{general-C2wzdkNU.js → general-DfPdaroT.js} +1 -1
  69. package/dist/client/assets/{index-CDTT3e7s.js → index-B6VjlsLE.js} +1 -1
  70. package/dist/client/assets/index-B6jYwthz.js +1 -0
  71. package/dist/client/assets/{index-BOmVBt-L.js → index-B9-yB4gn.js} +1 -1
  72. package/dist/client/assets/{index-C31S4jpX.js → index-Bf3SCl0m.js} +3 -3
  73. package/dist/client/assets/{index-CzZ-Z-oS.js → index-BsAZNtTY.js} +1 -1
  74. package/dist/client/assets/{index-skEMlwzP.js → index-C-hC1pHz.js} +1 -1
  75. package/dist/client/assets/{index-YLWObp9P.js → index-C2C_Qiwh.js} +1 -1
  76. package/dist/client/assets/{index-SH970SJ0.js → index-CZs7_uJZ.js} +1 -1
  77. package/dist/client/assets/{index-D_S2FIdU.js → index-CwWV7ZbX.js} +1 -1
  78. package/dist/client/assets/{index-_ffZL8NJ.js → index-DCHF8zOG.js} +1 -1
  79. package/dist/client/assets/{index-DzRCCgl0.js → index-DRficqI-.js} +1 -1
  80. package/dist/client/assets/{index-CRBLJNJY.js → index-DcVnAzZR.js} +1 -1
  81. package/dist/client/assets/{index-CCSxUcSR.js → index-O-xThSQt.js} +2 -2
  82. package/dist/client/assets/{index-D0dh_hfJ.js → index-VDFVZp7i.js} +1 -1
  83. package/dist/client/assets/{index-DZ4C7ecc.js → index-dnp-3LXJ.js} +1 -1
  84. package/dist/client/assets/{index-BwHYJNqQ.js → index-wTKQdlAH.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-COI6ybpz.js → infiniteQueryObserver-BVq9Pm2a.js} +1 -1
  86. package/dist/client/assets/{input-CGOXGU1T.js → input-oRQz03qA.js} +1 -1
  87. package/dist/client/assets/{integration-icon-CsIISZIk.js → integration-icon-Dl850mlU.js} +1 -1
  88. package/dist/client/assets/{label-D4SEK3ff.js → label-C1-enMbO.js} +1 -1
  89. package/dist/client/assets/{layout-4V4C6eb5.js → layout-DNdIWyZp.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-Bh9iIV1t.js → lean-canvas-recruit-modal-CRZY0Eb-.js} +1 -1
  91. package/dist/client/assets/{login-DzbRx3GK.js → login-BfUv2H8w.js} +1 -1
  92. package/dist/client/assets/{members-S87fVUKE.js → members-CCgRCx0J.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-lCTWnCWQ.js → monaco-editor-u9gnS6t8.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-Bdkg2lXe.js → monitoring-stats-row--8mo81f4.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-gRWCWpy9.js → oauth-callback-CXfLfK0p.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-ai-provider-pudhCVgi.js → oauth-callback-ai-provider-CBc0oyoe.js} +1 -1
  97. package/dist/client/assets/{onboarding-D_RZPnOJ.js → onboarding-CvXVvrci.js} +1 -1
  98. package/dist/client/assets/{org-layout-CyPgK3Oz.js → org-layout-uft5TcR0.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-CuqX6Tv7.js → org-plugin-layout-BCAbckW3.js} +1 -1
  100. package/dist/client/assets/{pair-B_xTWu6o.js → pair-D89tt-Oa.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-31-4FfVV.js → plugin-empty-state-CdC4a2f5.js} +1 -1
  102. package/dist/client/assets/{plugin-header-SM3MfaW8.js → plugin-header-C436xgxX.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-oCouCQJ1.js → plugin-layout-Ck_aFT7l.js} +1 -1
  104. package/dist/client/assets/{popover-CA7wjTzr.js → popover-Co2M62hE.js} +1 -1
  105. package/dist/client/assets/{profile-D1kET1t3.js → profile-D8aA_SfN.js} +1 -1
  106. package/dist/client/assets/{project-app-view-BnnlNd0S.js → project-app-view-BQN6gYM4.js} +1 -1
  107. package/dist/client/assets/registry-F9ZprpXD.js +2 -0
  108. package/dist/client/assets/{registry-layout-C7uUKQwM.js → registry-layout-CDOchZNA.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-BARTxmgG.js → required-auth-layout-WPul4l6C.js} +1 -1
  110. package/dist/client/assets/{reset-password-DldtE7pq.js → reset-password-CCvsOolV.js} +1 -1
  111. package/dist/client/assets/{roles-jDo56Odb.js → roles-CfoKq5oL.js} +1 -1
  112. package/dist/client/assets/{scroll-area-CO1r6tWJ.js → scroll-area-ePY6ucBL.js} +1 -1
  113. package/dist/client/assets/{search-input-ChGtPve4.js → search-input-BA02UXZa.js} +1 -1
  114. package/dist/client/assets/{select-CuiyoiL_.js → select-Cq_PvnKV.js} +1 -1
  115. package/dist/client/assets/{select-model-DnX3-EsU.js → select-model-BpJHvnyq.js} +1 -1
  116. package/dist/client/assets/{settings-layout-CTMYFxx3.js → settings-layout-Dl8RrXAU.js} +1 -1
  117. package/dist/client/assets/{settings-section-BmjPsExf.js → settings-section-BzS4xloW.js} +1 -1
  118. package/dist/client/assets/{shell-layout-CWH_Y15a.js → shell-layout-DOMzE0SQ.js} +1 -1
  119. package/dist/client/assets/{skeleton-BodtHV9I.js → skeleton-YcXGprZE.js} +1 -1
  120. package/dist/client/assets/{sso-C2OaFdPj.js → sso-pG-n5D-C.js} +1 -1
  121. package/dist/client/assets/{store-DQliQdSk.js → store-DsWe3E_F.js} +1 -1
  122. package/dist/client/assets/store-registry-C1Sfy2sE.js +2 -0
  123. package/dist/client/assets/{switch-CdHRMTW9.js → switch-BjSXi4cA.js} +1 -1
  124. package/dist/client/assets/{table-DVtFTUHZ.js → table-q-k_hgAt.js} +1 -1
  125. package/dist/client/assets/{tabs-BgJeSqk4.js → tabs-C3iMtl0f.js} +1 -1
  126. package/dist/client/assets/{task-status-CfDV-ew7.js → task-status-jHWa41cV.js} +1 -1
  127. package/dist/client/assets/{textarea-DzkVG7JD.js → textarea-BSpBSpMd.js} +1 -1
  128. package/dist/client/assets/{toggle-group-qQMNUT-A.js → toggle-group-Z4_K_UMR.js} +1 -1
  129. package/dist/client/assets/{tools-list-m5KatPL5.js → tools-list-DVlfSdCs.js} +1 -1
  130. package/dist/client/assets/{tooltip-BqNUzMrI.js → tooltip-CZKTj_88.js} +1 -1
  131. package/dist/client/assets/{types-AfFc_tMd.js → types-CTCqQWQm.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-BK_veNO4.js → use-ai-providers-Bi5zwgNs.js} +1 -1
  133. package/dist/client/assets/{use-collections-DwZut8wL.js → use-collections-DpHr_hEj.js} +1 -1
  134. package/dist/client/assets/{use-connection-BJpbsOIS.js → use-connection-Dkzl6ATr.js} +1 -1
  135. package/dist/client/assets/{use-copy-Bo8GL7eE.js → use-copy-CpuPfSHn.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-D6JQCBq2.js → use-create-virtual-mcp-BDDTbSDu.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-C5NKtuSG.js → use-decopilot-events-DfNhZiit.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-DxaPbg-L.js → use-delete-connection-DzmSSfSC.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-x7s39dsa.js → use-infinite-scroll-ZB6EnEL9.js} +1 -1
  140. package/dist/client/assets/{use-list-state-BnhDBtx8.js → use-list-state-BxmWtMlf.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-CpGxrE2n.js → use-mcp-tools-dN493Per.js} +1 -1
  142. package/dist/client/assets/{use-members-CguSIAh8.js → use-members-BLQ9W5Dc.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-DL1SSMeI.js → use-navigate-to-agent-CBd-r96N.js} +1 -1
  144. package/dist/client/assets/{use-org-sso-BRsOtHzg.js → use-org-sso-Fy8p-ia7.js} +1 -1
  145. package/dist/client/assets/{use-organization-roles-CIvbWsgj.js → use-organization-roles-BY5zQhyp.js} +1 -1
  146. package/dist/client/assets/{use-organization-settings-DXVGYoSK.js → use-organization-settings-BiTIuKde.js} +1 -1
  147. package/dist/client/assets/{use-registry-connections-BKsU7-eH.js → use-registry-connections-B1h0NOZd.js} +1 -1
  148. package/dist/client/assets/{use-status-sounds-BCtmxJQJ.js → use-status-sounds-ChN-g_Kb.js} +1 -1
  149. package/dist/client/assets/{use-tasks-BImSKPbl.js → use-tasks-CMJbyrNa.js} +1 -1
  150. package/dist/client/assets/{use-view-mode-R5lOl_7l.js → use-view-mode-BglVjHEt.js} +1 -1
  151. package/dist/client/assets/{use-virtual-mcp-mfRFtB08.js → use-virtual-mcp-Cn-xT_JW.js} +1 -1
  152. package/dist/client/assets/useInfiniteQuery-BTmoYoSz.js +1 -0
  153. package/dist/client/assets/useSuspenseInfiniteQuery-D3qWdmTu.js +1 -0
  154. package/dist/client/assets/{user-DdWZGaQJ.js → user-BnKZSLel.js} +1 -1
  155. package/dist/client/assets/{view-mode-toggle-DhxRxMVU.js → view-mode-toggle-BueYVsWt.js} +1 -1
  156. package/dist/client/assets/{workflow-BIU8orVo.js → workflow-DbzdHDRp.js} +1 -1
  157. package/dist/client/assets/workflow-detail-D1gDF37Z.js +1 -0
  158. package/dist/client/index.html +1 -1
  159. package/dist/server/cli.js +3 -3
  160. package/dist/server/migrate.js +88 -88
  161. package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
  162. package/dist/server/node_modules/ansi-styles/index.js +223 -0
  163. package/dist/server/node_modules/ansi-styles/package.json +54 -0
  164. package/dist/server/node_modules/ansi-styles/readme.md +173 -0
  165. package/dist/server/node_modules/environment/index.d.ts +74 -0
  166. package/dist/server/node_modules/environment/index.js +47 -0
  167. package/dist/server/node_modules/{slice-ansi → environment}/license +0 -1
  168. package/dist/server/node_modules/environment/package.json +74 -0
  169. package/dist/server/node_modules/environment/readme.md +94 -0
  170. package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
  171. package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
  172. package/dist/server/node_modules/escape-string-regexp/license +9 -0
  173. package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
  174. package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
  175. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  176. package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
  177. package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
  178. package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
  179. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
  180. package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
  181. package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
  182. package/dist/server/node_modules/is-unicode-supported/license +9 -0
  183. package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
  184. package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
  185. package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
  186. package/dist/server/node_modules/mimic-fn/index.js +13 -0
  187. package/dist/server/node_modules/mimic-fn/license +9 -0
  188. package/dist/server/node_modules/{onetime → mimic-fn}/package.json +15 -16
  189. package/dist/server/node_modules/mimic-fn/readme.md +69 -0
  190. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  191. package/dist/server/node_modules/pg-int8/README.md +16 -0
  192. package/dist/server/node_modules/pg-int8/index.js +100 -0
  193. package/dist/server/node_modules/pg-int8/package.json +24 -0
  194. package/dist/server/node_modules/postgres-date/index.js +116 -0
  195. package/dist/server/node_modules/postgres-date/license +21 -0
  196. package/dist/server/node_modules/postgres-date/package.json +33 -0
  197. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  198. package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
  199. package/dist/server/node_modules/postgres-interval/index.js +125 -0
  200. package/dist/server/node_modules/postgres-interval/license +21 -0
  201. package/dist/server/node_modules/postgres-interval/package.json +36 -0
  202. package/dist/server/node_modules/postgres-interval/readme.md +48 -0
  203. package/package.json +1 -1
  204. package/dist/client/assets/ai-providers-Dp405boW.js +0 -1
  205. package/dist/client/assets/index-ShFS2Xm9.js +0 -1
  206. package/dist/client/assets/registry-D3F48l8n.js +0 -2
  207. package/dist/client/assets/store-registry-BFBR78Ii.js +0 -2
  208. package/dist/client/assets/useInfiniteQuery-W0R8FLKd.js +0 -1
  209. package/dist/client/assets/useSuspenseInfiniteQuery-Vv5DMGlP.js +0 -1
  210. package/dist/client/assets/workflow-detail-cJknrHKx.js +0 -1
  211. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  212. package/dist/server/node_modules/onetime/index.js +0 -44
  213. package/dist/server/node_modules/onetime/readme.md +0 -94
  214. package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
  215. package/dist/server/node_modules/slice-ansi/index.js +0 -260
  216. package/dist/server/node_modules/slice-ansi/package.json +0 -59
  217. package/dist/server/node_modules/slice-ansi/readme.md +0 -54
  218. package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
  219. /package/dist/server/node_modules/{onetime → ansi-styles}/license +0 -0
@@ -0,0 +1,54 @@
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;
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,9 @@
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,14 +1,13 @@
1
1
  {
2
- "name": "onetime",
3
- "version": "5.1.2",
4
- "description": "Ensure a function is only called once",
2
+ "name": "mimic-fn",
3
+ "version": "2.1.0",
4
+ "description": "Make a function mimic another one",
5
5
  "license": "MIT",
6
- "repository": "sindresorhus/onetime",
7
- "funding": "https://github.com/sponsors/sindresorhus",
6
+ "repository": "sindresorhus/mimic-fn",
8
7
  "author": {
9
8
  "name": "Sindre Sorhus",
10
9
  "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
10
+ "url": "sindresorhus.com"
12
11
  },
13
12
  "engines": {
14
13
  "node": ">=6"
@@ -21,20 +20,20 @@
21
20
  "index.d.ts"
22
21
  ],
23
22
  "keywords": [
24
- "once",
25
23
  "function",
26
- "one",
27
- "onetime",
24
+ "mimic",
25
+ "imitate",
26
+ "rename",
27
+ "copy",
28
+ "inherit",
29
+ "properties",
30
+ "name",
28
31
  "func",
29
32
  "fn",
30
- "single",
31
- "call",
32
- "called",
33
- "prevent"
33
+ "set",
34
+ "infer",
35
+ "change"
34
36
  ],
35
- "dependencies": {
36
- "mimic-fn": "^2.1.0"
37
- },
38
37
  "devDependencies": {
39
38
  "ava": "^1.4.1",
40
39
  "tsd": "^0.7.1",
@@ -0,0 +1,69 @@
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)
@@ -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,116 @@
1
+ 'use strict'
2
+
3
+ var DATE_TIME = /(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/
4
+ var DATE = /^(\d{1,})-(\d{2})-(\d{2})( BC)?$/
5
+ var TIME_ZONE = /([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/
6
+ var INFINITY = /^-?infinity$/
7
+
8
+ module.exports = function parseDate (isoDate) {
9
+ if (INFINITY.test(isoDate)) {
10
+ // Capitalize to Infinity before passing to Number
11
+ return Number(isoDate.replace('i', 'I'))
12
+ }
13
+ var matches = DATE_TIME.exec(isoDate)
14
+
15
+ if (!matches) {
16
+ // Force YYYY-MM-DD dates to be parsed as local time
17
+ return getDate(isoDate) || null
18
+ }
19
+
20
+ var isBC = !!matches[8]
21
+ var year = parseInt(matches[1], 10)
22
+ if (isBC) {
23
+ year = bcYearToNegativeYear(year)
24
+ }
25
+
26
+ var month = parseInt(matches[2], 10) - 1
27
+ var day = matches[3]
28
+ var hour = parseInt(matches[4], 10)
29
+ var minute = parseInt(matches[5], 10)
30
+ var second = parseInt(matches[6], 10)
31
+
32
+ var ms = matches[7]
33
+ ms = ms ? 1000 * parseFloat(ms) : 0
34
+
35
+ var date
36
+ var offset = timeZoneOffset(isoDate)
37
+ if (offset != null) {
38
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, ms))
39
+
40
+ // Account for years from 0 to 99 being interpreted as 1900-1999
41
+ // by Date.UTC / the multi-argument form of the Date constructor
42
+ if (is0To99(year)) {
43
+ date.setUTCFullYear(year)
44
+ }
45
+
46
+ if (offset !== 0) {
47
+ date.setTime(date.getTime() - offset)
48
+ }
49
+ } else {
50
+ date = new Date(year, month, day, hour, minute, second, ms)
51
+
52
+ if (is0To99(year)) {
53
+ date.setFullYear(year)
54
+ }
55
+ }
56
+
57
+ return date
58
+ }
59
+
60
+ function getDate (isoDate) {
61
+ var matches = DATE.exec(isoDate)
62
+ if (!matches) {
63
+ return
64
+ }
65
+
66
+ var year = parseInt(matches[1], 10)
67
+ var isBC = !!matches[4]
68
+ if (isBC) {
69
+ year = bcYearToNegativeYear(year)
70
+ }
71
+
72
+ var month = parseInt(matches[2], 10) - 1
73
+ var day = matches[3]
74
+ // YYYY-MM-DD will be parsed as local time
75
+ var date = new Date(year, month, day)
76
+
77
+ if (is0To99(year)) {
78
+ date.setFullYear(year)
79
+ }
80
+
81
+ return date
82
+ }
83
+
84
+ // match timezones:
85
+ // Z (UTC)
86
+ // -05
87
+ // +06:30
88
+ function timeZoneOffset (isoDate) {
89
+ if (isoDate.endsWith('+00')) {
90
+ return 0
91
+ }
92
+
93
+ var zone = TIME_ZONE.exec(isoDate.split(' ')[1])
94
+ if (!zone) return
95
+ var type = zone[1]
96
+
97
+ if (type === 'Z') {
98
+ return 0
99
+ }
100
+ var sign = type === '-' ? -1 : 1
101
+ var offset = parseInt(zone[2], 10) * 3600 +
102
+ parseInt(zone[3] || 0, 10) * 60 +
103
+ parseInt(zone[4] || 0, 10)
104
+
105
+ return offset * sign * 1000
106
+ }
107
+
108
+ function bcYearToNegativeYear (year) {
109
+ // Account for numerical difference between representations of BC years
110
+ // See: https://github.com/bendrucker/postgres-date/issues/5
111
+ return -(year - 1)
112
+ }
113
+
114
+ function is0To99 (num) {
115
+ return num >= 0 && num < 100
116
+ }
@@ -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,33 @@
1
+ {
2
+ "name": "postgres-date",
3
+ "main": "index.js",
4
+ "version": "1.0.7",
5
+ "description": "Postgres date column parser",
6
+ "license": "MIT",
7
+ "repository": "bendrucker/postgres-date",
8
+ "author": {
9
+ "name": "Ben Drucker",
10
+ "email": "bvdrucker@gmail.com",
11
+ "url": "bendrucker.me"
12
+ },
13
+ "engines": {
14
+ "node": ">=0.10.0"
15
+ },
16
+ "scripts": {
17
+ "test": "standard && tape test.js"
18
+ },
19
+ "keywords": [
20
+ "postgres",
21
+ "date",
22
+ "parser"
23
+ ],
24
+ "dependencies": {},
25
+ "devDependencies": {
26
+ "standard": "^14.0.0",
27
+ "tape": "^5.0.0"
28
+ },
29
+ "files": [
30
+ "index.js",
31
+ "readme.md"
32
+ ]
33
+ }
@@ -0,0 +1,49 @@
1
+ # postgres-date [![Build Status](https://travis-ci.org/bendrucker/postgres-date.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-date) [![Greenkeeper badge](https://badges.greenkeeper.io/bendrucker/postgres-date.svg)](https://greenkeeper.io/)
2
+
3
+ > Postgres date output parser
4
+
5
+ This package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.
6
+
7
+ If you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.
8
+
9
+ **Supported Postgres Versions:** `>= 9.6`
10
+
11
+ All prior versions of Postgres are likely compatible but not officially supported.
12
+
13
+ ## Install
14
+
15
+ ```
16
+ $ npm install --save postgres-date
17
+ ```
18
+
19
+
20
+ ## Usage
21
+
22
+ ```js
23
+ var parse = require('postgres-date')
24
+ parse('2011-01-23 22:15:51Z')
25
+ // => 2011-01-23T22:15:51.000Z
26
+ ```
27
+
28
+ ## API
29
+
30
+ #### `parse(isoDate)` -> `date`
31
+
32
+ ##### isoDate
33
+
34
+ *Required*
35
+ Type: `string`
36
+
37
+ A date string from Postgres.
38
+
39
+ ## Releases
40
+
41
+ The following semantic versioning increments will be used for changes:
42
+
43
+ * **Major**: Removal of support for Node.js versions or Postgres versions (not expected)
44
+ * **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format
45
+ * **Patch**: Any fix for parsing behavior
46
+
47
+ ## License
48
+
49
+ MIT © [Ben Drucker](http://bendrucker.me)
@@ -0,0 +1,20 @@
1
+ declare namespace PostgresInterval {
2
+ export interface IPostgresInterval {
3
+ years?: number;
4
+ months?: number;
5
+ days?: number;
6
+ hours?: number;
7
+ minutes?: number;
8
+ seconds?: number;
9
+ milliseconds?: number;
10
+
11
+ toPostgres(): string;
12
+
13
+ toISO(): string;
14
+ toISOString(): string;
15
+ }
16
+ }
17
+
18
+ declare function PostgresInterval(raw: string): PostgresInterval.IPostgresInterval;
19
+
20
+ export = PostgresInterval;