decocms 2.277.0 → 2.277.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-CDrkM01U.js → AlertCircle-ZN1y5-aw.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-D40KhznE.js → ArrowNarrowLeft-BPki4rs6.js} +1 -1
- package/dist/client/assets/{CheckCircle-BTIsSwsN.js → CheckCircle-CzlD2NtZ.js} +1 -1
- package/dist/client/assets/{ChevronDown-CYdW9NBw.js → ChevronDown-BjlYfwkz.js} +1 -1
- package/dist/client/assets/{ChevronRight-YkSQYi3B.js → ChevronRight-Ers_V2D1.js} +1 -1
- package/dist/client/assets/{ChevronUp-BcPC1hCC.js → ChevronUp-BFd66NER.js} +1 -1
- package/dist/client/assets/{Container-ChD3KoS4.js → Container-BH-IjM7q.js} +1 -1
- package/dist/client/assets/{LinkExternal01-l0w4_WlJ.js → LinkExternal01-Df1708RH.js} +1 -1
- package/dist/client/assets/{Lock01-CmojMPTn.js → Lock01-DC87zCkJ.js} +1 -1
- package/dist/client/assets/{Palette-D4s8zWmN.js → Palette-BAefAlJJ.js} +1 -1
- package/dist/client/assets/{Play-CiTVDuYt.js → Play-8RSCt4_z.js} +1 -1
- package/dist/client/assets/{Plus-CVdax6FK.js → Plus-D7R85tnb.js} +1 -1
- package/dist/client/assets/{SearchMd-DJ0JdIz3.js → SearchMd-CuF0EE4i.js} +1 -1
- package/dist/client/assets/{Settings02-D-hypCbK.js → Settings02-0biYSyip.js} +1 -1
- package/dist/client/assets/{Star01-Vcjv0Tzc.js → Star01-DG4GVqjt.js} +1 -1
- package/dist/client/assets/{Sun-51uZR1E5.js → Sun-bNHtETAN.js} +1 -1
- package/dist/client/assets/{Tool01-DCaYwllU.js → Tool01-BYIP93fl.js} +1 -1
- package/dist/client/assets/{Trash01-D5ZS0TOT.js → Trash01-DiVIK0OP.js} +1 -1
- package/dist/client/assets/{Upload01-CBYhGwn0.js → Upload01-1ZdG7oJK.js} +1 -1
- package/dist/client/assets/{User01-Dq3q9cE-.js → User01-ZdNcPumq.js} +1 -1
- package/dist/client/assets/{Users03-BIYd5t8v.js → Users03-C4Ee_frB.js} +1 -1
- package/dist/client/assets/{X-D_4PiiTE.js → X-DJVuZ58d.js} +1 -1
- package/dist/client/assets/{XCircle-rGav0QLs.js → XCircle-C-PtnVDi.js} +1 -1
- package/dist/client/assets/{Zap-qFCEz_qt.js → Zap-DFbFP4h9.js} +1 -1
- package/dist/client/assets/{ZapSquare-BYfCzFpy.js → ZapSquare-Bn1DnHGa.js} +1 -1
- package/dist/client/assets/{accordion-C_FjDGY7.js → accordion-BKyKwvi4.js} +1 -1
- package/dist/client/assets/{agent-icon-31CiXnkF.js → agent-icon-BCqNXHrJ.js} +1 -1
- package/dist/client/assets/{agents-list-kGMjebHK.js → agents-list-st6j9oA0.js} +1 -1
- package/dist/client/assets/ai-providers-Cq8P81dq.js +1 -0
- package/dist/client/assets/{alert-dialog-BpydK2MI.js → alert-dialog-Cce2zNSt.js} +1 -1
- package/dist/client/assets/{auth-catchall-I0vdEcHs.js → auth-catchall-DOZwh2ME.js} +1 -1
- package/dist/client/assets/{automation-list-row-mTTWiKQ6.js → automation-list-row-D3uOWcPZ.js} +1 -1
- package/dist/client/assets/{automations-Z179s9qX.js → automations-_4yX33cm.js} +1 -1
- package/dist/client/assets/{avatar-BVvDTfBW.js → avatar-DtO_DjAh.js} +1 -1
- package/dist/client/assets/{badge-BhfSxzi-.js → badge-y-hsEihY.js} +1 -1
- package/dist/client/assets/{brand-context-Bn_7uvJT.js → brand-context-zVTleDgN.js} +1 -1
- package/dist/client/assets/{card-BAp6Jwgi.js → card-Dgjac7df.js} +1 -1
- package/dist/client/assets/{chat-context-Dp5HM8R-.js → chat-context-jZHB4zZq.js} +1 -1
- package/dist/client/assets/{checkbox-BhkHXCse.js → checkbox-BK1FOOnx.js} +1 -1
- package/dist/client/assets/{collection-detail-Bm3mvhEG.js → collection-detail-x76KaTbs.js} +1 -1
- package/dist/client/assets/{collection-display-button-jqECsu1f.js → collection-display-button-Gr_qxtzC.js} +1 -1
- package/dist/client/assets/{collection-search-C0B93tJw.js → collection-search-9bv6LiW5.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Bf17fkBP.js → collection-table-wrapper-BD46An7o.js} +1 -1
- package/dist/client/assets/{collection-tabs-CMC3SILy.js → collection-tabs-DBij18bF.js} +1 -1
- package/dist/client/assets/{collections-DIuw_dNV.js → collections-BZR-yDlA.js} +1 -1
- package/dist/client/assets/{command-CRMnQTof.js → command-DsPZNxzv.js} +1 -1
- package/dist/client/assets/{connection-card-CJ6uOT9E.js → connection-card-Cavj0z1s.js} +1 -1
- package/dist/client/assets/{connection-detail-Dj-OLW3C.js → connection-detail-B_MywG2r.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CDPt3S_P.js → connection-form-helpers-BickqfM0.js} +1 -1
- package/dist/client/assets/{connections-aYS5E8PJ.js → connections-Di7YhHpL.js} +1 -1
- package/dist/client/assets/{constants-BG70AVFL.js → constants-B6BlNNCv.js} +1 -1
- package/dist/client/assets/{constants-CdNdiXMf.js → constants-D4bpaQIy.js} +1 -1
- package/dist/client/assets/{dialog-C0FUDu40.js → dialog-CrC-U752.js} +1 -1
- package/dist/client/assets/{drawer-D4_wXu6X.js → drawer-D164IDvt.js} +1 -1
- package/dist/client/assets/{dropdown-menu-aG44dJsz.js → dropdown-menu-BCSsOhoD.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-pzG9mWCw.js → dynamic-plugin-layout-PtppgAts.js} +1 -1
- package/dist/client/assets/{empty-state-BjAjwUcB.js → empty-state-Burt6Pjq.js} +1 -1
- package/dist/client/assets/{empty-state-BGqwS_3w.js → empty-state-CMAHTHUe.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CAAXAkZY.js → extract-connection-data-CIGH4JOA.js} +1 -1
- package/dist/client/assets/{features-DCfAHIGS.js → features-DkrqQmvn.js} +1 -1
- package/dist/client/assets/{form-BQFhlKGv.js → form-NpftjNqr.js} +1 -1
- package/dist/client/assets/{general-0YlUSUig.js → general-CPi9v1zL.js} +1 -1
- package/dist/client/assets/{index-C6SXa4V4.js → index-BabWp460.js} +1 -1
- package/dist/client/assets/{index-CN1oVHjb.js → index-C7Syt5sm.js} +4 -4
- package/dist/client/assets/{index-BRiQU6du.js → index-CESHAiFx.js} +1 -1
- package/dist/client/assets/{index-DRjT3wqk.js → index-CMJ6GQ7C.js} +3 -3
- package/dist/client/assets/{index-CoTOPljc.js → index-CSCpQ3nk.js} +1 -1
- package/dist/client/assets/{index-mdSoEPSF.js → index-ClWc2yds.js} +1 -1
- package/dist/client/assets/{index-CEQG3Gi2.js → index-CmG3u4sk.js} +1 -1
- package/dist/client/assets/{index-EE9r4ne7.js → index-D0eg_rFC.js} +2 -2
- package/dist/client/assets/{index-NYDZhYFt.js → index-DE-s5va1.js} +1 -1
- package/dist/client/assets/{index-CIlSPTSj.js → index-MDHGBKc3.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BQYXKuj2.js → infiniteQueryObserver-CpBPXtl6.js} +1 -1
- package/dist/client/assets/{input-r_oEqK-V.js → input-B0rO4kCw.js} +1 -1
- package/dist/client/assets/{integration-icon-BKKqOsd5.js → integration-icon-yOwsHf6q.js} +1 -1
- package/dist/client/assets/{label-CenAgqhm.js → label-DEuSkBBi.js} +1 -1
- package/dist/client/assets/{layout-DB6YepVn.js → layout-CEdjROI5.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-TnasvQfT.js → lean-canvas-recruit-modal-BMnsbvdl.js} +1 -1
- package/dist/client/assets/{login-DDMVtz0x.js → login-vu3mdB5z.js} +1 -1
- package/dist/client/assets/{members-BH6aFn0i.js → members-DtGUx-F1.js} +1 -1
- package/dist/client/assets/{monaco-editor-C3TYqqnp.js → monaco-editor-wLqdDZ5S.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DosCpU_L.js → monitoring-stats-row-5HVh1Gjz.js} +1 -1
- package/dist/client/assets/{oauth-callback-BV7Kg1aN.js → oauth-callback-DXN54EUy.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DjkxS6zo.js → oauth-callback-ai-provider-W7GdFBbP.js} +1 -1
- package/dist/client/assets/{onboarding-DmzJa5qN.js → onboarding-BeW6omQ6.js} +1 -1
- package/dist/client/assets/{org-layout-D05CVA_8.js → org-layout-Cp3RupKt.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Cv_313Tb.js → org-plugin-layout-Bnfoicc4.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CQeGBgOP.js → plugin-empty-state-0LwQ6R3R.js} +1 -1
- package/dist/client/assets/{plugin-header-BXYsY1_p.js → plugin-header-BYiR1ua4.js} +1 -1
- package/dist/client/assets/{plugin-layout-Do_Ws-WY.js → plugin-layout-DCOghZWx.js} +1 -1
- package/dist/client/assets/{popover-BktSfQG9.js → popover-DUh9iDm9.js} +1 -1
- package/dist/client/assets/{profile-BSS2RbEG.js → profile-Bk0bLa4g.js} +1 -1
- package/dist/client/assets/{project-app-view-B_z1QorU.js → project-app-view-BtOMb74o.js} +1 -1
- package/dist/client/assets/registry-CorCxIMC.js +2 -0
- package/dist/client/assets/{registry-layout-B0UM9hrK.js → registry-layout-TU21GgUM.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C6TLzB3T.js → required-auth-layout-eS3mZHM3.js} +1 -1
- package/dist/client/assets/{reset-password-BV1UW9SB.js → reset-password-nmqGdy62.js} +1 -1
- package/dist/client/assets/{scroll-area-C6ws31M0.js → scroll-area-BPvcbDba.js} +1 -1
- package/dist/client/assets/{search-input-Dxw50-Fc.js → search-input-DuumYWEB.js} +1 -1
- package/dist/client/assets/{select-DMKL-iI9.js → select-DV6Y5fbl.js} +1 -1
- package/dist/client/assets/{select-model-D2d213qn.js → select-model-BhJ9eJ30.js} +1 -1
- package/dist/client/assets/{settings-layout-BBdiRp4e.js → settings-layout-C6WZX8H8.js} +1 -1
- package/dist/client/assets/{shell-layout-CDe1Q4z8.js → shell-layout-Bx85tvr4.js} +1 -1
- package/dist/client/assets/{skeleton-C8k5qVSG.js → skeleton-C_5kHpZw.js} +1 -1
- package/dist/client/assets/{sso-CChrq6HN.js → sso-Du9xnoxY.js} +1 -1
- package/dist/client/assets/{store-Dk4svl-0.js → store-DFSqH5M5.js} +1 -1
- package/dist/client/assets/store-registry-ysGrUhGY.js +2 -0
- package/dist/client/assets/{switch-BlmZa3uf.js → switch-CbAhbOmy.js} +1 -1
- package/dist/client/assets/{table-omg9OiL8.js → table-D03jqlLZ.js} +1 -1
- package/dist/client/assets/{tabs-ZI6fRQkw.js → tabs-DtdegoWH.js} +1 -1
- package/dist/client/assets/{task-status-erNd2Sbl.js → task-status-BgBSzATn.js} +1 -1
- package/dist/client/assets/{textarea-CpW5pfml.js → textarea-D_j-5IAu.js} +1 -1
- package/dist/client/assets/{toggle-group-By5F9baT.js → toggle-group-DDh5VZ6f.js} +1 -1
- package/dist/client/assets/{tools-list-2T2hc8nL.js → tools-list-CJJNUxfe.js} +1 -1
- package/dist/client/assets/{types-BOQuLrVp.js → types-CXkK-iOI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CITI1iNq.js → use-ai-providers-ElYJdGU0.js} +1 -1
- package/dist/client/assets/{use-collections-CRzXRke9.js → use-collections-ByN3iK_-.js} +1 -1
- package/dist/client/assets/{use-connection-CeSGdaGP.js → use-connection-DS4JMmfK.js} +1 -1
- package/dist/client/assets/{use-copy-DGEKKbaG.js → use-copy-1vU78qsX.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-UIh1S6RD.js → use-create-virtual-mcp-C0ZtxKxG.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CN7YV5I-.js → use-decopilot-events-Dv7rn_zQ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DeXytvwf.js → use-delete-connection-CnPoPnuN.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DjXaeUEQ.js → use-infinite-scroll-D9oxXo_y.js} +1 -1
- package/dist/client/assets/{use-list-state-UZMoJUvO.js → use-list-state-Bt2BkuK4.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BKQPDk4x.js → use-mcp-tools-CpSp-YOn.js} +1 -1
- package/dist/client/assets/{use-members-afZV5Me8.js → use-members-CN2GRsgZ.js} +1 -1
- package/dist/client/assets/{use-mobile-DP4MR1ix.js → use-mobile-D5xdghWW.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C0iuNKaP.js → use-navigate-to-agent-DC2aXNSM.js} +1 -1
- package/dist/client/assets/{use-org-sso-B4mWsSMh.js → use-org-sso-HLMtUxyI.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CcvcpCtE.js → use-organization-settings-CRVxUE8d.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Bj_DPVwf.js → use-registry-connections-DiPCzdOz.js} +1 -1
- package/dist/client/assets/{use-status-sounds-ChUYFOhF.js → use-status-sounds-CepswEV9.js} +1 -1
- package/dist/client/assets/{use-tasks-DGmrkFpo.js → use-tasks-Cvm0js2U.js} +1 -1
- package/dist/client/assets/{use-view-mode-zFqL6G4U.js → use-view-mode-Qb4bThwm.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Dn9ixQmR.js → use-virtual-mcp-DmXmoSMd.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BmiRpP8z.js +1 -0
- package/dist/client/assets/{user-D7q59BB0.js → user-rEzOpeDj.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BTfIGFL4.js → view-mode-toggle-EUXERI9v.js} +1 -1
- package/dist/client/assets/{workflow-DXb2lFI1.js → workflow-CD3p-F8j.js} +1 -1
- package/dist/client/assets/workflow-detail-DH47DpCR.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/deepmerge/.editorconfig +7 -0
- package/dist/server/node_modules/deepmerge/.eslintcache +1 -0
- package/dist/server/node_modules/deepmerge/changelog.md +167 -0
- package/dist/server/node_modules/deepmerge/dist/cjs.js +133 -0
- package/dist/server/node_modules/deepmerge/dist/umd.js +139 -0
- package/dist/server/node_modules/deepmerge/index.d.ts +20 -0
- package/dist/server/node_modules/deepmerge/index.js +106 -0
- package/dist/server/node_modules/{postgres-date/license → deepmerge/license.txt} +1 -1
- package/dist/server/node_modules/deepmerge/package.json +42 -0
- package/dist/server/node_modules/deepmerge/readme.md +264 -0
- package/dist/server/node_modules/deepmerge/rollup.config.js +22 -0
- package/dist/server/node_modules/onetime/index.d.ts +64 -0
- package/dist/server/node_modules/onetime/index.js +44 -0
- package/dist/server/node_modules/{mimic-fn → onetime}/package.json +16 -15
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-Bykzb-xW.js +0 -1
- package/dist/client/assets/registry-B_QfL3wE.js +0 -2
- package/dist/client/assets/store-registry-DNqLsJlQ.js +0 -2
- package/dist/client/assets/useInfiniteQuery-7hq96Va6.js +0 -1
- package/dist/client/assets/workflow-detail-CC_ctEsy.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +0 -2
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +0 -4
- package/dist/server/node_modules/convert-to-spaces/license +0 -21
- package/dist/server/node_modules/convert-to-spaces/package.json +0 -40
- package/dist/server/node_modules/convert-to-spaces/readme.md +0 -39
- package/dist/server/node_modules/environment/index.d.ts +0 -74
- package/dist/server/node_modules/environment/index.js +0 -47
- package/dist/server/node_modules/environment/license +0 -9
- package/dist/server/node_modules/environment/package.json +0 -74
- package/dist/server/node_modules/environment/readme.md +0 -94
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
- package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
- package/dist/server/node_modules/escape-string-regexp/license +0 -9
- package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
- package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
- package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
- package/dist/server/node_modules/is-unicode-supported/license +0 -9
- package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
- package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
- package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/license +0 -9
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/pg-cloudflare/LICENSE +0 -21
- package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
- package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
- package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
- package/dist/server/node_modules/pg-connection-string/README.md +0 -105
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
- package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
- package/dist/server/node_modules/pg-connection-string/index.js +0 -231
- package/dist/server/node_modules/pg-connection-string/package.json +0 -52
- 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-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/pgpass/README.md +0 -74
- package/dist/server/node_modules/pgpass/lib/helper.js +0 -233
- package/dist/server/node_modules/pgpass/lib/index.js +0 -23
- package/dist/server/node_modules/pgpass/package.json +0 -41
- 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/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/restore-cursor/index.d.ts +0 -11
- package/dist/server/node_modules/restore-cursor/index.js +0 -11
- package/dist/server/node_modules/restore-cursor/license +0 -9
- package/dist/server/node_modules/restore-cursor/package.json +0 -55
- package/dist/server/node_modules/restore-cursor/readme.md +0 -31
- 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
- package/dist/server/node_modules/string-width/index.d.ts +0 -39
- package/dist/server/node_modules/string-width/index.js +0 -82
- package/dist/server/node_modules/string-width/license +0 -9
- package/dist/server/node_modules/string-width/package.json +0 -64
- package/dist/server/node_modules/string-width/readme.md +0 -66
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/LICENSE +0 -20
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{ansi-styles → onetime}/license +0 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# deepmerge
|
|
2
|
+
|
|
3
|
+
Merges the enumerable properties of two or more objects deeply.
|
|
4
|
+
|
|
5
|
+
> UMD bundle is 723B minified+gzipped
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
### Example Usage
|
|
10
|
+
<!--js
|
|
11
|
+
const merge = require('./')
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const x = {
|
|
16
|
+
foo: { bar: 3 },
|
|
17
|
+
array: [{
|
|
18
|
+
does: 'work',
|
|
19
|
+
too: [ 1, 2, 3 ]
|
|
20
|
+
}]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const y = {
|
|
24
|
+
foo: { baz: 4 },
|
|
25
|
+
quux: 5,
|
|
26
|
+
array: [{
|
|
27
|
+
does: 'work',
|
|
28
|
+
too: [ 4, 5, 6 ]
|
|
29
|
+
}, {
|
|
30
|
+
really: 'yes'
|
|
31
|
+
}]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const output = {
|
|
35
|
+
foo: {
|
|
36
|
+
bar: 3,
|
|
37
|
+
baz: 4
|
|
38
|
+
},
|
|
39
|
+
array: [{
|
|
40
|
+
does: 'work',
|
|
41
|
+
too: [ 1, 2, 3 ]
|
|
42
|
+
}, {
|
|
43
|
+
does: 'work',
|
|
44
|
+
too: [ 4, 5, 6 ]
|
|
45
|
+
}, {
|
|
46
|
+
really: 'yes'
|
|
47
|
+
}],
|
|
48
|
+
quux: 5
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
merge(x, y) // => output
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Installation
|
|
56
|
+
|
|
57
|
+
With [npm](http://npmjs.org) do:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
npm install deepmerge
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
deepmerge can be used directly in the browser without the use of package managers/bundlers as well: [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js).
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Include
|
|
67
|
+
|
|
68
|
+
deepmerge exposes a CommonJS entry point:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
const merge = require('deepmerge')
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The ESM entry point was dropped due to a [Webpack bug](https://github.com/webpack/webpack/issues/6584).
|
|
75
|
+
|
|
76
|
+
# API
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## `merge(x, y, [options])`
|
|
80
|
+
|
|
81
|
+
Merge two objects `x` and `y` deeply, returning a new merged object with the
|
|
82
|
+
elements from both `x` and `y`.
|
|
83
|
+
|
|
84
|
+
If an element at the same key is present for both `x` and `y`, the value from
|
|
85
|
+
`y` will appear in the result.
|
|
86
|
+
|
|
87
|
+
Merging creates a new object, so that neither `x` or `y` is modified.
|
|
88
|
+
|
|
89
|
+
**Note:** By default, arrays are merged by concatenating them.
|
|
90
|
+
|
|
91
|
+
## `merge.all(arrayOfObjects, [options])`
|
|
92
|
+
|
|
93
|
+
Merges any number of objects into a single result object.
|
|
94
|
+
|
|
95
|
+
```js
|
|
96
|
+
const foobar = { foo: { bar: 3 } }
|
|
97
|
+
const foobaz = { foo: { baz: 4 } }
|
|
98
|
+
const bar = { bar: 'yay!' }
|
|
99
|
+
|
|
100
|
+
merge.all([ foobar, foobaz, bar ]) // => { foo: { bar: 3, baz: 4 }, bar: 'yay!' }
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## Options
|
|
105
|
+
|
|
106
|
+
### `arrayMerge`
|
|
107
|
+
|
|
108
|
+
There are multiple ways to merge two arrays, below are a few examples but you can also create your own custom function.
|
|
109
|
+
|
|
110
|
+
Your `arrayMerge` function will be called with three arguments: a `target` array, the `source` array, and an `options` object with these properties:
|
|
111
|
+
|
|
112
|
+
- `isMergeableObject(value)`
|
|
113
|
+
- `cloneUnlessOtherwiseSpecified(value, options)`
|
|
114
|
+
|
|
115
|
+
#### `arrayMerge` example: overwrite target array
|
|
116
|
+
|
|
117
|
+
Overwrites the existing array values completely rather than concatenating them:
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray
|
|
121
|
+
|
|
122
|
+
merge(
|
|
123
|
+
[1, 2, 3],
|
|
124
|
+
[3, 2, 1],
|
|
125
|
+
{ arrayMerge: overwriteMerge }
|
|
126
|
+
) // => [3, 2, 1]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### `arrayMerge` example: combine arrays
|
|
130
|
+
|
|
131
|
+
Combines objects at the same index in the two arrays.
|
|
132
|
+
|
|
133
|
+
This was the default array merging algorithm pre-version-2.0.0.
|
|
134
|
+
|
|
135
|
+
```js
|
|
136
|
+
const combineMerge = (target, source, options) => {
|
|
137
|
+
const destination = target.slice()
|
|
138
|
+
|
|
139
|
+
source.forEach((item, index) => {
|
|
140
|
+
if (typeof destination[index] === 'undefined') {
|
|
141
|
+
destination[index] = options.cloneUnlessOtherwiseSpecified(item, options)
|
|
142
|
+
} else if (options.isMergeableObject(item)) {
|
|
143
|
+
destination[index] = merge(target[index], item, options)
|
|
144
|
+
} else if (target.indexOf(item) === -1) {
|
|
145
|
+
destination.push(item)
|
|
146
|
+
}
|
|
147
|
+
})
|
|
148
|
+
return destination
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
merge(
|
|
152
|
+
[{ a: true }],
|
|
153
|
+
[{ b: true }, 'ah yup'],
|
|
154
|
+
{ arrayMerge: combineMerge }
|
|
155
|
+
) // => [{ a: true, b: true }, 'ah yup']
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### `isMergeableObject`
|
|
159
|
+
|
|
160
|
+
By default, deepmerge clones every property from almost every kind of object.
|
|
161
|
+
|
|
162
|
+
You may not want this, if your objects are of special types, and you want to copy the whole object instead of just copying its properties.
|
|
163
|
+
|
|
164
|
+
You can accomplish this by passing in a function for the `isMergeableObject` option.
|
|
165
|
+
|
|
166
|
+
If you only want to clone properties of plain objects, and ignore all "special" kinds of instantiated objects, you probably want to drop in [`is-plain-object`](https://github.com/jonschlinkert/is-plain-object).
|
|
167
|
+
|
|
168
|
+
```js
|
|
169
|
+
const { isPlainObject } = require('is-plain-object')
|
|
170
|
+
|
|
171
|
+
function SuperSpecial() {
|
|
172
|
+
this.special = 'oh yeah man totally'
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const instantiatedSpecialObject = new SuperSpecial()
|
|
176
|
+
|
|
177
|
+
const target = {
|
|
178
|
+
someProperty: {
|
|
179
|
+
cool: 'oh for sure'
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const source = {
|
|
184
|
+
someProperty: instantiatedSpecialObject
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const defaultOutput = merge(target, source)
|
|
188
|
+
|
|
189
|
+
defaultOutput.someProperty.cool // => 'oh for sure'
|
|
190
|
+
defaultOutput.someProperty.special // => 'oh yeah man totally'
|
|
191
|
+
defaultOutput.someProperty instanceof SuperSpecial // => false
|
|
192
|
+
|
|
193
|
+
const customMergeOutput = merge(target, source, {
|
|
194
|
+
isMergeableObject: isPlainObject
|
|
195
|
+
})
|
|
196
|
+
|
|
197
|
+
customMergeOutput.someProperty.cool // => undefined
|
|
198
|
+
customMergeOutput.someProperty.special // => 'oh yeah man totally'
|
|
199
|
+
customMergeOutput.someProperty instanceof SuperSpecial // => true
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### `customMerge`
|
|
203
|
+
|
|
204
|
+
Specifies a function which can be used to override the default merge behavior for a property, based on the property name.
|
|
205
|
+
|
|
206
|
+
The `customMerge` function will be passed the key for each property, and should return the function which should be used to merge the values for that property.
|
|
207
|
+
|
|
208
|
+
It may also return undefined, in which case the default merge behaviour will be used.
|
|
209
|
+
|
|
210
|
+
```js
|
|
211
|
+
const alex = {
|
|
212
|
+
name: {
|
|
213
|
+
first: 'Alex',
|
|
214
|
+
last: 'Alexson'
|
|
215
|
+
},
|
|
216
|
+
pets: ['Cat', 'Parrot']
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const tony = {
|
|
220
|
+
name: {
|
|
221
|
+
first: 'Tony',
|
|
222
|
+
last: 'Tonison'
|
|
223
|
+
},
|
|
224
|
+
pets: ['Dog']
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const mergeNames = (nameA, nameB) => `${nameA.first} and ${nameB.first}`
|
|
228
|
+
|
|
229
|
+
const options = {
|
|
230
|
+
customMerge: (key) => {
|
|
231
|
+
if (key === 'name') {
|
|
232
|
+
return mergeNames
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const result = merge(alex, tony, options)
|
|
238
|
+
|
|
239
|
+
result.name // => 'Alex and Tony'
|
|
240
|
+
result.pets // => ['Cat', 'Parrot', 'Dog']
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### `clone`
|
|
245
|
+
|
|
246
|
+
*Deprecated.*
|
|
247
|
+
|
|
248
|
+
Defaults to `true`.
|
|
249
|
+
|
|
250
|
+
If `clone` is `false` then child objects will be copied directly instead of being cloned. This was the default behavior before version 2.x.
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
# Testing
|
|
254
|
+
|
|
255
|
+
With [npm](http://npmjs.org) do:
|
|
256
|
+
|
|
257
|
+
```sh
|
|
258
|
+
npm test
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
# License
|
|
263
|
+
|
|
264
|
+
MIT
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import resolve from 'rollup-plugin-node-resolve'
|
|
2
|
+
import commonjs from 'rollup-plugin-commonjs'
|
|
3
|
+
import pkg from './package.json'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
input: `index.js`,
|
|
7
|
+
plugins: [
|
|
8
|
+
commonjs(),
|
|
9
|
+
resolve(),
|
|
10
|
+
],
|
|
11
|
+
output: [
|
|
12
|
+
{
|
|
13
|
+
file: pkg.main,
|
|
14
|
+
format: `cjs`
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'deepmerge',
|
|
18
|
+
file: 'dist/umd.js',
|
|
19
|
+
format: `umd`
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare namespace onetime {
|
|
2
|
+
interface Options {
|
|
3
|
+
/**
|
|
4
|
+
Throw an error when called more than once.
|
|
5
|
+
|
|
6
|
+
@default false
|
|
7
|
+
*/
|
|
8
|
+
throw?: boolean;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const onetime: {
|
|
13
|
+
/**
|
|
14
|
+
Ensure a function is only called once. When called multiple times it will return the return value from the first call.
|
|
15
|
+
|
|
16
|
+
@param fn - Function that should only be called once.
|
|
17
|
+
@returns A function that only calls `fn` once.
|
|
18
|
+
|
|
19
|
+
@example
|
|
20
|
+
```
|
|
21
|
+
import onetime = require('onetime');
|
|
22
|
+
|
|
23
|
+
let i = 0;
|
|
24
|
+
|
|
25
|
+
const foo = onetime(() => ++i);
|
|
26
|
+
|
|
27
|
+
foo(); //=> 1
|
|
28
|
+
foo(); //=> 1
|
|
29
|
+
foo(); //=> 1
|
|
30
|
+
|
|
31
|
+
onetime.callCount(foo); //=> 3
|
|
32
|
+
```
|
|
33
|
+
*/
|
|
34
|
+
<ArgumentsType extends unknown[], ReturnType>(
|
|
35
|
+
fn: (...arguments: ArgumentsType) => ReturnType,
|
|
36
|
+
options?: onetime.Options
|
|
37
|
+
): (...arguments: ArgumentsType) => ReturnType;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
Get the number of times `fn` has been called.
|
|
41
|
+
|
|
42
|
+
@param fn - Function to get call count from.
|
|
43
|
+
@returns A number representing how many times `fn` has been called.
|
|
44
|
+
|
|
45
|
+
@example
|
|
46
|
+
```
|
|
47
|
+
import onetime = require('onetime');
|
|
48
|
+
|
|
49
|
+
const foo = onetime(() => {});
|
|
50
|
+
foo();
|
|
51
|
+
foo();
|
|
52
|
+
foo();
|
|
53
|
+
|
|
54
|
+
console.log(onetime.callCount(foo));
|
|
55
|
+
//=> 3
|
|
56
|
+
```
|
|
57
|
+
*/
|
|
58
|
+
callCount(fn: (...arguments: any[]) => unknown): number;
|
|
59
|
+
|
|
60
|
+
// TODO: Remove this for the next major release
|
|
61
|
+
default: typeof onetime;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export = onetime;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const mimicFn = require('mimic-fn');
|
|
3
|
+
|
|
4
|
+
const calledFunctions = new WeakMap();
|
|
5
|
+
|
|
6
|
+
const onetime = (function_, options = {}) => {
|
|
7
|
+
if (typeof function_ !== 'function') {
|
|
8
|
+
throw new TypeError('Expected a function');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
let returnValue;
|
|
12
|
+
let callCount = 0;
|
|
13
|
+
const functionName = function_.displayName || function_.name || '<anonymous>';
|
|
14
|
+
|
|
15
|
+
const onetime = function (...arguments_) {
|
|
16
|
+
calledFunctions.set(onetime, ++callCount);
|
|
17
|
+
|
|
18
|
+
if (callCount === 1) {
|
|
19
|
+
returnValue = function_.apply(this, arguments_);
|
|
20
|
+
function_ = null;
|
|
21
|
+
} else if (options.throw === true) {
|
|
22
|
+
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return returnValue;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
mimicFn(onetime, function_);
|
|
29
|
+
calledFunctions.set(onetime, callCount);
|
|
30
|
+
|
|
31
|
+
return onetime;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
module.exports = onetime;
|
|
35
|
+
// TODO: Remove this for the next major release
|
|
36
|
+
module.exports.default = onetime;
|
|
37
|
+
|
|
38
|
+
module.exports.callCount = function_ => {
|
|
39
|
+
if (!calledFunctions.has(function_)) {
|
|
40
|
+
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return calledFunctions.get(function_);
|
|
44
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
2
|
+
"name": "onetime",
|
|
3
|
+
"version": "5.1.2",
|
|
4
|
+
"description": "Ensure a function is only called once",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/
|
|
6
|
+
"repository": "sindresorhus/onetime",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "Sindre Sorhus",
|
|
9
10
|
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
11
12
|
},
|
|
12
13
|
"engines": {
|
|
13
14
|
"node": ">=6"
|
|
@@ -20,20 +21,20 @@
|
|
|
20
21
|
"index.d.ts"
|
|
21
22
|
],
|
|
22
23
|
"keywords": [
|
|
24
|
+
"once",
|
|
23
25
|
"function",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"rename",
|
|
27
|
-
"copy",
|
|
28
|
-
"inherit",
|
|
29
|
-
"properties",
|
|
30
|
-
"name",
|
|
26
|
+
"one",
|
|
27
|
+
"onetime",
|
|
31
28
|
"func",
|
|
32
29
|
"fn",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
30
|
+
"single",
|
|
31
|
+
"call",
|
|
32
|
+
"called",
|
|
33
|
+
"prevent"
|
|
36
34
|
],
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"mimic-fn": "^2.1.0"
|
|
37
|
+
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"ava": "^1.4.1",
|
|
39
40
|
"tsd": "^0.7.1",
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# onetime [](https://travis-ci.com/github/sindresorhus/onetime)
|
|
2
|
+
|
|
3
|
+
> Ensure a function is only called once
|
|
4
|
+
|
|
5
|
+
When called multiple times it will return the return value from the first call.
|
|
6
|
+
|
|
7
|
+
*Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty and extending `Function.prototype`.*
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
$ npm install onetime
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const onetime = require('onetime');
|
|
19
|
+
|
|
20
|
+
let i = 0;
|
|
21
|
+
|
|
22
|
+
const foo = onetime(() => ++i);
|
|
23
|
+
|
|
24
|
+
foo(); //=> 1
|
|
25
|
+
foo(); //=> 1
|
|
26
|
+
foo(); //=> 1
|
|
27
|
+
|
|
28
|
+
onetime.callCount(foo); //=> 3
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
const onetime = require('onetime');
|
|
33
|
+
|
|
34
|
+
const foo = onetime(() => {}, {throw: true});
|
|
35
|
+
|
|
36
|
+
foo();
|
|
37
|
+
|
|
38
|
+
foo();
|
|
39
|
+
//=> Error: Function `foo` can only be called once
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## API
|
|
43
|
+
|
|
44
|
+
### onetime(fn, options?)
|
|
45
|
+
|
|
46
|
+
Returns a function that only calls `fn` once.
|
|
47
|
+
|
|
48
|
+
#### fn
|
|
49
|
+
|
|
50
|
+
Type: `Function`
|
|
51
|
+
|
|
52
|
+
Function that should only be called once.
|
|
53
|
+
|
|
54
|
+
#### options
|
|
55
|
+
|
|
56
|
+
Type: `object`
|
|
57
|
+
|
|
58
|
+
##### throw
|
|
59
|
+
|
|
60
|
+
Type: `boolean`\
|
|
61
|
+
Default: `false`
|
|
62
|
+
|
|
63
|
+
Throw an error when called more than once.
|
|
64
|
+
|
|
65
|
+
### onetime.callCount(fn)
|
|
66
|
+
|
|
67
|
+
Returns a number representing how many times `fn` has been called.
|
|
68
|
+
|
|
69
|
+
Note: It throws an error if you pass in a function that is not wrapped by `onetime`.
|
|
70
|
+
|
|
71
|
+
```js
|
|
72
|
+
const onetime = require('onetime');
|
|
73
|
+
|
|
74
|
+
const foo = onetime(() => {});
|
|
75
|
+
|
|
76
|
+
foo();
|
|
77
|
+
foo();
|
|
78
|
+
foo();
|
|
79
|
+
|
|
80
|
+
console.log(onetime.callCount(foo));
|
|
81
|
+
//=> 3
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
#### fn
|
|
85
|
+
|
|
86
|
+
Type: `Function`
|
|
87
|
+
|
|
88
|
+
Function to get call count from.
|
|
89
|
+
|
|
90
|
+
## onetime for enterprise
|
|
91
|
+
|
|
92
|
+
Available as part of the Tidelift Subscription.
|
|
93
|
+
|
|
94
|
+
The maintainers of onetime and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-onetime?utm_source=npm-onetime&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as t,j as i}from"./index-EE9r4ne7.js";import{O as m}from"./select-model-D2d213qn.js";import"./checkbox-BhkHXCse.js";import"./ChevronDown-CYdW9NBw.js";import"./input-r_oEqK-V.js";import"./dialog-C0FUDu40.js";import"./X-D_4PiiTE.js";import"./drawer-D4_wXu6X.js";import"./use-mobile-DP4MR1ix.js";import"./select-DMKL-iI9.js";import"./ChevronUp-BcPC1hCC.js";import"./skeleton-C8k5qVSG.js";import"./Tool01-DCaYwllU.js";import"./SearchMd-DJ0JdIz3.js";import"./Settings02-D-hypCbK.js";import"./use-ai-providers-CITI1iNq.js";import"./constants-CdNdiXMf.js";import"./chat-context-Dp5HM8R-.js";import"./use-virtual-mcp-Dn9ixQmR.js";import"./use-collections-CRzXRke9.js";import"./use-decopilot-events-CN7YV5I-.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-DGmrkFpo.js";import"./use-organization-settings-CcvcpCtE.js";import"./ai-providers-logos-CS4PCiqI.js";import"./Zap-qFCEz_qt.js";import"./AlertCircle-CDrkM01U.js";import"./CheckCircle-BTIsSwsN.js";import"./Trash01-D5ZS0TOT.js";import"./index-BRiQU6du.js";import"./card-BAp6Jwgi.js";import"./switch-BlmZa3uf.js";import"./toggle-group-By5F9baT.js";import"./avatar-BVvDTfBW.js";import"./User01-Dq3q9cE-.js";import"./alert-dialog-BpydK2MI.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./unwrap-tool-result-BYXdCQMg.js";function M(){const o=t.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(m,{}),o[0]=r):r=o[0],r}export{M as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B0UM9hrK.js","assets/index-EE9r4ne7.js","assets/index-B2LlXg0m.css","assets/ArrowNarrowLeft-D40KhznE.js","assets/CheckCircle-BTIsSwsN.js","assets/Container-ChD3KoS4.js","assets/Settings02-D-hypCbK.js","assets/XCircle-rGav0QLs.js","assets/constants-CdNdiXMf.js","assets/useInfiniteQuery-7hq96Va6.js","assets/infiniteQueryObserver-BQYXKuj2.js","assets/badge-BhfSxzi-.js","assets/input-r_oEqK-V.js","assets/dropdown-menu-aG44dJsz.js","assets/ChevronDown-CYdW9NBw.js","assets/ChevronRight-YkSQYi3B.js","assets/table-omg9OiL8.js","assets/toggle-group-By5F9baT.js","assets/use-view-mode-zFqL6G4U.js","assets/use-mobile-DP4MR1ix.js","assets/SearchMd-DJ0JdIz3.js","assets/dialog-C0FUDu40.js","assets/X-D_4PiiTE.js","assets/AlertCircle-CDrkM01U.js","assets/Upload01-CBYhGwn0.js","assets/alert-dialog-BpydK2MI.js","assets/card-BAp6Jwgi.js","assets/Trash01-D5ZS0TOT.js","assets/label-CenAgqhm.js","assets/select-DMKL-iI9.js","assets/ChevronUp-BcPC1hCC.js","assets/switch-BlmZa3uf.js","assets/textarea-CpW5pfml.js","assets/checkbox-BhkHXCse.js","assets/LinkExternal01-l0w4_WlJ.js","assets/use-copy-DGEKKbaG.js","assets/Plus-CVdax6FK.js","assets/Play-CiTVDuYt.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as a,j as t,r,l as i,aF as o}from"./index-EE9r4ne7.js";const n=r.lazy(()=>o(()=>import("./registry-layout-B0UM9hrK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37])));function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-B0UM9hrK.js","assets/index-EE9r4ne7.js","assets/index-B2LlXg0m.css","assets/ArrowNarrowLeft-D40KhznE.js","assets/CheckCircle-BTIsSwsN.js","assets/Container-ChD3KoS4.js","assets/Settings02-D-hypCbK.js","assets/XCircle-rGav0QLs.js","assets/constants-CdNdiXMf.js","assets/useInfiniteQuery-7hq96Va6.js","assets/infiniteQueryObserver-BQYXKuj2.js","assets/badge-BhfSxzi-.js","assets/input-r_oEqK-V.js","assets/dropdown-menu-aG44dJsz.js","assets/ChevronDown-CYdW9NBw.js","assets/ChevronRight-YkSQYi3B.js","assets/table-omg9OiL8.js","assets/toggle-group-By5F9baT.js","assets/use-view-mode-zFqL6G4U.js","assets/use-mobile-DP4MR1ix.js","assets/SearchMd-DJ0JdIz3.js","assets/dialog-C0FUDu40.js","assets/X-D_4PiiTE.js","assets/AlertCircle-CDrkM01U.js","assets/Upload01-CBYhGwn0.js","assets/alert-dialog-BpydK2MI.js","assets/card-BAp6Jwgi.js","assets/Trash01-D5ZS0TOT.js","assets/label-CenAgqhm.js","assets/select-DMKL-iI9.js","assets/ChevronUp-BcPC1hCC.js","assets/switch-BlmZa3uf.js","assets/textarea-CpW5pfml.js","assets/checkbox-BhkHXCse.js","assets/LinkExternal01-l0w4_WlJ.js","assets/use-copy-DGEKKbaG.js","assets/Plus-CVdax6FK.js","assets/Play-CiTVDuYt.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as n,f as c,g as m,j as r,l as f,r as l,aF as u}from"./index-EE9r4ne7.js";const g=l.lazy(()=>u(()=>import("./registry-layout-B0UM9hrK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37])));function _(){const e=n.c(5),o=c();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:i}=m(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"h-full flex items-center justify-center",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==i?(a=r.jsx(l.Suspense,{fallback:s,children:r.jsx(g,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-BQYXKuj2.js";import{bY as i}from"./index-EE9r4ne7.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-EE9r4ne7.js";import{a as f}from"./index-mdSoEPSF.js";import"./index-CEQG3Gi2.js";import"./constants-CdNdiXMf.js";import"./collections-DIuw_dNV.js";import"./index-NYDZhYFt.js";import"./use-virtual-mcp-Dn9ixQmR.js";import"./use-collections-CRzXRke9.js";import"./monaco-editor-C3TYqqnp.js";import"./scroll-area-C6ws31M0.js";import"./select-DMKL-iI9.js";import"./use-mobile-DP4MR1ix.js";import"./ChevronDown-CYdW9NBw.js";import"./ChevronUp-BcPC1hCC.js";import"./accordion-C_FjDGY7.js";import"./agent-icon-31CiXnkF.js";import"./AlertCircle-CDrkM01U.js";import"./Tool01-DCaYwllU.js";import"./SearchMd-DJ0JdIz3.js";import"./ArrowNarrowLeft-D40KhznE.js";import"./XCircle-rGav0QLs.js";import"./ZapSquare-BYfCzFpy.js";import"./Users03-BIYd5t8v.js";import"./CheckCircle-BTIsSwsN.js";import"./ChevronRight-YkSQYi3B.js";import"./Container-ChD3KoS4.js";import"./Star01-Vcjv0Tzc.js";import"./Palette-D4s8zWmN.js";import"./index-BRiQU6du.js";import"./X-D_4PiiTE.js";import"./LinkExternal01-l0w4_WlJ.js";import"./Lock01-CmojMPTn.js";import"./Sun-51uZR1E5.js";import"./Play-CiTVDuYt.js";import"./Plus-CVdax6FK.js";import"./Settings02-D-hypCbK.js";import"./Trash01-D5ZS0TOT.js";import"./Upload01-CBYhGwn0.js";import"./User01-Dq3q9cE-.js";import"./Zap-qFCEz_qt.js";import"./badge-BhfSxzi-.js";import"./view-mode-toggle-BTfIGFL4.js";import"./layout-DB6YepVn.js";import"./use-connection-CeSGdaGP.js";import"./use-mcp-tools-BKQPDk4x.js";import"./dialog-C0FUDu40.js";import"./dropdown-menu-aG44dJsz.js";import"./integration-icon-BKKqOsd5.js";import"./index-CIlSPTSj.js";import"./empty-state-BGqwS_3w.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-r_oEqK-V.js";function ct(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{ct as default};
|