decocms 2.366.3 → 2.366.4
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-K18hQ6kh.js → AlertCircle-C6cau0Z8.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-BHG6VtYx.js → ArrowNarrowLeft-Cekkt9PP.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-BwnvDybP.js → ArrowUpRight-ZZMagTgz.js} +1 -1
- package/dist/client/assets/{Check-B9DLiiXK.js → Check-CF6cT-vn.js} +1 -1
- package/dist/client/assets/{CheckCircle-EgJIl7Jq.js → CheckCircle-DYcWyNLY.js} +1 -1
- package/dist/client/assets/{ChevronDown-CYSM6Fo7.js → ChevronDown-CaogQsSj.js} +1 -1
- package/dist/client/assets/{ChevronRight-CnHMC9j_.js → ChevronRight-CFQY6flT.js} +1 -1
- package/dist/client/assets/{ChevronUp-nYk1B1_g.js → ChevronUp-DEs085g3.js} +1 -1
- package/dist/client/assets/{Container-b9mjD0TM.js → Container-CSg33ShG.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dtz1r1oP.js → DotsVertical-BpSrvoX4.js} +1 -1
- package/dist/client/assets/{FilterLines-BKJvI7Is.js → FilterLines-DTLtSlSq.js} +1 -1
- package/dist/client/assets/{HardDrive-CiQGwbk6.js → HardDrive-g8HLn6-f.js} +1 -1
- package/dist/client/assets/{Key01-DwdEB7q3.js → Key01-CSEVr4fz.js} +1 -1
- package/dist/client/assets/{LayoutLeft-RV1yOjgR.js → LayoutLeft-BU19SAHw.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BqKrNdKE.js → LinkExternal01-1JZnVKte.js} +1 -1
- package/dist/client/assets/{Lock01-CmgC9dnY.js → Lock01-C7Tt4W8w.js} +1 -1
- package/dist/client/assets/{Monitor01-Cvm6D4L-.js → Monitor01-BcTHwM_i.js} +1 -1
- package/dist/client/assets/{Palette-BGsKalZp.js → Palette-CbS54vUp.js} +1 -1
- package/dist/client/assets/{Play-BnYrM15l.js → Play-DSs7HXSZ.js} +1 -1
- package/dist/client/assets/{Plus-dGHh9fRd.js → Plus-BVQmPLI7.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BSt0ADGE.js → RefreshCcw01-Dc1R9NRA.js} +1 -1
- package/dist/client/assets/{SearchMd-CfsQ0oub.js → SearchMd-CVPiaY_p.js} +1 -1
- package/dist/client/assets/{Settings02-yZXaZurd.js → Settings02-CwLaPF-0.js} +1 -1
- package/dist/client/assets/{Shield01-CmPuY_el.js → Shield01-PWuaAGg9.js} +1 -1
- package/dist/client/assets/{Star01-CTWmgTYQ.js → Star01-i2nx_POl.js} +1 -1
- package/dist/client/assets/{Stars02-B9_FZUis.js → Stars02-DsDzl3Oc.js} +1 -1
- package/dist/client/assets/{Sun-61PjPFad.js → Sun-C3ba0R0w.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Onf8viR5.js → SwitchHorizontal01-Bjrshyqa.js} +1 -1
- package/dist/client/assets/{Tool01-CRNgXP6A.js → Tool01-DIB70GZ7.js} +1 -1
- package/dist/client/assets/{Trash01-CrFomFzC.js → Trash01-BsBJzBGk.js} +1 -1
- package/dist/client/assets/{Upload01-CiQUmK5L.js → Upload01-CYDJ3k8B.js} +1 -1
- package/dist/client/assets/{User01-EBgfoxm1.js → User01-CwUo40nW.js} +1 -1
- package/dist/client/assets/{Users01-BjvY9sLn.js → Users01-BvoHip1P.js} +1 -1
- package/dist/client/assets/{Users03-cFry-Rto.js → Users03-D-ej3qHB.js} +1 -1
- package/dist/client/assets/{X-BxdhEfJ_.js → X-BPXqNLsl.js} +1 -1
- package/dist/client/assets/{XCircle-D2dRUl3X.js → XCircle-zIDM8GwS.js} +1 -1
- package/dist/client/assets/{XClose-JIALRJcF.js → XClose-DD1U63b5.js} +1 -1
- package/dist/client/assets/{Zap-BBMFZYEP.js → Zap-MoK1HORt.js} +1 -1
- package/dist/client/assets/{ZapSquare-KiMDOCHX.js → ZapSquare-l-_QWgxW.js} +1 -1
- package/dist/client/assets/{accordion-h2F4EqpO.js → accordion-DcoI0e89.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CD9lEu0h.js → add-connection-dialog-691NMS8M.js} +1 -1
- package/dist/client/assets/{agent-icon-BD_rPqqb.js → agent-icon-B8MUzwj9.js} +1 -1
- package/dist/client/assets/{agent-icons-Z7s7DXbl.js → agent-icons-D8K6PGji.js} +1 -1
- package/dist/client/assets/{agents-list-BmhEmsa6.js → agents-list-B3sWxmhq.js} +1 -1
- package/dist/client/assets/{ai-providers-JX4LLR4S.js → ai-providers-BLQRmDEg.js} +1 -1
- package/dist/client/assets/{alert-dialog-DgwmE6f3.js → alert-dialog-BfFuIIAi.js} +1 -1
- package/dist/client/assets/{alert-u_bZaxHx.js → alert-imFouKvd.js} +1 -1
- package/dist/client/assets/{auth-catchall-Drjj4RCT.js → auth-catchall-EN4ZUYKI.js} +1 -1
- package/dist/client/assets/{auth-split-layout-rcdl_zMB.js → auth-split-layout-CLNl-Liu.js} +1 -1
- package/dist/client/assets/{automation-list-row-DqwcsD_7.js → automation-list-row-Du7yiRWx.js} +1 -1
- package/dist/client/assets/{automations-DEWBneTw.js → automations-BWT6Igqy.js} +1 -1
- package/dist/client/assets/{avatar-DDOxYtYL.js → avatar-B6KH1Gf_.js} +1 -1
- package/dist/client/assets/{badge-BXjK8wbY.js → badge-B9vWlyPt.js} +1 -1
- package/dist/client/assets/{brand-context-VeDeSTFo.js → brand-context-FCCIqEzi.js} +1 -1
- package/dist/client/assets/{card-DoyuDgsn.js → card-BLis0vqP.js} +1 -1
- package/dist/client/assets/{chat-context-RtHQhIE9.js → chat-context-BpnrANuQ.js} +1 -1
- package/dist/client/assets/{checkbox-D0Yc0mN-.js → checkbox-CYayg7ka.js} +1 -1
- package/dist/client/assets/{cli-auth-success-m0RL44gP.js → cli-auth-success-C0vEgSfg.js} +1 -1
- package/dist/client/assets/{collection-detail-DbRTvVee.js → collection-detail-nCLm3UeD.js} +1 -1
- package/dist/client/assets/{collection-display-button-RxtopRZN.js → collection-display-button-4swnjq5r.js} +1 -1
- package/dist/client/assets/{collection-search-9hGW5RZJ.js → collection-search-D05VQNPV.js} +1 -1
- package/dist/client/assets/{collection-search-CnmAVtDL.js → collection-search-D1Q9ymRZ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dp2sd_0o.js → collection-table-wrapper-DRImmQWF.js} +1 -1
- package/dist/client/assets/{collection-tabs-CdyiDLUE.js → collection-tabs-BQMwIOyb.js} +1 -1
- package/dist/client/assets/{collections-Cr9-k5Dp.js → collections-Bxf7d2CZ.js} +1 -1
- package/dist/client/assets/{command-BOhfxy80.js → command-DSe0Tiwa.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-HmPW1Qn6.js → connect-desktop-dialog-BrqoBGeb.js} +1 -1
- package/dist/client/assets/{connection-card-DWESZBbJ.js → connection-card-lXrZV4t4.js} +1 -1
- package/dist/client/assets/{connection-detail-CAWdGksF.js → connection-detail-IR4-CC_N.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CYGjPtOE.js → connection-form-helpers-7IxnhZqQ.js} +1 -1
- package/dist/client/assets/{connections-Ui7d_qa2.js → connections-DkBR3JcU.js} +1 -1
- package/dist/client/assets/{constants-wlikBzl5.js → constants-gk_IP4Zc.js} +2 -2
- package/dist/client/assets/{decopilot-sse-pool-CzmyvklN.js → decopilot-sse-pool-BhDKUi8c.js} +1 -1
- package/dist/client/assets/{dialog-BUuYbzZb.js → dialog-C_ienXNW.js} +1 -1
- package/dist/client/assets/{domain-settings-Djh1RrEA.js → domain-settings-61QbJzTR.js} +1 -1
- package/dist/client/assets/{drawer-DhizNMYf.js → drawer-DaOexVbe.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B8jYuYV-.js → dropdown-menu-CMqoOV9T.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DDdk-i9L.js → dynamic-plugin-layout-BoeGFzSl.js} +1 -1
- package/dist/client/assets/{empty-state-SFIgelF3.js → empty-state-BA09Bcpv.js} +1 -1
- package/dist/client/assets/{empty-state-BbU9ZFwC.js → empty-state-BZL2NvaE.js} +1 -1
- package/dist/client/assets/{extract-connection-data-6hSkq68z.js → extract-connection-data-CP_hqmSV.js} +1 -1
- package/dist/client/assets/{features-B_3jXZO2.js → features-CIUn836F.js} +1 -1
- package/dist/client/assets/{file-explorer-BgbG5Heb.js → file-explorer-CQeuI4xK.js} +1 -1
- package/dist/client/assets/{files-BPz9nAjJ.js → files-BsgFc-RY.js} +1 -1
- package/dist/client/assets/{form-CIlRGCfL.js → form-CjoMj5wU.js} +1 -1
- package/dist/client/assets/{general-8eQggZYD.js → general-CSnG-719.js} +1 -1
- package/dist/client/assets/{generate-id-C3QoXSqo.js → generate-id-CsyB9bN_.js} +1 -1
- package/dist/client/assets/{github-repo-picker-sKyqTDT8.js → github-repo-picker--49O8V7y.js} +1 -1
- package/dist/client/assets/{hooks-9SOOqVR8.js → hooks-BRJojuLC.js} +1 -1
- package/dist/client/assets/{hover-card-XelaxJWw.js → hover-card-DUjbTNUy.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-0HqqXpyK.js → import-from-deco-dialog-D-yCDmpo.js} +1 -1
- package/dist/client/assets/{index-6k58PiwU.js → index-3Xr-YP7L.js} +1 -1
- package/dist/client/assets/{index-COUAU6R2.js → index-5fHHh2jn.js} +1 -1
- package/dist/client/assets/{index-TGA5bhjE.js → index-B_LUGvge.js} +4 -4
- package/dist/client/assets/{index-CXBH4ITS.js → index-BnTQ8eNv.js} +1 -1
- package/dist/client/assets/{index-hYvqFXmU.js → index-CGnB_5xY.js} +1 -1
- package/dist/client/assets/{index-X620QjzP.js → index-CUGH2xCP.js} +1 -1
- package/dist/client/assets/index-CW_5pAsg.js +3 -0
- package/dist/client/assets/{index-BhIYEmDJ.js → index-Cj8-zQu2.js} +1 -1
- package/dist/client/assets/{index-Nz1-QZbz.js → index-CkdV7Jdj.js} +1 -1
- package/dist/client/assets/{index-DdXs1209.js → index-CqQCgXZz.js} +1 -1
- package/dist/client/assets/{index-mwiMEID5.js → index-DAlg104T.js} +1 -1
- package/dist/client/assets/{index-Dr1K0q-i.js → index-DEVleS27.js} +1 -1
- package/dist/client/assets/{index-DUYU5_a3.js → index-DKwzo9_P.js} +1 -1
- package/dist/client/assets/{index-xTsEtfpg.js → index-DwuuljEt.js} +2 -2
- package/dist/client/assets/{index-vyEFrfC1.js → index-OAEI9OjK.js} +1 -1
- package/dist/client/assets/{index-BQZrdtha.js → index-v8STBELI.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CaiIqjtX.js → infiniteQueryObserver-9AonwSNz.js} +1 -1
- package/dist/client/assets/{input-DkeyHbuG.js → input-DZpKo824.js} +1 -1
- package/dist/client/assets/{integration-icon-DPwh9Mg5.js → integration-icon-DsvUPe8D.js} +1 -1
- package/dist/client/assets/{label-CjHvdO00.js → label-C7wkK6L0.js} +1 -1
- package/dist/client/assets/{layout-D6bcRuMt.js → layout-CtmyeSJk.js} +1 -1
- package/dist/client/assets/{login-5B_zJAJ0.js → login-BvyiZZN1.js} +1 -1
- package/dist/client/assets/{members-CYqiSVqs.js → members-HhwRS5QP.js} +1 -1
- package/dist/client/assets/{monaco-editor-nd_tO0rB.js → monaco-editor-CuQaBG94.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DwHfPynF.js → monitoring-stats-row-CHJUB9Mc.js} +1 -1
- package/dist/client/assets/{oauth-callback-Yq18eV5L.js → oauth-callback-BFRuXIzs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CteoZxfZ.js → oauth-callback-ai-provider-B5wKjn23.js} +1 -1
- package/dist/client/assets/{onboarding-DPOGFsER.js → onboarding-B-FHrp0v.js} +1 -1
- package/dist/client/assets/{org-layout-tE-QUmN6.js → org-layout-D2_wAXUn.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Ba2bMLZC.js → org-plugin-layout-nh6Xw_Ah.js} +1 -1
- package/dist/client/assets/{pair-CqRdJmjs.js → pair-DOnTaGrk.js} +37 -37
- package/dist/client/assets/{plugin-empty-state-C4HxFtK3.js → plugin-empty-state-CYe_e4dU.js} +1 -1
- package/dist/client/assets/{plugin-header-B15yYTP4.js → plugin-header-CZtVpBDn.js} +1 -1
- package/dist/client/assets/{plugin-layout-CRAuWVBJ.js → plugin-layout-C6ZublgJ.js} +1 -1
- package/dist/client/assets/{popover-97K8LVnU.js → popover-BtfZOknF.js} +1 -1
- package/dist/client/assets/{profile-BsxYHSPL.js → profile-C82P0tKQ.js} +1 -1
- package/dist/client/assets/{project-app-view-B0nyBoME.js → project-app-view-C-e07U9-.js} +1 -1
- package/dist/client/assets/registry-CMRj3FZM.js +2 -0
- package/dist/client/assets/{registry-layout-CZnLlfiV.js → registry-layout-D3l95YU2.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C8mgBWNS.js → required-auth-layout-CJyQW0YT.js} +1 -1
- package/dist/client/assets/{reset-password-DkqgcluV.js → reset-password-Xo19Byf8.js} +1 -1
- package/dist/client/assets/{roles-CUEBOHc6.js → roles-B70h-wZN.js} +1 -1
- package/dist/client/assets/{search-input-KAnyn9Ce.js → search-input-DLTOTTz9.js} +1 -1
- package/dist/client/assets/{secrets-769db080.js → secrets-B7yPO5kI.js} +1 -1
- package/dist/client/assets/{sections-editor-Bt3uwcPI.js → sections-editor-C2P-j6nQ.js} +1 -1
- package/dist/client/assets/{select-SCbL4gku.js → select-CvUEwjOa.js} +1 -1
- package/dist/client/assets/{settings-layout-BshCgGUt.js → settings-layout-Cz8b5Lt3.js} +1 -1
- package/dist/client/assets/{settings-section-Cw0xQ_2H.js → settings-section-D_h13tJM.js} +1 -1
- package/dist/client/assets/{shell-controls-CGIP_uLo.js → shell-controls-DxesHoiQ.js} +1 -1
- package/dist/client/assets/{shell-layout-BLHIVG5Z.js → shell-layout-BetUYMXy.js} +1 -1
- package/dist/client/assets/{sidebar-BwKIfhlQ.js → sidebar-BMXh3EqA.js} +1 -1
- package/dist/client/assets/{skeleton-XDlr2hZV.js → skeleton-BuRaBDS1.js} +1 -1
- package/dist/client/assets/{sortable.esm-D5aIF3Zw.js → sortable.esm-5Pd6_HBn.js} +1 -1
- package/dist/client/assets/{spinner-B0XfX9TU.js → spinner-CtUyvJSV.js} +1 -1
- package/dist/client/assets/{sso-DH5RfLHg.js → sso-DtKDlHL0.js} +1 -1
- package/dist/client/assets/{store-CKhrQP_w.js → store-CbaXOCNL.js} +1 -1
- package/dist/client/assets/store-registry-DTb6OWPI.js +2 -0
- package/dist/client/assets/{switch-BQJohnI0.js → switch-d7tEagSK.js} +1 -1
- package/dist/client/assets/{table-DB3uKj-r.js → table-lcYjT119.js} +1 -1
- package/dist/client/assets/{tabs-jNjpN-gk.js → tabs-CSXDa2Ir.js} +1 -1
- package/dist/client/assets/{task-status-Dg5YM4Hc.js → task-status-DNmv8phZ.js} +1 -1
- package/dist/client/assets/{textarea-Dd1cGQh8.js → textarea-Ccx7YT75.js} +1 -1
- package/dist/client/assets/{toggle-group-kM4bYsLp.js → toggle-group-DSTBaZXh.js} +1 -1
- package/dist/client/assets/{toolbar-CvaxE6qF.js → toolbar-C83LdlA1.js} +1 -1
- package/dist/client/assets/{tools-list-BH7hZPhi.js → tools-list-rNOW66IG.js} +1 -1
- package/dist/client/assets/{tooltip-DBVO58Zp.js → tooltip-BN3IZOUM.js} +1 -1
- package/dist/client/assets/{types-D2TlIP4U.js → types-BnZvZp4Q.js} +1 -1
- package/dist/client/assets/{use-ai-providers-MXu298dg.js → use-ai-providers-d6kXM9vW.js} +1 -1
- package/dist/client/assets/{use-collections-DdcwH7lg.js → use-collections-DxzUt-h0.js} +1 -1
- package/dist/client/assets/{use-connection-Cm5lxSmT.js → use-connection-A90ocYZ3.js} +1 -1
- package/dist/client/assets/{use-copy-yDzCLUIu.js → use-copy-hH-GxgcQ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BGAVRvOL.js → use-create-virtual-mcp-DxmAhbh-.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BQDH8UbJ.js → use-debounced-autosave-C5Pi-I_L.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DJL8w2QN.js → use-delete-connection-GCkys6Oo.js} +1 -1
- package/dist/client/assets/{use-file-configs-CD9Yp4ac.js → use-file-configs-DqjN38PI.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-LY_NYoXx.js → use-infinite-scroll-CqbWH69Y.js} +1 -1
- package/dist/client/assets/{use-list-state-ihX8HW7M.js → use-list-state-BD70dFhh.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BhuHCP_V.js → use-mcp-prompts-BhbjYccm.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CJa2fE9h.js → use-mcp-tools-B4qJIn_m.js} +1 -1
- package/dist/client/assets/{use-members-CXsnuh5x.js → use-members-DDXTUyfW.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-X31tY0SN.js → use-navigate-to-agent-CmeIQKZz.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-OoTGSTfv.js → use-org-auth-client-CBdNHYrJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-UZ289aQt.js → use-org-sso-sVoU3o4y.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B6qmwiF_.js → use-organization-roles-CiqnqqgF.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Cg7cZnTH.js → use-organization-settings-Co3t-zpJ.js} +1 -1
- package/dist/client/assets/{use-registry-connections-zPaNsQlY.js → use-registry-connections-B8ZxDRct.js} +1 -1
- package/dist/client/assets/{use-secrets-DJHp-WGT.js → use-secrets-BBXTSfnh.js} +1 -1
- package/dist/client/assets/{use-status-sounds-4UFUcqZ3.js → use-status-sounds-Cwpee3KI.js} +1 -1
- package/dist/client/assets/{use-view-mode-CFr3nIeP.js → use-view-mode-JXpYJVE9.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BQTYd8NA.js → use-virtual-mcp-DO1sI5xT.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CU-G2y2S.js +1 -0
- package/dist/client/assets/{useRouterState-C7U0A7oQ.js → useRouterState-CGeSfCq2.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BDUa0AyA.js +1 -0
- package/dist/client/assets/{user-jMIXm7Xf.js → user-CANp-kXL.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Bbwkp2j8.js → view-mode-toggle-CWn9sP9X.js} +1 -1
- package/dist/client/assets/{workflow-CUWnTahx.js → workflow-Dsd6hzjI.js} +1 -1
- package/dist/client/assets/workflow-detail-Bb6d775m.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +6 -2
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js +36 -6
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js +15 -0
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js +36 -6
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js +15 -0
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js +36 -6
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js +15 -0
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/package.json +12 -14
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/default-service-name.d.ts +9 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/default-service-name.js +38 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/index.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/index.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/utils.d.ts +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/utils.js +0 -3
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/ResourceImpl.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/ResourceImpl.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/default-service-name.d.ts +9 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/default-service-name.js +38 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/index.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/index.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/utils.d.ts +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/utils.js +0 -3
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/ResourceImpl.js +2 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/ResourceImpl.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/default-service-name.d.ts +9 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/default-service-name.js +43 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/index.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/index.js +2 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/utils.d.ts +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/utils.js +1 -5
- package/dist/server/node_modules/@opentelemetry/resources/build/src/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/package.json +5 -9
- package/dist/server/node_modules/{is-what → pg}/LICENSE +1 -1
- package/dist/server/node_modules/pg/README.md +89 -0
- package/dist/server/node_modules/pg/lib/client.js +631 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +167 -0
- package/dist/server/node_modules/pg/lib/connection.js +223 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +186 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +37 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +83 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +84 -0
- package/dist/server/node_modules/pg/lib/index.js +58 -0
- package/dist/server/node_modules/pg/lib/native/client.js +307 -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 +241 -0
- package/dist/server/node_modules/pg/lib/result.js +107 -0
- package/dist/server/node_modules/pg/lib/stream.js +28 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +204 -0
- package/dist/server/node_modules/pg/package.json +64 -0
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/index-DZOICIVA.js +0 -3
- package/dist/client/assets/registry-DCNSwAFB.js +0 -2
- package/dist/client/assets/store-registry-a04PRl5d.js +0 -2
- package/dist/client/assets/useInfiniteQuery-reF0B5YX.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DnuupN6w.js +0 -1
- package/dist/client/assets/workflow-detail-BOKGoGz4.js +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js +0 -19
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.js +0 -19
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/default-service-name.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/default-service-name.js +0 -19
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/default-service-name.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/default-service-name.js +0 -19
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/index.js +0 -17
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/default-service-name.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/default-service-name.js +0 -23
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/index.js +0 -21
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/index.js +0 -21
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/index.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js +0 -23
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/index.d.ts +0 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/index.js +0 -21
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/index.js.map +0 -1
- package/dist/server/node_modules/@protobufjs/base64/LICENSE +0 -26
- package/dist/server/node_modules/@protobufjs/base64/README.md +0 -19
- package/dist/server/node_modules/@protobufjs/base64/index.d.ts +0 -32
- package/dist/server/node_modules/@protobufjs/base64/index.js +0 -139
- package/dist/server/node_modules/@protobufjs/base64/package.json +0 -21
- package/dist/server/node_modules/@protobufjs/base64/tests/index.js +0 -46
- package/dist/server/node_modules/is-what/README.md +0 -294
- package/dist/server/node_modules/is-what/dist/cjs/index.cjs +0 -209
- package/dist/server/node_modules/is-what/dist/cjs/index.d.cts +0 -380
- package/dist/server/node_modules/is-what/dist/index.d.ts +0 -380
- package/dist/server/node_modules/is-what/dist/index.js +0 -171
- package/dist/server/node_modules/is-what/package.json +0 -128
- 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/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- 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/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/protobufjs/LICENSE +0 -39
- package/dist/server/node_modules/protobufjs/README.md +0 -727
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.js +0 -7839
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.js.map +0 -1
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.min.js +0 -8
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.min.js.map +0 -1
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.js +0 -2736
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.js.map +0 -1
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.min.js +0 -8
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +0 -1
- package/dist/server/node_modules/protobufjs/dist/protobuf.js +0 -9643
- package/dist/server/node_modules/protobufjs/dist/protobuf.js.map +0 -1
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js +0 -8
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js.map +0 -1
- package/dist/server/node_modules/protobufjs/ext/debug/README.md +0 -4
- package/dist/server/node_modules/protobufjs/ext/debug/index.js +0 -71
- package/dist/server/node_modules/protobufjs/ext/descriptor/README.md +0 -72
- package/dist/server/node_modules/protobufjs/ext/descriptor/index.d.ts +0 -191
- package/dist/server/node_modules/protobufjs/ext/descriptor/index.js +0 -1162
- package/dist/server/node_modules/protobufjs/ext/descriptor/test.js +0 -54
- package/dist/server/node_modules/protobufjs/google/LICENSE +0 -27
- package/dist/server/node_modules/protobufjs/google/README.md +0 -1
- package/dist/server/node_modules/protobufjs/google/api/annotations.json +0 -83
- package/dist/server/node_modules/protobufjs/google/api/annotations.proto +0 -11
- package/dist/server/node_modules/protobufjs/google/api/http.json +0 -86
- package/dist/server/node_modules/protobufjs/google/api/http.proto +0 -31
- package/dist/server/node_modules/protobufjs/google/protobuf/api.json +0 -118
- package/dist/server/node_modules/protobufjs/google/protobuf/api.proto +0 -34
- package/dist/server/node_modules/protobufjs/google/protobuf/descriptor.json +0 -1382
- package/dist/server/node_modules/protobufjs/google/protobuf/descriptor.proto +0 -535
- package/dist/server/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
- package/dist/server/node_modules/protobufjs/google/protobuf/source_context.proto +0 -7
- package/dist/server/node_modules/protobufjs/google/protobuf/type.json +0 -202
- package/dist/server/node_modules/protobufjs/google/protobuf/type.proto +0 -89
- package/dist/server/node_modules/protobufjs/index.d.ts +0 -2799
- package/dist/server/node_modules/protobufjs/index.js +0 -4
- package/dist/server/node_modules/protobufjs/light.d.ts +0 -2
- package/dist/server/node_modules/protobufjs/light.js +0 -4
- package/dist/server/node_modules/protobufjs/minimal.d.ts +0 -2
- package/dist/server/node_modules/protobufjs/minimal.js +0 -4
- package/dist/server/node_modules/protobufjs/package.json +0 -114
- package/dist/server/node_modules/protobufjs/scripts/postinstall.js +0 -32
- package/dist/server/node_modules/protobufjs/src/common.js +0 -399
- package/dist/server/node_modules/protobufjs/src/converter.js +0 -301
- package/dist/server/node_modules/protobufjs/src/decoder.js +0 -127
- package/dist/server/node_modules/protobufjs/src/encoder.js +0 -100
- package/dist/server/node_modules/protobufjs/src/enum.js +0 -223
- package/dist/server/node_modules/protobufjs/src/field.js +0 -453
- package/dist/server/node_modules/protobufjs/src/index-light.js +0 -104
- package/dist/server/node_modules/protobufjs/src/index-minimal.js +0 -36
- package/dist/server/node_modules/protobufjs/src/index.js +0 -12
- package/dist/server/node_modules/protobufjs/src/mapfield.js +0 -126
- package/dist/server/node_modules/protobufjs/src/message.js +0 -143
- package/dist/server/node_modules/protobufjs/src/method.js +0 -160
- package/dist/server/node_modules/protobufjs/src/namespace.js +0 -546
- package/dist/server/node_modules/protobufjs/src/object.js +0 -378
- package/dist/server/node_modules/protobufjs/src/oneof.js +0 -222
- package/dist/server/node_modules/protobufjs/src/parse.js +0 -969
- package/dist/server/node_modules/protobufjs/src/reader.js +0 -416
- package/dist/server/node_modules/protobufjs/src/reader_buffer.js +0 -51
- package/dist/server/node_modules/protobufjs/src/root.js +0 -404
- package/dist/server/node_modules/protobufjs/src/roots.js +0 -18
- package/dist/server/node_modules/protobufjs/src/rpc/service.js +0 -142
- package/dist/server/node_modules/protobufjs/src/rpc.js +0 -36
- package/dist/server/node_modules/protobufjs/src/service.js +0 -189
- package/dist/server/node_modules/protobufjs/src/tokenize.js +0 -416
- package/dist/server/node_modules/protobufjs/src/type.js +0 -615
- package/dist/server/node_modules/protobufjs/src/types.js +0 -196
- package/dist/server/node_modules/protobufjs/src/typescript.jsdoc +0 -15
- package/dist/server/node_modules/protobufjs/src/util/longbits.js +0 -200
- package/dist/server/node_modules/protobufjs/src/util/minimal.js +0 -438
- package/dist/server/node_modules/protobufjs/src/util.js +0 -215
- package/dist/server/node_modules/protobufjs/src/verifier.js +0 -177
- package/dist/server/node_modules/protobufjs/src/wrappers.js +0 -102
- package/dist/server/node_modules/protobufjs/src/writer.js +0 -465
- package/dist/server/node_modules/protobufjs/src/writer_buffer.js +0 -85
- package/dist/server/node_modules/protobufjs/tsconfig.json +0 -8
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
|
@@ -1,465 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = Writer;
|
|
3
|
-
|
|
4
|
-
var util = require("./util/minimal");
|
|
5
|
-
|
|
6
|
-
var BufferWriter; // cyclic
|
|
7
|
-
|
|
8
|
-
var LongBits = util.LongBits,
|
|
9
|
-
base64 = util.base64,
|
|
10
|
-
utf8 = util.utf8;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Constructs a new writer operation instance.
|
|
14
|
-
* @classdesc Scheduled writer operation.
|
|
15
|
-
* @constructor
|
|
16
|
-
* @param {function(*, Uint8Array, number)} fn Function to call
|
|
17
|
-
* @param {number} len Value byte length
|
|
18
|
-
* @param {*} val Value to write
|
|
19
|
-
* @ignore
|
|
20
|
-
*/
|
|
21
|
-
function Op(fn, len, val) {
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Function to call.
|
|
25
|
-
* @type {function(Uint8Array, number, *)}
|
|
26
|
-
*/
|
|
27
|
-
this.fn = fn;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Value byte length.
|
|
31
|
-
* @type {number}
|
|
32
|
-
*/
|
|
33
|
-
this.len = len;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Next operation.
|
|
37
|
-
* @type {Writer.Op|undefined}
|
|
38
|
-
*/
|
|
39
|
-
this.next = undefined;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Value to write.
|
|
43
|
-
* @type {*}
|
|
44
|
-
*/
|
|
45
|
-
this.val = val; // type varies
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* istanbul ignore next */
|
|
49
|
-
function noop() {} // eslint-disable-line no-empty-function
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Constructs a new writer state instance.
|
|
53
|
-
* @classdesc Copied writer state.
|
|
54
|
-
* @memberof Writer
|
|
55
|
-
* @constructor
|
|
56
|
-
* @param {Writer} writer Writer to copy state from
|
|
57
|
-
* @ignore
|
|
58
|
-
*/
|
|
59
|
-
function State(writer) {
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Current head.
|
|
63
|
-
* @type {Writer.Op}
|
|
64
|
-
*/
|
|
65
|
-
this.head = writer.head;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Current tail.
|
|
69
|
-
* @type {Writer.Op}
|
|
70
|
-
*/
|
|
71
|
-
this.tail = writer.tail;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Current buffer length.
|
|
75
|
-
* @type {number}
|
|
76
|
-
*/
|
|
77
|
-
this.len = writer.len;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Next state.
|
|
81
|
-
* @type {State|null}
|
|
82
|
-
*/
|
|
83
|
-
this.next = writer.states;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Constructs a new writer instance.
|
|
88
|
-
* @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`.
|
|
89
|
-
* @constructor
|
|
90
|
-
*/
|
|
91
|
-
function Writer() {
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Current length.
|
|
95
|
-
* @type {number}
|
|
96
|
-
*/
|
|
97
|
-
this.len = 0;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Operations head.
|
|
101
|
-
* @type {Object}
|
|
102
|
-
*/
|
|
103
|
-
this.head = new Op(noop, 0, 0);
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Operations tail
|
|
107
|
-
* @type {Object}
|
|
108
|
-
*/
|
|
109
|
-
this.tail = this.head;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Linked forked states.
|
|
113
|
-
* @type {Object|null}
|
|
114
|
-
*/
|
|
115
|
-
this.states = null;
|
|
116
|
-
|
|
117
|
-
// When a value is written, the writer calculates its byte length and puts it into a linked
|
|
118
|
-
// list of operations to perform when finish() is called. This both allows us to allocate
|
|
119
|
-
// buffers of the exact required size and reduces the amount of work we have to do compared
|
|
120
|
-
// to first calculating over objects and then encoding over objects. In our case, the encoding
|
|
121
|
-
// part is just a linked list walk calling operations with already prepared values.
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
var create = function create() {
|
|
125
|
-
return util.Buffer
|
|
126
|
-
? function create_buffer_setup() {
|
|
127
|
-
return (Writer.create = function create_buffer() {
|
|
128
|
-
return new BufferWriter();
|
|
129
|
-
})();
|
|
130
|
-
}
|
|
131
|
-
/* istanbul ignore next */
|
|
132
|
-
: function create_array() {
|
|
133
|
-
return new Writer();
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Creates a new writer.
|
|
139
|
-
* @function
|
|
140
|
-
* @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}
|
|
141
|
-
*/
|
|
142
|
-
Writer.create = create();
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Allocates a buffer of the specified size.
|
|
146
|
-
* @param {number} size Buffer size
|
|
147
|
-
* @returns {Uint8Array} Buffer
|
|
148
|
-
*/
|
|
149
|
-
Writer.alloc = function alloc(size) {
|
|
150
|
-
return new util.Array(size);
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
// Use Uint8Array buffer pool in the browser, just like node does with buffers
|
|
154
|
-
/* istanbul ignore else */
|
|
155
|
-
if (util.Array !== Array)
|
|
156
|
-
Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Pushes a new operation to the queue.
|
|
160
|
-
* @param {function(Uint8Array, number, *)} fn Function to call
|
|
161
|
-
* @param {number} len Value byte length
|
|
162
|
-
* @param {number} val Value to write
|
|
163
|
-
* @returns {Writer} `this`
|
|
164
|
-
* @private
|
|
165
|
-
*/
|
|
166
|
-
Writer.prototype._push = function push(fn, len, val) {
|
|
167
|
-
this.tail = this.tail.next = new Op(fn, len, val);
|
|
168
|
-
this.len += len;
|
|
169
|
-
return this;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
function writeByte(val, buf, pos) {
|
|
173
|
-
buf[pos] = val & 255;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
function writeVarint32(val, buf, pos) {
|
|
177
|
-
while (val > 127) {
|
|
178
|
-
buf[pos++] = val & 127 | 128;
|
|
179
|
-
val >>>= 7;
|
|
180
|
-
}
|
|
181
|
-
buf[pos] = val;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Constructs a new varint writer operation instance.
|
|
186
|
-
* @classdesc Scheduled varint writer operation.
|
|
187
|
-
* @extends Op
|
|
188
|
-
* @constructor
|
|
189
|
-
* @param {number} len Value byte length
|
|
190
|
-
* @param {number} val Value to write
|
|
191
|
-
* @ignore
|
|
192
|
-
*/
|
|
193
|
-
function VarintOp(len, val) {
|
|
194
|
-
this.len = len;
|
|
195
|
-
this.next = undefined;
|
|
196
|
-
this.val = val;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
VarintOp.prototype = Object.create(Op.prototype);
|
|
200
|
-
VarintOp.prototype.fn = writeVarint32;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Writes an unsigned 32 bit value as a varint.
|
|
204
|
-
* @param {number} value Value to write
|
|
205
|
-
* @returns {Writer} `this`
|
|
206
|
-
*/
|
|
207
|
-
Writer.prototype.uint32 = function write_uint32(value) {
|
|
208
|
-
// here, the call to this.push has been inlined and a varint specific Op subclass is used.
|
|
209
|
-
// uint32 is by far the most frequently used operation and benefits significantly from this.
|
|
210
|
-
this.len += (this.tail = this.tail.next = new VarintOp(
|
|
211
|
-
(value = value >>> 0)
|
|
212
|
-
< 128 ? 1
|
|
213
|
-
: value < 16384 ? 2
|
|
214
|
-
: value < 2097152 ? 3
|
|
215
|
-
: value < 268435456 ? 4
|
|
216
|
-
: 5,
|
|
217
|
-
value)).len;
|
|
218
|
-
return this;
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Writes a signed 32 bit value as a varint.
|
|
223
|
-
* @function
|
|
224
|
-
* @param {number} value Value to write
|
|
225
|
-
* @returns {Writer} `this`
|
|
226
|
-
*/
|
|
227
|
-
Writer.prototype.int32 = function write_int32(value) {
|
|
228
|
-
return value < 0
|
|
229
|
-
? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec
|
|
230
|
-
: this.uint32(value);
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Writes a 32 bit value as a varint, zig-zag encoded.
|
|
235
|
-
* @param {number} value Value to write
|
|
236
|
-
* @returns {Writer} `this`
|
|
237
|
-
*/
|
|
238
|
-
Writer.prototype.sint32 = function write_sint32(value) {
|
|
239
|
-
return this.uint32((value << 1 ^ value >> 31) >>> 0);
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
function writeVarint64(val, buf, pos) {
|
|
243
|
-
while (val.hi) {
|
|
244
|
-
buf[pos++] = val.lo & 127 | 128;
|
|
245
|
-
val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;
|
|
246
|
-
val.hi >>>= 7;
|
|
247
|
-
}
|
|
248
|
-
while (val.lo > 127) {
|
|
249
|
-
buf[pos++] = val.lo & 127 | 128;
|
|
250
|
-
val.lo = val.lo >>> 7;
|
|
251
|
-
}
|
|
252
|
-
buf[pos++] = val.lo;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Writes an unsigned 64 bit value as a varint.
|
|
257
|
-
* @param {Long|number|string} value Value to write
|
|
258
|
-
* @returns {Writer} `this`
|
|
259
|
-
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
260
|
-
*/
|
|
261
|
-
Writer.prototype.uint64 = function write_uint64(value) {
|
|
262
|
-
var bits = LongBits.from(value);
|
|
263
|
-
return this._push(writeVarint64, bits.length(), bits);
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Writes a signed 64 bit value as a varint.
|
|
268
|
-
* @function
|
|
269
|
-
* @param {Long|number|string} value Value to write
|
|
270
|
-
* @returns {Writer} `this`
|
|
271
|
-
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
272
|
-
*/
|
|
273
|
-
Writer.prototype.int64 = Writer.prototype.uint64;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Writes a signed 64 bit value as a varint, zig-zag encoded.
|
|
277
|
-
* @param {Long|number|string} value Value to write
|
|
278
|
-
* @returns {Writer} `this`
|
|
279
|
-
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
280
|
-
*/
|
|
281
|
-
Writer.prototype.sint64 = function write_sint64(value) {
|
|
282
|
-
var bits = LongBits.from(value).zzEncode();
|
|
283
|
-
return this._push(writeVarint64, bits.length(), bits);
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Writes a boolish value as a varint.
|
|
288
|
-
* @param {boolean} value Value to write
|
|
289
|
-
* @returns {Writer} `this`
|
|
290
|
-
*/
|
|
291
|
-
Writer.prototype.bool = function write_bool(value) {
|
|
292
|
-
return this._push(writeByte, 1, value ? 1 : 0);
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
function writeFixed32(val, buf, pos) {
|
|
296
|
-
buf[pos ] = val & 255;
|
|
297
|
-
buf[pos + 1] = val >>> 8 & 255;
|
|
298
|
-
buf[pos + 2] = val >>> 16 & 255;
|
|
299
|
-
buf[pos + 3] = val >>> 24;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Writes an unsigned 32 bit value as fixed 32 bits.
|
|
304
|
-
* @param {number} value Value to write
|
|
305
|
-
* @returns {Writer} `this`
|
|
306
|
-
*/
|
|
307
|
-
Writer.prototype.fixed32 = function write_fixed32(value) {
|
|
308
|
-
return this._push(writeFixed32, 4, value >>> 0);
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Writes a signed 32 bit value as fixed 32 bits.
|
|
313
|
-
* @function
|
|
314
|
-
* @param {number} value Value to write
|
|
315
|
-
* @returns {Writer} `this`
|
|
316
|
-
*/
|
|
317
|
-
Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Writes an unsigned 64 bit value as fixed 64 bits.
|
|
321
|
-
* @param {Long|number|string} value Value to write
|
|
322
|
-
* @returns {Writer} `this`
|
|
323
|
-
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
324
|
-
*/
|
|
325
|
-
Writer.prototype.fixed64 = function write_fixed64(value) {
|
|
326
|
-
var bits = LongBits.from(value);
|
|
327
|
-
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* Writes a signed 64 bit value as fixed 64 bits.
|
|
332
|
-
* @function
|
|
333
|
-
* @param {Long|number|string} value Value to write
|
|
334
|
-
* @returns {Writer} `this`
|
|
335
|
-
* @throws {TypeError} If `value` is a string and no long library is present.
|
|
336
|
-
*/
|
|
337
|
-
Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Writes a float (32 bit).
|
|
341
|
-
* @function
|
|
342
|
-
* @param {number} value Value to write
|
|
343
|
-
* @returns {Writer} `this`
|
|
344
|
-
*/
|
|
345
|
-
Writer.prototype.float = function write_float(value) {
|
|
346
|
-
return this._push(util.float.writeFloatLE, 4, value);
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Writes a double (64 bit float).
|
|
351
|
-
* @function
|
|
352
|
-
* @param {number} value Value to write
|
|
353
|
-
* @returns {Writer} `this`
|
|
354
|
-
*/
|
|
355
|
-
Writer.prototype.double = function write_double(value) {
|
|
356
|
-
return this._push(util.float.writeDoubleLE, 8, value);
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
var writeBytes = util.Array.prototype.set
|
|
360
|
-
? function writeBytes_set(val, buf, pos) {
|
|
361
|
-
buf.set(val, pos); // also works for plain array values
|
|
362
|
-
}
|
|
363
|
-
/* istanbul ignore next */
|
|
364
|
-
: function writeBytes_for(val, buf, pos) {
|
|
365
|
-
for (var i = 0; i < val.length; ++i)
|
|
366
|
-
buf[pos + i] = val[i];
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Writes a sequence of bytes.
|
|
371
|
-
* @param {Uint8Array|string} value Buffer or base64 encoded string to write
|
|
372
|
-
* @returns {Writer} `this`
|
|
373
|
-
*/
|
|
374
|
-
Writer.prototype.bytes = function write_bytes(value) {
|
|
375
|
-
var len = value.length >>> 0;
|
|
376
|
-
if (!len)
|
|
377
|
-
return this._push(writeByte, 1, 0);
|
|
378
|
-
if (util.isString(value)) {
|
|
379
|
-
var buf = Writer.alloc(len = base64.length(value));
|
|
380
|
-
base64.decode(value, buf, 0);
|
|
381
|
-
value = buf;
|
|
382
|
-
}
|
|
383
|
-
return this.uint32(len)._push(writeBytes, len, value);
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Writes a string.
|
|
388
|
-
* @param {string} value Value to write
|
|
389
|
-
* @returns {Writer} `this`
|
|
390
|
-
*/
|
|
391
|
-
Writer.prototype.string = function write_string(value) {
|
|
392
|
-
var len = utf8.length(value);
|
|
393
|
-
return len
|
|
394
|
-
? this.uint32(len)._push(utf8.write, len, value)
|
|
395
|
-
: this._push(writeByte, 1, 0);
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Forks this writer's state by pushing it to a stack.
|
|
400
|
-
* Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.
|
|
401
|
-
* @returns {Writer} `this`
|
|
402
|
-
*/
|
|
403
|
-
Writer.prototype.fork = function fork() {
|
|
404
|
-
this.states = new State(this);
|
|
405
|
-
this.head = this.tail = new Op(noop, 0, 0);
|
|
406
|
-
this.len = 0;
|
|
407
|
-
return this;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Resets this instance to the last state.
|
|
412
|
-
* @returns {Writer} `this`
|
|
413
|
-
*/
|
|
414
|
-
Writer.prototype.reset = function reset() {
|
|
415
|
-
if (this.states) {
|
|
416
|
-
this.head = this.states.head;
|
|
417
|
-
this.tail = this.states.tail;
|
|
418
|
-
this.len = this.states.len;
|
|
419
|
-
this.states = this.states.next;
|
|
420
|
-
} else {
|
|
421
|
-
this.head = this.tail = new Op(noop, 0, 0);
|
|
422
|
-
this.len = 0;
|
|
423
|
-
}
|
|
424
|
-
return this;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Resets to the last state and appends the fork state's current write length as a varint followed by its operations.
|
|
429
|
-
* @returns {Writer} `this`
|
|
430
|
-
*/
|
|
431
|
-
Writer.prototype.ldelim = function ldelim() {
|
|
432
|
-
var head = this.head,
|
|
433
|
-
tail = this.tail,
|
|
434
|
-
len = this.len;
|
|
435
|
-
this.reset().uint32(len);
|
|
436
|
-
if (len) {
|
|
437
|
-
this.tail.next = head.next; // skip noop
|
|
438
|
-
this.tail = tail;
|
|
439
|
-
this.len += len;
|
|
440
|
-
}
|
|
441
|
-
return this;
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* Finishes the write operation.
|
|
446
|
-
* @returns {Uint8Array} Finished buffer
|
|
447
|
-
*/
|
|
448
|
-
Writer.prototype.finish = function finish() {
|
|
449
|
-
var head = this.head.next, // skip noop
|
|
450
|
-
buf = this.constructor.alloc(this.len),
|
|
451
|
-
pos = 0;
|
|
452
|
-
while (head) {
|
|
453
|
-
head.fn(head.val, buf, pos);
|
|
454
|
-
pos += head.len;
|
|
455
|
-
head = head.next;
|
|
456
|
-
}
|
|
457
|
-
// this.head = this.tail = null;
|
|
458
|
-
return buf;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
Writer._configure = function(BufferWriter_) {
|
|
462
|
-
BufferWriter = BufferWriter_;
|
|
463
|
-
Writer.create = create();
|
|
464
|
-
BufferWriter._configure();
|
|
465
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = BufferWriter;
|
|
3
|
-
|
|
4
|
-
// extends Writer
|
|
5
|
-
var Writer = require("./writer");
|
|
6
|
-
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
7
|
-
|
|
8
|
-
var util = require("./util/minimal");
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Constructs a new buffer writer instance.
|
|
12
|
-
* @classdesc Wire format writer using node buffers.
|
|
13
|
-
* @extends Writer
|
|
14
|
-
* @constructor
|
|
15
|
-
*/
|
|
16
|
-
function BufferWriter() {
|
|
17
|
-
Writer.call(this);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
BufferWriter._configure = function () {
|
|
21
|
-
/**
|
|
22
|
-
* Allocates a buffer of the specified size.
|
|
23
|
-
* @function
|
|
24
|
-
* @param {number} size Buffer size
|
|
25
|
-
* @returns {Buffer} Buffer
|
|
26
|
-
*/
|
|
27
|
-
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
28
|
-
|
|
29
|
-
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set"
|
|
30
|
-
? function writeBytesBuffer_set(val, buf, pos) {
|
|
31
|
-
buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited)
|
|
32
|
-
// also works for plain array values
|
|
33
|
-
}
|
|
34
|
-
/* istanbul ignore next */
|
|
35
|
-
: function writeBytesBuffer_copy(val, buf, pos) {
|
|
36
|
-
if (val.copy) // Buffer values
|
|
37
|
-
val.copy(buf, pos, 0, val.length);
|
|
38
|
-
else for (var i = 0; i < val.length;) // plain array values
|
|
39
|
-
buf[pos++] = val[i++];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @override
|
|
46
|
-
*/
|
|
47
|
-
BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
|
|
48
|
-
if (util.isString(value))
|
|
49
|
-
value = util._Buffer_from(value, "base64");
|
|
50
|
-
var len = value.length >>> 0;
|
|
51
|
-
this.uint32(len);
|
|
52
|
-
if (len)
|
|
53
|
-
this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
54
|
-
return this;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
function writeStringBuffer(val, buf, pos) {
|
|
58
|
-
if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions)
|
|
59
|
-
util.utf8.write(val, buf, pos);
|
|
60
|
-
else if (buf.utf8Write)
|
|
61
|
-
buf.utf8Write(val, pos);
|
|
62
|
-
else
|
|
63
|
-
buf.write(val, pos);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @override
|
|
68
|
-
*/
|
|
69
|
-
BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
70
|
-
var len = util.Buffer.byteLength(value);
|
|
71
|
-
this.uint32(len);
|
|
72
|
-
if (len)
|
|
73
|
-
this._push(writeStringBuffer, len, value);
|
|
74
|
-
return this;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Finishes the write operation.
|
|
80
|
-
* @name BufferWriter#finish
|
|
81
|
-
* @function
|
|
82
|
-
* @returns {Buffer} Finished buffer
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
BufferWriter._configure();
|
|
@@ -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)
|