decocms 2.277.0 → 2.277.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CDrkM01U.js → AlertCircle-ZN1y5-aw.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-D40KhznE.js → ArrowNarrowLeft-BPki4rs6.js} +1 -1
- package/dist/client/assets/{CheckCircle-BTIsSwsN.js → CheckCircle-CzlD2NtZ.js} +1 -1
- package/dist/client/assets/{ChevronDown-CYdW9NBw.js → ChevronDown-BjlYfwkz.js} +1 -1
- package/dist/client/assets/{ChevronRight-YkSQYi3B.js → ChevronRight-Ers_V2D1.js} +1 -1
- package/dist/client/assets/{ChevronUp-BcPC1hCC.js → ChevronUp-BFd66NER.js} +1 -1
- package/dist/client/assets/{Container-ChD3KoS4.js → Container-BH-IjM7q.js} +1 -1
- package/dist/client/assets/{LinkExternal01-l0w4_WlJ.js → LinkExternal01-Df1708RH.js} +1 -1
- package/dist/client/assets/{Lock01-CmojMPTn.js → Lock01-DC87zCkJ.js} +1 -1
- package/dist/client/assets/{Palette-D4s8zWmN.js → Palette-BAefAlJJ.js} +1 -1
- package/dist/client/assets/{Play-CiTVDuYt.js → Play-8RSCt4_z.js} +1 -1
- package/dist/client/assets/{Plus-CVdax6FK.js → Plus-D7R85tnb.js} +1 -1
- package/dist/client/assets/{SearchMd-DJ0JdIz3.js → SearchMd-CuF0EE4i.js} +1 -1
- package/dist/client/assets/{Settings02-D-hypCbK.js → Settings02-0biYSyip.js} +1 -1
- package/dist/client/assets/{Star01-Vcjv0Tzc.js → Star01-DG4GVqjt.js} +1 -1
- package/dist/client/assets/{Sun-51uZR1E5.js → Sun-bNHtETAN.js} +1 -1
- package/dist/client/assets/{Tool01-DCaYwllU.js → Tool01-BYIP93fl.js} +1 -1
- package/dist/client/assets/{Trash01-D5ZS0TOT.js → Trash01-DiVIK0OP.js} +1 -1
- package/dist/client/assets/{Upload01-CBYhGwn0.js → Upload01-1ZdG7oJK.js} +1 -1
- package/dist/client/assets/{User01-Dq3q9cE-.js → User01-ZdNcPumq.js} +1 -1
- package/dist/client/assets/{Users03-BIYd5t8v.js → Users03-C4Ee_frB.js} +1 -1
- package/dist/client/assets/{X-D_4PiiTE.js → X-DJVuZ58d.js} +1 -1
- package/dist/client/assets/{XCircle-rGav0QLs.js → XCircle-C-PtnVDi.js} +1 -1
- package/dist/client/assets/{Zap-qFCEz_qt.js → Zap-DFbFP4h9.js} +1 -1
- package/dist/client/assets/{ZapSquare-BYfCzFpy.js → ZapSquare-Bn1DnHGa.js} +1 -1
- package/dist/client/assets/{accordion-C_FjDGY7.js → accordion-BKyKwvi4.js} +1 -1
- package/dist/client/assets/{agent-icon-31CiXnkF.js → agent-icon-BCqNXHrJ.js} +1 -1
- package/dist/client/assets/{agents-list-kGMjebHK.js → agents-list-st6j9oA0.js} +1 -1
- package/dist/client/assets/ai-providers-Cq8P81dq.js +1 -0
- package/dist/client/assets/{alert-dialog-BpydK2MI.js → alert-dialog-Cce2zNSt.js} +1 -1
- package/dist/client/assets/{auth-catchall-I0vdEcHs.js → auth-catchall-DOZwh2ME.js} +1 -1
- package/dist/client/assets/{automation-list-row-mTTWiKQ6.js → automation-list-row-D3uOWcPZ.js} +1 -1
- package/dist/client/assets/{automations-Z179s9qX.js → automations-_4yX33cm.js} +1 -1
- package/dist/client/assets/{avatar-BVvDTfBW.js → avatar-DtO_DjAh.js} +1 -1
- package/dist/client/assets/{badge-BhfSxzi-.js → badge-y-hsEihY.js} +1 -1
- package/dist/client/assets/{brand-context-Bn_7uvJT.js → brand-context-zVTleDgN.js} +1 -1
- package/dist/client/assets/{card-BAp6Jwgi.js → card-Dgjac7df.js} +1 -1
- package/dist/client/assets/{chat-context-Dp5HM8R-.js → chat-context-jZHB4zZq.js} +1 -1
- package/dist/client/assets/{checkbox-BhkHXCse.js → checkbox-BK1FOOnx.js} +1 -1
- package/dist/client/assets/{collection-detail-Bm3mvhEG.js → collection-detail-x76KaTbs.js} +1 -1
- package/dist/client/assets/{collection-display-button-jqECsu1f.js → collection-display-button-Gr_qxtzC.js} +1 -1
- package/dist/client/assets/{collection-search-C0B93tJw.js → collection-search-9bv6LiW5.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Bf17fkBP.js → collection-table-wrapper-BD46An7o.js} +1 -1
- package/dist/client/assets/{collection-tabs-CMC3SILy.js → collection-tabs-DBij18bF.js} +1 -1
- package/dist/client/assets/{collections-DIuw_dNV.js → collections-BZR-yDlA.js} +1 -1
- package/dist/client/assets/{command-CRMnQTof.js → command-DsPZNxzv.js} +1 -1
- package/dist/client/assets/{connection-card-CJ6uOT9E.js → connection-card-Cavj0z1s.js} +1 -1
- package/dist/client/assets/{connection-detail-Dj-OLW3C.js → connection-detail-B_MywG2r.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CDPt3S_P.js → connection-form-helpers-BickqfM0.js} +1 -1
- package/dist/client/assets/{connections-aYS5E8PJ.js → connections-Di7YhHpL.js} +1 -1
- package/dist/client/assets/{constants-BG70AVFL.js → constants-B6BlNNCv.js} +1 -1
- package/dist/client/assets/{constants-CdNdiXMf.js → constants-D4bpaQIy.js} +1 -1
- package/dist/client/assets/{dialog-C0FUDu40.js → dialog-CrC-U752.js} +1 -1
- package/dist/client/assets/{drawer-D4_wXu6X.js → drawer-D164IDvt.js} +1 -1
- package/dist/client/assets/{dropdown-menu-aG44dJsz.js → dropdown-menu-BCSsOhoD.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-pzG9mWCw.js → dynamic-plugin-layout-PtppgAts.js} +1 -1
- package/dist/client/assets/{empty-state-BjAjwUcB.js → empty-state-Burt6Pjq.js} +1 -1
- package/dist/client/assets/{empty-state-BGqwS_3w.js → empty-state-CMAHTHUe.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CAAXAkZY.js → extract-connection-data-CIGH4JOA.js} +1 -1
- package/dist/client/assets/{features-DCfAHIGS.js → features-DkrqQmvn.js} +1 -1
- package/dist/client/assets/{form-BQFhlKGv.js → form-NpftjNqr.js} +1 -1
- package/dist/client/assets/{general-0YlUSUig.js → general-CPi9v1zL.js} +1 -1
- package/dist/client/assets/{index-C6SXa4V4.js → index-BabWp460.js} +1 -1
- package/dist/client/assets/{index-CN1oVHjb.js → index-C7Syt5sm.js} +4 -4
- package/dist/client/assets/{index-BRiQU6du.js → index-CESHAiFx.js} +1 -1
- package/dist/client/assets/{index-DRjT3wqk.js → index-CMJ6GQ7C.js} +3 -3
- package/dist/client/assets/{index-CoTOPljc.js → index-CSCpQ3nk.js} +1 -1
- package/dist/client/assets/{index-mdSoEPSF.js → index-ClWc2yds.js} +1 -1
- package/dist/client/assets/{index-CEQG3Gi2.js → index-CmG3u4sk.js} +1 -1
- package/dist/client/assets/{index-EE9r4ne7.js → index-D0eg_rFC.js} +2 -2
- package/dist/client/assets/{index-NYDZhYFt.js → index-DE-s5va1.js} +1 -1
- package/dist/client/assets/{index-CIlSPTSj.js → index-MDHGBKc3.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BQYXKuj2.js → infiniteQueryObserver-CpBPXtl6.js} +1 -1
- package/dist/client/assets/{input-r_oEqK-V.js → input-B0rO4kCw.js} +1 -1
- package/dist/client/assets/{integration-icon-BKKqOsd5.js → integration-icon-yOwsHf6q.js} +1 -1
- package/dist/client/assets/{label-CenAgqhm.js → label-DEuSkBBi.js} +1 -1
- package/dist/client/assets/{layout-DB6YepVn.js → layout-CEdjROI5.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-TnasvQfT.js → lean-canvas-recruit-modal-BMnsbvdl.js} +1 -1
- package/dist/client/assets/{login-DDMVtz0x.js → login-vu3mdB5z.js} +1 -1
- package/dist/client/assets/{members-BH6aFn0i.js → members-DtGUx-F1.js} +1 -1
- package/dist/client/assets/{monaco-editor-C3TYqqnp.js → monaco-editor-wLqdDZ5S.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DosCpU_L.js → monitoring-stats-row-5HVh1Gjz.js} +1 -1
- package/dist/client/assets/{oauth-callback-BV7Kg1aN.js → oauth-callback-DXN54EUy.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DjkxS6zo.js → oauth-callback-ai-provider-W7GdFBbP.js} +1 -1
- package/dist/client/assets/{onboarding-DmzJa5qN.js → onboarding-BeW6omQ6.js} +1 -1
- package/dist/client/assets/{org-layout-D05CVA_8.js → org-layout-Cp3RupKt.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-Cv_313Tb.js → org-plugin-layout-Bnfoicc4.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CQeGBgOP.js → plugin-empty-state-0LwQ6R3R.js} +1 -1
- package/dist/client/assets/{plugin-header-BXYsY1_p.js → plugin-header-BYiR1ua4.js} +1 -1
- package/dist/client/assets/{plugin-layout-Do_Ws-WY.js → plugin-layout-DCOghZWx.js} +1 -1
- package/dist/client/assets/{popover-BktSfQG9.js → popover-DUh9iDm9.js} +1 -1
- package/dist/client/assets/{profile-BSS2RbEG.js → profile-Bk0bLa4g.js} +1 -1
- package/dist/client/assets/{project-app-view-B_z1QorU.js → project-app-view-BtOMb74o.js} +1 -1
- package/dist/client/assets/registry-CorCxIMC.js +2 -0
- package/dist/client/assets/{registry-layout-B0UM9hrK.js → registry-layout-TU21GgUM.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C6TLzB3T.js → required-auth-layout-eS3mZHM3.js} +1 -1
- package/dist/client/assets/{reset-password-BV1UW9SB.js → reset-password-nmqGdy62.js} +1 -1
- package/dist/client/assets/{scroll-area-C6ws31M0.js → scroll-area-BPvcbDba.js} +1 -1
- package/dist/client/assets/{search-input-Dxw50-Fc.js → search-input-DuumYWEB.js} +1 -1
- package/dist/client/assets/{select-DMKL-iI9.js → select-DV6Y5fbl.js} +1 -1
- package/dist/client/assets/{select-model-D2d213qn.js → select-model-BhJ9eJ30.js} +1 -1
- package/dist/client/assets/{settings-layout-BBdiRp4e.js → settings-layout-C6WZX8H8.js} +1 -1
- package/dist/client/assets/{shell-layout-CDe1Q4z8.js → shell-layout-Bx85tvr4.js} +1 -1
- package/dist/client/assets/{skeleton-C8k5qVSG.js → skeleton-C_5kHpZw.js} +1 -1
- package/dist/client/assets/{sso-CChrq6HN.js → sso-Du9xnoxY.js} +1 -1
- package/dist/client/assets/{store-Dk4svl-0.js → store-DFSqH5M5.js} +1 -1
- package/dist/client/assets/store-registry-ysGrUhGY.js +2 -0
- package/dist/client/assets/{switch-BlmZa3uf.js → switch-CbAhbOmy.js} +1 -1
- package/dist/client/assets/{table-omg9OiL8.js → table-D03jqlLZ.js} +1 -1
- package/dist/client/assets/{tabs-ZI6fRQkw.js → tabs-DtdegoWH.js} +1 -1
- package/dist/client/assets/{task-status-erNd2Sbl.js → task-status-BgBSzATn.js} +1 -1
- package/dist/client/assets/{textarea-CpW5pfml.js → textarea-D_j-5IAu.js} +1 -1
- package/dist/client/assets/{toggle-group-By5F9baT.js → toggle-group-DDh5VZ6f.js} +1 -1
- package/dist/client/assets/{tools-list-2T2hc8nL.js → tools-list-CJJNUxfe.js} +1 -1
- package/dist/client/assets/{types-BOQuLrVp.js → types-CXkK-iOI.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CITI1iNq.js → use-ai-providers-ElYJdGU0.js} +1 -1
- package/dist/client/assets/{use-collections-CRzXRke9.js → use-collections-ByN3iK_-.js} +1 -1
- package/dist/client/assets/{use-connection-CeSGdaGP.js → use-connection-DS4JMmfK.js} +1 -1
- package/dist/client/assets/{use-copy-DGEKKbaG.js → use-copy-1vU78qsX.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-UIh1S6RD.js → use-create-virtual-mcp-C0ZtxKxG.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CN7YV5I-.js → use-decopilot-events-Dv7rn_zQ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DeXytvwf.js → use-delete-connection-CnPoPnuN.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DjXaeUEQ.js → use-infinite-scroll-D9oxXo_y.js} +1 -1
- package/dist/client/assets/{use-list-state-UZMoJUvO.js → use-list-state-Bt2BkuK4.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BKQPDk4x.js → use-mcp-tools-CpSp-YOn.js} +1 -1
- package/dist/client/assets/{use-members-afZV5Me8.js → use-members-CN2GRsgZ.js} +1 -1
- package/dist/client/assets/{use-mobile-DP4MR1ix.js → use-mobile-D5xdghWW.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C0iuNKaP.js → use-navigate-to-agent-DC2aXNSM.js} +1 -1
- package/dist/client/assets/{use-org-sso-B4mWsSMh.js → use-org-sso-HLMtUxyI.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CcvcpCtE.js → use-organization-settings-CRVxUE8d.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Bj_DPVwf.js → use-registry-connections-DiPCzdOz.js} +1 -1
- package/dist/client/assets/{use-status-sounds-ChUYFOhF.js → use-status-sounds-CepswEV9.js} +1 -1
- package/dist/client/assets/{use-tasks-DGmrkFpo.js → use-tasks-Cvm0js2U.js} +1 -1
- package/dist/client/assets/{use-view-mode-zFqL6G4U.js → use-view-mode-Qb4bThwm.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Dn9ixQmR.js → use-virtual-mcp-DmXmoSMd.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BmiRpP8z.js +1 -0
- package/dist/client/assets/{user-D7q59BB0.js → user-rEzOpeDj.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BTfIGFL4.js → view-mode-toggle-EUXERI9v.js} +1 -1
- package/dist/client/assets/{workflow-DXb2lFI1.js → workflow-CD3p-F8j.js} +1 -1
- package/dist/client/assets/workflow-detail-DH47DpCR.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/deepmerge/.editorconfig +7 -0
- package/dist/server/node_modules/deepmerge/.eslintcache +1 -0
- package/dist/server/node_modules/deepmerge/changelog.md +167 -0
- package/dist/server/node_modules/deepmerge/dist/cjs.js +133 -0
- package/dist/server/node_modules/deepmerge/dist/umd.js +139 -0
- package/dist/server/node_modules/deepmerge/index.d.ts +20 -0
- package/dist/server/node_modules/deepmerge/index.js +106 -0
- package/dist/server/node_modules/{postgres-date/license → deepmerge/license.txt} +1 -1
- package/dist/server/node_modules/deepmerge/package.json +42 -0
- package/dist/server/node_modules/deepmerge/readme.md +264 -0
- package/dist/server/node_modules/deepmerge/rollup.config.js +22 -0
- package/dist/server/node_modules/onetime/index.d.ts +64 -0
- package/dist/server/node_modules/onetime/index.js +44 -0
- package/dist/server/node_modules/{mimic-fn → onetime}/package.json +16 -15
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-Bykzb-xW.js +0 -1
- package/dist/client/assets/registry-B_QfL3wE.js +0 -2
- package/dist/client/assets/store-registry-DNqLsJlQ.js +0 -2
- package/dist/client/assets/useInfiniteQuery-7hq96Va6.js +0 -1
- package/dist/client/assets/workflow-detail-CC_ctEsy.js +0 -1
- package/dist/server/node_modules/ansi-styles/index.d.ts +0 -236
- package/dist/server/node_modules/ansi-styles/index.js +0 -223
- package/dist/server/node_modules/ansi-styles/package.json +0 -54
- package/dist/server/node_modules/ansi-styles/readme.md +0 -173
- package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +0 -2
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +0 -4
- package/dist/server/node_modules/convert-to-spaces/license +0 -21
- package/dist/server/node_modules/convert-to-spaces/package.json +0 -40
- package/dist/server/node_modules/convert-to-spaces/readme.md +0 -39
- package/dist/server/node_modules/environment/index.d.ts +0 -74
- package/dist/server/node_modules/environment/index.js +0 -47
- package/dist/server/node_modules/environment/license +0 -9
- package/dist/server/node_modules/environment/package.json +0 -74
- package/dist/server/node_modules/environment/readme.md +0 -94
- package/dist/server/node_modules/escape-string-regexp/index.d.ts +0 -18
- package/dist/server/node_modules/escape-string-regexp/index.js +0 -11
- package/dist/server/node_modules/escape-string-regexp/license +0 -9
- package/dist/server/node_modules/escape-string-regexp/package.json +0 -43
- package/dist/server/node_modules/escape-string-regexp/readme.md +0 -29
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
- package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
- package/dist/server/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dist/server/node_modules/is-unicode-supported/index.js +0 -21
- package/dist/server/node_modules/is-unicode-supported/license +0 -9
- package/dist/server/node_modules/is-unicode-supported/package.json +0 -47
- package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
- package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/license +0 -9
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/pg-cloudflare/LICENSE +0 -21
- package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
- package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
- package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
- package/dist/server/node_modules/pg-connection-string/README.md +0 -105
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
- package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
- package/dist/server/node_modules/pg-connection-string/index.js +0 -231
- package/dist/server/node_modules/pg-connection-string/package.json +0 -52
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/pg-protocol/LICENSE +0 -21
- package/dist/server/node_modules/pg-protocol/README.md +0 -3
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/b.js +0 -23
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -15
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +0 -55
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +0 -16
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +0 -81
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +0 -530
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +0 -6
- package/dist/server/node_modules/pg-protocol/dist/index.js +0 -15
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +0 -162
- package/dist/server/node_modules/pg-protocol/dist/messages.js +0 -160
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +0 -252
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +0 -24
- package/dist/server/node_modules/pg-protocol/dist/parser.js +0 -324
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +0 -42
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +0 -189
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/esm/index.js +0 -11
- package/dist/server/node_modules/pg-protocol/package.json +0 -45
- package/dist/server/node_modules/pg-protocol/src/b.ts +0 -25
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +0 -58
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +0 -85
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +0 -575
- package/dist/server/node_modules/pg-protocol/src/index.ts +0 -11
- package/dist/server/node_modules/pg-protocol/src/messages.ts +0 -262
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +0 -276
- package/dist/server/node_modules/pg-protocol/src/parser.ts +0 -413
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +0 -274
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +0 -67
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +0 -166
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +0 -1
- package/dist/server/node_modules/pg-types/.travis.yml +0 -7
- package/dist/server/node_modules/pg-types/Makefile +0 -14
- package/dist/server/node_modules/pg-types/README.md +0 -75
- package/dist/server/node_modules/pg-types/index.d.ts +0 -137
- package/dist/server/node_modules/pg-types/index.js +0 -47
- package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
- package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
- package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
- package/dist/server/node_modules/pg-types/package.json +0 -42
- package/dist/server/node_modules/pg-types/test/index.js +0 -24
- package/dist/server/node_modules/pg-types/test/types.js +0 -597
- package/dist/server/node_modules/pgpass/README.md +0 -74
- package/dist/server/node_modules/pgpass/lib/helper.js +0 -233
- package/dist/server/node_modules/pgpass/lib/index.js +0 -23
- package/dist/server/node_modules/pgpass/package.json +0 -41
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/restore-cursor/index.d.ts +0 -11
- package/dist/server/node_modules/restore-cursor/index.js +0 -11
- package/dist/server/node_modules/restore-cursor/license +0 -9
- package/dist/server/node_modules/restore-cursor/package.json +0 -55
- package/dist/server/node_modules/restore-cursor/readme.md +0 -31
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
- package/dist/server/node_modules/string-width/index.d.ts +0 -39
- package/dist/server/node_modules/string-width/index.js +0 -82
- package/dist/server/node_modules/string-width/license +0 -9
- package/dist/server/node_modules/string-width/package.json +0 -64
- package/dist/server/node_modules/string-width/readme.md +0 -66
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/LICENSE +0 -20
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{ansi-styles → onetime}/license +0 -0
|
@@ -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
|
-
}
|
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const test = require('tape')
|
|
4
|
-
const split = require('./')
|
|
5
|
-
const callback = require('callback-stream')
|
|
6
|
-
const strcb = callback.bind(null, { decodeStrings: false })
|
|
7
|
-
const objcb = callback.bind(null, { objectMode: true })
|
|
8
|
-
|
|
9
|
-
test('split two lines on end', function (t) {
|
|
10
|
-
t.plan(2)
|
|
11
|
-
|
|
12
|
-
const input = split()
|
|
13
|
-
|
|
14
|
-
input.pipe(strcb(function (err, list) {
|
|
15
|
-
t.error(err)
|
|
16
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
17
|
-
}))
|
|
18
|
-
|
|
19
|
-
input.end('hello\nworld')
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
test('split two lines on two writes', function (t) {
|
|
23
|
-
t.plan(2)
|
|
24
|
-
|
|
25
|
-
const input = split()
|
|
26
|
-
|
|
27
|
-
input.pipe(strcb(function (err, list) {
|
|
28
|
-
t.error(err)
|
|
29
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
30
|
-
}))
|
|
31
|
-
|
|
32
|
-
input.write('hello')
|
|
33
|
-
input.write('\nworld')
|
|
34
|
-
input.end()
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
test('split four lines on three writes', function (t) {
|
|
38
|
-
t.plan(2)
|
|
39
|
-
|
|
40
|
-
const input = split()
|
|
41
|
-
|
|
42
|
-
input.pipe(strcb(function (err, list) {
|
|
43
|
-
t.error(err)
|
|
44
|
-
t.deepEqual(list, ['hello', 'world', 'bye', 'world'])
|
|
45
|
-
}))
|
|
46
|
-
|
|
47
|
-
input.write('hello\nwor')
|
|
48
|
-
input.write('ld\nbye\nwo')
|
|
49
|
-
input.write('rld')
|
|
50
|
-
input.end()
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
test('accumulate multiple writes', function (t) {
|
|
54
|
-
t.plan(2)
|
|
55
|
-
|
|
56
|
-
const input = split()
|
|
57
|
-
|
|
58
|
-
input.pipe(strcb(function (err, list) {
|
|
59
|
-
t.error(err)
|
|
60
|
-
t.deepEqual(list, ['helloworld'])
|
|
61
|
-
}))
|
|
62
|
-
|
|
63
|
-
input.write('hello')
|
|
64
|
-
input.write('world')
|
|
65
|
-
input.end()
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
test('split using a custom string matcher', function (t) {
|
|
69
|
-
t.plan(2)
|
|
70
|
-
|
|
71
|
-
const input = split('~')
|
|
72
|
-
|
|
73
|
-
input.pipe(strcb(function (err, list) {
|
|
74
|
-
t.error(err)
|
|
75
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
76
|
-
}))
|
|
77
|
-
|
|
78
|
-
input.end('hello~world')
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
test('split using a custom regexp matcher', function (t) {
|
|
82
|
-
t.plan(2)
|
|
83
|
-
|
|
84
|
-
const input = split(/~/)
|
|
85
|
-
|
|
86
|
-
input.pipe(strcb(function (err, list) {
|
|
87
|
-
t.error(err)
|
|
88
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
89
|
-
}))
|
|
90
|
-
|
|
91
|
-
input.end('hello~world')
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
test('support an option argument', function (t) {
|
|
95
|
-
t.plan(2)
|
|
96
|
-
|
|
97
|
-
const input = split({ highWaterMark: 2 })
|
|
98
|
-
|
|
99
|
-
input.pipe(strcb(function (err, list) {
|
|
100
|
-
t.error(err)
|
|
101
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
102
|
-
}))
|
|
103
|
-
|
|
104
|
-
input.end('hello\nworld')
|
|
105
|
-
})
|
|
106
|
-
|
|
107
|
-
test('support a mapper function', function (t) {
|
|
108
|
-
t.plan(2)
|
|
109
|
-
|
|
110
|
-
const a = { a: '42' }
|
|
111
|
-
const b = { b: '24' }
|
|
112
|
-
|
|
113
|
-
const input = split(JSON.parse)
|
|
114
|
-
|
|
115
|
-
input.pipe(objcb(function (err, list) {
|
|
116
|
-
t.error(err)
|
|
117
|
-
t.deepEqual(list, [a, b])
|
|
118
|
-
}))
|
|
119
|
-
|
|
120
|
-
input.write(JSON.stringify(a))
|
|
121
|
-
input.write('\n')
|
|
122
|
-
input.end(JSON.stringify(b))
|
|
123
|
-
})
|
|
124
|
-
|
|
125
|
-
test('split lines windows-style', function (t) {
|
|
126
|
-
t.plan(2)
|
|
127
|
-
|
|
128
|
-
const input = split()
|
|
129
|
-
|
|
130
|
-
input.pipe(strcb(function (err, list) {
|
|
131
|
-
t.error(err)
|
|
132
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
133
|
-
}))
|
|
134
|
-
|
|
135
|
-
input.end('hello\r\nworld')
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
test('splits a buffer', function (t) {
|
|
139
|
-
t.plan(2)
|
|
140
|
-
|
|
141
|
-
const input = split()
|
|
142
|
-
|
|
143
|
-
input.pipe(strcb(function (err, list) {
|
|
144
|
-
t.error(err)
|
|
145
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
146
|
-
}))
|
|
147
|
-
|
|
148
|
-
input.end(Buffer.from('hello\nworld'))
|
|
149
|
-
})
|
|
150
|
-
|
|
151
|
-
test('do not end on undefined', function (t) {
|
|
152
|
-
t.plan(2)
|
|
153
|
-
|
|
154
|
-
const input = split(function (line) { })
|
|
155
|
-
|
|
156
|
-
input.pipe(strcb(function (err, list) {
|
|
157
|
-
t.error(err)
|
|
158
|
-
t.deepEqual(list, [])
|
|
159
|
-
}))
|
|
160
|
-
|
|
161
|
-
input.end(Buffer.from('hello\nworld'))
|
|
162
|
-
})
|
|
163
|
-
|
|
164
|
-
test('has destroy method', function (t) {
|
|
165
|
-
t.plan(1)
|
|
166
|
-
|
|
167
|
-
const input = split(function (line) { })
|
|
168
|
-
|
|
169
|
-
input.on('close', function () {
|
|
170
|
-
t.ok(true, 'close emitted')
|
|
171
|
-
t.end()
|
|
172
|
-
})
|
|
173
|
-
|
|
174
|
-
input.destroy()
|
|
175
|
-
})
|
|
176
|
-
|
|
177
|
-
test('support custom matcher and mapper', function (t) {
|
|
178
|
-
t.plan(4)
|
|
179
|
-
|
|
180
|
-
const a = { a: '42' }
|
|
181
|
-
const b = { b: '24' }
|
|
182
|
-
const input = split('~', JSON.parse)
|
|
183
|
-
|
|
184
|
-
t.equal(input.matcher, '~')
|
|
185
|
-
t.equal(typeof input.mapper, 'function')
|
|
186
|
-
|
|
187
|
-
input.pipe(objcb(function (err, list) {
|
|
188
|
-
t.notOk(err, 'no errors')
|
|
189
|
-
t.deepEqual(list, [a, b])
|
|
190
|
-
}))
|
|
191
|
-
|
|
192
|
-
input.write(JSON.stringify(a))
|
|
193
|
-
input.write('~')
|
|
194
|
-
input.end(JSON.stringify(b))
|
|
195
|
-
})
|
|
196
|
-
|
|
197
|
-
test('support custom matcher and options', function (t) {
|
|
198
|
-
t.plan(6)
|
|
199
|
-
|
|
200
|
-
const input = split('~', { highWaterMark: 1024 })
|
|
201
|
-
|
|
202
|
-
t.equal(input.matcher, '~')
|
|
203
|
-
t.equal(typeof input.mapper, 'function')
|
|
204
|
-
t.equal(input._readableState.highWaterMark, 1024)
|
|
205
|
-
t.equal(input._writableState.highWaterMark, 1024)
|
|
206
|
-
|
|
207
|
-
input.pipe(strcb(function (err, list) {
|
|
208
|
-
t.error(err)
|
|
209
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
210
|
-
}))
|
|
211
|
-
|
|
212
|
-
input.end('hello~world')
|
|
213
|
-
})
|
|
214
|
-
|
|
215
|
-
test('support mapper and options', function (t) {
|
|
216
|
-
t.plan(6)
|
|
217
|
-
|
|
218
|
-
const a = { a: '42' }
|
|
219
|
-
const b = { b: '24' }
|
|
220
|
-
const input = split(JSON.parse, { highWaterMark: 1024 })
|
|
221
|
-
|
|
222
|
-
t.ok(input.matcher instanceof RegExp, 'matcher is RegExp')
|
|
223
|
-
t.equal(typeof input.mapper, 'function')
|
|
224
|
-
t.equal(input._readableState.highWaterMark, 1024)
|
|
225
|
-
t.equal(input._writableState.highWaterMark, 1024)
|
|
226
|
-
|
|
227
|
-
input.pipe(objcb(function (err, list) {
|
|
228
|
-
t.error(err)
|
|
229
|
-
t.deepEqual(list, [a, b])
|
|
230
|
-
}))
|
|
231
|
-
|
|
232
|
-
input.write(JSON.stringify(a))
|
|
233
|
-
input.write('\n')
|
|
234
|
-
input.end(JSON.stringify(b))
|
|
235
|
-
})
|
|
236
|
-
|
|
237
|
-
test('split utf8 chars', function (t) {
|
|
238
|
-
t.plan(2)
|
|
239
|
-
|
|
240
|
-
const input = split()
|
|
241
|
-
|
|
242
|
-
input.pipe(strcb(function (err, list) {
|
|
243
|
-
t.error(err)
|
|
244
|
-
t.deepEqual(list, ['烫烫烫', '锟斤拷'])
|
|
245
|
-
}))
|
|
246
|
-
|
|
247
|
-
const buf = Buffer.from('烫烫烫\r\n锟斤拷', 'utf8')
|
|
248
|
-
for (let i = 0; i < buf.length; ++i) {
|
|
249
|
-
input.write(buf.slice(i, i + 1))
|
|
250
|
-
}
|
|
251
|
-
input.end()
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
test('split utf8 chars 2by2', function (t) {
|
|
255
|
-
t.plan(2)
|
|
256
|
-
|
|
257
|
-
const input = split()
|
|
258
|
-
|
|
259
|
-
input.pipe(strcb(function (err, list) {
|
|
260
|
-
t.error(err)
|
|
261
|
-
t.deepEqual(list, ['烫烫烫', '烫烫烫'])
|
|
262
|
-
}))
|
|
263
|
-
|
|
264
|
-
const str = '烫烫烫\r\n烫烫烫'
|
|
265
|
-
const buf = Buffer.from(str, 'utf8')
|
|
266
|
-
for (let i = 0; i < buf.length; i += 2) {
|
|
267
|
-
input.write(buf.slice(i, i + 2))
|
|
268
|
-
}
|
|
269
|
-
input.end()
|
|
270
|
-
})
|
|
271
|
-
|
|
272
|
-
test('split lines when the \n comes at the end of a chunk', function (t) {
|
|
273
|
-
t.plan(2)
|
|
274
|
-
|
|
275
|
-
const input = split()
|
|
276
|
-
|
|
277
|
-
input.pipe(strcb(function (err, list) {
|
|
278
|
-
t.error(err)
|
|
279
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
280
|
-
}))
|
|
281
|
-
|
|
282
|
-
input.write('hello\n')
|
|
283
|
-
input.end('world')
|
|
284
|
-
})
|
|
285
|
-
|
|
286
|
-
test('truncated utf-8 char', function (t) {
|
|
287
|
-
t.plan(2)
|
|
288
|
-
|
|
289
|
-
const input = split()
|
|
290
|
-
|
|
291
|
-
input.pipe(strcb(function (err, list) {
|
|
292
|
-
t.error(err)
|
|
293
|
-
t.deepEqual(list, ['烫' + Buffer.from('e7', 'hex').toString()])
|
|
294
|
-
}))
|
|
295
|
-
|
|
296
|
-
const str = '烫烫'
|
|
297
|
-
const buf = Buffer.from(str, 'utf8')
|
|
298
|
-
|
|
299
|
-
input.write(buf.slice(0, 3))
|
|
300
|
-
input.end(buf.slice(3, 4))
|
|
301
|
-
})
|
|
302
|
-
|
|
303
|
-
test('maximum buffer limit', function (t) {
|
|
304
|
-
t.plan(1)
|
|
305
|
-
|
|
306
|
-
const input = split({ maxLength: 2 })
|
|
307
|
-
input.on('error', function (err) {
|
|
308
|
-
t.ok(err)
|
|
309
|
-
})
|
|
310
|
-
|
|
311
|
-
input.resume()
|
|
312
|
-
|
|
313
|
-
input.write('hey')
|
|
314
|
-
})
|
|
315
|
-
|
|
316
|
-
test('readable highWaterMark', function (t) {
|
|
317
|
-
const input = split()
|
|
318
|
-
t.equal(input._readableState.highWaterMark, 16)
|
|
319
|
-
t.end()
|
|
320
|
-
})
|
|
321
|
-
|
|
322
|
-
test('maxLength < chunk size', function (t) {
|
|
323
|
-
t.plan(2)
|
|
324
|
-
|
|
325
|
-
const input = split({ maxLength: 2 })
|
|
326
|
-
|
|
327
|
-
input.pipe(strcb(function (err, list) {
|
|
328
|
-
t.error(err)
|
|
329
|
-
t.deepEqual(list, ['a', 'b'])
|
|
330
|
-
}))
|
|
331
|
-
|
|
332
|
-
input.end('a\nb')
|
|
333
|
-
})
|
|
334
|
-
|
|
335
|
-
test('maximum buffer limit w/skip', function (t) {
|
|
336
|
-
t.plan(2)
|
|
337
|
-
|
|
338
|
-
const input = split({ maxLength: 2, skipOverflow: true })
|
|
339
|
-
|
|
340
|
-
input.pipe(strcb(function (err, list) {
|
|
341
|
-
t.error(err)
|
|
342
|
-
t.deepEqual(list, ['a', 'b', 'c'])
|
|
343
|
-
}))
|
|
344
|
-
|
|
345
|
-
input.write('a\n123')
|
|
346
|
-
input.write('456')
|
|
347
|
-
input.write('789\nb\nc')
|
|
348
|
-
input.end()
|
|
349
|
-
})
|
|
350
|
-
|
|
351
|
-
test("don't modify the options object", function (t) {
|
|
352
|
-
t.plan(2)
|
|
353
|
-
|
|
354
|
-
const options = {}
|
|
355
|
-
const input = split(options)
|
|
356
|
-
|
|
357
|
-
input.pipe(strcb(function (err, list) {
|
|
358
|
-
t.error(err)
|
|
359
|
-
t.same(options, {})
|
|
360
|
-
}))
|
|
361
|
-
|
|
362
|
-
input.end()
|
|
363
|
-
})
|
|
364
|
-
|
|
365
|
-
test('mapper throws flush', function (t) {
|
|
366
|
-
t.plan(1)
|
|
367
|
-
const error = new Error()
|
|
368
|
-
const input = split(function () {
|
|
369
|
-
throw error
|
|
370
|
-
})
|
|
371
|
-
|
|
372
|
-
input.on('error', (err, list) => {
|
|
373
|
-
t.same(err, error)
|
|
374
|
-
})
|
|
375
|
-
input.end('hello')
|
|
376
|
-
})
|
|
377
|
-
|
|
378
|
-
test('mapper throws on transform', function (t) {
|
|
379
|
-
t.plan(1)
|
|
380
|
-
|
|
381
|
-
const error = new Error()
|
|
382
|
-
const input = split(function (l) {
|
|
383
|
-
throw error
|
|
384
|
-
})
|
|
385
|
-
|
|
386
|
-
input.on('error', (err) => {
|
|
387
|
-
t.same(err, error)
|
|
388
|
-
})
|
|
389
|
-
input.write('a')
|
|
390
|
-
input.write('\n')
|
|
391
|
-
input.end('b')
|
|
392
|
-
})
|
|
393
|
-
|
|
394
|
-
test('supports Symbol.split', function (t) {
|
|
395
|
-
t.plan(2)
|
|
396
|
-
|
|
397
|
-
const input = split({
|
|
398
|
-
[Symbol.split] (str) {
|
|
399
|
-
return str.split('~')
|
|
400
|
-
}
|
|
401
|
-
})
|
|
402
|
-
|
|
403
|
-
input.pipe(strcb(function (err, list) {
|
|
404
|
-
t.error(err)
|
|
405
|
-
t.deepEqual(list, ['hello', 'world'])
|
|
406
|
-
}))
|
|
407
|
-
|
|
408
|
-
input.end('hello~world')
|
|
409
|
-
})
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type Options = {
|
|
2
|
-
/**
|
|
3
|
-
Count [ambiguous width characters](https://www.unicode.org/reports/tr11/#Ambiguous) as having narrow width (count of 1) instead of wide width (count of 2).
|
|
4
|
-
|
|
5
|
-
@default true
|
|
6
|
-
|
|
7
|
-
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). __If the context cannot be established reliably, they should be treated as narrow characters by default.__
|
|
8
|
-
> - http://www.unicode.org/reports/tr11/
|
|
9
|
-
*/
|
|
10
|
-
readonly ambiguousIsNarrow?: boolean;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
Whether [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) should be counted.
|
|
14
|
-
|
|
15
|
-
@default false
|
|
16
|
-
*/
|
|
17
|
-
readonly countAnsiEscapeCodes?: boolean;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
Get the visual width of a string - the number of columns required to display it.
|
|
22
|
-
|
|
23
|
-
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
|
|
24
|
-
|
|
25
|
-
@example
|
|
26
|
-
```
|
|
27
|
-
import stringWidth from 'string-width';
|
|
28
|
-
|
|
29
|
-
stringWidth('a');
|
|
30
|
-
//=> 1
|
|
31
|
-
|
|
32
|
-
stringWidth('古');
|
|
33
|
-
//=> 2
|
|
34
|
-
|
|
35
|
-
stringWidth('\u001B[1m古\u001B[22m');
|
|
36
|
-
//=> 2
|
|
37
|
-
```
|
|
38
|
-
*/
|
|
39
|
-
export default function stringWidth(string: string, options?: Options): number;
|