decocms 2.281.1 → 2.281.2
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-CXhNEqPD.js → AlertCircle-BeQFaTo3.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DBqrhl2C.js → ArrowNarrowLeft-C-IANgnQ.js} +1 -1
- package/dist/client/assets/{CheckCircle-rrM45Ijo.js → CheckCircle-Dh4A5tI_.js} +1 -1
- package/dist/client/assets/{ChevronDown-DAKkigRT.js → ChevronDown-D9aZn2Hi.js} +1 -1
- package/dist/client/assets/{ChevronRight-nEY3RpXH.js → ChevronRight-CkL59Zuk.js} +1 -1
- package/dist/client/assets/{ChevronUp-T3_ih6Xh.js → ChevronUp-C7hCnblE.js} +1 -1
- package/dist/client/assets/{Container-CNCAIie1.js → Container-CSvdcipc.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C_NJPXt5.js → LinkExternal01-sdvrsKlM.js} +1 -1
- package/dist/client/assets/{Lock01-DDr7tDu1.js → Lock01-CneVnDQd.js} +1 -1
- package/dist/client/assets/{Palette-CF-36u-L.js → Palette-Bo0ad1R6.js} +1 -1
- package/dist/client/assets/{Play-dn0rkS_S.js → Play-BhoAd8Uu.js} +1 -1
- package/dist/client/assets/{Plus-BIO83iih.js → Plus-79r9zazJ.js} +1 -1
- package/dist/client/assets/{SearchMd-DL-HZIzn.js → SearchMd-00qF-7Ba.js} +1 -1
- package/dist/client/assets/{Settings02-B4pMJgrZ.js → Settings02-B6cIpcv6.js} +1 -1
- package/dist/client/assets/{Star01-DBidYcso.js → Star01-RArWROxo.js} +1 -1
- package/dist/client/assets/{Sun-DQm1w3KD.js → Sun-CaIYIMZ6.js} +1 -1
- package/dist/client/assets/{Tool01-C5f9n9uP.js → Tool01-BK4G_l0X.js} +1 -1
- package/dist/client/assets/{Trash01-EeQ8Zxiu.js → Trash01-PNv-fbRK.js} +1 -1
- package/dist/client/assets/{Upload01-DE3P0cg1.js → Upload01-BeVyQxbB.js} +1 -1
- package/dist/client/assets/{User01-Bs_IysOn.js → User01-BirINwKI.js} +1 -1
- package/dist/client/assets/{Users03-BRYBv6NS.js → Users03-Dpk7x7z4.js} +1 -1
- package/dist/client/assets/{X-CBjgNj3x.js → X-KSz9xyi5.js} +1 -1
- package/dist/client/assets/{XCircle-CQ9zwOam.js → XCircle-uU-3aWe3.js} +1 -1
- package/dist/client/assets/{Zap-BD4ZFQrP.js → Zap-DvQy6Azt.js} +1 -1
- package/dist/client/assets/{ZapSquare-DHFKeZJh.js → ZapSquare-Dk1UmO2a.js} +1 -1
- package/dist/client/assets/{accordion-GCOEctc7.js → accordion-w6xYXziw.js} +1 -1
- package/dist/client/assets/{agent-icon-DplMDRl4.js → agent-icon-CMOX8nfk.js} +1 -1
- package/dist/client/assets/{agents-list-CoSoD24U.js → agents-list-CeEeRXns.js} +1 -1
- package/dist/client/assets/ai-providers-_ruFOoFf.js +1 -0
- package/dist/client/assets/{alert-dialog-BK8KGRx2.js → alert-dialog-DtwmYIx7.js} +1 -1
- package/dist/client/assets/{auth-catchall-RbdT4yVD.js → auth-catchall-CMH1u4oJ.js} +1 -1
- package/dist/client/assets/{automation-list-row-C705Yh5a.js → automation-list-row-Sb9JaQY9.js} +1 -1
- package/dist/client/assets/{automations-BydFkRPy.js → automations-Dmw1cKQC.js} +1 -1
- package/dist/client/assets/{avatar-C1O6Osya.js → avatar-BSJnhSPL.js} +1 -1
- package/dist/client/assets/{badge-BwdrcyuF.js → badge-BbahYJz-.js} +1 -1
- package/dist/client/assets/{brand-context-CLck9szL.js → brand-context-9yJi8LtT.js} +1 -1
- package/dist/client/assets/{card-xoTyoUzT.js → card-BBjkVedQ.js} +1 -1
- package/dist/client/assets/{chat-context-BhPaXK8c.js → chat-context-BVA22TkC.js} +1 -1
- package/dist/client/assets/{checkbox-DBty8aLc.js → checkbox-BNYrEZke.js} +1 -1
- package/dist/client/assets/{collection-detail-BqXZI6Ah.js → collection-detail-WDWjdfFo.js} +1 -1
- package/dist/client/assets/{collection-display-button-DPonZkkK.js → collection-display-button-C_SpzkVL.js} +1 -1
- package/dist/client/assets/{collection-search-RHsPhPz2.js → collection-search-3gkmMFfK.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CX0YdlzW.js → collection-table-wrapper-Nq245ZaG.js} +1 -1
- package/dist/client/assets/{collection-tabs-laFjVKNt.js → collection-tabs-DQAAB0E9.js} +1 -1
- package/dist/client/assets/{collections-CEapp19h.js → collections-CvC03WFa.js} +1 -1
- package/dist/client/assets/{command-CFefGdlU.js → command-COmac0HY.js} +1 -1
- package/dist/client/assets/{connection-card-2yAhTble.js → connection-card-C-lcUJmx.js} +1 -1
- package/dist/client/assets/{connection-detail-BEAMJjqO.js → connection-detail-DXUAuxOs.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BIEYG16e.js → connection-form-helpers-Beczk_I1.js} +1 -1
- package/dist/client/assets/{connections-CrrfLcZW.js → connections-jiDZ88zc.js} +1 -1
- package/dist/client/assets/{constants-C_TmFsOA.js → constants-BXYBvBo8.js} +1 -1
- package/dist/client/assets/{constants-PT5ZjaoS.js → constants-K9p6sFeA.js} +1 -1
- package/dist/client/assets/{dialog-I6EZrcC4.js → dialog-Cu_M3bSF.js} +1 -1
- package/dist/client/assets/{drawer-Cr1xQU7_.js → drawer-C0zWk4g_.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Bt-RAfAA.js → dropdown-menu-DVLrmulo.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CxPNRort.js → dynamic-plugin-layout-4eAl2fmh.js} +1 -1
- package/dist/client/assets/{empty-state-Bhhvv6ge.js → empty-state-BKZHnGIj.js} +1 -1
- package/dist/client/assets/{empty-state-Da0P4sNf.js → empty-state-CUC0Gkix.js} +1 -1
- package/dist/client/assets/{extract-connection-data-YSOD0s7F.js → extract-connection-data-CvyRIMCz.js} +1 -1
- package/dist/client/assets/{features-DC23zh9K.js → features-XCvz9PLL.js} +1 -1
- package/dist/client/assets/{form-D3y3maub.js → form-Ddm04alF.js} +1 -1
- package/dist/client/assets/{general-LiXqwrB9.js → general-DUSBEOfs.js} +1 -1
- package/dist/client/assets/{index-Btnitjvh.js → index-BH8gPP0f.js} +1 -1
- package/dist/client/assets/{index-DqjQmEPO.js → index-BHskyDSR.js} +1 -1
- package/dist/client/assets/{index-5_sz47Di.js → index-BPDAXzpD.js} +1 -1
- package/dist/client/assets/{index-D_GUV09H.js → index-BdfTJahg.js} +1 -1
- package/dist/client/assets/{index-BmhIlyjL.js → index-BhIzdEY1.js} +2 -2
- package/dist/client/assets/{index-Dme-mJko.js → index-BrtLQXUh.js} +1 -1
- package/dist/client/assets/{index-DPaYtFLz.js → index-CU16qbkD.js} +4 -4
- package/dist/client/assets/{index-CRos__3S.js → index-Cg0hncqj.js} +1 -1
- package/dist/client/assets/{index-CO3fR9Ko.js → index-FLw-zxvs.js} +1 -1
- package/dist/client/assets/{index-fNR5FZEy.js → index-uAQGGxtu.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Ck6-lBoi.js → infiniteQueryObserver-BO26Xlha.js} +1 -1
- package/dist/client/assets/{input-CEJVxq-W.js → input-Bz8fx1AG.js} +1 -1
- package/dist/client/assets/{integration-icon-CGDfaqlX.js → integration-icon-Byenx_4j.js} +1 -1
- package/dist/client/assets/{label-BEKYrLdl.js → label-DaHwCWWB.js} +1 -1
- package/dist/client/assets/{layout-CyxzjLg9.js → layout-C8AFQnZg.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-CmQRxcah.js → lean-canvas-recruit-modal-mykHJAKm.js} +1 -1
- package/dist/client/assets/{login-DiS0NvDa.js → login-DwiMJDl5.js} +1 -1
- package/dist/client/assets/{members-x2qbZXG0.js → members-Cd_WsIS9.js} +1 -1
- package/dist/client/assets/{monaco-editor-DyHKFOcp.js → monaco-editor-D27CWon0.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Ch99ovXK.js → monitoring-stats-row-C-XRpFjl.js} +1 -1
- package/dist/client/assets/{oauth-callback-444nKRTA.js → oauth-callback-GuSY-vSr.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BRlp0DX0.js → oauth-callback-ai-provider-D3FgevI5.js} +1 -1
- package/dist/client/assets/{onboarding-B3bb6-wd.js → onboarding-PM_BE0uA.js} +1 -1
- package/dist/client/assets/{org-layout-DFpYJ_Lo.js → org-layout-C251Cbcv.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-kFeLgDd0.js → org-plugin-layout-BwQLOazi.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Bko3r1k8.js → plugin-empty-state-DLXHjQeu.js} +1 -1
- package/dist/client/assets/{plugin-header-CXbjkO1n.js → plugin-header-BddmOg85.js} +1 -1
- package/dist/client/assets/{plugin-layout-CIVWtpIX.js → plugin-layout-RqfANRb_.js} +1 -1
- package/dist/client/assets/{popover-CCe-io9u.js → popover-BEF8mI0w.js} +1 -1
- package/dist/client/assets/{profile-D_pdnSKR.js → profile-DrdPa8Y7.js} +1 -1
- package/dist/client/assets/{project-app-view-MzkBCRXu.js → project-app-view-XrA_5t6Q.js} +1 -1
- package/dist/client/assets/registry-hvW8DAlR.js +2 -0
- package/dist/client/assets/{registry-layout-CmilG4JD.js → registry-layout-CwCyJT-v.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CQr_32Dx.js → required-auth-layout-Cxviv7yN.js} +1 -1
- package/dist/client/assets/{reset-password-CHd8PV0A.js → reset-password-DYbWh4Wq.js} +1 -1
- package/dist/client/assets/{scroll-area-BNJqNM4f.js → scroll-area-_gjorSmM.js} +1 -1
- package/dist/client/assets/{search-input-PSurQh24.js → search-input-Dflevf_r.js} +1 -1
- package/dist/client/assets/{select-model-BdhWY7A6.js → select-model-BgS5BYlp.js} +1 -1
- package/dist/client/assets/{select-CF-fumth.js → select-ruUaRI3f.js} +1 -1
- package/dist/client/assets/{settings-layout-DJjHY9on.js → settings-layout-C9QCDWL8.js} +1 -1
- package/dist/client/assets/{shell-layout-CYRZAES3.js → shell-layout-Lnkya_bN.js} +1 -1
- package/dist/client/assets/{skeleton-CFa_G4KV.js → skeleton-CvZ1yhmk.js} +1 -1
- package/dist/client/assets/{sso-jUma78jG.js → sso-DVCm0NAv.js} +1 -1
- package/dist/client/assets/{store-BidlQxlt.js → store-BAtOk8g6.js} +1 -1
- package/dist/client/assets/store-registry-DyRkwg3g.js +2 -0
- package/dist/client/assets/{switch-Bq5n9MM5.js → switch-C4VRxkon.js} +1 -1
- package/dist/client/assets/{table-D8U2FVwS.js → table-C1xMho2l.js} +1 -1
- package/dist/client/assets/{tabs-DZ9yv9Br.js → tabs-MUC8gGmo.js} +1 -1
- package/dist/client/assets/{task-status-BzX77iHN.js → task-status-DBTk3ApD.js} +1 -1
- package/dist/client/assets/{textarea-bXmYFJXP.js → textarea-Dh5aI-9Q.js} +1 -1
- package/dist/client/assets/{toggle-group-t_YGlspr.js → toggle-group-qqPb8p7Z.js} +1 -1
- package/dist/client/assets/{tools-list-cUqdJ3b_.js → tools-list-5INqbH2J.js} +1 -1
- package/dist/client/assets/{types-DbJzRwxS.js → types-Bp-YI7R5.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Ca34Evp_.js → use-ai-providers-BXn7VXga.js} +1 -1
- package/dist/client/assets/{use-collections-cZx-7LAh.js → use-collections-Dg7sh01O.js} +1 -1
- package/dist/client/assets/{use-connection-p8a1oY0W.js → use-connection-DhM_x-jA.js} +1 -1
- package/dist/client/assets/{use-copy-DkWpaj2z.js → use-copy-BuEIWb6s.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B4h9UEp3.js → use-create-virtual-mcp-KKiF-MXD.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-iE3IpGU0.js → use-decopilot-events-BSRQhWTI.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DcPjQahA.js → use-delete-connection-EjeBh_jx.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D3-JOxfi.js → use-infinite-scroll-BvRRlmDj.js} +1 -1
- package/dist/client/assets/{use-list-state-Cutqtn4Q.js → use-list-state-DJ8S20f9.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-RW8NgX67.js → use-mcp-tools-C0kKBiKr.js} +1 -1
- package/dist/client/assets/{use-members-CW1rjgPD.js → use-members-D4VPX3yK.js} +1 -1
- package/dist/client/assets/{use-mobile-9jKemf9v.js → use-mobile-BXRLCdzR.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DN_dQjlH.js → use-navigate-to-agent-C1QNfHMd.js} +1 -1
- package/dist/client/assets/{use-org-sso-BoJNANa1.js → use-org-sso-C1E2S5f1.js} +1 -1
- package/dist/client/assets/{use-organization-settings-tmi1I_13.js → use-organization-settings-NQDr_YDe.js} +1 -1
- package/dist/client/assets/{use-registry-connections-RSYINl6E.js → use-registry-connections-2buwPIEr.js} +1 -1
- package/dist/client/assets/{use-status-sounds-B0YHvwY0.js → use-status-sounds-C5rJSnr7.js} +1 -1
- package/dist/client/assets/{use-tasks-COmwvqVp.js → use-tasks-DoJvFu21.js} +1 -1
- package/dist/client/assets/{use-view-mode-4mnvs45U.js → use-view-mode-eHr1pnSD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-VkyufnqQ.js → use-virtual-mcp-DPQanfrd.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cozeocmy.js +1 -0
- package/dist/client/assets/{user-DfQBAoTe.js → user-D-0Dg4hb.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DZRGDH4V.js → view-mode-toggle-C9JdTAIx.js} +1 -1
- package/dist/client/assets/{workflow-CTAxciPV.js → workflow-Bo7CKW-_.js} +1 -1
- package/dist/client/assets/workflow-detail-cv-DGPKy.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +380 -380
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/ansi-styles/license +9 -0
- package/dist/server/node_modules/ansi-styles/package.json +54 -0
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/pg/LICENSE +21 -0
- 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-date/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/dist/server/server.js +302 -302
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-CVli8tvY.js +0 -1
- package/dist/client/assets/registry-DQpmbY6_.js +0 -2
- package/dist/client/assets/store-registry-BhTsbsT8.js +0 -2
- package/dist/client/assets/useInfiniteQuery-VV_yJwGh.js +0 -1
- package/dist/client/assets/workflow-detail-DJaSQC-o.js +0 -1
- 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/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/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as t,j as i}from"./index-BmhIlyjL.js";import{O as m}from"./select-model-BdhWY7A6.js";import"./checkbox-DBty8aLc.js";import"./ChevronDown-DAKkigRT.js";import"./input-CEJVxq-W.js";import"./dialog-I6EZrcC4.js";import"./X-CBjgNj3x.js";import"./drawer-Cr1xQU7_.js";import"./use-mobile-9jKemf9v.js";import"./select-CF-fumth.js";import"./ChevronUp-T3_ih6Xh.js";import"./skeleton-CFa_G4KV.js";import"./Tool01-C5f9n9uP.js";import"./SearchMd-DL-HZIzn.js";import"./Settings02-B4pMJgrZ.js";import"./use-ai-providers-Ca34Evp_.js";import"./constants-C_TmFsOA.js";import"./chat-context-BhPaXK8c.js";import"./use-virtual-mcp-VkyufnqQ.js";import"./use-collections-cZx-7LAh.js";import"./use-decopilot-events-iE3IpGU0.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-COmwvqVp.js";import"./use-organization-settings-tmi1I_13.js";import"./ai-providers-logos-CS4PCiqI.js";import"./Zap-BD4ZFQrP.js";import"./AlertCircle-CXhNEqPD.js";import"./CheckCircle-rrM45Ijo.js";import"./Trash01-EeQ8Zxiu.js";import"./index-Btnitjvh.js";import"./card-xoTyoUzT.js";import"./switch-Bq5n9MM5.js";import"./toggle-group-t_YGlspr.js";import"./avatar-C1O6Osya.js";import"./User01-Bs_IysOn.js";import"./alert-dialog-BK8KGRx2.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-CmilG4JD.js","assets/index-BmhIlyjL.js","assets/index-C_Ncklfg.css","assets/ArrowNarrowLeft-DBqrhl2C.js","assets/CheckCircle-rrM45Ijo.js","assets/Container-CNCAIie1.js","assets/Settings02-B4pMJgrZ.js","assets/XCircle-CQ9zwOam.js","assets/constants-C_TmFsOA.js","assets/useInfiniteQuery-VV_yJwGh.js","assets/infiniteQueryObserver-Ck6-lBoi.js","assets/badge-BwdrcyuF.js","assets/input-CEJVxq-W.js","assets/dropdown-menu-Bt-RAfAA.js","assets/ChevronDown-DAKkigRT.js","assets/ChevronRight-nEY3RpXH.js","assets/table-D8U2FVwS.js","assets/toggle-group-t_YGlspr.js","assets/use-view-mode-4mnvs45U.js","assets/use-mobile-9jKemf9v.js","assets/SearchMd-DL-HZIzn.js","assets/dialog-I6EZrcC4.js","assets/X-CBjgNj3x.js","assets/AlertCircle-CXhNEqPD.js","assets/Upload01-DE3P0cg1.js","assets/alert-dialog-BK8KGRx2.js","assets/card-xoTyoUzT.js","assets/Trash01-EeQ8Zxiu.js","assets/label-BEKYrLdl.js","assets/select-CF-fumth.js","assets/ChevronUp-T3_ih6Xh.js","assets/switch-Bq5n9MM5.js","assets/textarea-bXmYFJXP.js","assets/checkbox-DBty8aLc.js","assets/LinkExternal01-C_NJPXt5.js","assets/use-copy-DkWpaj2z.js","assets/Plus-BIO83iih.js","assets/Play-dn0rkS_S.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{e as a,j as t,r,l as i,aF as o}from"./index-BmhIlyjL.js";const n=r.lazy(()=>o(()=>import("./registry-layout-CmilG4JD.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-CmilG4JD.js","assets/index-BmhIlyjL.js","assets/index-C_Ncklfg.css","assets/ArrowNarrowLeft-DBqrhl2C.js","assets/CheckCircle-rrM45Ijo.js","assets/Container-CNCAIie1.js","assets/Settings02-B4pMJgrZ.js","assets/XCircle-CQ9zwOam.js","assets/constants-C_TmFsOA.js","assets/useInfiniteQuery-VV_yJwGh.js","assets/infiniteQueryObserver-Ck6-lBoi.js","assets/badge-BwdrcyuF.js","assets/input-CEJVxq-W.js","assets/dropdown-menu-Bt-RAfAA.js","assets/ChevronDown-DAKkigRT.js","assets/ChevronRight-nEY3RpXH.js","assets/table-D8U2FVwS.js","assets/toggle-group-t_YGlspr.js","assets/use-view-mode-4mnvs45U.js","assets/use-mobile-9jKemf9v.js","assets/SearchMd-DL-HZIzn.js","assets/dialog-I6EZrcC4.js","assets/X-CBjgNj3x.js","assets/AlertCircle-CXhNEqPD.js","assets/Upload01-DE3P0cg1.js","assets/alert-dialog-BK8KGRx2.js","assets/card-xoTyoUzT.js","assets/Trash01-EeQ8Zxiu.js","assets/label-BEKYrLdl.js","assets/select-CF-fumth.js","assets/ChevronUp-T3_ih6Xh.js","assets/switch-Bq5n9MM5.js","assets/textarea-bXmYFJXP.js","assets/checkbox-DBty8aLc.js","assets/LinkExternal01-C_NJPXt5.js","assets/use-copy-DkWpaj2z.js","assets/Plus-BIO83iih.js","assets/Play-dn0rkS_S.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-BmhIlyjL.js";const g=l.lazy(()=>u(()=>import("./registry-layout-CmilG4JD.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-Ck6-lBoi.js";import{bY as i}from"./index-BmhIlyjL.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-BmhIlyjL.js";import{a as f}from"./index-5_sz47Di.js";import"./index-CRos__3S.js";import"./constants-C_TmFsOA.js";import"./collections-CEapp19h.js";import"./index-Dme-mJko.js";import"./use-virtual-mcp-VkyufnqQ.js";import"./use-collections-cZx-7LAh.js";import"./monaco-editor-DyHKFOcp.js";import"./scroll-area-BNJqNM4f.js";import"./select-CF-fumth.js";import"./use-mobile-9jKemf9v.js";import"./ChevronDown-DAKkigRT.js";import"./ChevronUp-T3_ih6Xh.js";import"./accordion-GCOEctc7.js";import"./agent-icon-DplMDRl4.js";import"./AlertCircle-CXhNEqPD.js";import"./Tool01-C5f9n9uP.js";import"./SearchMd-DL-HZIzn.js";import"./ArrowNarrowLeft-DBqrhl2C.js";import"./XCircle-CQ9zwOam.js";import"./ZapSquare-DHFKeZJh.js";import"./Users03-BRYBv6NS.js";import"./CheckCircle-rrM45Ijo.js";import"./ChevronRight-nEY3RpXH.js";import"./Container-CNCAIie1.js";import"./Star01-DBidYcso.js";import"./Palette-CF-36u-L.js";import"./index-Btnitjvh.js";import"./X-CBjgNj3x.js";import"./LinkExternal01-C_NJPXt5.js";import"./Lock01-DDr7tDu1.js";import"./Sun-DQm1w3KD.js";import"./Play-dn0rkS_S.js";import"./Plus-BIO83iih.js";import"./Settings02-B4pMJgrZ.js";import"./Trash01-EeQ8Zxiu.js";import"./Upload01-DE3P0cg1.js";import"./User01-Bs_IysOn.js";import"./Zap-BD4ZFQrP.js";import"./badge-BwdrcyuF.js";import"./view-mode-toggle-DZRGDH4V.js";import"./layout-CyxzjLg9.js";import"./use-connection-p8a1oY0W.js";import"./use-mcp-tools-RW8NgX67.js";import"./dialog-I6EZrcC4.js";import"./dropdown-menu-Bt-RAfAA.js";import"./integration-icon-CGDfaqlX.js";import"./index-fNR5FZEy.js";import"./empty-state-Da0P4sNf.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-CEJVxq-W.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};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var DATE_TIME = /(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/
|
|
4
|
-
var DATE = /^(\d{1,})-(\d{2})-(\d{2})( BC)?$/
|
|
5
|
-
var TIME_ZONE = /([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/
|
|
6
|
-
var INFINITY = /^-?infinity$/
|
|
7
|
-
|
|
8
|
-
module.exports = function parseDate (isoDate) {
|
|
9
|
-
if (INFINITY.test(isoDate)) {
|
|
10
|
-
// Capitalize to Infinity before passing to Number
|
|
11
|
-
return Number(isoDate.replace('i', 'I'))
|
|
12
|
-
}
|
|
13
|
-
var matches = DATE_TIME.exec(isoDate)
|
|
14
|
-
|
|
15
|
-
if (!matches) {
|
|
16
|
-
// Force YYYY-MM-DD dates to be parsed as local time
|
|
17
|
-
return getDate(isoDate) || null
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
var isBC = !!matches[8]
|
|
21
|
-
var year = parseInt(matches[1], 10)
|
|
22
|
-
if (isBC) {
|
|
23
|
-
year = bcYearToNegativeYear(year)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var month = parseInt(matches[2], 10) - 1
|
|
27
|
-
var day = matches[3]
|
|
28
|
-
var hour = parseInt(matches[4], 10)
|
|
29
|
-
var minute = parseInt(matches[5], 10)
|
|
30
|
-
var second = parseInt(matches[6], 10)
|
|
31
|
-
|
|
32
|
-
var ms = matches[7]
|
|
33
|
-
ms = ms ? 1000 * parseFloat(ms) : 0
|
|
34
|
-
|
|
35
|
-
var date
|
|
36
|
-
var offset = timeZoneOffset(isoDate)
|
|
37
|
-
if (offset != null) {
|
|
38
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, ms))
|
|
39
|
-
|
|
40
|
-
// Account for years from 0 to 99 being interpreted as 1900-1999
|
|
41
|
-
// by Date.UTC / the multi-argument form of the Date constructor
|
|
42
|
-
if (is0To99(year)) {
|
|
43
|
-
date.setUTCFullYear(year)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (offset !== 0) {
|
|
47
|
-
date.setTime(date.getTime() - offset)
|
|
48
|
-
}
|
|
49
|
-
} else {
|
|
50
|
-
date = new Date(year, month, day, hour, minute, second, ms)
|
|
51
|
-
|
|
52
|
-
if (is0To99(year)) {
|
|
53
|
-
date.setFullYear(year)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return date
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function getDate (isoDate) {
|
|
61
|
-
var matches = DATE.exec(isoDate)
|
|
62
|
-
if (!matches) {
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
var year = parseInt(matches[1], 10)
|
|
67
|
-
var isBC = !!matches[4]
|
|
68
|
-
if (isBC) {
|
|
69
|
-
year = bcYearToNegativeYear(year)
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
var month = parseInt(matches[2], 10) - 1
|
|
73
|
-
var day = matches[3]
|
|
74
|
-
// YYYY-MM-DD will be parsed as local time
|
|
75
|
-
var date = new Date(year, month, day)
|
|
76
|
-
|
|
77
|
-
if (is0To99(year)) {
|
|
78
|
-
date.setFullYear(year)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return date
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// match timezones:
|
|
85
|
-
// Z (UTC)
|
|
86
|
-
// -05
|
|
87
|
-
// +06:30
|
|
88
|
-
function timeZoneOffset (isoDate) {
|
|
89
|
-
if (isoDate.endsWith('+00')) {
|
|
90
|
-
return 0
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
var zone = TIME_ZONE.exec(isoDate.split(' ')[1])
|
|
94
|
-
if (!zone) return
|
|
95
|
-
var type = zone[1]
|
|
96
|
-
|
|
97
|
-
if (type === 'Z') {
|
|
98
|
-
return 0
|
|
99
|
-
}
|
|
100
|
-
var sign = type === '-' ? -1 : 1
|
|
101
|
-
var offset = parseInt(zone[2], 10) * 3600 +
|
|
102
|
-
parseInt(zone[3] || 0, 10) * 60 +
|
|
103
|
-
parseInt(zone[4] || 0, 10)
|
|
104
|
-
|
|
105
|
-
return offset * sign * 1000
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function bcYearToNegativeYear (year) {
|
|
109
|
-
// Account for numerical difference between representations of BC years
|
|
110
|
-
// See: https://github.com/bendrucker/postgres-date/issues/5
|
|
111
|
-
return -(year - 1)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function is0To99 (num) {
|
|
115
|
-
return num >= 0 && num < 100
|
|
116
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-date",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "1.0.7",
|
|
5
|
-
"description": "Postgres date column parser",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-date",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Ben Drucker",
|
|
10
|
-
"email": "bvdrucker@gmail.com",
|
|
11
|
-
"url": "bendrucker.me"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=0.10.0"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "standard && tape test.js"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"postgres",
|
|
21
|
-
"date",
|
|
22
|
-
"parser"
|
|
23
|
-
],
|
|
24
|
-
"dependencies": {},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"standard": "^14.0.0",
|
|
27
|
-
"tape": "^5.0.0"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"index.js",
|
|
31
|
-
"readme.md"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# postgres-date [](https://travis-ci.org/bendrucker/postgres-date) [](https://greenkeeper.io/)
|
|
2
|
-
|
|
3
|
-
> Postgres date output parser
|
|
4
|
-
|
|
5
|
-
This package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.
|
|
6
|
-
|
|
7
|
-
If you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.
|
|
8
|
-
|
|
9
|
-
**Supported Postgres Versions:** `>= 9.6`
|
|
10
|
-
|
|
11
|
-
All prior versions of Postgres are likely compatible but not officially supported.
|
|
12
|
-
|
|
13
|
-
## Install
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
$ npm install --save postgres-date
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
var parse = require('postgres-date')
|
|
24
|
-
parse('2011-01-23 22:15:51Z')
|
|
25
|
-
// => 2011-01-23T22:15:51.000Z
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
#### `parse(isoDate)` -> `date`
|
|
31
|
-
|
|
32
|
-
##### isoDate
|
|
33
|
-
|
|
34
|
-
*Required*
|
|
35
|
-
Type: `string`
|
|
36
|
-
|
|
37
|
-
A date string from Postgres.
|
|
38
|
-
|
|
39
|
-
## Releases
|
|
40
|
-
|
|
41
|
-
The following semantic versioning increments will be used for changes:
|
|
42
|
-
|
|
43
|
-
* **Major**: Removal of support for Node.js versions or Postgres versions (not expected)
|
|
44
|
-
* **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format
|
|
45
|
-
* **Patch**: Any fix for parsing behavior
|
|
46
|
-
|
|
47
|
-
## License
|
|
48
|
-
|
|
49
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2014-2018, Matteo Collina <hello@matteocollina.com>
|
|
2
|
-
|
|
3
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
-
copyright notice and this permission notice appear in all copies.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
13
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# Split2(matcher, mapper, options)
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
Break up a stream and reassemble it so that each line is a chunk.
|
|
6
|
-
`split2` is inspired by [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) module,
|
|
7
|
-
and it is totally API compatible with it.
|
|
8
|
-
However, it is based on Node.js core [`Transform`](https://nodejs.org/api/stream.html#stream_new_stream_transform_options).
|
|
9
|
-
|
|
10
|
-
`matcher` may be a `String`, or a `RegExp`. Example, read every line in a file ...
|
|
11
|
-
|
|
12
|
-
``` js
|
|
13
|
-
fs.createReadStream(file)
|
|
14
|
-
.pipe(split2())
|
|
15
|
-
.on('data', function (line) {
|
|
16
|
-
//each chunk now is a separate line!
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
`split` takes the same arguments as `string.split` except it defaults to '/\r?\n/', and the optional `limit` paremeter is ignored.
|
|
22
|
-
[String#split](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split)
|
|
23
|
-
|
|
24
|
-
`split` takes an optional options object on it's third argument, which
|
|
25
|
-
is directly passed as a
|
|
26
|
-
[Transform](https://nodejs.org/api/stream.html#stream_new_stream_transform_options)
|
|
27
|
-
option.
|
|
28
|
-
|
|
29
|
-
Additionally, the `.maxLength` and `.skipOverflow` options are implemented, which set limits on the internal
|
|
30
|
-
buffer size and the stream's behavior when the limit is exceeded. There is no limit unless `maxLength` is set. When
|
|
31
|
-
the internal buffer size exceeds `maxLength`, the stream emits an error by default. You may also set `skipOverflow` to
|
|
32
|
-
true to suppress the error and instead skip past any lines that cause the internal buffer to exceed `maxLength`.
|
|
33
|
-
|
|
34
|
-
Calling `.destroy` will make the stream emit `close`. Use this to perform cleanup logic
|
|
35
|
-
|
|
36
|
-
``` js
|
|
37
|
-
var splitFile = function(filename) {
|
|
38
|
-
var file = fs.createReadStream(filename)
|
|
39
|
-
|
|
40
|
-
return file
|
|
41
|
-
.pipe(split2())
|
|
42
|
-
.on('close', function() {
|
|
43
|
-
// destroy the file stream in case the split stream was destroyed
|
|
44
|
-
file.destroy()
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var stream = splitFile('my-file.txt')
|
|
49
|
-
|
|
50
|
-
stream.destroy() // will destroy the input file stream
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
# NDJ - Newline Delimited Json
|
|
54
|
-
|
|
55
|
-
`split2` accepts a function which transforms each line.
|
|
56
|
-
|
|
57
|
-
``` js
|
|
58
|
-
fs.createReadStream(file)
|
|
59
|
-
.pipe(split2(JSON.parse))
|
|
60
|
-
.on('data', function (obj) {
|
|
61
|
-
//each chunk now is a js object
|
|
62
|
-
})
|
|
63
|
-
.on("error", function(error) {
|
|
64
|
-
//handling parsing errors
|
|
65
|
-
})
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
However, in [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) the mapper
|
|
69
|
-
is wrapped in a try-catch, while here it is not: if your parsing logic can throw, wrap it yourself. Otherwise, you can also use the stream error handling when mapper function throw.
|
|
70
|
-
|
|
71
|
-
# License
|
|
72
|
-
|
|
73
|
-
Copyright (c) 2014-2021, Matteo Collina <hello@matteocollina.com>
|
|
74
|
-
|
|
75
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
76
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
77
|
-
copyright notice and this permission notice appear in all copies.
|
|
78
|
-
|
|
79
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
80
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
81
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
82
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
83
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
84
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
85
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const split = require('./')
|
|
4
|
-
const bench = require('fastbench')
|
|
5
|
-
const binarySplit = require('binary-split')
|
|
6
|
-
const fs = require('fs')
|
|
7
|
-
|
|
8
|
-
function benchSplit (cb) {
|
|
9
|
-
fs.createReadStream('package.json')
|
|
10
|
-
.pipe(split())
|
|
11
|
-
.on('end', cb)
|
|
12
|
-
.resume()
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function benchBinarySplit (cb) {
|
|
16
|
-
fs.createReadStream('package.json')
|
|
17
|
-
.pipe(binarySplit())
|
|
18
|
-
.on('end', cb)
|
|
19
|
-
.resume()
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const run = bench([
|
|
23
|
-
benchSplit,
|
|
24
|
-
benchBinarySplit
|
|
25
|
-
], 10000)
|
|
26
|
-
|
|
27
|
-
run(run)
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Copyright (c) 2014-2021, Matteo Collina <hello@matteocollina.com>
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
6
|
-
copyright notice and this permission notice appear in all copies.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
9
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
10
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
11
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
12
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
13
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
14
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
'use strict'
|
|
18
|
-
|
|
19
|
-
const { Transform } = require('stream')
|
|
20
|
-
const { StringDecoder } = require('string_decoder')
|
|
21
|
-
const kLast = Symbol('last')
|
|
22
|
-
const kDecoder = Symbol('decoder')
|
|
23
|
-
|
|
24
|
-
function transform (chunk, enc, cb) {
|
|
25
|
-
let list
|
|
26
|
-
if (this.overflow) { // Line buffer is full. Skip to start of next line.
|
|
27
|
-
const buf = this[kDecoder].write(chunk)
|
|
28
|
-
list = buf.split(this.matcher)
|
|
29
|
-
|
|
30
|
-
if (list.length === 1) return cb() // Line ending not found. Discard entire chunk.
|
|
31
|
-
|
|
32
|
-
// Line ending found. Discard trailing fragment of previous line and reset overflow state.
|
|
33
|
-
list.shift()
|
|
34
|
-
this.overflow = false
|
|
35
|
-
} else {
|
|
36
|
-
this[kLast] += this[kDecoder].write(chunk)
|
|
37
|
-
list = this[kLast].split(this.matcher)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
this[kLast] = list.pop()
|
|
41
|
-
|
|
42
|
-
for (let i = 0; i < list.length; i++) {
|
|
43
|
-
try {
|
|
44
|
-
push(this, this.mapper(list[i]))
|
|
45
|
-
} catch (error) {
|
|
46
|
-
return cb(error)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
this.overflow = this[kLast].length > this.maxLength
|
|
51
|
-
if (this.overflow && !this.skipOverflow) {
|
|
52
|
-
cb(new Error('maximum buffer reached'))
|
|
53
|
-
return
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
cb()
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function flush (cb) {
|
|
60
|
-
// forward any gibberish left in there
|
|
61
|
-
this[kLast] += this[kDecoder].end()
|
|
62
|
-
|
|
63
|
-
if (this[kLast]) {
|
|
64
|
-
try {
|
|
65
|
-
push(this, this.mapper(this[kLast]))
|
|
66
|
-
} catch (error) {
|
|
67
|
-
return cb(error)
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
cb()
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function push (self, val) {
|
|
75
|
-
if (val !== undefined) {
|
|
76
|
-
self.push(val)
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function noop (incoming) {
|
|
81
|
-
return incoming
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function split (matcher, mapper, options) {
|
|
85
|
-
// Set defaults for any arguments not supplied.
|
|
86
|
-
matcher = matcher || /\r?\n/
|
|
87
|
-
mapper = mapper || noop
|
|
88
|
-
options = options || {}
|
|
89
|
-
|
|
90
|
-
// Test arguments explicitly.
|
|
91
|
-
switch (arguments.length) {
|
|
92
|
-
case 1:
|
|
93
|
-
// If mapper is only argument.
|
|
94
|
-
if (typeof matcher === 'function') {
|
|
95
|
-
mapper = matcher
|
|
96
|
-
matcher = /\r?\n/
|
|
97
|
-
// If options is only argument.
|
|
98
|
-
} else if (typeof matcher === 'object' && !(matcher instanceof RegExp) && !matcher[Symbol.split]) {
|
|
99
|
-
options = matcher
|
|
100
|
-
matcher = /\r?\n/
|
|
101
|
-
}
|
|
102
|
-
break
|
|
103
|
-
|
|
104
|
-
case 2:
|
|
105
|
-
// If mapper and options are arguments.
|
|
106
|
-
if (typeof matcher === 'function') {
|
|
107
|
-
options = mapper
|
|
108
|
-
mapper = matcher
|
|
109
|
-
matcher = /\r?\n/
|
|
110
|
-
// If matcher and options are arguments.
|
|
111
|
-
} else if (typeof mapper === 'object') {
|
|
112
|
-
options = mapper
|
|
113
|
-
mapper = noop
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
options = Object.assign({}, options)
|
|
118
|
-
options.autoDestroy = true
|
|
119
|
-
options.transform = transform
|
|
120
|
-
options.flush = flush
|
|
121
|
-
options.readableObjectMode = true
|
|
122
|
-
|
|
123
|
-
const stream = new Transform(options)
|
|
124
|
-
|
|
125
|
-
stream[kLast] = ''
|
|
126
|
-
stream[kDecoder] = new StringDecoder('utf8')
|
|
127
|
-
stream.matcher = matcher
|
|
128
|
-
stream.mapper = mapper
|
|
129
|
-
stream.maxLength = options.maxLength
|
|
130
|
-
stream.skipOverflow = options.skipOverflow || false
|
|
131
|
-
stream.overflow = false
|
|
132
|
-
stream._destroy = function (err, cb) {
|
|
133
|
-
// Weird Node v12 bug that we need to work around
|
|
134
|
-
this._writableState.errorEmitted = false
|
|
135
|
-
cb(err)
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return stream
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
module.exports = split
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "split2",
|
|
3
|
-
"version": "4.2.0",
|
|
4
|
-
"description": "split a Text Stream into a Line Stream, using Stream 3",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"lint": "standard --verbose",
|
|
8
|
-
"unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js",
|
|
9
|
-
"coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js",
|
|
10
|
-
"test:report": "npm run lint && npm run unit:report",
|
|
11
|
-
"test": "npm run lint && npm run unit",
|
|
12
|
-
"legacy": "tape test.js"
|
|
13
|
-
},
|
|
14
|
-
"pre-commit": [
|
|
15
|
-
"test"
|
|
16
|
-
],
|
|
17
|
-
"website": "https://github.com/mcollina/split2",
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "https://github.com/mcollina/split2.git"
|
|
21
|
-
},
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "http://github.com/mcollina/split2/issues"
|
|
24
|
-
},
|
|
25
|
-
"engines": {
|
|
26
|
-
"node": ">= 10.x"
|
|
27
|
-
},
|
|
28
|
-
"author": "Matteo Collina <hello@matteocollina.com>",
|
|
29
|
-
"license": "ISC",
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"binary-split": "^1.0.3",
|
|
32
|
-
"callback-stream": "^1.1.0",
|
|
33
|
-
"fastbench": "^1.0.0",
|
|
34
|
-
"nyc": "^15.0.1",
|
|
35
|
-
"pre-commit": "^1.1.2",
|
|
36
|
-
"standard": "^17.0.0",
|
|
37
|
-
"tape": "^5.0.0"
|
|
38
|
-
}
|
|
39
|
-
}
|