decocms 2.278.0 → 2.278.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-DUgLKRqD.js → AlertCircle-RpY4bUJr.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-kCQ-qIL4.js → ArrowNarrowLeft-CJwdGPbT.js} +1 -1
- package/dist/client/assets/{CheckCircle-DGqHVO6J.js → CheckCircle-BI5IiZgb.js} +1 -1
- package/dist/client/assets/{ChevronDown-B24A-aAH.js → ChevronDown-BAXd7Lqd.js} +1 -1
- package/dist/client/assets/{ChevronRight-te-i08ST.js → ChevronRight-DKEbZtdl.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClIw8oee.js → ChevronUp-DzlxkGUl.js} +1 -1
- package/dist/client/assets/{Container-BEpzzcWb.js → Container-DBgGfzNs.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DGR8dD9K.js → LinkExternal01-BpU2Zg5G.js} +1 -1
- package/dist/client/assets/{Lock01-CgN6byUv.js → Lock01-C5ObVqfL.js} +1 -1
- package/dist/client/assets/{Palette-hGvX_iIm.js → Palette-CFaa6lnd.js} +1 -1
- package/dist/client/assets/{Play-B45MhCGv.js → Play-Z2rVo32r.js} +1 -1
- package/dist/client/assets/{Plus-DEi1gvs0.js → Plus-iqKMHcIY.js} +1 -1
- package/dist/client/assets/{SearchMd-Bb-t_BjN.js → SearchMd-CfDkq1If.js} +1 -1
- package/dist/client/assets/{Settings02-DqmMmEZU.js → Settings02-BnNqayNe.js} +1 -1
- package/dist/client/assets/{Star01-ByFKZL35.js → Star01-BTwJOW68.js} +1 -1
- package/dist/client/assets/{Sun-BSLTRNwf.js → Sun-CWTFdsIN.js} +1 -1
- package/dist/client/assets/{Tool01-A2H1ijQd.js → Tool01-R5WYUcbi.js} +1 -1
- package/dist/client/assets/{Trash01-Dtv8SktB.js → Trash01-DYSvj4Mr.js} +1 -1
- package/dist/client/assets/{Upload01-BnthyrUJ.js → Upload01-Cktx5YzE.js} +1 -1
- package/dist/client/assets/{User01-B6A46HmV.js → User01-BbQpT999.js} +1 -1
- package/dist/client/assets/{Users03-SGJicyFL.js → Users03-DCEUsmLl.js} +1 -1
- package/dist/client/assets/{X-ZYbgpGnr.js → X-mGheZZXr.js} +1 -1
- package/dist/client/assets/{XCircle-CQXPNkKc.js → XCircle-DayiQYw5.js} +1 -1
- package/dist/client/assets/{Zap-CT4bYj4K.js → Zap-BnPwXsSI.js} +1 -1
- package/dist/client/assets/{ZapSquare-BIpgOhjL.js → ZapSquare-DnGX7edB.js} +1 -1
- package/dist/client/assets/{accordion-DlHNJyYy.js → accordion-hSfs59TQ.js} +1 -1
- package/dist/client/assets/{agent-icon-BPm7_0O4.js → agent-icon-D6bLKQ2x.js} +1 -1
- package/dist/client/assets/{agents-list-DDy9vjua.js → agents-list-uDQGef9T.js} +1 -1
- package/dist/client/assets/ai-providers-DxjF0Bbg.js +1 -0
- package/dist/client/assets/{alert-dialog-BYfF9kq9.js → alert-dialog-Dw58KHOn.js} +1 -1
- package/dist/client/assets/{auth-catchall-IXiVEa8k.js → auth-catchall-CtfdphV2.js} +1 -1
- package/dist/client/assets/{automation-list-row-DdODiuWb.js → automation-list-row-DYTYU42X.js} +1 -1
- package/dist/client/assets/{automations-DaQmwJ_-.js → automations-DZS7BnlF.js} +1 -1
- package/dist/client/assets/{avatar-Cd7pOZ3k.js → avatar-Or2zrDA-.js} +1 -1
- package/dist/client/assets/{badge-XxgdnuAZ.js → badge-gQVaeFYL.js} +1 -1
- package/dist/client/assets/{brand-context-gdbCtW1V.js → brand-context-C8YhXjoC.js} +1 -1
- package/dist/client/assets/{card-ohyYL2jd.js → card-N_n9dJ1C.js} +1 -1
- package/dist/client/assets/{chat-context-BBBi8D2H.js → chat-context-0qKFTvd4.js} +10 -10
- package/dist/client/assets/{checkbox-CV6BjILT.js → checkbox-CPuyzGEM.js} +1 -1
- package/dist/client/assets/{collection-detail-BDC-qOMT.js → collection-detail-DFwTqhD1.js} +1 -1
- package/dist/client/assets/{collection-display-button-Dzc3fhoU.js → collection-display-button-njo6Xh2u.js} +1 -1
- package/dist/client/assets/{collection-search-RK7vbvUN.js → collection-search-CaS2n1cB.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DSiZO_Rx.js → collection-table-wrapper-Dcn0zsHK.js} +1 -1
- package/dist/client/assets/{collection-tabs-BThF2_kc.js → collection-tabs-ByBcZvcT.js} +1 -1
- package/dist/client/assets/{collections-D4PM7cfP.js → collections-Djr3E20Q.js} +1 -1
- package/dist/client/assets/{command-D-rn-MCf.js → command-B51t2F-w.js} +1 -1
- package/dist/client/assets/{connection-card-C77H1oWc.js → connection-card-Mc71vwAD.js} +1 -1
- package/dist/client/assets/{connection-detail-B3eR0g_I.js → connection-detail-DtSaPCBM.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C9kgqFQD.js → connection-form-helpers-fgpIig1w.js} +1 -1
- package/dist/client/assets/{connections-DLnzLvDf.js → connections-DyzLArcN.js} +1 -1
- package/dist/client/assets/{constants-CBMPX4Nz.js → constants-Bp5-iYcY.js} +1 -1
- package/dist/client/assets/{constants-DV3gfGwj.js → constants-DML917gs.js} +1 -1
- package/dist/client/assets/{dialog-LWRIZTr3.js → dialog-6uxiP96k.js} +1 -1
- package/dist/client/assets/{drawer-D1pg0ocH.js → drawer-CbvLq5Uu.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DLn7MpGb.js → dropdown-menu-BSSwgSj1.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BSXEX5vh.js → dynamic-plugin-layout-0EJvlc60.js} +1 -1
- package/dist/client/assets/{empty-state-DkrYdGBA.js → empty-state-0hDWNUcx.js} +1 -1
- package/dist/client/assets/{empty-state-t8Y8fpWZ.js → empty-state-CU7_u48I.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BhJroSSL.js → extract-connection-data-Cezio-s5.js} +1 -1
- package/dist/client/assets/{features-B5cMQOy4.js → features-DmtZ7olV.js} +1 -1
- package/dist/client/assets/{form-DYWw7BDT.js → form-oEblHddW.js} +1 -1
- package/dist/client/assets/{general-Bx99MR-8.js → general-CeUrSx0B.js} +1 -1
- package/dist/client/assets/{index-Ds-JIDUi.js → index-0wk7oXl7.js} +4 -4
- package/dist/client/assets/{index-CTb5Ivgi.js → index-C2YTBPmn.js} +1 -1
- package/dist/client/assets/{index-9mpD21lu.js → index-CNrMlOJM.js} +1 -1
- package/dist/client/assets/{index-dR4PVdxt.js → index-CSYRl1zg.js} +1 -1
- package/dist/client/assets/{index-DphB1nct.js → index-DYe52Cyo.js} +1 -1
- package/dist/client/assets/{index-DNVFRTN5.js → index-Db1p8aFu.js} +1 -1
- package/dist/client/assets/{index-DQr1bBCj.js → index-DlGWDjkU.js} +1 -1
- package/dist/client/assets/{index-BAPPcxpC.js → index-_3-Zp92L.js} +1 -1
- package/dist/client/assets/{index-RqKqA1J6.js → index-gAKn78NR.js} +1 -1
- package/dist/client/assets/{index-CAeiwvn1.js → index-yA3niX2v.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-DgmIeDDw.js → infiniteQueryObserver-Kusj8ovY.js} +1 -1
- package/dist/client/assets/{input-bSmRFU9Y.js → input-B9sAUDOT.js} +1 -1
- package/dist/client/assets/{integration-icon-BCfLG4yN.js → integration-icon-LoNFtirH.js} +1 -1
- package/dist/client/assets/{label-DHm3L_Pw.js → label-WH1pO6UH.js} +1 -1
- package/dist/client/assets/{layout-Bi-oKYFz.js → layout-XdKnShqM.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-Y-73eqIT.js → lean-canvas-recruit-modal-C6N1BBPO.js} +1 -1
- package/dist/client/assets/{login-oTC9k0u0.js → login-vj34UALt.js} +1 -1
- package/dist/client/assets/{members-DXtluaQF.js → members-rAC4_0t4.js} +1 -1
- package/dist/client/assets/{monaco-editor-J6gXCbSf.js → monaco-editor-iXGMVCiz.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-COftXD12.js → monitoring-stats-row-BloCdgbG.js} +1 -1
- package/dist/client/assets/{oauth-callback-iJ681_o2.js → oauth-callback-CELgu_cO.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BG5KUhrn.js → oauth-callback-ai-provider-DsyvZ6lU.js} +1 -1
- package/dist/client/assets/{onboarding-CaPHCpYM.js → onboarding-BgyTCUN-.js} +1 -1
- package/dist/client/assets/{org-layout-tpbZft4k.js → org-layout-XurBF-Lt.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-DKUGssvU.js → org-plugin-layout-BSk2n1gQ.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CjLoe77j.js → plugin-empty-state-CRqsi0ib.js} +1 -1
- package/dist/client/assets/{plugin-header-D-DgJiT_.js → plugin-header-BZp9Mspt.js} +1 -1
- package/dist/client/assets/{plugin-layout-BxoJjnAH.js → plugin-layout-BadNZHL3.js} +1 -1
- package/dist/client/assets/{popover-QXf8PVl2.js → popover-GxFgGfCj.js} +1 -1
- package/dist/client/assets/{profile-BXxDmHas.js → profile-CWbzz0se.js} +1 -1
- package/dist/client/assets/{project-app-view-CpeukqHC.js → project-app-view-Cgxq8Z9m.js} +1 -1
- package/dist/client/assets/registry-BN8y2uhx.js +2 -0
- package/dist/client/assets/{registry-layout-Dp1ULu6N.js → registry-layout-C8Qiz9yD.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BQkYfP3n.js → required-auth-layout-OZ0PdFXR.js} +1 -1
- package/dist/client/assets/{reset-password-CU4ON9vN.js → reset-password-s2ukM5mp.js} +1 -1
- package/dist/client/assets/{scroll-area-CM6U9wSm.js → scroll-area-Bzy4HD_J.js} +1 -1
- package/dist/client/assets/{search-input-D1anatj6.js → search-input-Bnf2nHLo.js} +1 -1
- package/dist/client/assets/{select-DE9H0LNP.js → select-ReQwhRkA.js} +1 -1
- package/dist/client/assets/{select-model-C72ySuI7.js → select-model-D4OtA_w2.js} +1 -1
- package/dist/client/assets/{settings-layout-BcGWWnw4.js → settings-layout-BL-BX1UN.js} +1 -1
- package/dist/client/assets/{shell-layout-DbjX6AWI.js → shell-layout-BD0Xub-g.js} +1 -1
- package/dist/client/assets/{skeleton-DJZQh5Pk.js → skeleton-B313Ulm0.js} +1 -1
- package/dist/client/assets/{sso-330TvduR.js → sso-ZrM6U_dp.js} +1 -1
- package/dist/client/assets/{store-CValARVk.js → store-CbZTBfxH.js} +1 -1
- package/dist/client/assets/store-registry-CXWRsbL6.js +2 -0
- package/dist/client/assets/{switch-DXZpP3PP.js → switch-BXD1owGz.js} +1 -1
- package/dist/client/assets/{table-BC1vaa2h.js → table-rsOFtuU-.js} +1 -1
- package/dist/client/assets/{tabs-y_vyQ1bZ.js → tabs-DO4ygLuS.js} +1 -1
- package/dist/client/assets/{task-status-u0ZgPY9s.js → task-status-CaevYqis.js} +1 -1
- package/dist/client/assets/{textarea-BKBUm0h-.js → textarea-DDf010du.js} +1 -1
- package/dist/client/assets/{toggle-group-BGNuzMLR.js → toggle-group-Bo4IS3RK.js} +1 -1
- package/dist/client/assets/{tools-list-DnYw-GLl.js → tools-list-CIQ6CwYm.js} +1 -1
- package/dist/client/assets/{types-_e2R6uHw.js → types-952BCAPT.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DA7fBB8t.js → use-ai-providers-BirgTm09.js} +1 -1
- package/dist/client/assets/{use-collections-B56DgGhQ.js → use-collections-By6uZJSr.js} +1 -1
- package/dist/client/assets/{use-connection-DmlqhQzU.js → use-connection-CZkpN1_f.js} +1 -1
- package/dist/client/assets/{use-copy-yDy37O6x.js → use-copy-DSXw9G_Y.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-St-hxc3T.js → use-create-virtual-mcp-BNzn74Vf.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-C6hMvsnN.js → use-decopilot-events-Yr2IQvc8.js} +1 -1
- package/dist/client/assets/{use-delete-connection-9Vw8o7eu.js → use-delete-connection-BUM30EhS.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BDoBJohW.js → use-infinite-scroll-DmTHG8QF.js} +1 -1
- package/dist/client/assets/{use-list-state-BSaQM_cf.js → use-list-state-9mz92TGW.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CrNS6JKZ.js → use-mcp-tools-D2wfRdQX.js} +1 -1
- package/dist/client/assets/{use-members-CuGMiyzy.js → use-members-COfO6YRW.js} +1 -1
- package/dist/client/assets/{use-mobile-Dcrjnr8n.js → use-mobile-cBCc1tkS.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CK6LXIOn.js → use-navigate-to-agent-8jFeFT9G.js} +1 -1
- package/dist/client/assets/{use-org-sso-CDZI8wr6.js → use-org-sso-B4d8umPM.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Dz4Ob_xk.js → use-organization-settings-Bfqz0Dub.js} +1 -1
- package/dist/client/assets/{use-registry-connections-C4iSg1no.js → use-registry-connections-BX2aMDCo.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BpX9On4z.js → use-status-sounds-B5cgRwGB.js} +1 -1
- package/dist/client/assets/{use-tasks-B1E3D-6c.js → use-tasks-C63aBSUV.js} +1 -1
- package/dist/client/assets/{use-view-mode-OuDPu3JY.js → use-view-mode-Btze869M.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C84ySRY_.js → use-virtual-mcp-C3-aNrQY.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DBOEwCdJ.js +1 -0
- package/dist/client/assets/{user-D-ueNiJ9.js → user-zYk_lp5f.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-JzxZIaam.js → view-mode-toggle-BrDfC5aK.js} +1 -1
- package/dist/client/assets/{workflow-DILBdxqV.js → workflow-BOdefRku.js} +1 -1
- package/dist/client/assets/workflow-detail-JXXWRY8y.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +328 -328
- package/dist/server/node_modules/figures/index.d.ts +279 -0
- package/dist/server/node_modules/figures/index.js +292 -0
- package/dist/server/node_modules/{is-fullwidth-code-point → figures}/package.json +16 -20
- package/dist/server/node_modules/figures/readme.md +337 -0
- package/dist/server/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/server/node_modules/get-east-asian-width/index.js +30 -0
- package/dist/server/node_modules/get-east-asian-width/lookup-data.js +18 -0
- package/dist/server/node_modules/get-east-asian-width/lookup.js +135 -0
- package/dist/server/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/server/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/server/node_modules/get-east-asian-width/utilities.js +24 -0
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/{postgres-interval → postgres-bytea}/package.json +8 -10
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/slice-ansi/index.d.ts +19 -0
- package/dist/server/node_modules/slice-ansi/index.js +260 -0
- package/dist/server/node_modules/{is-unicode-supported → slice-ansi}/license +1 -0
- package/dist/server/node_modules/slice-ansi/package.json +59 -0
- package/dist/server/node_modules/slice-ansi/readme.md +54 -0
- package/dist/server/node_modules/slice-ansi/tokenize-ansi.js +752 -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/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{postgres-interval/license → xtend/LICENSE} +1 -2
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/dist/server/server.js +270 -270
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-B4zJ5gIB.js +0 -1
- package/dist/client/assets/registry-BwQkRfy5.js +0 -2
- package/dist/client/assets/store-registry-DxTZD8aD.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C63zt5p0.js +0 -1
- package/dist/client/assets/workflow-detail-CbBLr-jD.js +0 -1
- 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/emoji-regex/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/emoji-regex/README.md +0 -107
- package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
- package/dist/server/node_modules/emoji-regex/index.js +0 -4
- package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
- package/dist/server/node_modules/emoji-regex/package.json +0 -45
- 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/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/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/package.json +0 -47
- package/dist/server/node_modules/is-unicode-supported/readme.md +0 -35
- 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/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-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- 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/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/{environment → figures}/license +0 -0
- /package/dist/server/node_modules/{is-fullwidth-code-point → get-east-asian-width}/license +0 -0
- /package/dist/server/node_modules/{pg-cloudflare → pg}/LICENSE +0 -0
- /package/dist/server/node_modules/{postgres-array → postgres-bytea}/license +0 -0
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
# environment
|
|
2
|
-
|
|
3
|
-
> Check which JavaScript environment your code is running in at runtime
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install environment
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import {isBrowser, isNode} from 'environment';
|
|
15
|
-
|
|
16
|
-
if (isBrowser) {
|
|
17
|
-
console.log('Running in a browser!');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (isNode) {
|
|
21
|
-
console.log('Running in Node.js!');
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
> [!NOTE]
|
|
26
|
-
> Runtime checks should be used sparingly. Prefer [conditional package exports](https://nodejs.org/api/packages.html#conditional-exports) and [imports](https://nodejs.org/api/packages.html#subpath-imports) whenever possible.
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
### `isBrowser`
|
|
31
|
-
|
|
32
|
-
Check if the code is running in a web browser environment.
|
|
33
|
-
|
|
34
|
-
### `isNode`
|
|
35
|
-
|
|
36
|
-
Check if the code is running in a [Node.js](https://nodejs.org) environment.
|
|
37
|
-
|
|
38
|
-
### `isBun`
|
|
39
|
-
|
|
40
|
-
Check if the code is running in a [Bun](https://bun.sh) environment.
|
|
41
|
-
|
|
42
|
-
### `isDeno`
|
|
43
|
-
|
|
44
|
-
Check if the code is running in a [Deno](https://deno.com) environment.
|
|
45
|
-
|
|
46
|
-
### `isElectron`
|
|
47
|
-
|
|
48
|
-
Check if the code is running in an [Electron](https://www.electronjs.org) environment.
|
|
49
|
-
|
|
50
|
-
### `isJsDom`
|
|
51
|
-
|
|
52
|
-
Check if the code is running in a [jsdom](https://github.com/jsdom/jsdom) environment.
|
|
53
|
-
|
|
54
|
-
### `isWebWorker`
|
|
55
|
-
|
|
56
|
-
Check if the code is running in a [Web Worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API#worker_global_contexts_and_functions) environment, which could be either a dedicated worker, shared worker, or service worker.
|
|
57
|
-
|
|
58
|
-
### `isDedicatedWorker`
|
|
59
|
-
|
|
60
|
-
Check if the code is running in a [Dedicated Worker](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope) environment.
|
|
61
|
-
|
|
62
|
-
### `isSharedWorker`
|
|
63
|
-
|
|
64
|
-
Check if the code is running in a [Shared Worker](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope) environment.
|
|
65
|
-
|
|
66
|
-
### `isServiceWorker`
|
|
67
|
-
|
|
68
|
-
Check if the code is running in a [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope) environment.
|
|
69
|
-
|
|
70
|
-
### `isMacOs`
|
|
71
|
-
|
|
72
|
-
Check if the code is running on macOS.
|
|
73
|
-
|
|
74
|
-
### `isWindows`
|
|
75
|
-
|
|
76
|
-
Check if the code is running on Windows.
|
|
77
|
-
|
|
78
|
-
### `isLinux`
|
|
79
|
-
|
|
80
|
-
Check if the code is running on Linux.
|
|
81
|
-
|
|
82
|
-
### `isIos`
|
|
83
|
-
|
|
84
|
-
Check if the code is running on iOS.
|
|
85
|
-
|
|
86
|
-
### `isAndroid`
|
|
87
|
-
|
|
88
|
-
Check if the code is running on Android.
|
|
89
|
-
|
|
90
|
-
## Related
|
|
91
|
-
|
|
92
|
-
- [is-in-ci](https://github.com/sindresorhus/is-in-ci) - Check if the process is running in a CI environment
|
|
93
|
-
- [is64bit](https://github.com/sindresorhus/is64bit) - Check if the operating system CPU architecture is 64-bit or 32-bit
|
|
94
|
-
- [is](https://github.com/sindresorhus/is) - Type check values
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Escape RegExp special characters.
|
|
3
|
-
|
|
4
|
-
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
5
|
-
|
|
6
|
-
@example
|
|
7
|
-
```
|
|
8
|
-
import escapeStringRegexp = require('escape-string-regexp');
|
|
9
|
-
|
|
10
|
-
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
11
|
-
//=> 'How much \\$ for a 🦄\\?'
|
|
12
|
-
|
|
13
|
-
new RegExp(escapedString);
|
|
14
|
-
```
|
|
15
|
-
*/
|
|
16
|
-
declare const escapeStringRegexp: (string: string) => string;
|
|
17
|
-
|
|
18
|
-
export = escapeStringRegexp;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "escape-string-regexp",
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"description": "Escape RegExp special characters",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/escape-string-regexp",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"maintainers": [
|
|
13
|
-
"Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
|
|
14
|
-
"Joshua Boy Nicolai Appelman <joshua@jbna.nl> (jbna.nl)"
|
|
15
|
-
],
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=8"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"test": "xo && ava && tsd"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"index.js",
|
|
24
|
-
"index.d.ts"
|
|
25
|
-
],
|
|
26
|
-
"keywords": [
|
|
27
|
-
"escape",
|
|
28
|
-
"regex",
|
|
29
|
-
"regexp",
|
|
30
|
-
"re",
|
|
31
|
-
"regular",
|
|
32
|
-
"expression",
|
|
33
|
-
"string",
|
|
34
|
-
"str",
|
|
35
|
-
"special",
|
|
36
|
-
"characters"
|
|
37
|
-
],
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"ava": "^1.4.1",
|
|
40
|
-
"tsd": "^0.7.2",
|
|
41
|
-
"xo": "^0.24.0"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# escape-string-regexp [](https://travis-ci.org/sindresorhus/escape-string-regexp)
|
|
2
|
-
|
|
3
|
-
> Escape RegExp special characters
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
$ npm install escape-string-regexp
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
const escapeStringRegexp = require('escape-string-regexp');
|
|
17
|
-
|
|
18
|
-
const escapedString = escapeStringRegexp('How much $ for a 🦄?');
|
|
19
|
-
//=> 'How much \\$ for a 🦄\\?'
|
|
20
|
-
|
|
21
|
-
new RegExp(escapedString);
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
You can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## License
|
|
28
|
-
|
|
29
|
-
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).
|
|
3
|
-
|
|
4
|
-
@param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
|
5
|
-
|
|
6
|
-
@example
|
|
7
|
-
```
|
|
8
|
-
import isFullwidthCodePoint from 'is-fullwidth-code-point';
|
|
9
|
-
|
|
10
|
-
isFullwidthCodePoint('谢'.codePointAt(0));
|
|
11
|
-
//=> true
|
|
12
|
-
|
|
13
|
-
isFullwidthCodePoint('a'.codePointAt(0));
|
|
14
|
-
//=> false
|
|
15
|
-
```
|
|
16
|
-
*/
|
|
17
|
-
export default function isFullwidthCodePoint(codePoint: number): boolean;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
_isFullWidth as isFullWidth,
|
|
3
|
-
_isWide as isWide,
|
|
4
|
-
} from 'get-east-asian-width';
|
|
5
|
-
|
|
6
|
-
export default function isFullwidthCodePoint(codePoint) {
|
|
7
|
-
if (!Number.isInteger(codePoint)) {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return isFullWidth(codePoint) || isWide(codePoint);
|
|
12
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# is-fullwidth-code-point
|
|
2
|
-
|
|
3
|
-
> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install is-fullwidth-code-point
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
import isFullwidthCodePoint from 'is-fullwidth-code-point';
|
|
15
|
-
|
|
16
|
-
isFullwidthCodePoint('谢'.codePointAt(0));
|
|
17
|
-
//=> true
|
|
18
|
-
|
|
19
|
-
isFullwidthCodePoint('a'.codePointAt(0));
|
|
20
|
-
//=> false
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## API
|
|
24
|
-
|
|
25
|
-
### isFullwidthCodePoint(codePoint)
|
|
26
|
-
|
|
27
|
-
#### codePoint
|
|
28
|
-
|
|
29
|
-
Type: `number`
|
|
30
|
-
|
|
31
|
-
The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import process from 'node:process';
|
|
2
|
-
|
|
3
|
-
export default function isUnicodeSupported() {
|
|
4
|
-
const {env} = process;
|
|
5
|
-
const {TERM, TERM_PROGRAM} = env;
|
|
6
|
-
|
|
7
|
-
if (process.platform !== 'win32') {
|
|
8
|
-
return TERM !== 'linux'; // Linux console (kernel)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return Boolean(env.WT_SESSION) // Windows Terminal
|
|
12
|
-
|| Boolean(env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|
|
13
|
-
|| env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|
|
14
|
-
|| TERM_PROGRAM === 'Terminus-Sublime'
|
|
15
|
-
|| TERM_PROGRAM === 'vscode'
|
|
16
|
-
|| TERM === 'xterm-256color'
|
|
17
|
-
|| TERM === 'alacritty'
|
|
18
|
-
|| TERM === 'rxvt-unicode'
|
|
19
|
-
|| TERM === 'rxvt-unicode-256color'
|
|
20
|
-
|| env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
|
|
21
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "is-unicode-supported",
|
|
3
|
-
"version": "2.1.0",
|
|
4
|
-
"description": "Detect whether the terminal supports Unicode",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/is-unicode-supported",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": {
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
|
-
"default": "./index.js"
|
|
17
|
-
},
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=18"
|
|
21
|
-
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"test": "xo && ava && tsd"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
"index.js",
|
|
27
|
-
"index.d.ts"
|
|
28
|
-
],
|
|
29
|
-
"keywords": [
|
|
30
|
-
"terminal",
|
|
31
|
-
"unicode",
|
|
32
|
-
"detect",
|
|
33
|
-
"utf8",
|
|
34
|
-
"console",
|
|
35
|
-
"shell",
|
|
36
|
-
"support",
|
|
37
|
-
"supports",
|
|
38
|
-
"supported",
|
|
39
|
-
"check",
|
|
40
|
-
"detection"
|
|
41
|
-
],
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"ava": "^6.1.3",
|
|
44
|
-
"tsd": "^0.31.2",
|
|
45
|
-
"xo": "^0.59.3"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# is-unicode-supported
|
|
2
|
-
|
|
3
|
-
> Detect whether the terminal supports Unicode
|
|
4
|
-
|
|
5
|
-
This can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output.
|
|
6
|
-
|
|
7
|
-
Note that the check is quite naive. It just assumes all non-Windows terminals support Unicode and hard-codes which Windows terminals that do support Unicode. However, I have been using this logic in some popular packages for years without problems.
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install is-unicode-supported
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import isUnicodeSupported from 'is-unicode-supported';
|
|
19
|
-
|
|
20
|
-
isUnicodeSupported();
|
|
21
|
-
//=> true
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## API
|
|
25
|
-
|
|
26
|
-
### isUnicodeSupported()
|
|
27
|
-
|
|
28
|
-
Returns a `boolean` for whether the terminal supports Unicode.
|
|
29
|
-
|
|
30
|
-
## Related
|
|
31
|
-
|
|
32
|
-
- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive
|
|
33
|
-
- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
|
|
34
|
-
- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks
|
|
35
|
-
- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# pg-cloudflare
|
|
2
|
-
|
|
3
|
-
`pg-cloudflare` makes it easier to take an existing package that relies on `tls` and `net`, and make it work in environments where only `connect()` is supported, such as Cloudflare Workers.
|
|
4
|
-
|
|
5
|
-
`pg-cloudflare` wraps `connect()`, the [TCP Socket API](https://github.com/wintercg/proposal-sockets-api) proposed within WinterCG, and implemented in [Cloudflare Workers](https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/), and exposes an interface with methods similar to what the `net` and `tls` modules in Node.js expose. (ex: `net.connect(path[, options][, callback])`). This minimizes the number of changes needed in order to make an existing package work across JavaScript runtimes.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
npm i --save-dev pg-cloudflare
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
The package uses conditional exports to support bundlers that don't know about
|
|
14
|
-
`cloudflare:sockets`, so the consumer code by default imports an empty file. To
|
|
15
|
-
enable the package, resolve to the `cloudflare` condition in your bundler's
|
|
16
|
-
config. For example:
|
|
17
|
-
|
|
18
|
-
- `webpack.config.js`
|
|
19
|
-
```js
|
|
20
|
-
export default {
|
|
21
|
-
...,
|
|
22
|
-
resolve: { conditionNames: [..., "workerd"] },
|
|
23
|
-
plugins: [
|
|
24
|
-
// ignore cloudflare:sockets imports
|
|
25
|
-
new webpack.IgnorePlugin({
|
|
26
|
-
resourceRegExp: /^cloudflare:sockets$/,
|
|
27
|
-
}),
|
|
28
|
-
],
|
|
29
|
-
}
|
|
30
|
-
```
|
|
31
|
-
- `vite.config.js`
|
|
32
|
-
|
|
33
|
-
> [!NOTE]
|
|
34
|
-
> If you are using the [Cloudflare Vite plugin](https://www.npmjs.com/package/@cloudflare/vite-plugin) then the following configuration is not necessary.
|
|
35
|
-
|
|
36
|
-
```js
|
|
37
|
-
export default defineConfig({
|
|
38
|
-
...,
|
|
39
|
-
resolve: {
|
|
40
|
-
conditions: [..., "workerd"],
|
|
41
|
-
},
|
|
42
|
-
build: {
|
|
43
|
-
...,
|
|
44
|
-
// don't try to bundle cloudflare:sockets
|
|
45
|
-
rollupOptions: {
|
|
46
|
-
external: [..., 'cloudflare:sockets'],
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
})
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
- `rollup.config.js`
|
|
53
|
-
```js
|
|
54
|
-
export default defineConfig({
|
|
55
|
-
...,
|
|
56
|
-
plugins: [..., nodeResolve({ exportConditions: [..., 'workerd'] })],
|
|
57
|
-
// don't try to bundle cloudflare:sockets
|
|
58
|
-
external: [..., 'cloudflare:sockets'],
|
|
59
|
-
})
|
|
60
|
-
```
|
|
61
|
-
- `esbuild.config.js`
|
|
62
|
-
```js
|
|
63
|
-
await esbuild.build({
|
|
64
|
-
...,
|
|
65
|
-
conditions: [..., 'workerd'],
|
|
66
|
-
})
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
The concrete examples can be found in `packages/pg-bundler-test`.
|
|
70
|
-
|
|
71
|
-
## How to use conditionally, in non-Node.js environments
|
|
72
|
-
|
|
73
|
-
As implemented in `pg` [here](https://github.com/brianc/node-postgres/commit/07553428e9c0eacf761a5d4541a3300ff7859578#diff-34588ad868ebcb232660aba7ee6a99d1e02f4bc93f73497d2688c3f074e60533R5-R13), a typical use case might look as follows, where in a Node.js environment the `net` module is used, while in a non-Node.js environment, where `net` is unavailable, `pg-cloudflare` is used instead, providing an equivalent interface:
|
|
74
|
-
|
|
75
|
-
```js
|
|
76
|
-
module.exports.getStream = function getStream(ssl = false) {
|
|
77
|
-
const net = require('net')
|
|
78
|
-
if (typeof net.Socket === 'function') {
|
|
79
|
-
return net.Socket()
|
|
80
|
-
}
|
|
81
|
-
const { CloudflareSocket } = require('pg-cloudflare')
|
|
82
|
-
return new CloudflareSocket(ssl)
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Node.js implementation of the Socket API proposal
|
|
87
|
-
|
|
88
|
-
If you're looking for a way to rely on `connect()` as the interface you use to interact with raw sockets, but need this interface to be available in a Node.js environment, [`@arrowood.dev/socket`](https://github.com/Ethan-Arrowood/socket) provides a Node.js implementation of the Socket API.
|
|
89
|
-
|
|
90
|
-
### license
|
|
91
|
-
|
|
92
|
-
The MIT License (MIT)
|
|
93
|
-
|
|
94
|
-
Copyright (c) 2023 Brian M. Carlson
|
|
95
|
-
|
|
96
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
97
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
98
|
-
in the Software without restriction, including without limitation the rights
|
|
99
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
100
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
101
|
-
furnished to do so, subject to the following conditions:
|
|
102
|
-
|
|
103
|
-
The above copyright notice and this permission notice shall be included in
|
|
104
|
-
all copies or substantial portions of the Software.
|
|
105
|
-
|
|
106
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
107
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
108
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
109
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
110
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
111
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
112
|
-
THE SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty.js","sourceRoot":"","sources":["../src/empty.ts"],"names":[],"mappings":";;AAAA,kFAAkF;AAClF,0CAA0C;AAC1C,kBAAe,EAAE,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
import { TlsOptions } from 'cloudflare:sockets';
|
|
5
|
-
import { EventEmitter } from 'events';
|
|
6
|
-
/**
|
|
7
|
-
* Wrapper around the Cloudflare built-in socket that can be used by the `Connection`.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CloudflareSocket extends EventEmitter {
|
|
10
|
-
readonly ssl: boolean;
|
|
11
|
-
writable: boolean;
|
|
12
|
-
destroyed: boolean;
|
|
13
|
-
private _upgrading;
|
|
14
|
-
private _upgraded;
|
|
15
|
-
private _cfSocket;
|
|
16
|
-
private _cfWriter;
|
|
17
|
-
private _cfReader;
|
|
18
|
-
constructor(ssl: boolean);
|
|
19
|
-
setNoDelay(): this;
|
|
20
|
-
setKeepAlive(): this;
|
|
21
|
-
ref(): this;
|
|
22
|
-
unref(): this;
|
|
23
|
-
connect(port: number, host: string, connectListener?: (...args: unknown[]) => void): Promise<this | undefined>;
|
|
24
|
-
_listen(): Promise<void>;
|
|
25
|
-
_listenOnce(): Promise<void>;
|
|
26
|
-
write(data: Uint8Array | string, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): true | void;
|
|
27
|
-
end(data?: Buffer, encoding?: BufferEncoding, callback?: (...args: unknown[]) => void): this;
|
|
28
|
-
destroy(reason: string): this;
|
|
29
|
-
startTls(options: TlsOptions): void;
|
|
30
|
-
_addClosedHandler(): void;
|
|
31
|
-
}
|