decocms 2.185.0 → 2.186.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BO0kzcBv.js → AlertCircle-K-Pdcic9.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CrI91Scn.js → ArrowLeft-DbjuKsKJ.js} +1 -1
- package/dist/client/assets/{ArrowUp-FfROzAyV.js → ArrowUp-CVgf-IuM.js} +1 -1
- package/dist/client/assets/{Check-BXqqUm0J.js → Check-5J8pLufa.js} +1 -1
- package/dist/client/assets/{ChevronDown-B6V9GzuP.js → ChevronDown-azX3X6AX.js} +1 -1
- package/dist/client/assets/{ChevronRight-BSFLHUtv.js → ChevronRight-BU9wyepR.js} +1 -1
- package/dist/client/assets/{ChevronUp-BYpnL-9F.js → ChevronUp-ISSymo50.js} +1 -1
- package/dist/client/assets/{Container-BZeblIrR.js → Container-DO3SbooR.js} +1 -1
- package/dist/client/assets/{Dataflow03-CTwEKVcs.js → Dataflow03-DDjLJJPt.js} +1 -1
- package/dist/client/assets/{Download01-D7T-WxGL.js → Download01-CSi5s7rT.js} +1 -1
- package/dist/client/assets/{FolderClosed-BPzjOG-5.js → FolderClosed-DG1khNab.js} +1 -1
- package/dist/client/assets/{Grid01-Bwsn0nh2.js → Grid01-1OtRlqYA.js} +1 -1
- package/dist/client/assets/{List-Bq1Yvo6z.js → List-CD8zd6Wa.js} +1 -1
- package/dist/client/assets/{Loading01-DCKwAh-U.js → Loading01-CYdiDh3l.js} +1 -1
- package/dist/client/assets/{Play-Bw_aeuhq.js → Play-3YhDYx27.js} +1 -1
- package/dist/client/assets/{Plus-BW2fNoEy.js → Plus-V1Th1jdv.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-YXuL16Jx.js → RefreshCcw01-Bk3rOtaE.js} +1 -1
- package/dist/client/assets/{SearchMd-C_bEWIlQ.js → SearchMd-BvvZzTkV.js} +1 -1
- package/dist/client/assets/{Settings01-BoOhxJJj.js → Settings01-BhEewSHV.js} +1 -1
- package/dist/client/assets/{Trash01-D9O3UWX6.js → Trash01-DEYpLJs9.js} +1 -1
- package/dist/client/assets/{Type01-CjsMMlh6.js → Type01-DPCWeoOo.js} +1 -1
- package/dist/client/assets/{Upload01-Bpjo_QI4.js → Upload01-CVsYMTIG.js} +1 -1
- package/dist/client/assets/{User01-BRC1qZ-u.js → User01-B6InEsCV.js} +1 -1
- package/dist/client/assets/{VideoRecorder-DkcbdsZk.js → VideoRecorder-DWwuCAKx.js} +1 -1
- package/dist/client/assets/{X-BL1q6dsE.js → X-DSEUOZBv.js} +1 -1
- package/dist/client/assets/{XCircle-DxcmI8rf.js → XCircle-BDF0JqjY.js} +1 -1
- package/dist/client/assets/{XClose-CslgPORS.js → XClose-C-lSsuAr.js} +1 -1
- package/dist/client/assets/{Zap-DERWnfoj.js → Zap-Md9DJ6rv.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Dq0Ojrk0.js → agent-connections-preview-BjYZmjl3.js} +1 -1
- package/dist/client/assets/{agent-detail-YxF3rQGf.js → agent-detail-Dj0OUG-D.js} +1 -1
- package/dist/client/assets/{agents-C2G5xDCJ.js → agents-DZR4cSbV.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-BbTN2hb6.js → ai-providers-logos-pBxdceXx.js} +1 -1
- package/dist/client/assets/{alert-dialog-yWVMNVBj.js → alert-dialog-CJVLkF8s.js} +1 -1
- package/dist/client/assets/{auth-catchall-CTzVQ5KH.js → auth-catchall-CyapYNp9.js} +1 -1
- package/dist/client/assets/{automation-detail-MKjn-Qas.js → automation-detail-DUb_NKWf.js} +1 -1
- package/dist/client/assets/{automations-DpKH4m8F.js → automations-B339F6Fn.js} +1 -1
- package/dist/client/assets/{avatar-87qJKKK_.js → avatar-BiJdl6Xf.js} +1 -1
- package/dist/client/assets/{badge-C2jHxnoS.js → badge-BbY1Vzps.js} +1 -1
- package/dist/client/assets/{binder-BaB8rAtx.js → binder-3anAL5WI.js} +1 -1
- package/dist/client/assets/{breadcrumb-CBpEGiAs.js → breadcrumb-BM2hSfLB.js} +1 -1
- package/dist/client/assets/{card-CUrYBr2J.js → card-D1l6f7HS.js} +1 -1
- package/dist/client/assets/{checkbox-RHvkU3ym.js → checkbox-GcV7rItk.js} +1 -1
- package/dist/client/assets/{collapsible-BaB71DBr.js → collapsible-E7EbAleb.js} +1 -1
- package/dist/client/assets/{collection-detail-iBwR9WNE.js → collection-detail-md2_reRY.js} +1 -1
- package/dist/client/assets/{collection-display-button-BetF6DhL.js → collection-display-button-BN69LmBz.js} +1 -1
- package/dist/client/assets/{collection-search-DcVVKJ8Q.js → collection-search-CcVBsN85.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D9WWtdCi.js → collection-table-wrapper-BPFLr1-v.js} +1 -1
- package/dist/client/assets/{collection-tabs-Df3Ptc0I.js → collection-tabs-BijGeHYB.js} +1 -1
- package/dist/client/assets/{command-CMOZJSSv.js → command-KtP0d-HZ.js} +1 -1
- package/dist/client/assets/{connection-card-CKJwNgpO.js → connection-card-DT3Fx28T.js} +1 -1
- package/dist/client/assets/{connection-detail-Dbycfmu5.js → connection-detail-DwgDpXcB.js} +1 -1
- package/dist/client/assets/{connections-jKPi1hZg.js → connections-C_kRN8jY.js} +1 -1
- package/dist/client/assets/{constants-Dzy_AMuL.js → constants-2OCwh60p.js} +1 -1
- package/dist/client/assets/constants-BwEgB5ct.js +1 -0
- package/dist/client/assets/{context-BL_7JbXZ.js → context-CuNDOhoh.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cycga0XC.js → create-organization-dialog-Cd0g9HkW.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BRQDkCBr.js → create-project-dialog-CU5VLoep.js} +1 -1
- package/dist/client/assets/{danger-D5sT_SDt.js → danger-CFl_eB5k.js} +1 -1
- package/dist/client/assets/{danger-zone-CI7wNXdQ.js → danger-zone-BSvLmne8.js} +1 -1
- package/dist/client/assets/{dependencies-XXGkpDMX.js → dependencies-DDWJJnWt.js} +1 -1
- package/dist/client/assets/{dialog-Dmm_af5q.js → dialog-D46ZA88r.js} +1 -1
- package/dist/client/assets/{drawer-SktUP7-X.js → drawer-DsEaI2mC.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BtgYu0Kc.js → dropdown-menu-BJLjCuY0.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DncjSb8M.js → dynamic-plugin-layout-DQu_PXGi.js} +1 -1
- package/dist/client/assets/{editable-task-title-DBtH_3H-.js → editable-task-title-BXxkXNIX.js} +1 -1
- package/dist/client/assets/{empty-state-Cx44yC3Y.js → empty-state-B7nlLEUe.js} +1 -1
- package/dist/client/assets/{empty-state-BgKAQr0C.js → empty-state-unH0aOxb.js} +1 -1
- package/dist/client/assets/{env-vars-editor-DPFQeE92.js → env-vars-editor-COVavLgR.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Zw5RYEyS.js → extract-connection-data-BxATAvFG.js} +1 -1
- package/dist/client/assets/{file-browser-AWmMc57j.js → file-browser-Y37oB16s.js} +2 -2
- package/dist/client/assets/{form-Obbe7UIk.js → form-BC654cr0.js} +1 -1
- package/dist/client/assets/{general-DDuzkv9d.js → general-DnNKCd5D.js} +1 -1
- package/dist/client/assets/{grid-view-DsTxgJvN.js → grid-view-DBiOShLC.js} +1 -1
- package/dist/client/assets/{home-C1G2fDyc.js → home-DoIljK7E.js} +1 -1
- package/dist/client/assets/{index-DLW7tZdu.js → index-BRbdC8tb.js} +3 -3
- package/dist/client/assets/{index-BtvKqHu_.js → index-BbKz4tLm.js} +1 -1
- package/dist/client/assets/{index-CQPlxt4u.js → index-CKlHjZGl.js} +1 -1
- package/dist/client/assets/{index-CdQYIu_6.js → index-CvdTWVPu.js} +1 -1
- package/dist/client/assets/{index-CDNLqNNq.js → index-DSSbY8iZ.js} +1 -1
- package/dist/client/assets/{index-CdK7iTUb.js → index-DSiECZF0.js} +1 -1
- package/dist/client/assets/{index-B1ylaSc7.js → index-DW3Gddt1.js} +1 -1
- package/dist/client/assets/{index-DCtU4ndp.js → index-DhwDaiqy.js} +1 -1
- package/dist/client/assets/{index-C0Ne6xGI.js → index-Do980wUe.js} +1 -1
- package/dist/client/assets/{index-75eZ1uI1.js → index-P1BeuVDU.js} +1 -1
- package/dist/client/assets/{index-CUtX0cOT.js → index-Z-Bosamk.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BdQSrFrR.js → infiniteQueryObserver-DozliAIg.js} +1 -1
- package/dist/client/assets/{input-DgJ0xjPE.js → input-BOjviNKP.js} +1 -1
- package/dist/client/assets/{integration-icon-C-I4Z6Dk.js → integration-icon-BxAcqR_W.js} +1 -1
- package/dist/client/assets/{label-BL4fRnZZ.js → label-h0Vcc2GK.js} +1 -1
- package/dist/client/assets/{layout-p-PoyTJz.js → layout-B-xxTjgY.js} +1 -1
- package/dist/client/assets/{layout-DAuICUV3.js → layout-B1L9zKc4.js} +1 -1
- package/dist/client/assets/{login-Bvsz1l56.js → login-DGiUNRC7.js} +1 -1
- package/dist/client/assets/{logo-upload-CGF8q63h.js → logo-upload-PCOmxOCx.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DzztYEVX.js → mcp-app-renderer-CRS3A1HB.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Dz2MeUmM.js → mcp-server-card-B6PFNGFX.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-cX9p8Afl.js → mcp-server-detail-oU638r_U.js} +2 -2
- package/dist/client/assets/{members-BX_g15fi.js → members-CNzL9zLR.js} +1 -1
- package/dist/client/assets/{monaco-editor-DX4p-sBy.js → monaco-editor-vJr8RDGl.js} +1 -1
- package/dist/client/assets/{monitoring-C9346vXd.js → monitoring-CxIOWArS.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-cUuCGr6O.js → monitoring-dashboard-edit-DxfJ4WNy.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-DFc0vQzd.js → monitoring-dashboard-view-BL4nPi_-.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BDkVd8_E.js → monitoring-stats-row-CrNnPzpZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bt5QJgEG.js → oauth-callback-Cq38djsA.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DgK7Rkwm.js → oauth-callback-ai-provider-CYTOAGu5.js} +1 -1
- package/dist/client/assets/{org-ai-providers-DQw8Ry8m.js → org-ai-providers-DtsI9IWI.js} +1 -1
- package/dist/client/assets/{page-BPTnb_7u.js → page-CYpcNv9e.js} +1 -1
- package/dist/client/assets/{page-BNkRheIf.js → page-zavfyW1i.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DZ2dLLg8.js → plugin-empty-state-CgDAJvPC.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D5d0HyD_.js → plugin-empty-state-Dl_2Uo0y.js} +1 -1
- package/dist/client/assets/{plugin-header-DToCRz-E.js → plugin-header-D43xaGJs.js} +1 -1
- package/dist/client/assets/{plugin-header-DaNytvgS.js → plugin-header-Dv9ESxEb.js} +1 -1
- package/dist/client/assets/plugins-DBMyeN4D.js +1 -0
- package/dist/client/assets/{popover-DnM-fBUa.js → popover-DWheVeA1.js} +1 -1
- package/dist/client/assets/{project-app-view-BmSeum6S.js → project-app-view-9tWFjZrt.js} +1 -1
- package/dist/client/assets/{project-layout-B6exvEKF.js → project-layout-Dv-Q6xBk.js} +1 -1
- package/dist/client/assets/{project-plugins-CzyuvjoL.js → project-plugins-Bw8tiinl.js} +1 -1
- package/dist/client/assets/{projects-list-C1JxN737.js → projects-list-DokYG2lJ.js} +1 -1
- package/dist/client/assets/{registry-layout-D-kGw5vE.js → registry-layout-CxVYwTXn.js} +1 -1
- package/dist/client/assets/{registry-utils-D6No_i4P.js → registry-utils-BSd5ITwa.js} +1 -1
- package/dist/client/assets/{reset-password-CUY6IwDL.js → reset-password-C7Dj7QEf.js} +1 -1
- package/dist/client/assets/{resizable-CAbzuUb1.js → resizable-DixBhzs0.js} +1 -1
- package/dist/client/assets/{save-actions-DGqTWEQL.js → save-actions-qtl58c-n.js} +1 -1
- package/dist/client/assets/{scroll-area-BCIFp-8p.js → scroll-area-COTWSYpJ.js} +1 -1
- package/dist/client/assets/{select-DeOQOwBi.js → select-Duo4-kjU.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-B78FWMF5.js → select-virtual-mcp-DmwglbWt.js} +1 -1
- package/dist/client/assets/{shell-layout-BX9tUo-C.js → shell-layout-BKPGcmv4.js} +2 -2
- package/dist/client/assets/{sidebar-settings-CxzW8gJz.js → sidebar-settings-Bvnz3xIL.js} +1 -1
- package/dist/client/assets/{skeleton-BwiQLrEa.js → skeleton-CxmuAljC.js} +1 -1
- package/dist/client/assets/{spinner-D4Lh5lMu.js → spinner-Bvsf8yBr.js} +1 -1
- package/dist/client/assets/{store-invite-CdO_aWdO.js → store-invite-B3ZITnmR.js} +1 -1
- package/dist/client/assets/{switch-DqWbwfAd.js → switch-DgSoD5A_.js} +1 -1
- package/dist/client/assets/{table-CbTCyRX5.js → table-6Exocylh.js} +1 -1
- package/dist/client/assets/{tabs-zzjdf6a0.js → tabs-BawFIUQp.js} +1 -1
- package/dist/client/assets/{task-status-hmfgdVgC.js → task-status-DCcRj1iH.js} +32 -32
- package/dist/client/assets/tasks-BXLnBJIq.js +1 -0
- package/dist/client/assets/{tasks-panel-BKxSsDFe.js → tasks-panel-DWjSzHZC.js} +1 -1
- package/dist/client/assets/{textarea-CJ-1DHFH.js → textarea-DdRl57bf.js} +1 -1
- package/dist/client/assets/{time-range-picker-BBbi_2IF.js → time-range-picker-DOqabEZA.js} +1 -1
- package/dist/client/assets/{toggle-group-DaaATQ-5.js → toggle-group-B0IrEjNf.js} +1 -1
- package/dist/client/assets/{tools-list-DLZSPKIc.js → tools-list-DbIvei1P.js} +1 -1
- package/dist/client/assets/{tooltip-D-QYbPJS.js → tooltip-xl3GoSVP.js} +1 -1
- package/dist/client/assets/{topbar-portal-D3vr1IIh.js → topbar-portal-DVwzk_zs.js} +1 -1
- package/dist/client/assets/{types-vQT8OD6B.js → types-DPAE4wXV.js} +1 -1
- package/dist/client/assets/{use-automations-BIoacnri.js → use-automations-BTjhSzA_.js} +1 -1
- package/dist/client/assets/{use-collections-BJxMmWLX.js → use-collections-Bqp5H9bu.js} +1 -1
- package/dist/client/assets/{use-connection-DPMknCkO.js → use-connection-De5rVqrE.js} +1 -1
- package/dist/client/assets/{use-copy-CkgWv__W.js → use-copy-CogCWJQ7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-pWj6n63S.js → use-create-virtual-mcp-CdSUPhk5.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BU1rPA0T.js → use-infinite-scroll-CQVKBMoy.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-C1XqHuwX.js → use-install-from-registry-D7V-rpJ0.js} +1 -1
- package/dist/client/assets/{use-list-state-B6nYBLyk.js → use-list-state-BtvQgv8T.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BmK_9UQh.js → use-mcp-prompts-k7CgkVwI.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-DQ2GW_FE.js → use-mcp-resources-BfKeTtfq.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-KIPxuDyk.js → use-mcp-tools-iD-VGNhw.js} +1 -1
- package/dist/client/assets/{use-members-BRZ5u_Eq.js → use-members-CYI2sNHs.js} +1 -1
- package/dist/client/assets/{use-project-DVq_144v.js → use-project-DdgxiICX.js} +1 -1
- package/dist/client/assets/{use-store-discovery-aQCBFuCU.js → use-store-discovery-DdbArpnw.js} +1 -1
- package/dist/client/assets/{use-view-mode-lmHuCoZm.js → use-view-mode-BiSEdh0M.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BEia5q72.js → use-virtual-mcp-DxTKYWLn.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DMnx1-Vs.js +1 -0
- package/dist/client/assets/{useMutation-BatnVMWS.js → useMutation-C_Uj7oOe.js} +1 -1
- package/dist/client/assets/useQuery-C31bP6Ck.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D-WGLpBh.js +1 -0
- package/dist/client/assets/{user-Aw6SqZpK.js → user-tg9kwvXU.js} +1 -1
- package/dist/client/assets/{workflow-CRjl6sOP.js → workflow-D6TrKvm2.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-BTMGn0Px.js +0 -1
- package/dist/client/assets/plugins-LyhHmrtr.js +0 -1
- package/dist/client/assets/tasks-C6cfAkGR.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DpWHrz5z.js +0 -1
- package/dist/client/assets/useQuery-YHvrmKkI.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cv31oWYI.js +0 -1
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/pg-pool/LICENSE +0 -21
- package/dist/server/node_modules/pg-pool/README.md +0 -357
- package/dist/server/node_modules/pg-pool/esm/index.mjs +0 -5
- package/dist/server/node_modules/pg-pool/index.js +0 -517
- package/dist/server/node_modules/pg-pool/package.json +0 -51
- package/dist/server/node_modules/pg-protocol/LICENSE +0 -21
- package/dist/server/node_modules/pg-protocol/README.md +0 -3
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/b.js +0 -23
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -15
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +0 -55
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +0 -16
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +0 -81
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +0 -530
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +0 -6
- package/dist/server/node_modules/pg-protocol/dist/index.js +0 -15
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +0 -162
- package/dist/server/node_modules/pg-protocol/dist/messages.js +0 -160
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +0 -252
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +0 -24
- package/dist/server/node_modules/pg-protocol/dist/parser.js +0 -324
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +0 -42
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +0 -189
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/esm/index.js +0 -11
- package/dist/server/node_modules/pg-protocol/package.json +0 -45
- package/dist/server/node_modules/pg-protocol/src/b.ts +0 -25
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +0 -58
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +0 -85
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +0 -575
- package/dist/server/node_modules/pg-protocol/src/index.ts +0 -11
- package/dist/server/node_modules/pg-protocol/src/messages.ts +0 -262
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +0 -276
- package/dist/server/node_modules/pg-protocol/src/parser.ts +0 -413
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +0 -274
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +0 -67
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +0 -166
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +0 -1
- package/dist/server/node_modules/pg-types/.travis.yml +0 -7
- package/dist/server/node_modules/pg-types/Makefile +0 -14
- package/dist/server/node_modules/pg-types/README.md +0 -75
- package/dist/server/node_modules/pg-types/index.d.ts +0 -137
- package/dist/server/node_modules/pg-types/index.js +0 -47
- package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
- package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
- package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
- package/dist/server/node_modules/pg-types/package.json +0 -42
- package/dist/server/node_modules/pg-types/test/index.js +0 -24
- package/dist/server/node_modules/pg-types/test/types.js +0 -597
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# postgres-array [](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)
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-bytea",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "1.0.1",
|
|
5
|
-
"description": "Postgres bytea parser",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-bytea",
|
|
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
|
-
"bytea",
|
|
21
|
-
"postgres",
|
|
22
|
-
"binary",
|
|
23
|
-
"parser"
|
|
24
|
-
],
|
|
25
|
-
"dependencies": {},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"tape": "^4.0.0",
|
|
28
|
-
"standard": "^4.0.0"
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"index.js",
|
|
32
|
-
"readme.md"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# postgres-bytea [](https://travis-ci.org/bendrucker/postgres-bytea)
|
|
2
|
-
|
|
3
|
-
> Postgres bytea parser
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install --save postgres-bytea
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var bytea = require('postgres-bytea');
|
|
17
|
-
bytea('\\000\\100\\200')
|
|
18
|
-
//=> buffer
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## API
|
|
22
|
-
|
|
23
|
-
#### `bytea(input)` -> `buffer`
|
|
24
|
-
|
|
25
|
-
##### input
|
|
26
|
-
|
|
27
|
-
*Required*
|
|
28
|
-
Type: `string`
|
|
29
|
-
|
|
30
|
-
A Postgres bytea binary string.
|
|
31
|
-
|
|
32
|
-
## License
|
|
33
|
-
|
|
34
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,116 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# postgres-date [](https://travis-ci.org/bendrucker/postgres-date) [](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)
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var extend = require('xtend/mutable')
|
|
4
|
-
|
|
5
|
-
module.exports = PostgresInterval
|
|
6
|
-
|
|
7
|
-
function PostgresInterval (raw) {
|
|
8
|
-
if (!(this instanceof PostgresInterval)) {
|
|
9
|
-
return new PostgresInterval(raw)
|
|
10
|
-
}
|
|
11
|
-
extend(this, parse(raw))
|
|
12
|
-
}
|
|
13
|
-
var properties = ['seconds', 'minutes', 'hours', 'days', 'months', 'years']
|
|
14
|
-
PostgresInterval.prototype.toPostgres = function () {
|
|
15
|
-
var filtered = properties.filter(this.hasOwnProperty, this)
|
|
16
|
-
|
|
17
|
-
// In addition to `properties`, we need to account for fractions of seconds.
|
|
18
|
-
if (this.milliseconds && filtered.indexOf('seconds') < 0) {
|
|
19
|
-
filtered.push('seconds')
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (filtered.length === 0) return '0'
|
|
23
|
-
return filtered
|
|
24
|
-
.map(function (property) {
|
|
25
|
-
var value = this[property] || 0
|
|
26
|
-
|
|
27
|
-
// Account for fractional part of seconds,
|
|
28
|
-
// remove trailing zeroes.
|
|
29
|
-
if (property === 'seconds' && this.milliseconds) {
|
|
30
|
-
value = (value + this.milliseconds / 1000).toFixed(6).replace(/\.?0+$/, '')
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return value + ' ' + property
|
|
34
|
-
}, this)
|
|
35
|
-
.join(' ')
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var propertiesISOEquivalent = {
|
|
39
|
-
years: 'Y',
|
|
40
|
-
months: 'M',
|
|
41
|
-
days: 'D',
|
|
42
|
-
hours: 'H',
|
|
43
|
-
minutes: 'M',
|
|
44
|
-
seconds: 'S'
|
|
45
|
-
}
|
|
46
|
-
var dateProperties = ['years', 'months', 'days']
|
|
47
|
-
var timeProperties = ['hours', 'minutes', 'seconds']
|
|
48
|
-
// according to ISO 8601
|
|
49
|
-
PostgresInterval.prototype.toISOString = PostgresInterval.prototype.toISO = function () {
|
|
50
|
-
var datePart = dateProperties
|
|
51
|
-
.map(buildProperty, this)
|
|
52
|
-
.join('')
|
|
53
|
-
|
|
54
|
-
var timePart = timeProperties
|
|
55
|
-
.map(buildProperty, this)
|
|
56
|
-
.join('')
|
|
57
|
-
|
|
58
|
-
return 'P' + datePart + 'T' + timePart
|
|
59
|
-
|
|
60
|
-
function buildProperty (property) {
|
|
61
|
-
var value = this[property] || 0
|
|
62
|
-
|
|
63
|
-
// Account for fractional part of seconds,
|
|
64
|
-
// remove trailing zeroes.
|
|
65
|
-
if (property === 'seconds' && this.milliseconds) {
|
|
66
|
-
value = (value + this.milliseconds / 1000).toFixed(6).replace(/0+$/, '')
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return value + propertiesISOEquivalent[property]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var NUMBER = '([+-]?\\d+)'
|
|
74
|
-
var YEAR = NUMBER + '\\s+years?'
|
|
75
|
-
var MONTH = NUMBER + '\\s+mons?'
|
|
76
|
-
var DAY = NUMBER + '\\s+days?'
|
|
77
|
-
var TIME = '([+-])?([\\d]*):(\\d\\d):(\\d\\d)\\.?(\\d{1,6})?'
|
|
78
|
-
var INTERVAL = new RegExp([YEAR, MONTH, DAY, TIME].map(function (regexString) {
|
|
79
|
-
return '(' + regexString + ')?'
|
|
80
|
-
})
|
|
81
|
-
.join('\\s*'))
|
|
82
|
-
|
|
83
|
-
// Positions of values in regex match
|
|
84
|
-
var positions = {
|
|
85
|
-
years: 2,
|
|
86
|
-
months: 4,
|
|
87
|
-
days: 6,
|
|
88
|
-
hours: 9,
|
|
89
|
-
minutes: 10,
|
|
90
|
-
seconds: 11,
|
|
91
|
-
milliseconds: 12
|
|
92
|
-
}
|
|
93
|
-
// We can use negative time
|
|
94
|
-
var negatives = ['hours', 'minutes', 'seconds', 'milliseconds']
|
|
95
|
-
|
|
96
|
-
function parseMilliseconds (fraction) {
|
|
97
|
-
// add omitted zeroes
|
|
98
|
-
var microseconds = fraction + '000000'.slice(fraction.length)
|
|
99
|
-
return parseInt(microseconds, 10) / 1000
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function parse (interval) {
|
|
103
|
-
if (!interval) return {}
|
|
104
|
-
var matches = INTERVAL.exec(interval)
|
|
105
|
-
var isNegative = matches[8] === '-'
|
|
106
|
-
return Object.keys(positions)
|
|
107
|
-
.reduce(function (parsed, property) {
|
|
108
|
-
var position = positions[property]
|
|
109
|
-
var value = matches[position]
|
|
110
|
-
// no empty string
|
|
111
|
-
if (!value) return parsed
|
|
112
|
-
// milliseconds are actually microseconds (up to 6 digits)
|
|
113
|
-
// with omitted trailing zeroes.
|
|
114
|
-
value = property === 'milliseconds'
|
|
115
|
-
? parseMilliseconds(value)
|
|
116
|
-
: parseInt(value, 10)
|
|
117
|
-
// no zeros
|
|
118
|
-
if (!value) return parsed
|
|
119
|
-
if (isNegative && ~negatives.indexOf(property)) {
|
|
120
|
-
value *= -1
|
|
121
|
-
}
|
|
122
|
-
parsed[property] = value
|
|
123
|
-
return parsed
|
|
124
|
-
}, {})
|
|
125
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-interval",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "1.2.0",
|
|
5
|
-
"description": "Parse Postgres interval columns",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-interval",
|
|
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
|
-
"interval",
|
|
22
|
-
"parser"
|
|
23
|
-
],
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"xtend": "^4.0.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"tape": "^4.0.0",
|
|
29
|
-
"standard": "^12.0.1"
|
|
30
|
-
},
|
|
31
|
-
"files": [
|
|
32
|
-
"index.js",
|
|
33
|
-
"index.d.ts",
|
|
34
|
-
"readme.md"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# postgres-interval [](https://travis-ci.org/bendrucker/postgres-interval) [](https://greenkeeper.io/)
|
|
2
|
-
|
|
3
|
-
> Parse Postgres interval columns
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install --save postgres-interval
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var parse = require('postgres-interval')
|
|
17
|
-
var interval = parse('01:02:03')
|
|
18
|
-
//=> {hours: 1, minutes: 2, seconds: 3}
|
|
19
|
-
interval.toPostgres()
|
|
20
|
-
// 3 seconds 2 minutes 1 hours
|
|
21
|
-
interval.toISO()
|
|
22
|
-
// P0Y0M0DT1H2M3S
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## API
|
|
26
|
-
|
|
27
|
-
#### `parse(pgInterval)` -> `interval`
|
|
28
|
-
|
|
29
|
-
##### pgInterval
|
|
30
|
-
|
|
31
|
-
*Required*
|
|
32
|
-
Type: `string`
|
|
33
|
-
|
|
34
|
-
A Postgres interval string.
|
|
35
|
-
|
|
36
|
-
#### `interval.toPostgres()` -> `string`
|
|
37
|
-
|
|
38
|
-
Returns an interval string. This allows the interval object to be passed into prepared statements.
|
|
39
|
-
|
|
40
|
-
#### `interval.toISOString()` -> `string`
|
|
41
|
-
|
|
42
|
-
Returns an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations) compliant string.
|
|
43
|
-
|
|
44
|
-
Also available as `interval.toISO()` for backwards compatibility.
|
|
45
|
-
|
|
46
|
-
## License
|
|
47
|
-
|
|
48
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|