decocms 2.276.1 → 2.276.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DzLXavEa.js → AlertCircle-BBqU1qWS.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CyEr_HFQ.js → ArrowNarrowLeft-CNekOP3n.js} +1 -1
- package/dist/client/assets/{CheckCircle-CMotQv5X.js → CheckCircle-D1VIcB1v.js} +1 -1
- package/dist/client/assets/{ChevronDown-L-DKp152.js → ChevronDown-D3j8fwsA.js} +1 -1
- package/dist/client/assets/{ChevronRight-BU1ygmWa.js → ChevronRight-iahU_m85.js} +1 -1
- package/dist/client/assets/{ChevronUp-7uxSSWGB.js → ChevronUp-gcRxFSBd.js} +1 -1
- package/dist/client/assets/{Container-DXt1Y9Wv.js → Container-ClismqwZ.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DzF5OZ-B.js → LinkExternal01-Cr5TrBdV.js} +1 -1
- package/dist/client/assets/{Lock01-KkAI4eIi.js → Lock01-BaFHhauP.js} +1 -1
- package/dist/client/assets/{Palette-DjlDo0fl.js → Palette-B56V8p0g.js} +1 -1
- package/dist/client/assets/{Play-mrdTPMT2.js → Play-CJl6p68m.js} +1 -1
- package/dist/client/assets/{Plus-BnKCd83q.js → Plus-uRTzng7P.js} +1 -1
- package/dist/client/assets/{SearchMd-tnuXyfyF.js → SearchMd-w0SZQ38I.js} +1 -1
- package/dist/client/assets/{Settings02-CN6Z9eZa.js → Settings02-JhLe5T4h.js} +1 -1
- package/dist/client/assets/{Star01-DeLN6-0b.js → Star01-izvvU391.js} +1 -1
- package/dist/client/assets/{Sun-LtQGOgdh.js → Sun-B88VGXex.js} +1 -1
- package/dist/client/assets/{Tool01-lLv0JLVY.js → Tool01-DTFWc1H6.js} +1 -1
- package/dist/client/assets/{Trash01-DoOAWIQI.js → Trash01-DpAt8su9.js} +1 -1
- package/dist/client/assets/{Upload01-7P4qiqOJ.js → Upload01-xcbOBsW3.js} +1 -1
- package/dist/client/assets/{User01-C8Udq3pX.js → User01-B4t4xc7U.js} +1 -1
- package/dist/client/assets/{Users03-DbtRtQOU.js → Users03-DlknPznL.js} +1 -1
- package/dist/client/assets/{X-BFlss5X6.js → X-g-dkGEmI.js} +1 -1
- package/dist/client/assets/{XCircle-dq7U4Ag4.js → XCircle-poys0PpN.js} +1 -1
- package/dist/client/assets/{Zap-BAW2hqs8.js → Zap-DKHqYmya.js} +1 -1
- package/dist/client/assets/{ZapSquare-47s5RaJz.js → ZapSquare-CZVrqALN.js} +1 -1
- package/dist/client/assets/{accordion-CJFetHYg.js → accordion-DWL2RSp4.js} +1 -1
- package/dist/client/assets/{agent-icon-BlE73Zsp.js → agent-icon-UJwlsHQH.js} +1 -1
- package/dist/client/assets/{agents-list-8pSgveYv.js → agents-list-BLMcQORq.js} +1 -1
- package/dist/client/assets/ai-providers-lpqEGWpz.js +1 -0
- package/dist/client/assets/{alert-dialog-eE56pYmR.js → alert-dialog-FDHWZ_uw.js} +1 -1
- package/dist/client/assets/{auth-catchall-BwK0uWKA.js → auth-catchall-B0v3A89U.js} +1 -1
- package/dist/client/assets/{automation-list-row-BPrk3J0B.js → automation-list-row-C6mcsBHm.js} +1 -1
- package/dist/client/assets/{automations-DdUI9sAB.js → automations-z7BI_mS7.js} +1 -1
- package/dist/client/assets/{avatar-CtYV06kc.js → avatar-USIFL3XA.js} +1 -1
- package/dist/client/assets/{badge-tpgHtQ7V.js → badge-Dw59WStE.js} +1 -1
- package/dist/client/assets/{brand-context-lj0GAPtO.js → brand-context-BXlYB8LR.js} +1 -1
- package/dist/client/assets/{card-DLDrg93a.js → card-DlmO8yFT.js} +1 -1
- package/dist/client/assets/{chat-context-D07By542.js → chat-context-BzUFrztp.js} +1 -1
- package/dist/client/assets/{checkbox-d841RB1L.js → checkbox-DWN5XcT5.js} +1 -1
- package/dist/client/assets/{collection-detail--VmlTh4t.js → collection-detail-Di2yAOsh.js} +1 -1
- package/dist/client/assets/{collection-display-button-DI9Fama5.js → collection-display-button-B_BTdRYF.js} +1 -1
- package/dist/client/assets/{collection-search-D-I9_t8m.js → collection-search-ClPQOcN2.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-itdO5bAr.js → collection-table-wrapper-BeRe_RwV.js} +1 -1
- package/dist/client/assets/{collection-tabs-pP86sgyd.js → collection-tabs-8zopfSWv.js} +1 -1
- package/dist/client/assets/{collections-BPUbighK.js → collections-Bzlz5pov.js} +1 -1
- package/dist/client/assets/{command-D8O3Gl1-.js → command-DKdp37Eh.js} +1 -1
- package/dist/client/assets/{connection-card-BGPp7cgG.js → connection-card-2gDnhNHg.js} +1 -1
- package/dist/client/assets/{connection-detail-DAn-_duM.js → connection-detail-ItRBP4TJ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-Dlhs2WWB.js → connection-form-helpers-8n1o0jn6.js} +1 -1
- package/dist/client/assets/{connections-BRZqo7jJ.js → connections-Eb9MEf-Q.js} +1 -1
- package/dist/client/assets/{constants-DyN4OIf-.js → constants-45iVR-Pa.js} +1 -1
- package/dist/client/assets/{constants-BZ8fIY1P.js → constants-B6Y_WQ-J.js} +1 -1
- package/dist/client/assets/{dialog-DLubr7v0.js → dialog-Cqz8DxyP.js} +1 -1
- package/dist/client/assets/{drawer-CVqexqUr.js → drawer-D1waomcL.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BXJH7fBR.js → dropdown-menu-CqFvWQQD.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-AXXFjwEt.js → dynamic-plugin-layout-CC7bPba5.js} +1 -1
- package/dist/client/assets/{empty-state-hH1NKVzr.js → empty-state-A7wIyI5K.js} +1 -1
- package/dist/client/assets/{empty-state-BL3PU4_L.js → empty-state-VbPFzdDp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DL9tWRm2.js → extract-connection-data-B9Ysw6Jg.js} +1 -1
- package/dist/client/assets/{features-DJXnzWer.js → features-CbgyfbY9.js} +1 -1
- package/dist/client/assets/{form-BDmSvtuk.js → form-CGj888dU.js} +1 -1
- package/dist/client/assets/{general-BVT3P06A.js → general-B2hBrPb3.js} +1 -1
- package/dist/client/assets/{index-CUWSLjT5.js → index-46g4uSud.js} +1 -1
- package/dist/client/assets/{index-npGPP9fY.js → index-6j1-PJ1E.js} +1 -1
- package/dist/client/assets/{index-C0c2Yov8.js → index-BBSrDR2H.js} +1 -1
- package/dist/client/assets/{index-e1fvgisD.js → index-BH4kwjXY.js} +4 -4
- package/dist/client/assets/{index-C0PreFo1.js → index-BX-c_NH6.js} +1 -1
- package/dist/client/assets/{index-BpYvJ4OX.js → index-BhyPvUQF.js} +1 -1
- package/dist/client/assets/{index-C2OWmxK2.js → index-BoqnJI2v.js} +1 -1
- package/dist/client/assets/{index-WFhI_y7d.js → index-ChD4d8Fy.js} +1 -1
- package/dist/client/assets/{index-D1NUtWck.js → index-DN06f7L5.js} +2 -2
- package/dist/client/assets/{index-BkXWz19f.js → index-Do97zrKf.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DGAc9onj.js → infiniteQueryObserver-DYIxP7Ht.js} +1 -1
- package/dist/client/assets/{input-CEXK-6_7.js → input-BoegRSKK.js} +1 -1
- package/dist/client/assets/{integration-icon-C8gBnSmM.js → integration-icon-TghpaT83.js} +1 -1
- package/dist/client/assets/{label-T5gX1YRQ.js → label-Dx2DK5Dz.js} +1 -1
- package/dist/client/assets/{layout-BzOmqcKp.js → layout-BzY3AXeK.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-C2DCGFQ1.js → lean-canvas-recruit-modal-C13TMEgP.js} +1 -1
- package/dist/client/assets/{login-B6wwzBSU.js → login-1lxLZ3Kr.js} +1 -1
- package/dist/client/assets/{members-Dr1JTJgA.js → members-KfmXClfA.js} +1 -1
- package/dist/client/assets/{monaco-editor-8HO4_Ur2.js → monaco-editor-Bfj-f9tF.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CrqaEYtA.js → monitoring-stats-row-CSTJIouh.js} +1 -1
- package/dist/client/assets/{oauth-callback-CvzMLH2Y.js → oauth-callback-Dx7lhm8n.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DOqxOVP-.js → oauth-callback-ai-provider-DwImkwo0.js} +1 -1
- package/dist/client/assets/{onboarding-BBoB61YC.js → onboarding-DpKoGqp_.js} +1 -1
- package/dist/client/assets/{org-layout-dSdEDy3w.js → org-layout-B07ttmYa.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-B69PHyTA.js → org-plugin-layout-CN8r2uUV.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B8LUxp43.js → plugin-empty-state-21KJ1EZ0.js} +1 -1
- package/dist/client/assets/{plugin-header-D4iyZL7p.js → plugin-header-CFKYrYBT.js} +1 -1
- package/dist/client/assets/{plugin-layout-6dzgt8Nf.js → plugin-layout-DQ0HFj99.js} +1 -1
- package/dist/client/assets/{popover-4Tx1bf1c.js → popover-BJYX_eUP.js} +1 -1
- package/dist/client/assets/{profile-rlJtNFFu.js → profile-B6iGmBgK.js} +1 -1
- package/dist/client/assets/{project-app-view-DOiFaagj.js → project-app-view-DveHsLbW.js} +1 -1
- package/dist/client/assets/registry-DKg4oxXI.js +2 -0
- package/dist/client/assets/{registry-layout-A3CSCPwV.js → registry-layout-BZ3jOtRw.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CUSrNfcX.js → required-auth-layout-6vnmXRJt.js} +1 -1
- package/dist/client/assets/{reset-password-BTZ0YHYT.js → reset-password-C6Q7kFiS.js} +1 -1
- package/dist/client/assets/{scroll-area-Byxq0szm.js → scroll-area-C7RniLKT.js} +1 -1
- package/dist/client/assets/{search-input-DfsQvBcu.js → search-input-CspVzFsE.js} +1 -1
- package/dist/client/assets/{select-Hz5eqHFW.js → select-CeLGcRm_.js} +1 -1
- package/dist/client/assets/{select-model-CaIQoO4S.js → select-model-CTvOd2v6.js} +2 -2
- package/dist/client/assets/{settings-layout-Gl-7FoEv.js → settings-layout-B5NmiwtZ.js} +1 -1
- package/dist/client/assets/{shell-layout-DzdppxnK.js → shell-layout-D-glHQwJ.js} +1 -1
- package/dist/client/assets/{skeleton-BDzML6PF.js → skeleton-DL22VZPi.js} +1 -1
- package/dist/client/assets/{sso-BkIleXYV.js → sso-Or0eg9-K.js} +1 -1
- package/dist/client/assets/{store-CjYuUqaI.js → store-9Z2sns3t.js} +1 -1
- package/dist/client/assets/store-registry-D53q05D2.js +2 -0
- package/dist/client/assets/{switch-B6g8A-mV.js → switch-Dgj2Qk7i.js} +1 -1
- package/dist/client/assets/{table-DQ3t1bXu.js → table-DD05ZO6T.js} +1 -1
- package/dist/client/assets/{tabs-DOhjGqW5.js → tabs-BX4b83RA.js} +1 -1
- package/dist/client/assets/{task-status-DKL9nwsD.js → task-status-g2-NV9sQ.js} +1 -1
- package/dist/client/assets/{textarea-CVQkfOJk.js → textarea-BhcVKoF_.js} +1 -1
- package/dist/client/assets/{toggle-group-Cfen_q_R.js → toggle-group-Cmi6TIOk.js} +1 -1
- package/dist/client/assets/{tools-list-C4GBCzQF.js → tools-list-CsG9Mnwi.js} +1 -1
- package/dist/client/assets/{types-DRPjvsJK.js → types-CHdbkHyV.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CAFjrKsE.js → use-ai-providers-Sx7HvH7l.js} +1 -1
- package/dist/client/assets/{use-collections-QllonpeS.js → use-collections-jpFK-1KA.js} +1 -1
- package/dist/client/assets/{use-connection-c_kVH9Ba.js → use-connection-DJhKa9wi.js} +1 -1
- package/dist/client/assets/{use-copy-BnJAUU38.js → use-copy-XHJJc9Ag.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CSKx5CUZ.js → use-create-virtual-mcp-C17uvNYd.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-PnZv-Hxt.js → use-decopilot-events-D2SrJLT6.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CZOJYy5I.js → use-delete-connection-Vpt8BqAw.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-FOngU937.js → use-infinite-scroll-bSbQel-x.js} +1 -1
- package/dist/client/assets/{use-list-state-C5ucIHNM.js → use-list-state-CCp8M8Xv.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DXfa1vn-.js → use-mcp-tools-BOQ7XAnx.js} +1 -1
- package/dist/client/assets/{use-members-BaFj-cNr.js → use-members-fPhtXrk4.js} +1 -1
- package/dist/client/assets/{use-mobile-fJpaHrzf.js → use-mobile-DiyZoirm.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-ChDeCHV2.js → use-navigate-to-agent-CNUExhtk.js} +1 -1
- package/dist/client/assets/{use-org-sso-CpH4bty0.js → use-org-sso-B3dpLK1-.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dw8RIB4J.js → use-organization-settings-PJvdW7d7.js} +1 -1
- package/dist/client/assets/{use-public-config-C1IrfsO5.js → use-public-config-BnjdnqEK.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BQbpOdXR.js → use-registry-connections-DwO9HoC-.js} +1 -1
- package/dist/client/assets/{use-status-sounds-N7o4x9JG.js → use-status-sounds-DEQHOZ-w.js} +1 -1
- package/dist/client/assets/{use-tasks-DExM7Bgy.js → use-tasks-CTpvHrCM.js} +1 -1
- package/dist/client/assets/{use-view-mode-LxYzzwlc.js → use-view-mode-DQzsTtxY.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CF_Xz2vS.js → use-virtual-mcp-DQie-k1B.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D4FFCIqQ.js +1 -0
- package/dist/client/assets/{user-CxWIE8Wy.js → user-CZGUOwnk.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BRUUFACT.js → view-mode-toggle-BueEh3Rt.js} +1 -1
- package/dist/client/assets/{workflow-9q-Zd6nw.js → workflow-CLN31xo6.js} +1 -1
- package/dist/client/assets/workflow-detail-CWECDm-G.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/convert-to-spaces/dist/index.d.ts +2 -0
- package/dist/server/node_modules/convert-to-spaces/dist/index.js +4 -0
- package/dist/server/node_modules/convert-to-spaces/license +21 -0
- package/dist/server/node_modules/convert-to-spaces/package.json +40 -0
- package/dist/server/node_modules/convert-to-spaces/readme.md +39 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +12 -0
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +53 -0
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +31 -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/onetime/package.json +43 -0
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/{scheduler → pg-pool}/LICENSE +1 -1
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/postgres-bytea/license +21 -0
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-CnO63wjr.js +0 -1
- package/dist/client/assets/registry-BTomiBS2.js +0 -2
- package/dist/client/assets/store-registry-_EZSKcWm.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DquktRvH.js +0 -1
- package/dist/client/assets/workflow-detail-DWLk3cWV.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/get-east-asian-width/index.d.ts +0 -60
- package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
- package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
- package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
- package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
- package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
- 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/scheduler/README.md +0 -9
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +0 -414
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_mock.production.js +0 -406
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -150
- package/dist/server/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -140
- package/dist/server/node_modules/scheduler/cjs/scheduler.development.js +0 -364
- package/dist/server/node_modules/scheduler/cjs/scheduler.native.development.js +0 -350
- package/dist/server/node_modules/scheduler/cjs/scheduler.native.production.js +0 -330
- package/dist/server/node_modules/scheduler/cjs/scheduler.production.js +0 -340
- package/dist/server/node_modules/scheduler/index.js +0 -7
- package/dist/server/node_modules/scheduler/index.native.js +0 -7
- package/dist/server/node_modules/scheduler/package.json +0 -27
- package/dist/server/node_modules/scheduler/unstable_mock.js +0 -7
- package/dist/server/node_modules/scheduler/unstable_post_task.js +0 -7
- package/dist/server/node_modules/slice-ansi/index.d.ts +0 -19
- package/dist/server/node_modules/slice-ansi/index.js +0 -260
- package/dist/server/node_modules/slice-ansi/license +0 -10
- package/dist/server/node_modules/slice-ansi/package.json +0 -59
- package/dist/server/node_modules/slice-ansi/readme.md +0 -54
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +0 -752
- package/dist/server/node_modules/strip-ansi/index.d.ts +0 -15
- package/dist/server/node_modules/strip-ansi/index.js +0 -19
- package/dist/server/node_modules/strip-ansi/license +0 -9
- package/dist/server/node_modules/strip-ansi/package.json +0 -59
- package/dist/server/node_modules/strip-ansi/readme.md +0 -37
- /package/dist/server/node_modules/{ansi-styles → is-fullwidth-code-point}/license +0 -0
- /package/dist/server/node_modules/{get-east-asian-width → onetime}/license +0 -0
- /package/dist/server/node_modules/{pg → pg-cloudflare}/LICENSE +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
//Parse method copied from https://github.com/brianc/node-postgres
|
|
4
|
+
//Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)
|
|
5
|
+
//MIT License
|
|
6
|
+
|
|
7
|
+
//parses a connection string
|
|
8
|
+
function parse(str, options = {}) {
|
|
9
|
+
//unix socket
|
|
10
|
+
if (str.charAt(0) === '/') {
|
|
11
|
+
const config = str.split(' ')
|
|
12
|
+
return { host: config[0], database: config[1] }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Check for empty host in URL
|
|
16
|
+
|
|
17
|
+
const config = {}
|
|
18
|
+
let result
|
|
19
|
+
let dummyHost = false
|
|
20
|
+
if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) {
|
|
21
|
+
// Ensure spaces are encoded as %20
|
|
22
|
+
str = encodeURI(str).replace(/%25(\d\d)/g, '%$1')
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
try {
|
|
26
|
+
try {
|
|
27
|
+
result = new URL(str, 'postgres://base')
|
|
28
|
+
} catch (e) {
|
|
29
|
+
// The URL is invalid so try again with a dummy host
|
|
30
|
+
result = new URL(str.replace('@/', '@___DUMMY___/'), 'postgres://base')
|
|
31
|
+
dummyHost = true
|
|
32
|
+
}
|
|
33
|
+
} catch (err) {
|
|
34
|
+
// Remove the input from the error message to avoid leaking sensitive information
|
|
35
|
+
err.input && (err.input = '*****REDACTED*****')
|
|
36
|
+
throw err
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// We'd like to use Object.fromEntries() here but Node.js 10 does not support it
|
|
40
|
+
for (const entry of result.searchParams.entries()) {
|
|
41
|
+
config[entry[0]] = entry[1]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
config.user = config.user || decodeURIComponent(result.username)
|
|
45
|
+
config.password = config.password || decodeURIComponent(result.password)
|
|
46
|
+
|
|
47
|
+
if (result.protocol == 'socket:') {
|
|
48
|
+
config.host = decodeURI(result.pathname)
|
|
49
|
+
config.database = result.searchParams.get('db')
|
|
50
|
+
config.client_encoding = result.searchParams.get('encoding')
|
|
51
|
+
return config
|
|
52
|
+
}
|
|
53
|
+
const hostname = dummyHost ? '' : result.hostname
|
|
54
|
+
if (!config.host) {
|
|
55
|
+
// Only set the host if there is no equivalent query param.
|
|
56
|
+
config.host = decodeURIComponent(hostname)
|
|
57
|
+
} else if (hostname && /^%2f/i.test(hostname)) {
|
|
58
|
+
// Only prepend the hostname to the pathname if it is not a URL encoded Unix socket host.
|
|
59
|
+
result.pathname = hostname + result.pathname
|
|
60
|
+
}
|
|
61
|
+
if (!config.port) {
|
|
62
|
+
// Only set the port if there is no equivalent query param.
|
|
63
|
+
config.port = result.port
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const pathname = result.pathname.slice(1) || null
|
|
67
|
+
config.database = pathname ? decodeURI(pathname) : null
|
|
68
|
+
|
|
69
|
+
if (config.ssl === 'true' || config.ssl === '1') {
|
|
70
|
+
config.ssl = true
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (config.ssl === '0') {
|
|
74
|
+
config.ssl = false
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (config.sslcert || config.sslkey || config.sslrootcert || config.sslmode) {
|
|
78
|
+
config.ssl = {}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Only try to load fs if we expect to read from the disk
|
|
82
|
+
const fs = config.sslcert || config.sslkey || config.sslrootcert ? require('fs') : null
|
|
83
|
+
|
|
84
|
+
if (config.sslcert) {
|
|
85
|
+
config.ssl.cert = fs.readFileSync(config.sslcert).toString()
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (config.sslkey) {
|
|
89
|
+
config.ssl.key = fs.readFileSync(config.sslkey).toString()
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (config.sslrootcert) {
|
|
93
|
+
config.ssl.ca = fs.readFileSync(config.sslrootcert).toString()
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (options.useLibpqCompat && config.uselibpqcompat) {
|
|
97
|
+
throw new Error('Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.')
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (config.uselibpqcompat === 'true' || options.useLibpqCompat) {
|
|
101
|
+
switch (config.sslmode) {
|
|
102
|
+
case 'disable': {
|
|
103
|
+
config.ssl = false
|
|
104
|
+
break
|
|
105
|
+
}
|
|
106
|
+
case 'prefer': {
|
|
107
|
+
config.ssl.rejectUnauthorized = false
|
|
108
|
+
break
|
|
109
|
+
}
|
|
110
|
+
case 'require': {
|
|
111
|
+
if (config.sslrootcert) {
|
|
112
|
+
// If a root CA is specified, behavior of `sslmode=require` will be the same as that of `verify-ca`
|
|
113
|
+
config.ssl.checkServerIdentity = function () {}
|
|
114
|
+
} else {
|
|
115
|
+
config.ssl.rejectUnauthorized = false
|
|
116
|
+
}
|
|
117
|
+
break
|
|
118
|
+
}
|
|
119
|
+
case 'verify-ca': {
|
|
120
|
+
if (!config.ssl.ca) {
|
|
121
|
+
throw new Error(
|
|
122
|
+
'SECURITY WARNING: Using sslmode=verify-ca requires specifying a CA with sslrootcert. If a public CA is used, verify-ca allows connections to a server that somebody else may have registered with the CA, making you vulnerable to Man-in-the-Middle attacks. Either specify a custom CA certificate with sslrootcert parameter or use sslmode=verify-full for proper security.'
|
|
123
|
+
)
|
|
124
|
+
}
|
|
125
|
+
config.ssl.checkServerIdentity = function () {}
|
|
126
|
+
break
|
|
127
|
+
}
|
|
128
|
+
case 'verify-full': {
|
|
129
|
+
break
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
} else {
|
|
133
|
+
switch (config.sslmode) {
|
|
134
|
+
case 'disable': {
|
|
135
|
+
config.ssl = false
|
|
136
|
+
break
|
|
137
|
+
}
|
|
138
|
+
case 'prefer':
|
|
139
|
+
case 'require':
|
|
140
|
+
case 'verify-ca':
|
|
141
|
+
case 'verify-full': {
|
|
142
|
+
if (config.sslmode !== 'verify-full') {
|
|
143
|
+
deprecatedSslModeWarning(config.sslmode)
|
|
144
|
+
}
|
|
145
|
+
break
|
|
146
|
+
}
|
|
147
|
+
case 'no-verify': {
|
|
148
|
+
config.ssl.rejectUnauthorized = false
|
|
149
|
+
break
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return config
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// convert pg-connection-string ssl config to a ClientConfig.ConnectionOptions
|
|
158
|
+
function toConnectionOptions(sslConfig) {
|
|
159
|
+
const connectionOptions = Object.entries(sslConfig).reduce((c, [key, value]) => {
|
|
160
|
+
// we explicitly check for undefined and null instead of `if (value)` because some
|
|
161
|
+
// options accept falsy values. Example: `ssl.rejectUnauthorized = false`
|
|
162
|
+
if (value !== undefined && value !== null) {
|
|
163
|
+
c[key] = value
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return c
|
|
167
|
+
}, {})
|
|
168
|
+
|
|
169
|
+
return connectionOptions
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// convert pg-connection-string config to a ClientConfig
|
|
173
|
+
function toClientConfig(config) {
|
|
174
|
+
const poolConfig = Object.entries(config).reduce((c, [key, value]) => {
|
|
175
|
+
if (key === 'ssl') {
|
|
176
|
+
const sslConfig = value
|
|
177
|
+
|
|
178
|
+
if (typeof sslConfig === 'boolean') {
|
|
179
|
+
c[key] = sslConfig
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (typeof sslConfig === 'object') {
|
|
183
|
+
c[key] = toConnectionOptions(sslConfig)
|
|
184
|
+
}
|
|
185
|
+
} else if (value !== undefined && value !== null) {
|
|
186
|
+
if (key === 'port') {
|
|
187
|
+
// when port is not specified, it is converted into an empty string
|
|
188
|
+
// we want to avoid NaN or empty string as a values in ClientConfig
|
|
189
|
+
if (value !== '') {
|
|
190
|
+
const v = parseInt(value, 10)
|
|
191
|
+
if (isNaN(v)) {
|
|
192
|
+
throw new Error(`Invalid ${key}: ${value}`)
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
c[key] = v
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
c[key] = value
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return c
|
|
203
|
+
}, {})
|
|
204
|
+
|
|
205
|
+
return poolConfig
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// parses a connection string into ClientConfig
|
|
209
|
+
function parseIntoClientConfig(str) {
|
|
210
|
+
return toClientConfig(parse(str))
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function deprecatedSslModeWarning(sslmode) {
|
|
214
|
+
if (!deprecatedSslModeWarning.warned && typeof process !== 'undefined' && process.emitWarning) {
|
|
215
|
+
deprecatedSslModeWarning.warned = true
|
|
216
|
+
process.emitWarning(`SECURITY WARNING: The SSL modes 'prefer', 'require', and 'verify-ca' are treated as aliases for 'verify-full'.
|
|
217
|
+
In the next major version (pg-connection-string v3.0.0 and pg v9.0.0), these modes will adopt standard libpq semantics, which have weaker security guarantees.
|
|
218
|
+
|
|
219
|
+
To prepare for this change:
|
|
220
|
+
- If you want the current behavior, explicitly use 'sslmode=verify-full'
|
|
221
|
+
- If you want libpq compatibility now, use 'uselibpqcompat=true&sslmode=${sslmode}'
|
|
222
|
+
|
|
223
|
+
See https://www.postgresql.org/docs/current/libpq-ssl.html for libpq SSL mode definitions.`)
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
module.exports = parse
|
|
228
|
+
|
|
229
|
+
parse.parse = parse
|
|
230
|
+
parse.toClientConfig = toClientConfig
|
|
231
|
+
parse.parseIntoClientConfig = parseIntoClientConfig
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg-connection-string",
|
|
3
|
+
"version": "2.12.0",
|
|
4
|
+
"description": "Functions for dealing with a PostgresSQL connection string",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"import": "./esm/index.mjs",
|
|
11
|
+
"require": "./index.js",
|
|
12
|
+
"default": "./index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "nyc --reporter=lcov mocha && npm run check-coverage",
|
|
17
|
+
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --lines 100 --functions 100"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git://github.com/brianc/node-postgres.git",
|
|
22
|
+
"directory": "packages/pg-connection-string"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"pg",
|
|
26
|
+
"connection",
|
|
27
|
+
"string",
|
|
28
|
+
"parse"
|
|
29
|
+
],
|
|
30
|
+
"author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com/)",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/brianc/node-postgres/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/brianc/node-postgres/tree/master/packages/pg-connection-string",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/pg": "^8.12.0",
|
|
38
|
+
"chai": "^4.1.1",
|
|
39
|
+
"coveralls": "^3.0.4",
|
|
40
|
+
"istanbul": "^0.4.5",
|
|
41
|
+
"mocha": "^11.7.5",
|
|
42
|
+
"nyc": "^15",
|
|
43
|
+
"tsx": "^4.19.4",
|
|
44
|
+
"typescript": "^4.0.3"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"index.js",
|
|
48
|
+
"index.d.ts",
|
|
49
|
+
"esm"
|
|
50
|
+
],
|
|
51
|
+
"gitHead": "c9070cc8d526fca65780cedc25c1966b57cf7532"
|
|
52
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright © 2017, Charmander <~@charmander.me>
|
|
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 WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
9
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[![Build status][ci image]][ci]
|
|
2
|
+
|
|
3
|
+
64-bit big-endian signed integer-to-string conversion designed for [pg][].
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
const readInt8 = require('pg-int8');
|
|
7
|
+
|
|
8
|
+
readInt8(Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]))
|
|
9
|
+
// '283686952306183'
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
[pg]: https://github.com/brianc/node-postgres
|
|
14
|
+
|
|
15
|
+
[ci]: https://travis-ci.org/charmander/pg-int8
|
|
16
|
+
[ci image]: https://api.travis-ci.org/charmander/pg-int8.svg
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// selected so (BASE - 1) * 0x100000000 + 0xffffffff is a safe integer
|
|
4
|
+
var BASE = 1000000;
|
|
5
|
+
|
|
6
|
+
function readInt8(buffer) {
|
|
7
|
+
var high = buffer.readInt32BE(0);
|
|
8
|
+
var low = buffer.readUInt32BE(4);
|
|
9
|
+
var sign = '';
|
|
10
|
+
|
|
11
|
+
if (high < 0) {
|
|
12
|
+
high = ~high + (low === 0);
|
|
13
|
+
low = (~low + 1) >>> 0;
|
|
14
|
+
sign = '-';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var result = '';
|
|
18
|
+
var carry;
|
|
19
|
+
var t;
|
|
20
|
+
var digits;
|
|
21
|
+
var pad;
|
|
22
|
+
var l;
|
|
23
|
+
var i;
|
|
24
|
+
|
|
25
|
+
{
|
|
26
|
+
carry = high % BASE;
|
|
27
|
+
high = high / BASE >>> 0;
|
|
28
|
+
|
|
29
|
+
t = 0x100000000 * carry + low;
|
|
30
|
+
low = t / BASE >>> 0;
|
|
31
|
+
digits = '' + (t - BASE * low);
|
|
32
|
+
|
|
33
|
+
if (low === 0 && high === 0) {
|
|
34
|
+
return sign + digits + result;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
pad = '';
|
|
38
|
+
l = 6 - digits.length;
|
|
39
|
+
|
|
40
|
+
for (i = 0; i < l; i++) {
|
|
41
|
+
pad += '0';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
result = pad + digits + result;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
{
|
|
48
|
+
carry = high % BASE;
|
|
49
|
+
high = high / BASE >>> 0;
|
|
50
|
+
|
|
51
|
+
t = 0x100000000 * carry + low;
|
|
52
|
+
low = t / BASE >>> 0;
|
|
53
|
+
digits = '' + (t - BASE * low);
|
|
54
|
+
|
|
55
|
+
if (low === 0 && high === 0) {
|
|
56
|
+
return sign + digits + result;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
pad = '';
|
|
60
|
+
l = 6 - digits.length;
|
|
61
|
+
|
|
62
|
+
for (i = 0; i < l; i++) {
|
|
63
|
+
pad += '0';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
result = pad + digits + result;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
{
|
|
70
|
+
carry = high % BASE;
|
|
71
|
+
high = high / BASE >>> 0;
|
|
72
|
+
|
|
73
|
+
t = 0x100000000 * carry + low;
|
|
74
|
+
low = t / BASE >>> 0;
|
|
75
|
+
digits = '' + (t - BASE * low);
|
|
76
|
+
|
|
77
|
+
if (low === 0 && high === 0) {
|
|
78
|
+
return sign + digits + result;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
pad = '';
|
|
82
|
+
l = 6 - digits.length;
|
|
83
|
+
|
|
84
|
+
for (i = 0; i < l; i++) {
|
|
85
|
+
pad += '0';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
result = pad + digits + result;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
{
|
|
92
|
+
carry = high % BASE;
|
|
93
|
+
t = 0x100000000 * carry + low;
|
|
94
|
+
digits = '' + t % BASE;
|
|
95
|
+
|
|
96
|
+
return sign + digits + result;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
module.exports = readInt8;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg-int8",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "64-bit big-endian signed integer-to-string conversion",
|
|
5
|
+
"bugs": "https://github.com/charmander/pg-int8/issues",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"files": [
|
|
8
|
+
"index.js"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/charmander/pg-int8"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "tap test"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@charmander/eslint-config-base": "1.0.2",
|
|
19
|
+
"tap": "10.7.3"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=4.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|