decocms 2.185.0 → 2.186.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-BO0kzcBv.js → AlertCircle-vb3SCqTR.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CrI91Scn.js → ArrowLeft-UgY0HH3_.js} +1 -1
- package/dist/client/assets/{ArrowUp-FfROzAyV.js → ArrowUp-BQ0GwMhq.js} +1 -1
- package/dist/client/assets/{Check-BXqqUm0J.js → Check-EBIfpKfk.js} +1 -1
- package/dist/client/assets/{ChevronDown-B6V9GzuP.js → ChevronDown-TWcZ4kJ9.js} +1 -1
- package/dist/client/assets/{ChevronRight-BSFLHUtv.js → ChevronRight-BpkTLj3y.js} +1 -1
- package/dist/client/assets/{ChevronUp-BYpnL-9F.js → ChevronUp-DMmIo8iD.js} +1 -1
- package/dist/client/assets/{Container-BZeblIrR.js → Container-Dt8UalAF.js} +1 -1
- package/dist/client/assets/{Dataflow03-CTwEKVcs.js → Dataflow03-DLl2RzQp.js} +1 -1
- package/dist/client/assets/{Download01-D7T-WxGL.js → Download01-Dw7P9-4i.js} +1 -1
- package/dist/client/assets/{FolderClosed-BPzjOG-5.js → FolderClosed-D8TIwtpx.js} +1 -1
- package/dist/client/assets/{Grid01-Bwsn0nh2.js → Grid01-CmDjkAry.js} +1 -1
- package/dist/client/assets/{List-Bq1Yvo6z.js → List-3ufZUeAi.js} +1 -1
- package/dist/client/assets/{Loading01-DCKwAh-U.js → Loading01-oEWzHjsc.js} +1 -1
- package/dist/client/assets/{Play-Bw_aeuhq.js → Play-eTAbgb-w.js} +1 -1
- package/dist/client/assets/{Plus-BW2fNoEy.js → Plus-BA7Rfpr-.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-YXuL16Jx.js → RefreshCcw01-B6mp4o28.js} +1 -1
- package/dist/client/assets/{SearchMd-C_bEWIlQ.js → SearchMd-4_up1TLU.js} +1 -1
- package/dist/client/assets/{Settings01-BoOhxJJj.js → Settings01-lbicxKIn.js} +1 -1
- package/dist/client/assets/{Trash01-D9O3UWX6.js → Trash01-eIuymuN8.js} +1 -1
- package/dist/client/assets/{Type01-CjsMMlh6.js → Type01-DCWXkwdC.js} +1 -1
- package/dist/client/assets/{Upload01-Bpjo_QI4.js → Upload01-BSFuoakK.js} +1 -1
- package/dist/client/assets/{User01-BRC1qZ-u.js → User01-DN32uzYn.js} +1 -1
- package/dist/client/assets/{VideoRecorder-DkcbdsZk.js → VideoRecorder-BQGrK2bZ.js} +1 -1
- package/dist/client/assets/{X-BL1q6dsE.js → X-DaCoKlVZ.js} +1 -1
- package/dist/client/assets/{XCircle-DxcmI8rf.js → XCircle-DZHeGFcX.js} +1 -1
- package/dist/client/assets/{XClose-CslgPORS.js → XClose-D_0o1f9F.js} +1 -1
- package/dist/client/assets/{Zap-DERWnfoj.js → Zap-D0bIVVjW.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Dq0Ojrk0.js → agent-connections-preview-BI-eeQCx.js} +1 -1
- package/dist/client/assets/{agent-detail-YxF3rQGf.js → agent-detail-Cawai6IA.js} +1 -1
- package/dist/client/assets/{agents-C2G5xDCJ.js → agents-BoYaKa_N.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-BbTN2hb6.js → ai-providers-logos-D_53AnVk.js} +1 -1
- package/dist/client/assets/{alert-dialog-yWVMNVBj.js → alert-dialog-C5dI6ng4.js} +1 -1
- package/dist/client/assets/{auth-catchall-CTzVQ5KH.js → auth-catchall-O2S6cfz6.js} +1 -1
- package/dist/client/assets/{automation-detail-MKjn-Qas.js → automation-detail-BlNEANzL.js} +1 -1
- package/dist/client/assets/{automations-DpKH4m8F.js → automations-BQAwNfu2.js} +1 -1
- package/dist/client/assets/{avatar-87qJKKK_.js → avatar-CojTV7kK.js} +1 -1
- package/dist/client/assets/{badge-C2jHxnoS.js → badge-Cj2aOlgl.js} +1 -1
- package/dist/client/assets/{binder-BaB8rAtx.js → binder-2uXLdWyj.js} +1 -1
- package/dist/client/assets/{breadcrumb-CBpEGiAs.js → breadcrumb--82F68FS.js} +1 -1
- package/dist/client/assets/{card-CUrYBr2J.js → card-ChQFWIen.js} +1 -1
- package/dist/client/assets/{checkbox-RHvkU3ym.js → checkbox-D_kbciPC.js} +1 -1
- package/dist/client/assets/{collapsible-BaB71DBr.js → collapsible-Doonaq5y.js} +1 -1
- package/dist/client/assets/{collection-detail-iBwR9WNE.js → collection-detail-BLWjMoWG.js} +1 -1
- package/dist/client/assets/{collection-display-button-BetF6DhL.js → collection-display-button-B_YB0Pvz.js} +1 -1
- package/dist/client/assets/{collection-search-DcVVKJ8Q.js → collection-search-BWbixDRp.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D9WWtdCi.js → collection-table-wrapper-DQMCUU4F.js} +1 -1
- package/dist/client/assets/{collection-tabs-Df3Ptc0I.js → collection-tabs-BnCzVfgA.js} +1 -1
- package/dist/client/assets/{command-CMOZJSSv.js → command-CtOWm1VV.js} +1 -1
- package/dist/client/assets/{connection-card-CKJwNgpO.js → connection-card-DcT51RGy.js} +1 -1
- package/dist/client/assets/{connection-detail-Dbycfmu5.js → connection-detail-BRK14vIh.js} +1 -1
- package/dist/client/assets/{connections-jKPi1hZg.js → connections-D2sLUHTG.js} +1 -1
- package/dist/client/assets/constants-BLFOykPL.js +1 -0
- package/dist/client/assets/{constants-Dzy_AMuL.js → constants-DEVLPir8.js} +1 -1
- package/dist/client/assets/{context-BL_7JbXZ.js → context-BPeBGjOy.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cycga0XC.js → create-organization-dialog-R77KhBvZ.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BRQDkCBr.js → create-project-dialog-D41xkdsb.js} +1 -1
- package/dist/client/assets/{danger-D5sT_SDt.js → danger-zX3Qk8cM.js} +1 -1
- package/dist/client/assets/{danger-zone-CI7wNXdQ.js → danger-zone-DqYkGDIc.js} +1 -1
- package/dist/client/assets/{dependencies-XXGkpDMX.js → dependencies-9-wz4Xxc.js} +1 -1
- package/dist/client/assets/{dialog-Dmm_af5q.js → dialog-BCMFAhkI.js} +1 -1
- package/dist/client/assets/{drawer-SktUP7-X.js → drawer-Bl6NlnaH.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BtgYu0Kc.js → dropdown-menu-BbHSISkN.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DncjSb8M.js → dynamic-plugin-layout-BIILduy1.js} +1 -1
- package/dist/client/assets/{editable-task-title-DBtH_3H-.js → editable-task-title-Br5O_iLC.js} +1 -1
- package/dist/client/assets/{empty-state-BgKAQr0C.js → empty-state-5noOSGfK.js} +1 -1
- package/dist/client/assets/{empty-state-Cx44yC3Y.js → empty-state-C0dwe4U0.js} +1 -1
- package/dist/client/assets/{env-vars-editor-DPFQeE92.js → env-vars-editor-CmxN_shK.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Zw5RYEyS.js → extract-connection-data-DJbja1-q.js} +1 -1
- package/dist/client/assets/{file-browser-AWmMc57j.js → file-browser-DUjv8sIJ.js} +2 -2
- package/dist/client/assets/{form-Obbe7UIk.js → form-DUoo-ylF.js} +1 -1
- package/dist/client/assets/{general-DDuzkv9d.js → general-CGJ44hLj.js} +1 -1
- package/dist/client/assets/{grid-view-DsTxgJvN.js → grid-view-BoGBtir5.js} +1 -1
- package/dist/client/assets/{home-C1G2fDyc.js → home-C0TXQswt.js} +1 -1
- package/dist/client/assets/{index-75eZ1uI1.js → index-BHTlDqaD.js} +1 -1
- package/dist/client/assets/{index-DLW7tZdu.js → index-BKxenrdO.js} +3 -3
- package/dist/client/assets/{index-CUtX0cOT.js → index-BZ1qyalZ.js} +1 -1
- package/dist/client/assets/{index-CDNLqNNq.js → index-C7rxOK6C.js} +1 -1
- package/dist/client/assets/{index-C0Ne6xGI.js → index-CJahu32N.js} +1 -1
- package/dist/client/assets/{index-CdQYIu_6.js → index-D-VE8zlf.js} +1 -1
- package/dist/client/assets/{index-B1ylaSc7.js → index-D73K8P0E.js} +1 -1
- package/dist/client/assets/{index-BtvKqHu_.js → index-DHg1fc5U.js} +1 -1
- package/dist/client/assets/{index-CdK7iTUb.js → index-DaynUkW8.js} +1 -1
- package/dist/client/assets/{index-DCtU4ndp.js → index-Do3azGem.js} +1 -1
- package/dist/client/assets/{index-CQPlxt4u.js → index-hk9wzRwg.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BdQSrFrR.js → infiniteQueryObserver-D-mOGz06.js} +1 -1
- package/dist/client/assets/{input-DgJ0xjPE.js → input-BOFUz0aj.js} +1 -1
- package/dist/client/assets/{integration-icon-C-I4Z6Dk.js → integration-icon-DgW660ho.js} +1 -1
- package/dist/client/assets/{label-BL4fRnZZ.js → label-CwYk_3Ey.js} +1 -1
- package/dist/client/assets/{layout-DAuICUV3.js → layout-C3AUYf3J.js} +1 -1
- package/dist/client/assets/{layout-p-PoyTJz.js → layout-DAeDMG0b.js} +1 -1
- package/dist/client/assets/{login-Bvsz1l56.js → login-DuIR9S1j.js} +1 -1
- package/dist/client/assets/{logo-upload-CGF8q63h.js → logo-upload-CgauH7P2.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DzztYEVX.js → mcp-app-renderer-DGEXm5IH.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Dz2MeUmM.js → mcp-server-card-CK4sGKdu.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-cX9p8Afl.js → mcp-server-detail-D69tJNJ-.js} +2 -2
- package/dist/client/assets/{members-BX_g15fi.js → members-BE0-LX8z.js} +1 -1
- package/dist/client/assets/{monaco-editor-DX4p-sBy.js → monaco-editor-DKgjhGyK.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-cUuCGr6O.js → monitoring-dashboard-edit-BU6wqp6k.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-DFc0vQzd.js → monitoring-dashboard-view-DpgR3HBD.js} +1 -1
- package/dist/client/assets/{monitoring-C9346vXd.js → monitoring-mL0YGaG3.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BDkVd8_E.js → monitoring-stats-row-DGTvXy8L.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bt5QJgEG.js → oauth-callback-DXq4VAB4.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DgK7Rkwm.js → oauth-callback-ai-provider-DLq9Afvv.js} +1 -1
- package/dist/client/assets/{org-ai-providers-DQw8Ry8m.js → org-ai-providers-Cz242a6o.js} +1 -1
- package/dist/client/assets/{page-BNkRheIf.js → page-D3b1s6a2.js} +1 -1
- package/dist/client/assets/{page-BPTnb_7u.js → page-x_-Jc14s.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DZ2dLLg8.js → plugin-empty-state-B3_dpS13.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D5d0HyD_.js → plugin-empty-state-Cj0RnDfG.js} +1 -1
- package/dist/client/assets/{plugin-header-DToCRz-E.js → plugin-header-BKXZ081u.js} +1 -1
- package/dist/client/assets/{plugin-header-DaNytvgS.js → plugin-header-DlN-1PR6.js} +1 -1
- package/dist/client/assets/plugins-D1_YmAIA.js +1 -0
- package/dist/client/assets/{popover-DnM-fBUa.js → popover-CRZZJD6X.js} +1 -1
- package/dist/client/assets/{project-app-view-BmSeum6S.js → project-app-view-Dei8g4l2.js} +1 -1
- package/dist/client/assets/{project-layout-B6exvEKF.js → project-layout-dAA71zE-.js} +1 -1
- package/dist/client/assets/{project-plugins-CzyuvjoL.js → project-plugins-BaJYUdT2.js} +1 -1
- package/dist/client/assets/{projects-list-C1JxN737.js → projects-list-Cv_y3Y1y.js} +1 -1
- package/dist/client/assets/{registry-layout-D-kGw5vE.js → registry-layout-C04LM3fN.js} +1 -1
- package/dist/client/assets/{registry-utils-D6No_i4P.js → registry-utils-C0FVK22y.js} +1 -1
- package/dist/client/assets/{reset-password-CUY6IwDL.js → reset-password-CKoF4675.js} +1 -1
- package/dist/client/assets/{resizable-CAbzuUb1.js → resizable-nYmcarWg.js} +1 -1
- package/dist/client/assets/{save-actions-DGqTWEQL.js → save-actions-eZ1LrcFs.js} +1 -1
- package/dist/client/assets/{scroll-area-BCIFp-8p.js → scroll-area-BTvSahh5.js} +1 -1
- package/dist/client/assets/{select-DeOQOwBi.js → select-LSyRUUkM.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-B78FWMF5.js → select-virtual-mcp-CQf_NH1Z.js} +1 -1
- package/dist/client/assets/{shell-layout-BX9tUo-C.js → shell-layout-DaNKzCH1.js} +2 -2
- package/dist/client/assets/{sidebar-settings-CxzW8gJz.js → sidebar-settings-CArfFMjP.js} +1 -1
- package/dist/client/assets/{skeleton-BwiQLrEa.js → skeleton-DdkQJ8Ke.js} +1 -1
- package/dist/client/assets/{spinner-D4Lh5lMu.js → spinner-BbwK2nZf.js} +1 -1
- package/dist/client/assets/{store-invite-CdO_aWdO.js → store-invite-38lQwS2V.js} +1 -1
- package/dist/client/assets/{switch-DqWbwfAd.js → switch-C4iOvYgm.js} +1 -1
- package/dist/client/assets/{table-CbTCyRX5.js → table-CvG2iH0y.js} +1 -1
- package/dist/client/assets/{tabs-zzjdf6a0.js → tabs-D48yslt8.js} +1 -1
- package/dist/client/assets/{task-status-hmfgdVgC.js → task-status-CfdaAVDd.js} +1 -1
- package/dist/client/assets/tasks-CHK2wNRc.js +1 -0
- package/dist/client/assets/{tasks-panel-BKxSsDFe.js → tasks-panel-CngVyrSR.js} +1 -1
- package/dist/client/assets/{textarea-CJ-1DHFH.js → textarea-pMGiDvfM.js} +1 -1
- package/dist/client/assets/{time-range-picker-BBbi_2IF.js → time-range-picker-hMmDbLQS.js} +1 -1
- package/dist/client/assets/{toggle-group-DaaATQ-5.js → toggle-group-DB7gCSVI.js} +1 -1
- package/dist/client/assets/{tools-list-DLZSPKIc.js → tools-list-DqDOl_iw.js} +1 -1
- package/dist/client/assets/{tooltip-D-QYbPJS.js → tooltip-BYpVdvUr.js} +1 -1
- package/dist/client/assets/{topbar-portal-D3vr1IIh.js → topbar-portal-BT3L0OHL.js} +1 -1
- package/dist/client/assets/{types-vQT8OD6B.js → types-1J8PljZw.js} +1 -1
- package/dist/client/assets/{use-automations-BIoacnri.js → use-automations-BMRGIsk5.js} +1 -1
- package/dist/client/assets/{use-collections-BJxMmWLX.js → use-collections-DNZPF16v.js} +1 -1
- package/dist/client/assets/{use-connection-DPMknCkO.js → use-connection-OaJxXLK-.js} +1 -1
- package/dist/client/assets/{use-copy-CkgWv__W.js → use-copy-RSAu7_j7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-pWj6n63S.js → use-create-virtual-mcp-CrkA34pw.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BU1rPA0T.js → use-infinite-scroll-cI-C0iaq.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-C1XqHuwX.js → use-install-from-registry-Cw1tOxSk.js} +1 -1
- package/dist/client/assets/{use-list-state-B6nYBLyk.js → use-list-state-CSTOpaV4.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BmK_9UQh.js → use-mcp-prompts-FfAzq9P9.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-DQ2GW_FE.js → use-mcp-resources-Jm6NvGgP.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-KIPxuDyk.js → use-mcp-tools-B10GVMq1.js} +1 -1
- package/dist/client/assets/{use-members-BRZ5u_Eq.js → use-members-BEgSet5G.js} +1 -1
- package/dist/client/assets/{use-project-DVq_144v.js → use-project-BxO41BBL.js} +1 -1
- package/dist/client/assets/{use-store-discovery-aQCBFuCU.js → use-store-discovery-DVCWh6aJ.js} +1 -1
- package/dist/client/assets/{use-view-mode-lmHuCoZm.js → use-view-mode-0u9SIVO4.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BEia5q72.js → use-virtual-mcp-BZiKlRZJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DzvJ2Vyd.js +1 -0
- package/dist/client/assets/{useMutation-BatnVMWS.js → useMutation-BaFlpWJP.js} +1 -1
- package/dist/client/assets/useQuery-DG4WKkPy.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DKieyXx7.js +1 -0
- package/dist/client/assets/{user-Aw6SqZpK.js → user-Bx46t5R3.js} +1 -1
- package/dist/client/assets/{workflow-CRjl6sOP.js → workflow-BIBTFj9e.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/node_modules/{postgres-bytea/license → pg/LICENSE} +6 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{postgres-interval/license → xtend/LICENSE} +1 -2
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- 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/async-exit-hook/CHANGELOG.md +0 -62
- package/dist/server/node_modules/async-exit-hook/index.js +0 -171
- package/dist/server/node_modules/async-exit-hook/license +0 -21
- package/dist/server/node_modules/async-exit-hook/package.json +0 -66
- package/dist/server/node_modules/async-exit-hook/readme.md +0 -118
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- 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-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg",
|
|
3
|
+
"version": "8.20.0",
|
|
4
|
+
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"database",
|
|
7
|
+
"libpq",
|
|
8
|
+
"pg",
|
|
9
|
+
"postgre",
|
|
10
|
+
"postgres",
|
|
11
|
+
"postgresql",
|
|
12
|
+
"rdbms"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/brianc/node-postgres",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git://github.com/brianc/node-postgres.git",
|
|
18
|
+
"directory": "packages/pg"
|
|
19
|
+
},
|
|
20
|
+
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
|
|
21
|
+
"main": "./lib",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./esm/index.mjs",
|
|
25
|
+
"require": "./lib/index.js",
|
|
26
|
+
"default": "./lib/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./package.json": {
|
|
29
|
+
"default": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"./lib/*": "./lib/*.js",
|
|
32
|
+
"./lib/*.js": "./lib/*.js"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"pg-connection-string": "^2.12.0",
|
|
36
|
+
"pg-pool": "^3.13.0",
|
|
37
|
+
"pg-protocol": "^1.13.0",
|
|
38
|
+
"pg-types": "2.2.0",
|
|
39
|
+
"pgpass": "1.0.5"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@cloudflare/vitest-pool-workers": "0.8.23",
|
|
43
|
+
"@cloudflare/workers-types": "^4.20230404.0",
|
|
44
|
+
"async": "2.6.4",
|
|
45
|
+
"bluebird": "3.7.2",
|
|
46
|
+
"co": "4.6.0",
|
|
47
|
+
"pg-copy-streams": "0.3.0",
|
|
48
|
+
"typescript": "^4.0.3",
|
|
49
|
+
"vitest": "~3.0.9",
|
|
50
|
+
"wrangler": "^3.x"
|
|
51
|
+
},
|
|
52
|
+
"optionalDependencies": {
|
|
53
|
+
"pg-cloudflare": "^1.3.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"pg-native": ">=3.0.1"
|
|
57
|
+
},
|
|
58
|
+
"peerDependenciesMeta": {
|
|
59
|
+
"pg-native": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"test": "make test-all"
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"lib",
|
|
68
|
+
"esm",
|
|
69
|
+
"SPONSORS.md"
|
|
70
|
+
],
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">= 16.0.0"
|
|
74
|
+
},
|
|
75
|
+
"gitHead": "c9070cc8d526fca65780cedc25c1966b57cf7532"
|
|
76
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"maxdepth": 4,
|
|
3
|
+
"maxstatements": 200,
|
|
4
|
+
"maxcomplexity": 12,
|
|
5
|
+
"maxlen": 80,
|
|
6
|
+
"maxparams": 5,
|
|
7
|
+
|
|
8
|
+
"curly": true,
|
|
9
|
+
"eqeqeq": true,
|
|
10
|
+
"immed": true,
|
|
11
|
+
"latedef": false,
|
|
12
|
+
"noarg": true,
|
|
13
|
+
"noempty": true,
|
|
14
|
+
"nonew": true,
|
|
15
|
+
"undef": true,
|
|
16
|
+
"unused": "vars",
|
|
17
|
+
"trailing": true,
|
|
18
|
+
|
|
19
|
+
"quotmark": true,
|
|
20
|
+
"expr": true,
|
|
21
|
+
"asi": true,
|
|
22
|
+
|
|
23
|
+
"browser": false,
|
|
24
|
+
"esnext": true,
|
|
25
|
+
"devel": false,
|
|
26
|
+
"node": false,
|
|
27
|
+
"nonstandard": false,
|
|
28
|
+
|
|
29
|
+
"predef": ["require", "module", "__dirname", "__filename"]
|
|
30
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
2
|
+
Copyright (c) 2012-2014 Raynos.
|
|
4
3
|
|
|
5
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
5
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# xtend
|
|
2
|
+
|
|
3
|
+
[![browser support][3]][4]
|
|
4
|
+
|
|
5
|
+
[](http://github.com/badges/stability-badges)
|
|
6
|
+
|
|
7
|
+
Extend like a boss
|
|
8
|
+
|
|
9
|
+
xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
var extend = require("xtend")
|
|
15
|
+
|
|
16
|
+
// extend returns a new object. Does not mutate arguments
|
|
17
|
+
var combination = extend({
|
|
18
|
+
a: "a",
|
|
19
|
+
b: "c"
|
|
20
|
+
}, {
|
|
21
|
+
b: "b"
|
|
22
|
+
})
|
|
23
|
+
// { a: "a", b: "b" }
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Stability status: Locked
|
|
27
|
+
|
|
28
|
+
## MIT Licensed
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
[3]: http://ci.testling.com/Raynos/xtend.png
|
|
32
|
+
[4]: http://ci.testling.com/Raynos/xtend
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = extend
|
|
2
|
+
|
|
3
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4
|
+
|
|
5
|
+
function extend() {
|
|
6
|
+
var target = {}
|
|
7
|
+
|
|
8
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
9
|
+
var source = arguments[i]
|
|
10
|
+
|
|
11
|
+
for (var key in source) {
|
|
12
|
+
if (hasOwnProperty.call(source, key)) {
|
|
13
|
+
target[key] = source[key]
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return target
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module.exports = extend
|
|
2
|
+
|
|
3
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4
|
+
|
|
5
|
+
function extend(target) {
|
|
6
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
7
|
+
var source = arguments[i]
|
|
8
|
+
|
|
9
|
+
for (var key in source) {
|
|
10
|
+
if (hasOwnProperty.call(source, key)) {
|
|
11
|
+
target[key] = source[key]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return target
|
|
17
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xtend",
|
|
3
|
+
"version": "4.0.2",
|
|
4
|
+
"description": "extend like a boss",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"extend",
|
|
7
|
+
"merge",
|
|
8
|
+
"options",
|
|
9
|
+
"opts",
|
|
10
|
+
"object",
|
|
11
|
+
"array"
|
|
12
|
+
],
|
|
13
|
+
"author": "Raynos <raynos2@gmail.com>",
|
|
14
|
+
"repository": "git://github.com/Raynos/xtend.git",
|
|
15
|
+
"main": "immutable",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "node test"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"tape": "~1.1.0"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/Raynos/xtend",
|
|
24
|
+
"contributors": [
|
|
25
|
+
{
|
|
26
|
+
"name": "Jake Verbaten"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Matt Esch"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/Raynos/xtend/issues",
|
|
34
|
+
"email": "raynos2@gmail.com"
|
|
35
|
+
},
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"testling": {
|
|
38
|
+
"files": "test.js",
|
|
39
|
+
"browsers": [
|
|
40
|
+
"ie/7..latest",
|
|
41
|
+
"firefox/16..latest",
|
|
42
|
+
"firefox/nightly",
|
|
43
|
+
"chrome/22..latest",
|
|
44
|
+
"chrome/canary",
|
|
45
|
+
"opera/12..latest",
|
|
46
|
+
"opera/next",
|
|
47
|
+
"safari/5.1..latest",
|
|
48
|
+
"ipad/6.0..latest",
|
|
49
|
+
"iphone/6.0..latest"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=0.4"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var test = require("tape")
|
|
2
|
+
var extend = require("./")
|
|
3
|
+
var mutableExtend = require("./mutable")
|
|
4
|
+
|
|
5
|
+
test("merge", function(assert) {
|
|
6
|
+
var a = { a: "foo" }
|
|
7
|
+
var b = { b: "bar" }
|
|
8
|
+
|
|
9
|
+
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
10
|
+
assert.end()
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
test("replace", function(assert) {
|
|
14
|
+
var a = { a: "foo" }
|
|
15
|
+
var b = { a: "bar" }
|
|
16
|
+
|
|
17
|
+
assert.deepEqual(extend(a, b), { a: "bar" })
|
|
18
|
+
assert.end()
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
test("undefined", function(assert) {
|
|
22
|
+
var a = { a: undefined }
|
|
23
|
+
var b = { b: "foo" }
|
|
24
|
+
|
|
25
|
+
assert.deepEqual(extend(a, b), { a: undefined, b: "foo" })
|
|
26
|
+
assert.deepEqual(extend(b, a), { a: undefined, b: "foo" })
|
|
27
|
+
assert.end()
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
test("handle 0", function(assert) {
|
|
31
|
+
var a = { a: "default" }
|
|
32
|
+
var b = { a: 0 }
|
|
33
|
+
|
|
34
|
+
assert.deepEqual(extend(a, b), { a: 0 })
|
|
35
|
+
assert.deepEqual(extend(b, a), { a: "default" })
|
|
36
|
+
assert.end()
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
test("is immutable", function (assert) {
|
|
40
|
+
var record = {}
|
|
41
|
+
|
|
42
|
+
extend(record, { foo: "bar" })
|
|
43
|
+
assert.equal(record.foo, undefined)
|
|
44
|
+
assert.end()
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
test("null as argument", function (assert) {
|
|
48
|
+
var a = { foo: "bar" }
|
|
49
|
+
var b = null
|
|
50
|
+
var c = void 0
|
|
51
|
+
|
|
52
|
+
assert.deepEqual(extend(b, a, c), { foo: "bar" })
|
|
53
|
+
assert.end()
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
test("mutable", function (assert) {
|
|
57
|
+
var a = { foo: "bar" }
|
|
58
|
+
|
|
59
|
+
mutableExtend(a, { bar: "baz" })
|
|
60
|
+
|
|
61
|
+
assert.equal(a.bar, "baz")
|
|
62
|
+
assert.end()
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
test("null prototype", function(assert) {
|
|
66
|
+
var a = { a: "foo" }
|
|
67
|
+
var b = Object.create(null)
|
|
68
|
+
b.b = "bar";
|
|
69
|
+
|
|
70
|
+
assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
|
|
71
|
+
assert.end()
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
test("null prototype mutable", function (assert) {
|
|
75
|
+
var a = { foo: "bar" }
|
|
76
|
+
var b = Object.create(null)
|
|
77
|
+
b.bar = "baz";
|
|
78
|
+
|
|
79
|
+
mutableExtend(a, b)
|
|
80
|
+
|
|
81
|
+
assert.equal(a.bar, "baz")
|
|
82
|
+
assert.end()
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
test("prototype pollution", function (assert) {
|
|
86
|
+
var a = {}
|
|
87
|
+
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
88
|
+
|
|
89
|
+
assert.strictEqual(a.oops, undefined)
|
|
90
|
+
extend({}, maliciousPayload)
|
|
91
|
+
assert.strictEqual(a.oops, undefined)
|
|
92
|
+
assert.end()
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
test("prototype pollution mutable", function (assert) {
|
|
96
|
+
var a = {}
|
|
97
|
+
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
|
|
98
|
+
|
|
99
|
+
assert.strictEqual(a.oops, undefined)
|
|
100
|
+
mutableExtend({}, maliciousPayload)
|
|
101
|
+
assert.strictEqual(a.oops, undefined)
|
|
102
|
+
assert.end()
|
|
103
|
+
})
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aJ as a,aK as t}from"./index-DLW7tZdu.js";const e=a(t,{target:"draft-7"});export{e as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r,j as i}from"./index-DLW7tZdu.js";import{P as m}from"./project-plugins-CzyuvjoL.js";import"./useQuery-YHvrmKkI.js";import"./useMutation-BatnVMWS.js";import"./constants-Dzy_AMuL.js";import"./switch-DqWbwfAd.js";import"./label-BL4fRnZZ.js";import"./Container-BZeblIrR.js";import"./use-connection-DPMknCkO.js";import"./use-collections-BJxMmWLX.js";import"./registry-utils-D6No_i4P.js";import"./binder-BaB8rAtx.js";import"./use-install-from-registry-C1XqHuwX.js";import"./extract-connection-data-Zw5RYEyS.js";import"./constants-BTMGn0Px.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-DCKwAh-U.js";import"./Plus-BW2fNoEy.js";import"./select-DeOQOwBi.js";import"./index-BdQq_4o_.js";import"./index-CQPlxt4u.js";import"./Check-BXqqUm0J.js";import"./ChevronDown-B6V9GzuP.js";import"./ChevronUp-BYpnL-9F.js";function v(){const o=r.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{}),o[0]=t):t=o[0],t}export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-DLW7tZdu.js";import{T as h}from"./tasks-panel-BKxSsDFe.js";import{P as p}from"./index-75eZ1uI1.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-CBpEGiAs.js";import{i as B}from"./Loading01-DCKwAh-U.js";import{u as S}from"./context-BL_7JbXZ.js";import"./task-status-hmfgdVgC.js";import"./popover-DnM-fBUa.js";import"./skeleton-BwiQLrEa.js";import"./spinner-D4Lh5lMu.js";import"./tooltip-D-QYbPJS.js";import"./index-CQPlxt4u.js";import"./constants-Dzy_AMuL.js";import"./use-mcp-prompts-BmK_9UQh.js";import"./useQuery-YHvrmKkI.js";import"./dialog-Dmm_af5q.js";import"./X-BL1q6dsE.js";import"./form-Obbe7UIk.js";import"./label-BL4fRnZZ.js";import"./input-DgJ0xjPE.js";import"./index-C0Ne6xGI.js";import"./usage-BW6ztpN6.js";import"./integration-icon-C-I4Z6Dk.js";import"./Container-BZeblIrR.js";import"./AlertCircle-BO0kzcBv.js";import"./ArrowUp-FfROzAyV.js";import"./ArrowLeft-CrI91Scn.js";import"./XCircle-DxcmI8rf.js";import"./Type01-CjsMMlh6.js";import"./Check-BXqqUm0J.js";import"./ChevronDown-B6V9GzuP.js";import"./ChevronRight-BSFLHUtv.js";import"./ChevronUp-BYpnL-9F.js";import"./RefreshCcw01-YXuL16Jx.js";import"./Play-Bw_aeuhq.js";import"./Dataflow03-CTwEKVcs.js";import"./Download01-D7T-WxGL.js";import"./List-Bq1Yvo6z.js";import"./VideoRecorder-DkcbdsZk.js";import"./FolderClosed-BPzjOG-5.js";import"./Grid01-Bwsn0nh2.js";import"./Plus-BW2fNoEy.js";import"./SearchMd-C_bEWIlQ.js";import"./Settings01-BoOhxJJj.js";import"./Trash01-D9O3UWX6.js";import"./Upload01-Bpjo_QI4.js";import"./User01-BRC1qZ-u.js";import"./XClose-CslgPORS.js";import"./Zap-DERWnfoj.js";import"./org-ai-providers-DQw8Ry8m.js";import"./useMutation-BatnVMWS.js";import"./card-CUrYBr2J.js";import"./toggle-group-DaaATQ-5.js";import"./avatar-87qJKKK_.js";import"./ai-providers-logos-BbTN2hb6.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./select-DeOQOwBi.js";import"./index-BdQq_4o_.js";import"./use-copy-CkgWv__W.js";import"./marked.esm-BaswSlok.js";import"./tabs-zzjdf6a0.js";import"./checkbox-RHvkU3ym.js";import"./drawer-SktUP7-X.js";import"./select-virtual-mcp-B78FWMF5.js";import"./use-virtual-mcp-BEia5q72.js";import"./use-collections-BJxMmWLX.js";import"./use-create-virtual-mcp-pWj6n63S.js";import"./use-mcp-resources-DQ2GW_FE.js";import"./collapsible-BaB71DBr.js";import"./index-B1ylaSc7.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DzztYEVX.js";import"./types-vQT8OD6B.js";import"./useSuspenseInfiniteQuery-Cv31oWYI.js";import"./infiniteQueryObserver-BdQSrFrR.js";import"./collection-search-DcVVKJ8Q.js";import"./user-Aw6SqZpK.js";import"./format-time-CMKyl-GC.js";import"./empty-state-Cx44yC3Y.js";import"./dropdown-menu-BtgYu0Kc.js";import"./decopilot-events-Brt4gAR6.js";import"./index-CdK7iTUb.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(p.Header,{children:r.jsx(p.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let e;return t[6]!==l?(e=r.jsxs(p,{children:[m,r.jsx(p.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=e):e=t[7],e}function tr(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{tr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-BdQSrFrR.js";import{T as i}from"./index-DLW7tZdu.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as u,aB as s}from"./index-DLW7tZdu.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-BdQSrFrR.js";import{T as u,U as n}from"./index-DLW7tZdu.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
<a name="2.0.1"></a>
|
|
6
|
-
## [2.0.1](https://github.com/tapppi/async-exit-hook/compare/v2.0.0...v2.0.1) (2017-08-03)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<a name="2.0.0"></a>
|
|
11
|
-
# [2.0.0](https://github.com/tapppi/async-exit-hook/compare/v1.1.2...v2.0.0) (2017-08-03)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### Features
|
|
15
|
-
|
|
16
|
-
* add unhandledRejectionHandler ([#3](https://github.com/tapppi/async-exit-hook/issues/3)) ([96a194f](https://github.com/tapppi/async-exit-hook/commit/96a194f))
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### BREAKING CHANGES
|
|
20
|
-
|
|
21
|
-
* unhandledExceptionHandler no longer
|
|
22
|
-
catches rejections.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<a name="1.1.2"></a>
|
|
27
|
-
## [1.1.2](https://github.com/tapppi/async-exit-hook/compare/v1.1.1...v1.1.2) (2017-03-29)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### Bug Fixes
|
|
31
|
-
|
|
32
|
-
* filters are used individually for events [#1](https://github.com/tapppi/async-exit-hook/issues/1) ([03235c8](https://github.com/tapppi/async-exit-hook/commit/03235c8))
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<a name="1.1.1"></a>
|
|
37
|
-
## [1.1.1](https://github.com/tapppi/async-exit-hook/compare/v1.1.0...v1.1.1) (2016-11-04)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
### Bug Fixes
|
|
41
|
-
|
|
42
|
-
* unhandled rejections now handled ([4302b9e](https://github.com/tapppi/async-exit-hook/commit/4302b9e))
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Chores
|
|
46
|
-
|
|
47
|
-
* drop support for node 0.12 ([2830391](https://github.com/tapppi/async-exit-hook/commit/2830391))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### BREAKING CHANGES
|
|
51
|
-
|
|
52
|
-
* node 0.12 not tested anymore
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<a name="1.1.0"></a>
|
|
57
|
-
# [1.1.0](https://github.com/tapppi/async-exit-hook/compare/v1.0.0...v1.1.0) (2016-10-13)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Features
|
|
61
|
-
|
|
62
|
-
* support uncaughtRejectionHandler ([9098e3c](https://github.com/tapppi/async-exit-hook/commit/9098e3c))
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const hooks = [];
|
|
4
|
-
const errHooks = [];
|
|
5
|
-
let called = false;
|
|
6
|
-
let waitingFor = 0;
|
|
7
|
-
let asyncTimeoutMs = 10000;
|
|
8
|
-
|
|
9
|
-
const events = {};
|
|
10
|
-
const filters = {};
|
|
11
|
-
|
|
12
|
-
function exit(exit, code, err) {
|
|
13
|
-
// Helper functions
|
|
14
|
-
let doExitDone = false;
|
|
15
|
-
|
|
16
|
-
function doExit() {
|
|
17
|
-
if (doExitDone) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
doExitDone = true;
|
|
21
|
-
|
|
22
|
-
if (exit === true) {
|
|
23
|
-
// All handlers should be called even if the exit-hook handler was registered first
|
|
24
|
-
process.nextTick(process.exit.bind(null, code));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Async hook callback, decrements waiting counter
|
|
29
|
-
function stepTowardExit() {
|
|
30
|
-
process.nextTick(() => {
|
|
31
|
-
if (--waitingFor === 0) {
|
|
32
|
-
doExit();
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Runs a single hook
|
|
38
|
-
function runHook(syncArgCount, err, hook) {
|
|
39
|
-
// Cannot perform async hooks in `exit` event
|
|
40
|
-
if (exit && hook.length > syncArgCount) {
|
|
41
|
-
// Hook is async, expects a finish callback
|
|
42
|
-
waitingFor++;
|
|
43
|
-
|
|
44
|
-
if (err) {
|
|
45
|
-
// Pass error, calling uncaught exception handlers
|
|
46
|
-
return hook(err, stepTowardExit);
|
|
47
|
-
}
|
|
48
|
-
return hook(stepTowardExit);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Hook is synchronous
|
|
52
|
-
if (err) {
|
|
53
|
-
// Pass error, calling uncaught exception handlers
|
|
54
|
-
return hook(err);
|
|
55
|
-
}
|
|
56
|
-
return hook();
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Only execute hooks once
|
|
60
|
-
if (called) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
called = true;
|
|
65
|
-
|
|
66
|
-
// Run hooks
|
|
67
|
-
if (err) {
|
|
68
|
-
// Uncaught exception, run error hooks
|
|
69
|
-
errHooks.map(runHook.bind(null, 1, err));
|
|
70
|
-
}
|
|
71
|
-
hooks.map(runHook.bind(null, 0, null));
|
|
72
|
-
|
|
73
|
-
if (waitingFor) {
|
|
74
|
-
// Force exit after x ms (10000 by default), even if async hooks in progress
|
|
75
|
-
setTimeout(() => {
|
|
76
|
-
doExit();
|
|
77
|
-
}, asyncTimeoutMs);
|
|
78
|
-
} else {
|
|
79
|
-
// No asynchronous hooks, exit immediately
|
|
80
|
-
doExit();
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Add a hook
|
|
85
|
-
function add(hook) {
|
|
86
|
-
hooks.push(hook);
|
|
87
|
-
|
|
88
|
-
if (hooks.length === 1) {
|
|
89
|
-
add.hookEvent('exit');
|
|
90
|
-
add.hookEvent('beforeExit', 0);
|
|
91
|
-
add.hookEvent('SIGHUP', 128 + 1);
|
|
92
|
-
add.hookEvent('SIGINT', 128 + 2);
|
|
93
|
-
add.hookEvent('SIGTERM', 128 + 15);
|
|
94
|
-
add.hookEvent('SIGBREAK', 128 + 21);
|
|
95
|
-
|
|
96
|
-
// PM2 Cluster shutdown message. Caught to support async handlers with pm2, needed because
|
|
97
|
-
// explicitly calling process.exit() doesn't trigger the beforeExit event, and the exit
|
|
98
|
-
// event cannot support async handlers, since the event loop is never called after it.
|
|
99
|
-
add.hookEvent('message', 0, function (msg) { // eslint-disable-line prefer-arrow-callback
|
|
100
|
-
if (msg !== 'shutdown') {
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// New signal / event to hook
|
|
108
|
-
add.hookEvent = function (event, code, filter) {
|
|
109
|
-
events[event] = function () {
|
|
110
|
-
const eventFilters = filters[event];
|
|
111
|
-
for (let i = 0; i < eventFilters.length; i++) {
|
|
112
|
-
if (eventFilters[i].apply(this, arguments)) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
exit(code !== undefined && code !== null, code);
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
if (!filters[event]) {
|
|
120
|
-
filters[event] = [];
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (filter) {
|
|
124
|
-
filters[event].push(filter);
|
|
125
|
-
}
|
|
126
|
-
process.on(event, events[event]);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// Unhook signal / event
|
|
130
|
-
add.unhookEvent = function (event) {
|
|
131
|
-
process.removeListener(event, events[event]);
|
|
132
|
-
delete events[event];
|
|
133
|
-
delete filters[event];
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
// List hooked events
|
|
137
|
-
add.hookedEvents = function () {
|
|
138
|
-
const ret = [];
|
|
139
|
-
for (const name in events) {
|
|
140
|
-
if ({}.hasOwnProperty.call(events, name)) {
|
|
141
|
-
ret.push(name);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return ret;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
// Add an uncaught exception handler
|
|
148
|
-
add.uncaughtExceptionHandler = function (hook) {
|
|
149
|
-
errHooks.push(hook);
|
|
150
|
-
|
|
151
|
-
if (errHooks.length === 1) {
|
|
152
|
-
process.once('uncaughtException', exit.bind(null, true, 1));
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
// Add an unhandled rejection handler
|
|
157
|
-
add.unhandledRejectionHandler = function (hook) {
|
|
158
|
-
errHooks.push(hook);
|
|
159
|
-
|
|
160
|
-
if (errHooks.length === 1) {
|
|
161
|
-
process.once('unhandledRejection', exit.bind(null, true, 1));
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
// Configure async force exit timeout
|
|
166
|
-
add.forceExitTimeout = function (ms) {
|
|
167
|
-
asyncTimeoutMs = ms;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
// Export
|
|
171
|
-
module.exports = add;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
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
|
|
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.
|