decocms 2.186.0 → 2.186.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-vb3SCqTR.js → AlertCircle-K-Pdcic9.js} +1 -1
- package/dist/client/assets/{ArrowLeft-UgY0HH3_.js → ArrowLeft-DbjuKsKJ.js} +1 -1
- package/dist/client/assets/{ArrowUp-BQ0GwMhq.js → ArrowUp-CVgf-IuM.js} +1 -1
- package/dist/client/assets/{Check-EBIfpKfk.js → Check-5J8pLufa.js} +1 -1
- package/dist/client/assets/{ChevronDown-TWcZ4kJ9.js → ChevronDown-azX3X6AX.js} +1 -1
- package/dist/client/assets/{ChevronRight-BpkTLj3y.js → ChevronRight-BU9wyepR.js} +1 -1
- package/dist/client/assets/{ChevronUp-DMmIo8iD.js → ChevronUp-ISSymo50.js} +1 -1
- package/dist/client/assets/{Container-Dt8UalAF.js → Container-DO3SbooR.js} +1 -1
- package/dist/client/assets/{Dataflow03-DLl2RzQp.js → Dataflow03-DDjLJJPt.js} +1 -1
- package/dist/client/assets/{Download01-Dw7P9-4i.js → Download01-CSi5s7rT.js} +1 -1
- package/dist/client/assets/{FolderClosed-D8TIwtpx.js → FolderClosed-DG1khNab.js} +1 -1
- package/dist/client/assets/{Grid01-CmDjkAry.js → Grid01-1OtRlqYA.js} +1 -1
- package/dist/client/assets/{List-3ufZUeAi.js → List-CD8zd6Wa.js} +1 -1
- package/dist/client/assets/{Loading01-oEWzHjsc.js → Loading01-CYdiDh3l.js} +1 -1
- package/dist/client/assets/{Play-eTAbgb-w.js → Play-3YhDYx27.js} +1 -1
- package/dist/client/assets/{Plus-BA7Rfpr-.js → Plus-V1Th1jdv.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-B6mp4o28.js → RefreshCcw01-Bk3rOtaE.js} +1 -1
- package/dist/client/assets/{SearchMd-4_up1TLU.js → SearchMd-BvvZzTkV.js} +1 -1
- package/dist/client/assets/{Settings01-lbicxKIn.js → Settings01-BhEewSHV.js} +1 -1
- package/dist/client/assets/{Trash01-eIuymuN8.js → Trash01-DEYpLJs9.js} +1 -1
- package/dist/client/assets/{Type01-DCWXkwdC.js → Type01-DPCWeoOo.js} +1 -1
- package/dist/client/assets/{Upload01-BSFuoakK.js → Upload01-CVsYMTIG.js} +1 -1
- package/dist/client/assets/{User01-DN32uzYn.js → User01-B6InEsCV.js} +1 -1
- package/dist/client/assets/{VideoRecorder-BQGrK2bZ.js → VideoRecorder-DWwuCAKx.js} +1 -1
- package/dist/client/assets/{X-DaCoKlVZ.js → X-DSEUOZBv.js} +1 -1
- package/dist/client/assets/{XCircle-DZHeGFcX.js → XCircle-BDF0JqjY.js} +1 -1
- package/dist/client/assets/{XClose-D_0o1f9F.js → XClose-C-lSsuAr.js} +1 -1
- package/dist/client/assets/{Zap-D0bIVVjW.js → Zap-Md9DJ6rv.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-BI-eeQCx.js → agent-connections-preview-BjYZmjl3.js} +1 -1
- package/dist/client/assets/{agent-detail-Cawai6IA.js → agent-detail-Dj0OUG-D.js} +1 -1
- package/dist/client/assets/{agents-BoYaKa_N.js → agents-DZR4cSbV.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-D_53AnVk.js → ai-providers-logos-pBxdceXx.js} +1 -1
- package/dist/client/assets/{alert-dialog-C5dI6ng4.js → alert-dialog-CJVLkF8s.js} +1 -1
- package/dist/client/assets/{auth-catchall-O2S6cfz6.js → auth-catchall-CyapYNp9.js} +1 -1
- package/dist/client/assets/{automation-detail-BlNEANzL.js → automation-detail-DUb_NKWf.js} +1 -1
- package/dist/client/assets/{automations-BQAwNfu2.js → automations-B339F6Fn.js} +1 -1
- package/dist/client/assets/{avatar-CojTV7kK.js → avatar-BiJdl6Xf.js} +1 -1
- package/dist/client/assets/{badge-Cj2aOlgl.js → badge-BbY1Vzps.js} +1 -1
- package/dist/client/assets/{binder-2uXLdWyj.js → binder-3anAL5WI.js} +1 -1
- package/dist/client/assets/{breadcrumb--82F68FS.js → breadcrumb-BM2hSfLB.js} +1 -1
- package/dist/client/assets/{card-ChQFWIen.js → card-D1l6f7HS.js} +1 -1
- package/dist/client/assets/{checkbox-D_kbciPC.js → checkbox-GcV7rItk.js} +1 -1
- package/dist/client/assets/{collapsible-Doonaq5y.js → collapsible-E7EbAleb.js} +1 -1
- package/dist/client/assets/{collection-detail-BLWjMoWG.js → collection-detail-md2_reRY.js} +1 -1
- package/dist/client/assets/{collection-display-button-B_YB0Pvz.js → collection-display-button-BN69LmBz.js} +1 -1
- package/dist/client/assets/{collection-search-BWbixDRp.js → collection-search-CcVBsN85.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DQMCUU4F.js → collection-table-wrapper-BPFLr1-v.js} +1 -1
- package/dist/client/assets/{collection-tabs-BnCzVfgA.js → collection-tabs-BijGeHYB.js} +1 -1
- package/dist/client/assets/{command-CtOWm1VV.js → command-KtP0d-HZ.js} +1 -1
- package/dist/client/assets/{connection-card-DcT51RGy.js → connection-card-DT3Fx28T.js} +1 -1
- package/dist/client/assets/{connection-detail-BRK14vIh.js → connection-detail-DwgDpXcB.js} +1 -1
- package/dist/client/assets/{connections-D2sLUHTG.js → connections-C_kRN8jY.js} +1 -1
- package/dist/client/assets/{constants-DEVLPir8.js → constants-2OCwh60p.js} +1 -1
- package/dist/client/assets/constants-BwEgB5ct.js +1 -0
- package/dist/client/assets/{context-BPeBGjOy.js → context-CuNDOhoh.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-R77KhBvZ.js → create-organization-dialog-Cd0g9HkW.js} +1 -1
- package/dist/client/assets/{create-project-dialog-D41xkdsb.js → create-project-dialog-CU5VLoep.js} +1 -1
- package/dist/client/assets/{danger-zX3Qk8cM.js → danger-CFl_eB5k.js} +1 -1
- package/dist/client/assets/{danger-zone-DqYkGDIc.js → danger-zone-BSvLmne8.js} +1 -1
- package/dist/client/assets/{dependencies-9-wz4Xxc.js → dependencies-DDWJJnWt.js} +1 -1
- package/dist/client/assets/{dialog-BCMFAhkI.js → dialog-D46ZA88r.js} +1 -1
- package/dist/client/assets/{drawer-Bl6NlnaH.js → drawer-DsEaI2mC.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BbHSISkN.js → dropdown-menu-BJLjCuY0.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BIILduy1.js → dynamic-plugin-layout-DQu_PXGi.js} +1 -1
- package/dist/client/assets/{editable-task-title-Br5O_iLC.js → editable-task-title-BXxkXNIX.js} +1 -1
- package/dist/client/assets/{empty-state-C0dwe4U0.js → empty-state-B7nlLEUe.js} +1 -1
- package/dist/client/assets/{empty-state-5noOSGfK.js → empty-state-unH0aOxb.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CmxN_shK.js → env-vars-editor-COVavLgR.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DJbja1-q.js → extract-connection-data-BxATAvFG.js} +1 -1
- package/dist/client/assets/{file-browser-DUjv8sIJ.js → file-browser-Y37oB16s.js} +2 -2
- package/dist/client/assets/{form-DUoo-ylF.js → form-BC654cr0.js} +1 -1
- package/dist/client/assets/{general-CGJ44hLj.js → general-DnNKCd5D.js} +1 -1
- package/dist/client/assets/{grid-view-BoGBtir5.js → grid-view-DBiOShLC.js} +1 -1
- package/dist/client/assets/{home-C0TXQswt.js → home-DoIljK7E.js} +1 -1
- package/dist/client/assets/{index-BKxenrdO.js → index-BRbdC8tb.js} +3 -3
- package/dist/client/assets/{index-DHg1fc5U.js → index-BbKz4tLm.js} +1 -1
- package/dist/client/assets/{index-hk9wzRwg.js → index-CKlHjZGl.js} +1 -1
- package/dist/client/assets/{index-D-VE8zlf.js → index-CvdTWVPu.js} +1 -1
- package/dist/client/assets/{index-C7rxOK6C.js → index-DSSbY8iZ.js} +1 -1
- package/dist/client/assets/{index-DaynUkW8.js → index-DSiECZF0.js} +1 -1
- package/dist/client/assets/{index-D73K8P0E.js → index-DW3Gddt1.js} +1 -1
- package/dist/client/assets/{index-Do3azGem.js → index-DhwDaiqy.js} +1 -1
- package/dist/client/assets/{index-CJahu32N.js → index-Do980wUe.js} +1 -1
- package/dist/client/assets/{index-BHTlDqaD.js → index-P1BeuVDU.js} +1 -1
- package/dist/client/assets/{index-BZ1qyalZ.js → index-Z-Bosamk.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D-mOGz06.js → infiniteQueryObserver-DozliAIg.js} +1 -1
- package/dist/client/assets/{input-BOFUz0aj.js → input-BOjviNKP.js} +1 -1
- package/dist/client/assets/{integration-icon-DgW660ho.js → integration-icon-BxAcqR_W.js} +1 -1
- package/dist/client/assets/{label-CwYk_3Ey.js → label-h0Vcc2GK.js} +1 -1
- package/dist/client/assets/{layout-DAeDMG0b.js → layout-B-xxTjgY.js} +1 -1
- package/dist/client/assets/{layout-C3AUYf3J.js → layout-B1L9zKc4.js} +1 -1
- package/dist/client/assets/{login-DuIR9S1j.js → login-DGiUNRC7.js} +1 -1
- package/dist/client/assets/{logo-upload-CgauH7P2.js → logo-upload-PCOmxOCx.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DGEXm5IH.js → mcp-app-renderer-CRS3A1HB.js} +1 -1
- package/dist/client/assets/{mcp-server-card-CK4sGKdu.js → mcp-server-card-B6PFNGFX.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-D69tJNJ-.js → mcp-server-detail-oU638r_U.js} +2 -2
- package/dist/client/assets/{members-BE0-LX8z.js → members-CNzL9zLR.js} +1 -1
- package/dist/client/assets/{monaco-editor-DKgjhGyK.js → monaco-editor-vJr8RDGl.js} +1 -1
- package/dist/client/assets/{monitoring-mL0YGaG3.js → monitoring-CxIOWArS.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-BU6wqp6k.js → monitoring-dashboard-edit-DxfJ4WNy.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-DpgR3HBD.js → monitoring-dashboard-view-BL4nPi_-.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DGTvXy8L.js → monitoring-stats-row-CrNnPzpZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-DXq4VAB4.js → oauth-callback-Cq38djsA.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DLq9Afvv.js → oauth-callback-ai-provider-CYTOAGu5.js} +1 -1
- package/dist/client/assets/{org-ai-providers-Cz242a6o.js → org-ai-providers-DtsI9IWI.js} +1 -1
- package/dist/client/assets/{page-x_-Jc14s.js → page-CYpcNv9e.js} +1 -1
- package/dist/client/assets/{page-D3b1s6a2.js → page-zavfyW1i.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B3_dpS13.js → plugin-empty-state-CgDAJvPC.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Cj0RnDfG.js → plugin-empty-state-Dl_2Uo0y.js} +1 -1
- package/dist/client/assets/{plugin-header-BKXZ081u.js → plugin-header-D43xaGJs.js} +1 -1
- package/dist/client/assets/{plugin-header-DlN-1PR6.js → plugin-header-Dv9ESxEb.js} +1 -1
- package/dist/client/assets/plugins-DBMyeN4D.js +1 -0
- package/dist/client/assets/{popover-CRZZJD6X.js → popover-DWheVeA1.js} +1 -1
- package/dist/client/assets/{project-app-view-Dei8g4l2.js → project-app-view-9tWFjZrt.js} +1 -1
- package/dist/client/assets/{project-layout-dAA71zE-.js → project-layout-Dv-Q6xBk.js} +1 -1
- package/dist/client/assets/{project-plugins-BaJYUdT2.js → project-plugins-Bw8tiinl.js} +1 -1
- package/dist/client/assets/{projects-list-Cv_y3Y1y.js → projects-list-DokYG2lJ.js} +1 -1
- package/dist/client/assets/{registry-layout-C04LM3fN.js → registry-layout-CxVYwTXn.js} +1 -1
- package/dist/client/assets/{registry-utils-C0FVK22y.js → registry-utils-BSd5ITwa.js} +1 -1
- package/dist/client/assets/{reset-password-CKoF4675.js → reset-password-C7Dj7QEf.js} +1 -1
- package/dist/client/assets/{resizable-nYmcarWg.js → resizable-DixBhzs0.js} +1 -1
- package/dist/client/assets/{save-actions-eZ1LrcFs.js → save-actions-qtl58c-n.js} +1 -1
- package/dist/client/assets/{scroll-area-BTvSahh5.js → scroll-area-COTWSYpJ.js} +1 -1
- package/dist/client/assets/{select-LSyRUUkM.js → select-Duo4-kjU.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-CQf_NH1Z.js → select-virtual-mcp-DmwglbWt.js} +1 -1
- package/dist/client/assets/{shell-layout-DaNKzCH1.js → shell-layout-BKPGcmv4.js} +2 -2
- package/dist/client/assets/{sidebar-settings-CArfFMjP.js → sidebar-settings-Bvnz3xIL.js} +1 -1
- package/dist/client/assets/{skeleton-DdkQJ8Ke.js → skeleton-CxmuAljC.js} +1 -1
- package/dist/client/assets/{spinner-BbwK2nZf.js → spinner-Bvsf8yBr.js} +1 -1
- package/dist/client/assets/{store-invite-38lQwS2V.js → store-invite-B3ZITnmR.js} +1 -1
- package/dist/client/assets/{switch-C4iOvYgm.js → switch-DgSoD5A_.js} +1 -1
- package/dist/client/assets/{table-CvG2iH0y.js → table-6Exocylh.js} +1 -1
- package/dist/client/assets/{tabs-D48yslt8.js → tabs-BawFIUQp.js} +1 -1
- package/dist/client/assets/{task-status-CfdaAVDd.js → task-status-DCcRj1iH.js} +32 -32
- package/dist/client/assets/tasks-BXLnBJIq.js +1 -0
- package/dist/client/assets/{tasks-panel-CngVyrSR.js → tasks-panel-DWjSzHZC.js} +1 -1
- package/dist/client/assets/{textarea-pMGiDvfM.js → textarea-DdRl57bf.js} +1 -1
- package/dist/client/assets/{time-range-picker-hMmDbLQS.js → time-range-picker-DOqabEZA.js} +1 -1
- package/dist/client/assets/{toggle-group-DB7gCSVI.js → toggle-group-B0IrEjNf.js} +1 -1
- package/dist/client/assets/{tools-list-DqDOl_iw.js → tools-list-DbIvei1P.js} +1 -1
- package/dist/client/assets/{tooltip-BYpVdvUr.js → tooltip-xl3GoSVP.js} +1 -1
- package/dist/client/assets/{topbar-portal-BT3L0OHL.js → topbar-portal-DVwzk_zs.js} +1 -1
- package/dist/client/assets/{types-1J8PljZw.js → types-DPAE4wXV.js} +1 -1
- package/dist/client/assets/{use-automations-BMRGIsk5.js → use-automations-BTjhSzA_.js} +1 -1
- package/dist/client/assets/{use-collections-DNZPF16v.js → use-collections-Bqp5H9bu.js} +1 -1
- package/dist/client/assets/{use-connection-OaJxXLK-.js → use-connection-De5rVqrE.js} +1 -1
- package/dist/client/assets/{use-copy-RSAu7_j7.js → use-copy-CogCWJQ7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CrkA34pw.js → use-create-virtual-mcp-CdSUPhk5.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-cI-C0iaq.js → use-infinite-scroll-CQVKBMoy.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-Cw1tOxSk.js → use-install-from-registry-D7V-rpJ0.js} +1 -1
- package/dist/client/assets/{use-list-state-CSTOpaV4.js → use-list-state-BtvQgv8T.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-FfAzq9P9.js → use-mcp-prompts-k7CgkVwI.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-Jm6NvGgP.js → use-mcp-resources-BfKeTtfq.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B10GVMq1.js → use-mcp-tools-iD-VGNhw.js} +1 -1
- package/dist/client/assets/{use-members-BEgSet5G.js → use-members-CYI2sNHs.js} +1 -1
- package/dist/client/assets/{use-project-BxO41BBL.js → use-project-DdgxiICX.js} +1 -1
- package/dist/client/assets/{use-store-discovery-DVCWh6aJ.js → use-store-discovery-DdbArpnw.js} +1 -1
- package/dist/client/assets/{use-view-mode-0u9SIVO4.js → use-view-mode-BiSEdh0M.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BZiKlRZJ.js → use-virtual-mcp-DxTKYWLn.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DMnx1-Vs.js +1 -0
- package/dist/client/assets/{useMutation-BaFlpWJP.js → useMutation-C_Uj7oOe.js} +1 -1
- package/dist/client/assets/useQuery-C31bP6Ck.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D-WGLpBh.js +1 -0
- package/dist/client/assets/{user-Bx46t5R3.js → user-tg9kwvXU.js} +1 -1
- package/dist/client/assets/{workflow-BIBTFj9e.js → workflow-D6TrKvm2.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +62 -0
- package/dist/server/node_modules/async-exit-hook/index.js +171 -0
- package/dist/server/node_modules/{postgres-array → async-exit-hook}/license +1 -1
- package/dist/server/node_modules/async-exit-hook/package.json +66 -0
- package/dist/server/node_modules/async-exit-hook/readme.md +118 -0
- package/package.json +1 -1
- package/dist/client/assets/constants-BLFOykPL.js +0 -1
- package/dist/client/assets/plugins-D1_YmAIA.js +0 -1
- package/dist/client/assets/tasks-CHK2wNRc.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DzvJ2Vyd.js +0 -1
- package/dist/client/assets/useQuery-DG4WKkPy.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DKieyXx7.js +0 -1
- package/dist/server/node_modules/pg/LICENSE +0 -21
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- 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-pool/LICENSE +0 -21
- package/dist/server/node_modules/pg-pool/README.md +0 -357
- package/dist/server/node_modules/pg-pool/esm/index.mjs +0 -5
- package/dist/server/node_modules/pg-pool/index.js +0 -517
- package/dist/server/node_modules/pg-pool/package.json +0 -51
- 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/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/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- 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/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/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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-array",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "2.0.0",
|
|
5
|
-
"description": "Parse postgres array columns",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-array",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Ben Drucker",
|
|
10
|
-
"email": "bvdrucker@gmail.com",
|
|
11
|
-
"url": "bendrucker.me"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=4"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "standard && tape test.js"
|
|
18
|
-
},
|
|
19
|
-
"types": "index.d.ts",
|
|
20
|
-
"keywords": [
|
|
21
|
-
"postgres",
|
|
22
|
-
"array",
|
|
23
|
-
"parser"
|
|
24
|
-
],
|
|
25
|
-
"dependencies": {},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"standard": "^12.0.1",
|
|
28
|
-
"tape": "^4.0.0"
|
|
29
|
-
},
|
|
30
|
-
"files": [
|
|
31
|
-
"index.js",
|
|
32
|
-
"index.d.ts",
|
|
33
|
-
"readme.md"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# postgres-array [](https://travis-ci.org/bendrucker/postgres-array)
|
|
2
|
-
|
|
3
|
-
> Parse postgres array columns
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install --save postgres-array
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
var postgresArray = require('postgres-array')
|
|
17
|
-
|
|
18
|
-
postgresArray.parse('{1,2,3}', (value) => parseInt(value, 10))
|
|
19
|
-
//=> [1, 2, 3]
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## API
|
|
23
|
-
|
|
24
|
-
#### `parse(input, [transform])` -> `array`
|
|
25
|
-
|
|
26
|
-
##### input
|
|
27
|
-
|
|
28
|
-
*Required*
|
|
29
|
-
Type: `string`
|
|
30
|
-
|
|
31
|
-
A Postgres array string.
|
|
32
|
-
|
|
33
|
-
##### transform
|
|
34
|
-
|
|
35
|
-
Type: `function`
|
|
36
|
-
Default: `identity`
|
|
37
|
-
|
|
38
|
-
A function that transforms non-null values inserted into the array.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## License
|
|
42
|
-
|
|
43
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
var DATE_TIME = /(\d{1,})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})(\.\d{1,})?.*?( BC)?$/
|
|
4
|
-
var DATE = /^(\d{1,})-(\d{2})-(\d{2})( BC)?$/
|
|
5
|
-
var TIME_ZONE = /([Z+-])(\d{2})?:?(\d{2})?:?(\d{2})?/
|
|
6
|
-
var INFINITY = /^-?infinity$/
|
|
7
|
-
|
|
8
|
-
module.exports = function parseDate (isoDate) {
|
|
9
|
-
if (INFINITY.test(isoDate)) {
|
|
10
|
-
// Capitalize to Infinity before passing to Number
|
|
11
|
-
return Number(isoDate.replace('i', 'I'))
|
|
12
|
-
}
|
|
13
|
-
var matches = DATE_TIME.exec(isoDate)
|
|
14
|
-
|
|
15
|
-
if (!matches) {
|
|
16
|
-
// Force YYYY-MM-DD dates to be parsed as local time
|
|
17
|
-
return getDate(isoDate) || null
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
var isBC = !!matches[8]
|
|
21
|
-
var year = parseInt(matches[1], 10)
|
|
22
|
-
if (isBC) {
|
|
23
|
-
year = bcYearToNegativeYear(year)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var month = parseInt(matches[2], 10) - 1
|
|
27
|
-
var day = matches[3]
|
|
28
|
-
var hour = parseInt(matches[4], 10)
|
|
29
|
-
var minute = parseInt(matches[5], 10)
|
|
30
|
-
var second = parseInt(matches[6], 10)
|
|
31
|
-
|
|
32
|
-
var ms = matches[7]
|
|
33
|
-
ms = ms ? 1000 * parseFloat(ms) : 0
|
|
34
|
-
|
|
35
|
-
var date
|
|
36
|
-
var offset = timeZoneOffset(isoDate)
|
|
37
|
-
if (offset != null) {
|
|
38
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, ms))
|
|
39
|
-
|
|
40
|
-
// Account for years from 0 to 99 being interpreted as 1900-1999
|
|
41
|
-
// by Date.UTC / the multi-argument form of the Date constructor
|
|
42
|
-
if (is0To99(year)) {
|
|
43
|
-
date.setUTCFullYear(year)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (offset !== 0) {
|
|
47
|
-
date.setTime(date.getTime() - offset)
|
|
48
|
-
}
|
|
49
|
-
} else {
|
|
50
|
-
date = new Date(year, month, day, hour, minute, second, ms)
|
|
51
|
-
|
|
52
|
-
if (is0To99(year)) {
|
|
53
|
-
date.setFullYear(year)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return date
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function getDate (isoDate) {
|
|
61
|
-
var matches = DATE.exec(isoDate)
|
|
62
|
-
if (!matches) {
|
|
63
|
-
return
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
var year = parseInt(matches[1], 10)
|
|
67
|
-
var isBC = !!matches[4]
|
|
68
|
-
if (isBC) {
|
|
69
|
-
year = bcYearToNegativeYear(year)
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
var month = parseInt(matches[2], 10) - 1
|
|
73
|
-
var day = matches[3]
|
|
74
|
-
// YYYY-MM-DD will be parsed as local time
|
|
75
|
-
var date = new Date(year, month, day)
|
|
76
|
-
|
|
77
|
-
if (is0To99(year)) {
|
|
78
|
-
date.setFullYear(year)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return date
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// match timezones:
|
|
85
|
-
// Z (UTC)
|
|
86
|
-
// -05
|
|
87
|
-
// +06:30
|
|
88
|
-
function timeZoneOffset (isoDate) {
|
|
89
|
-
if (isoDate.endsWith('+00')) {
|
|
90
|
-
return 0
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
var zone = TIME_ZONE.exec(isoDate.split(' ')[1])
|
|
94
|
-
if (!zone) return
|
|
95
|
-
var type = zone[1]
|
|
96
|
-
|
|
97
|
-
if (type === 'Z') {
|
|
98
|
-
return 0
|
|
99
|
-
}
|
|
100
|
-
var sign = type === '-' ? -1 : 1
|
|
101
|
-
var offset = parseInt(zone[2], 10) * 3600 +
|
|
102
|
-
parseInt(zone[3] || 0, 10) * 60 +
|
|
103
|
-
parseInt(zone[4] || 0, 10)
|
|
104
|
-
|
|
105
|
-
return offset * sign * 1000
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function bcYearToNegativeYear (year) {
|
|
109
|
-
// Account for numerical difference between representations of BC years
|
|
110
|
-
// See: https://github.com/bendrucker/postgres-date/issues/5
|
|
111
|
-
return -(year - 1)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function is0To99 (num) {
|
|
115
|
-
return num >= 0 && num < 100
|
|
116
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "postgres-date",
|
|
3
|
-
"main": "index.js",
|
|
4
|
-
"version": "1.0.7",
|
|
5
|
-
"description": "Postgres date column parser",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "bendrucker/postgres-date",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Ben Drucker",
|
|
10
|
-
"email": "bvdrucker@gmail.com",
|
|
11
|
-
"url": "bendrucker.me"
|
|
12
|
-
},
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=0.10.0"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "standard && tape test.js"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"postgres",
|
|
21
|
-
"date",
|
|
22
|
-
"parser"
|
|
23
|
-
],
|
|
24
|
-
"dependencies": {},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"standard": "^14.0.0",
|
|
27
|
-
"tape": "^5.0.0"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"index.js",
|
|
31
|
-
"readme.md"
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# postgres-date [](https://travis-ci.org/bendrucker/postgres-date) [](https://greenkeeper.io/)
|
|
2
|
-
|
|
3
|
-
> Postgres date output parser
|
|
4
|
-
|
|
5
|
-
This package parses [date/time outputs](https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-DATETIME-OUTPUT) from Postgres into Javascript `Date` objects. Its goal is to match Postgres behavior and preserve data accuracy.
|
|
6
|
-
|
|
7
|
-
If you find a case where a valid Postgres output results in incorrect parsing (including loss of precision), please [create a pull request](https://github.com/bendrucker/postgres-date/compare) and provide a failing test.
|
|
8
|
-
|
|
9
|
-
**Supported Postgres Versions:** `>= 9.6`
|
|
10
|
-
|
|
11
|
-
All prior versions of Postgres are likely compatible but not officially supported.
|
|
12
|
-
|
|
13
|
-
## Install
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
$ npm install --save postgres-date
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## Usage
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
var parse = require('postgres-date')
|
|
24
|
-
parse('2011-01-23 22:15:51Z')
|
|
25
|
-
// => 2011-01-23T22:15:51.000Z
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
#### `parse(isoDate)` -> `date`
|
|
31
|
-
|
|
32
|
-
##### isoDate
|
|
33
|
-
|
|
34
|
-
*Required*
|
|
35
|
-
Type: `string`
|
|
36
|
-
|
|
37
|
-
A date string from Postgres.
|
|
38
|
-
|
|
39
|
-
## Releases
|
|
40
|
-
|
|
41
|
-
The following semantic versioning increments will be used for changes:
|
|
42
|
-
|
|
43
|
-
* **Major**: Removal of support for Node.js versions or Postgres versions (not expected)
|
|
44
|
-
* **Minor**: Unused, since Postgres returns dates in standard ISO 8601 format
|
|
45
|
-
* **Patch**: Any fix for parsing behavior
|
|
46
|
-
|
|
47
|
-
## License
|
|
48
|
-
|
|
49
|
-
MIT © [Ben Drucker](http://bendrucker.me)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2014-2018, Matteo Collina <hello@matteocollina.com>
|
|
2
|
-
|
|
3
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
-
copyright notice and this permission notice appear in all copies.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
13
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# Split2(matcher, mapper, options)
|
|
2
|
-
|
|
3
|
-

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