decocms 2.277.1 → 2.278.0
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-ZN1y5-aw.js → AlertCircle-DUgLKRqD.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-BPki4rs6.js → ArrowNarrowLeft-kCQ-qIL4.js} +1 -1
- package/dist/client/assets/{CheckCircle-CzlD2NtZ.js → CheckCircle-DGqHVO6J.js} +1 -1
- package/dist/client/assets/{ChevronDown-BjlYfwkz.js → ChevronDown-B24A-aAH.js} +1 -1
- package/dist/client/assets/{ChevronRight-Ers_V2D1.js → ChevronRight-te-i08ST.js} +1 -1
- package/dist/client/assets/{ChevronUp-BFd66NER.js → ChevronUp-ClIw8oee.js} +1 -1
- package/dist/client/assets/{Container-BH-IjM7q.js → Container-BEpzzcWb.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Df1708RH.js → LinkExternal01-DGR8dD9K.js} +1 -1
- package/dist/client/assets/{Lock01-DC87zCkJ.js → Lock01-CgN6byUv.js} +1 -1
- package/dist/client/assets/{Palette-BAefAlJJ.js → Palette-hGvX_iIm.js} +1 -1
- package/dist/client/assets/{Play-8RSCt4_z.js → Play-B45MhCGv.js} +1 -1
- package/dist/client/assets/{Plus-D7R85tnb.js → Plus-DEi1gvs0.js} +1 -1
- package/dist/client/assets/{SearchMd-CuF0EE4i.js → SearchMd-Bb-t_BjN.js} +1 -1
- package/dist/client/assets/{Settings02-0biYSyip.js → Settings02-DqmMmEZU.js} +1 -1
- package/dist/client/assets/{Star01-DG4GVqjt.js → Star01-ByFKZL35.js} +1 -1
- package/dist/client/assets/{Sun-bNHtETAN.js → Sun-BSLTRNwf.js} +1 -1
- package/dist/client/assets/{Tool01-BYIP93fl.js → Tool01-A2H1ijQd.js} +1 -1
- package/dist/client/assets/{Trash01-DiVIK0OP.js → Trash01-Dtv8SktB.js} +1 -1
- package/dist/client/assets/{Upload01-1ZdG7oJK.js → Upload01-BnthyrUJ.js} +1 -1
- package/dist/client/assets/{User01-ZdNcPumq.js → User01-B6A46HmV.js} +1 -1
- package/dist/client/assets/{Users03-C4Ee_frB.js → Users03-SGJicyFL.js} +1 -1
- package/dist/client/assets/{X-DJVuZ58d.js → X-ZYbgpGnr.js} +1 -1
- package/dist/client/assets/{XCircle-C-PtnVDi.js → XCircle-CQXPNkKc.js} +1 -1
- package/dist/client/assets/{Zap-DFbFP4h9.js → Zap-CT4bYj4K.js} +1 -1
- package/dist/client/assets/{ZapSquare-Bn1DnHGa.js → ZapSquare-BIpgOhjL.js} +1 -1
- package/dist/client/assets/{accordion-BKyKwvi4.js → accordion-DlHNJyYy.js} +1 -1
- package/dist/client/assets/{agent-icon-BCqNXHrJ.js → agent-icon-BPm7_0O4.js} +1 -1
- package/dist/client/assets/{agents-list-st6j9oA0.js → agents-list-DDy9vjua.js} +1 -1
- package/dist/client/assets/ai-providers-B4zJ5gIB.js +1 -0
- package/dist/client/assets/{alert-dialog-Cce2zNSt.js → alert-dialog-BYfF9kq9.js} +1 -1
- package/dist/client/assets/{auth-catchall-DOZwh2ME.js → auth-catchall-IXiVEa8k.js} +1 -1
- package/dist/client/assets/{automation-list-row-D3uOWcPZ.js → automation-list-row-DdODiuWb.js} +1 -1
- package/dist/client/assets/{automations-_4yX33cm.js → automations-DaQmwJ_-.js} +1 -1
- package/dist/client/assets/{avatar-DtO_DjAh.js → avatar-Cd7pOZ3k.js} +1 -1
- package/dist/client/assets/{badge-y-hsEihY.js → badge-XxgdnuAZ.js} +1 -1
- package/dist/client/assets/{brand-context-zVTleDgN.js → brand-context-gdbCtW1V.js} +1 -1
- package/dist/client/assets/{card-Dgjac7df.js → card-ohyYL2jd.js} +1 -1
- package/dist/client/assets/{chat-context-jZHB4zZq.js → chat-context-BBBi8D2H.js} +1 -1
- package/dist/client/assets/{checkbox-BK1FOOnx.js → checkbox-CV6BjILT.js} +1 -1
- package/dist/client/assets/{collection-detail-x76KaTbs.js → collection-detail-BDC-qOMT.js} +1 -1
- package/dist/client/assets/{collection-display-button-Gr_qxtzC.js → collection-display-button-Dzc3fhoU.js} +1 -1
- package/dist/client/assets/{collection-search-9bv6LiW5.js → collection-search-RK7vbvUN.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BD46An7o.js → collection-table-wrapper-DSiZO_Rx.js} +1 -1
- package/dist/client/assets/{collection-tabs-DBij18bF.js → collection-tabs-BThF2_kc.js} +1 -1
- package/dist/client/assets/{collections-BZR-yDlA.js → collections-D4PM7cfP.js} +1 -1
- package/dist/client/assets/{command-DsPZNxzv.js → command-D-rn-MCf.js} +1 -1
- package/dist/client/assets/{connection-card-Cavj0z1s.js → connection-card-C77H1oWc.js} +1 -1
- package/dist/client/assets/{connection-detail-B_MywG2r.js → connection-detail-B3eR0g_I.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BickqfM0.js → connection-form-helpers-C9kgqFQD.js} +1 -1
- package/dist/client/assets/{connections-Di7YhHpL.js → connections-DLnzLvDf.js} +1 -1
- package/dist/client/assets/{constants-B6BlNNCv.js → constants-CBMPX4Nz.js} +1 -1
- package/dist/client/assets/{constants-D4bpaQIy.js → constants-DV3gfGwj.js} +1 -1
- package/dist/client/assets/{dialog-CrC-U752.js → dialog-LWRIZTr3.js} +1 -1
- package/dist/client/assets/{drawer-D164IDvt.js → drawer-D1pg0ocH.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BCSsOhoD.js → dropdown-menu-DLn7MpGb.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-PtppgAts.js → dynamic-plugin-layout-BSXEX5vh.js} +1 -1
- package/dist/client/assets/{empty-state-Burt6Pjq.js → empty-state-DkrYdGBA.js} +1 -1
- package/dist/client/assets/{empty-state-CMAHTHUe.js → empty-state-t8Y8fpWZ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CIGH4JOA.js → extract-connection-data-BhJroSSL.js} +1 -1
- package/dist/client/assets/{features-DkrqQmvn.js → features-B5cMQOy4.js} +1 -1
- package/dist/client/assets/{form-NpftjNqr.js → form-DYWw7BDT.js} +1 -1
- package/dist/client/assets/{general-CPi9v1zL.js → general-Bx99MR-8.js} +1 -1
- package/dist/client/assets/{index-CSCpQ3nk.js → index-9mpD21lu.js} +1 -1
- package/dist/client/assets/{index-CmG3u4sk.js → index-BAPPcxpC.js} +1 -1
- package/dist/client/assets/{index-D0eg_rFC.js → index-CAeiwvn1.js} +2 -2
- package/dist/client/assets/{index-BabWp460.js → index-CTb5Ivgi.js} +1 -1
- package/dist/client/assets/{index-ClWc2yds.js → index-DNVFRTN5.js} +1 -1
- package/dist/client/assets/{index-CMJ6GQ7C.js → index-DQr1bBCj.js} +1 -1
- package/dist/client/assets/{index-MDHGBKc3.js → index-DphB1nct.js} +1 -1
- package/dist/client/assets/{index-C7Syt5sm.js → index-Ds-JIDUi.js} +4 -4
- package/dist/client/assets/{index-DE-s5va1.js → index-RqKqA1J6.js} +1 -1
- package/dist/client/assets/{index-CESHAiFx.js → index-dR4PVdxt.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CpBPXtl6.js → infiniteQueryObserver-DgmIeDDw.js} +1 -1
- package/dist/client/assets/{input-B0rO4kCw.js → input-bSmRFU9Y.js} +1 -1
- package/dist/client/assets/{integration-icon-yOwsHf6q.js → integration-icon-BCfLG4yN.js} +1 -1
- package/dist/client/assets/{label-DEuSkBBi.js → label-DHm3L_Pw.js} +1 -1
- package/dist/client/assets/{layout-CEdjROI5.js → layout-Bi-oKYFz.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-BMnsbvdl.js → lean-canvas-recruit-modal-Y-73eqIT.js} +1 -1
- package/dist/client/assets/{login-vu3mdB5z.js → login-oTC9k0u0.js} +1 -1
- package/dist/client/assets/{members-DtGUx-F1.js → members-DXtluaQF.js} +1 -1
- package/dist/client/assets/{monaco-editor-wLqdDZ5S.js → monaco-editor-J6gXCbSf.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-5HVh1Gjz.js → monitoring-stats-row-COftXD12.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-W7GdFBbP.js → oauth-callback-ai-provider-BG5KUhrn.js} +1 -1
- package/dist/client/assets/{oauth-callback-DXN54EUy.js → oauth-callback-iJ681_o2.js} +1 -1
- package/dist/client/assets/{onboarding-BeW6omQ6.js → onboarding-CaPHCpYM.js} +1 -1
- package/dist/client/assets/{org-layout-Cp3RupKt.js → org-layout-tpbZft4k.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Bnfoicc4.js → org-plugin-layout-DKUGssvU.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-0LwQ6R3R.js → plugin-empty-state-CjLoe77j.js} +1 -1
- package/dist/client/assets/{plugin-header-BYiR1ua4.js → plugin-header-D-DgJiT_.js} +1 -1
- package/dist/client/assets/{plugin-layout-DCOghZWx.js → plugin-layout-BxoJjnAH.js} +1 -1
- package/dist/client/assets/{popover-DUh9iDm9.js → popover-QXf8PVl2.js} +1 -1
- package/dist/client/assets/{profile-Bk0bLa4g.js → profile-BXxDmHas.js} +1 -1
- package/dist/client/assets/project-app-view-CpeukqHC.js +1 -0
- package/dist/client/assets/registry-BwQkRfy5.js +2 -0
- package/dist/client/assets/{registry-layout-TU21GgUM.js → registry-layout-Dp1ULu6N.js} +1 -1
- package/dist/client/assets/{required-auth-layout-eS3mZHM3.js → required-auth-layout-BQkYfP3n.js} +1 -1
- package/dist/client/assets/{reset-password-nmqGdy62.js → reset-password-CU4ON9vN.js} +1 -1
- package/dist/client/assets/{scroll-area-BPvcbDba.js → scroll-area-CM6U9wSm.js} +1 -1
- package/dist/client/assets/{search-input-DuumYWEB.js → search-input-D1anatj6.js} +1 -1
- package/dist/client/assets/{select-DV6Y5fbl.js → select-DE9H0LNP.js} +1 -1
- package/dist/client/assets/{select-model-BhJ9eJ30.js → select-model-C72ySuI7.js} +1 -1
- package/dist/client/assets/{settings-layout-C6WZX8H8.js → settings-layout-BcGWWnw4.js} +1 -1
- package/dist/client/assets/{shell-layout-Bx85tvr4.js → shell-layout-DbjX6AWI.js} +1 -1
- package/dist/client/assets/{skeleton-C_5kHpZw.js → skeleton-DJZQh5Pk.js} +1 -1
- package/dist/client/assets/{sso-Du9xnoxY.js → sso-330TvduR.js} +1 -1
- package/dist/client/assets/{store-DFSqH5M5.js → store-CValARVk.js} +1 -1
- package/dist/client/assets/store-registry-DxTZD8aD.js +2 -0
- package/dist/client/assets/{switch-CbAhbOmy.js → switch-DXZpP3PP.js} +1 -1
- package/dist/client/assets/{table-D03jqlLZ.js → table-BC1vaa2h.js} +1 -1
- package/dist/client/assets/{tabs-DtdegoWH.js → tabs-y_vyQ1bZ.js} +1 -1
- package/dist/client/assets/{task-status-BgBSzATn.js → task-status-u0ZgPY9s.js} +31 -31
- package/dist/client/assets/{textarea-D_j-5IAu.js → textarea-BKBUm0h-.js} +1 -1
- package/dist/client/assets/{toggle-group-DDh5VZ6f.js → toggle-group-BGNuzMLR.js} +1 -1
- package/dist/client/assets/{tools-list-CJJNUxfe.js → tools-list-DnYw-GLl.js} +1 -1
- package/dist/client/assets/{types-CXkK-iOI.js → types-_e2R6uHw.js} +14 -14
- package/dist/client/assets/{use-ai-providers-ElYJdGU0.js → use-ai-providers-DA7fBB8t.js} +1 -1
- package/dist/client/assets/{use-collections-ByN3iK_-.js → use-collections-B56DgGhQ.js} +1 -1
- package/dist/client/assets/{use-connection-DS4JMmfK.js → use-connection-DmlqhQzU.js} +1 -1
- package/dist/client/assets/{use-copy-1vU78qsX.js → use-copy-yDy37O6x.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C0ZtxKxG.js → use-create-virtual-mcp-St-hxc3T.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Dv7rn_zQ.js → use-decopilot-events-C6hMvsnN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CnPoPnuN.js → use-delete-connection-9Vw8o7eu.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D9oxXo_y.js → use-infinite-scroll-BDoBJohW.js} +1 -1
- package/dist/client/assets/{use-list-state-Bt2BkuK4.js → use-list-state-BSaQM_cf.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CpSp-YOn.js → use-mcp-tools-CrNS6JKZ.js} +1 -1
- package/dist/client/assets/{use-members-CN2GRsgZ.js → use-members-CuGMiyzy.js} +1 -1
- package/dist/client/assets/{use-mobile-D5xdghWW.js → use-mobile-Dcrjnr8n.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DC2aXNSM.js → use-navigate-to-agent-CK6LXIOn.js} +1 -1
- package/dist/client/assets/{use-org-sso-HLMtUxyI.js → use-org-sso-CDZI8wr6.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CRVxUE8d.js → use-organization-settings-Dz4Ob_xk.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DiPCzdOz.js → use-registry-connections-C4iSg1no.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CepswEV9.js → use-status-sounds-BpX9On4z.js} +1 -1
- package/dist/client/assets/{use-tasks-Cvm0js2U.js → use-tasks-B1E3D-6c.js} +1 -1
- package/dist/client/assets/{use-view-mode-Qb4bThwm.js → use-view-mode-OuDPu3JY.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DmXmoSMd.js → use-virtual-mcp-C84ySRY_.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C63zt5p0.js +1 -0
- package/dist/client/assets/{user-rEzOpeDj.js → user-D-ueNiJ9.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-EUXERI9v.js → view-mode-toggle-JzxZIaam.js} +1 -1
- package/dist/client/assets/{workflow-CD3p-F8j.js → workflow-DILBdxqV.js} +1 -1
- package/dist/client/assets/workflow-detail-CbBLr-jD.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +2 -0
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +4 -0
- package/dist/server/node_modules/convert-to-spaces/license +21 -0
- package/dist/server/node_modules/convert-to-spaces/package.json +40 -0
- package/dist/server/node_modules/convert-to-spaces/readme.md +39 -0
- package/dist/server/node_modules/environment/index.d.ts +74 -0
- package/dist/server/node_modules/environment/index.js +47 -0
- package/dist/server/node_modules/environment/package.json +74 -0
- package/dist/server/node_modules/environment/readme.md +94 -0
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +18 -0
- package/dist/server/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/server/node_modules/escape-string-regexp/license +9 -0
- package/dist/server/node_modules/escape-string-regexp/package.json +43 -0
- package/dist/server/node_modules/escape-string-regexp/readme.md +29 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/server/node_modules/{figures → is-fullwidth-code-point}/package.json +20 -16
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -0
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/server/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/server/node_modules/is-unicode-supported/license +9 -0
- package/dist/server/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/server/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/server/node_modules/mimic-fn/index.d.ts +54 -0
- package/dist/server/node_modules/mimic-fn/index.js +13 -0
- package/dist/server/node_modules/mimic-fn/license +9 -0
- package/dist/server/node_modules/mimic-fn/package.json +42 -0
- package/dist/server/node_modules/mimic-fn/readme.md +69 -0
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/restore-cursor/index.d.ts +11 -0
- package/dist/server/node_modules/restore-cursor/index.js +11 -0
- package/dist/server/node_modules/restore-cursor/license +9 -0
- package/dist/server/node_modules/restore-cursor/package.json +55 -0
- package/dist/server/node_modules/restore-cursor/readme.md +31 -0
- package/dist/server/node_modules/string-width/index.d.ts +39 -0
- package/dist/server/node_modules/string-width/index.js +82 -0
- package/dist/server/node_modules/string-width/license +9 -0
- package/dist/server/node_modules/string-width/package.json +64 -0
- package/dist/server/node_modules/string-width/readme.md +66 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-Cq8P81dq.js +0 -1
- package/dist/client/assets/project-app-view-BtOMb74o.js +0 -1
- package/dist/client/assets/registry-CorCxIMC.js +0 -2
- package/dist/client/assets/store-registry-ysGrUhGY.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BmiRpP8z.js +0 -1
- package/dist/client/assets/workflow-detail-DH47DpCR.js +0 -1
- package/dist/server/node_modules/figures/index.d.ts +0 -279
- package/dist/server/node_modules/figures/index.js +0 -292
- package/dist/server/node_modules/figures/readme.md +0 -337
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- /package/dist/server/node_modules/{figures → environment}/license +0 -0
- /package/dist/server/node_modules/{pg → pg-cloudflare}/LICENSE +0 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path = require('path')
|
|
4
|
+
, Stream = require('stream').Stream
|
|
5
|
+
, split = require('split2')
|
|
6
|
+
, util = require('util')
|
|
7
|
+
, defaultPort = 5432
|
|
8
|
+
, isWin = (process.platform === 'win32')
|
|
9
|
+
, warnStream = process.stderr
|
|
10
|
+
;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var S_IRWXG = 56 // 00070(8)
|
|
14
|
+
, S_IRWXO = 7 // 00007(8)
|
|
15
|
+
, S_IFMT = 61440 // 00170000(8)
|
|
16
|
+
, S_IFREG = 32768 // 0100000(8)
|
|
17
|
+
;
|
|
18
|
+
function isRegFile(mode) {
|
|
19
|
+
return ((mode & S_IFMT) == S_IFREG);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var fieldNames = [ 'host', 'port', 'database', 'user', 'password' ];
|
|
23
|
+
var nrOfFields = fieldNames.length;
|
|
24
|
+
var passKey = fieldNames[ nrOfFields -1 ];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
function warn() {
|
|
28
|
+
var isWritable = (
|
|
29
|
+
warnStream instanceof Stream &&
|
|
30
|
+
true === warnStream.writable
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
if (isWritable) {
|
|
34
|
+
var args = Array.prototype.slice.call(arguments).concat("\n");
|
|
35
|
+
warnStream.write( util.format.apply(util, args) );
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
Object.defineProperty(module.exports, 'isWin', {
|
|
41
|
+
get : function() {
|
|
42
|
+
return isWin;
|
|
43
|
+
} ,
|
|
44
|
+
set : function(val) {
|
|
45
|
+
isWin = val;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
module.exports.warnTo = function(stream) {
|
|
51
|
+
var old = warnStream;
|
|
52
|
+
warnStream = stream;
|
|
53
|
+
return old;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
module.exports.getFileName = function(rawEnv){
|
|
57
|
+
var env = rawEnv || process.env;
|
|
58
|
+
var file = env.PGPASSFILE || (
|
|
59
|
+
isWin ?
|
|
60
|
+
path.join( env.APPDATA || './' , 'postgresql', 'pgpass.conf' ) :
|
|
61
|
+
path.join( env.HOME || './', '.pgpass' )
|
|
62
|
+
);
|
|
63
|
+
return file;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
module.exports.usePgPass = function(stats, fname) {
|
|
67
|
+
if (Object.prototype.hasOwnProperty.call(process.env, 'PGPASSWORD')) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (isWin) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
fname = fname || '<unkn>';
|
|
76
|
+
|
|
77
|
+
if (! isRegFile(stats.mode)) {
|
|
78
|
+
warn('WARNING: password file "%s" is not a plain file', fname);
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (stats.mode & (S_IRWXG | S_IRWXO)) {
|
|
83
|
+
/* If password file is insecure, alert the user and ignore it. */
|
|
84
|
+
warn('WARNING: password file "%s" has group or world access; permissions should be u=rw (0600) or less', fname);
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return true;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
var matcher = module.exports.match = function(connInfo, entry) {
|
|
93
|
+
return fieldNames.slice(0, -1).reduce(function(prev, field, idx){
|
|
94
|
+
if (idx == 1) {
|
|
95
|
+
// the port
|
|
96
|
+
if ( Number( connInfo[field] || defaultPort ) === Number( entry[field] ) ) {
|
|
97
|
+
return prev && true;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return prev && (
|
|
101
|
+
entry[field] === '*' ||
|
|
102
|
+
entry[field] === connInfo[field]
|
|
103
|
+
);
|
|
104
|
+
}, true);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
module.exports.getPassword = function(connInfo, stream, cb) {
|
|
109
|
+
var pass;
|
|
110
|
+
var lineStream = stream.pipe(split());
|
|
111
|
+
|
|
112
|
+
function onLine(line) {
|
|
113
|
+
var entry = parseLine(line);
|
|
114
|
+
if (entry && isValidEntry(entry) && matcher(connInfo, entry)) {
|
|
115
|
+
pass = entry[passKey];
|
|
116
|
+
lineStream.end(); // -> calls onEnd(), but pass is set now
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var onEnd = function() {
|
|
121
|
+
stream.destroy();
|
|
122
|
+
cb(pass);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
var onErr = function(err) {
|
|
126
|
+
stream.destroy();
|
|
127
|
+
warn('WARNING: error on reading file: %s', err);
|
|
128
|
+
cb(undefined);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
stream.on('error', onErr);
|
|
132
|
+
lineStream
|
|
133
|
+
.on('data', onLine)
|
|
134
|
+
.on('end', onEnd)
|
|
135
|
+
.on('error', onErr)
|
|
136
|
+
;
|
|
137
|
+
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
var parseLine = module.exports.parseLine = function(line) {
|
|
142
|
+
if (line.length < 11 || line.match(/^\s+#/)) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
var curChar = '';
|
|
147
|
+
var prevChar = '';
|
|
148
|
+
var fieldIdx = 0;
|
|
149
|
+
var startIdx = 0;
|
|
150
|
+
var endIdx = 0;
|
|
151
|
+
var obj = {};
|
|
152
|
+
var isLastField = false;
|
|
153
|
+
var addToObj = function(idx, i0, i1) {
|
|
154
|
+
var field = line.substring(i0, i1);
|
|
155
|
+
|
|
156
|
+
if (! Object.hasOwnProperty.call(process.env, 'PGPASS_NO_DEESCAPE')) {
|
|
157
|
+
field = field.replace(/\\([:\\])/g, '$1');
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
obj[ fieldNames[idx] ] = field;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
for (var i = 0 ; i < line.length-1 ; i += 1) {
|
|
164
|
+
curChar = line.charAt(i+1);
|
|
165
|
+
prevChar = line.charAt(i);
|
|
166
|
+
|
|
167
|
+
isLastField = (fieldIdx == nrOfFields-1);
|
|
168
|
+
|
|
169
|
+
if (isLastField) {
|
|
170
|
+
addToObj(fieldIdx, startIdx);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (i >= 0 && curChar == ':' && prevChar !== '\\') {
|
|
175
|
+
addToObj(fieldIdx, startIdx, i+1);
|
|
176
|
+
|
|
177
|
+
startIdx = i+2;
|
|
178
|
+
fieldIdx += 1;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
obj = ( Object.keys(obj).length === nrOfFields ) ? obj : null;
|
|
183
|
+
|
|
184
|
+
return obj;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
var isValidEntry = module.exports.isValidEntry = function(entry){
|
|
189
|
+
var rules = {
|
|
190
|
+
// host
|
|
191
|
+
0 : function(x){
|
|
192
|
+
return x.length > 0;
|
|
193
|
+
} ,
|
|
194
|
+
// port
|
|
195
|
+
1 : function(x){
|
|
196
|
+
if (x === '*') {
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
x = Number(x);
|
|
200
|
+
return (
|
|
201
|
+
isFinite(x) &&
|
|
202
|
+
x > 0 &&
|
|
203
|
+
x < 9007199254740992 &&
|
|
204
|
+
Math.floor(x) === x
|
|
205
|
+
);
|
|
206
|
+
} ,
|
|
207
|
+
// database
|
|
208
|
+
2 : function(x){
|
|
209
|
+
return x.length > 0;
|
|
210
|
+
} ,
|
|
211
|
+
// username
|
|
212
|
+
3 : function(x){
|
|
213
|
+
return x.length > 0;
|
|
214
|
+
} ,
|
|
215
|
+
// password
|
|
216
|
+
4 : function(x){
|
|
217
|
+
return x.length > 0;
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
for (var idx = 0 ; idx < fieldNames.length ; idx += 1) {
|
|
222
|
+
var rule = rules[idx];
|
|
223
|
+
var value = entry[ fieldNames[idx] ] || '';
|
|
224
|
+
|
|
225
|
+
var res = rule(value);
|
|
226
|
+
if (!res) {
|
|
227
|
+
return false;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return true;
|
|
232
|
+
};
|
|
233
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path = require('path')
|
|
4
|
+
, fs = require('fs')
|
|
5
|
+
, helper = require('./helper.js')
|
|
6
|
+
;
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
module.exports = function(connInfo, cb) {
|
|
10
|
+
var file = helper.getFileName();
|
|
11
|
+
|
|
12
|
+
fs.stat(file, function(err, stat){
|
|
13
|
+
if (err || !helper.usePgPass(stat, file)) {
|
|
14
|
+
return cb(undefined);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var st = fs.createReadStream(file);
|
|
18
|
+
|
|
19
|
+
helper.getPassword(connInfo, st, cb);
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
module.exports.warnTo = helper.warnTo;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pgpass",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Module for reading .pgpass",
|
|
5
|
+
"main": "lib/index",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"pretest": "chmod 600 ./test/_pgpass",
|
|
8
|
+
"_hint": "jshint --exclude node_modules --verbose lib test",
|
|
9
|
+
"_test": "mocha --recursive -R list",
|
|
10
|
+
"_covered_test": "nyc --reporter html --reporter text \"$npm_execpath\" run _test",
|
|
11
|
+
"test": "\"$npm_execpath\" run _hint && \"$npm_execpath\" run _covered_test"
|
|
12
|
+
},
|
|
13
|
+
"author": "Hannes Hörl <hannes.hoerl+pgpass@snowreporter.com>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"split2": "^4.1.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"jshint": "^2.12.0",
|
|
20
|
+
"mocha": "^8.2.0",
|
|
21
|
+
"nyc": "^15.1.0",
|
|
22
|
+
"pg": "^8.4.1",
|
|
23
|
+
"pg-escape": "^0.2.0",
|
|
24
|
+
"pg-native": "3.0.0",
|
|
25
|
+
"resumer": "0.0.0",
|
|
26
|
+
"tmp": "^0.2.1",
|
|
27
|
+
"which": "^2.0.2"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"postgres",
|
|
31
|
+
"pg",
|
|
32
|
+
"pgpass",
|
|
33
|
+
"password",
|
|
34
|
+
"postgresql"
|
|
35
|
+
],
|
|
36
|
+
"bugs": "https://github.com/hoegaarden/pgpass/issues",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/hoegaarden/pgpass.git"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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 [](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,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
|
+
}
|