decocms 2.364.3 → 2.365.0
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-BNCl7-KE.js → AlertCircle-BUiQNi1g.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-DoLG4rPk.js → ArrowNarrowLeft-B-iJgi5p.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-dM_balV_.js → ArrowUpRight-Bcc2ZOuq.js} +1 -1
- package/dist/client/assets/{Check-CVcAPsxw.js → Check-C6XoKiD0.js} +1 -1
- package/dist/client/assets/{CheckCircle-LNun5awz.js → CheckCircle-EJQkwVx_.js} +1 -1
- package/dist/client/assets/{ChevronDown-BrQ5SMJr.js → ChevronDown-BG0-uii1.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cv88p4ps.js → ChevronRight-lpVCFpWI.js} +1 -1
- package/dist/client/assets/{ChevronUp-BEXPurOi.js → ChevronUp-C7MKl1aH.js} +1 -1
- package/dist/client/assets/{Container-UyfewUfa.js → Container-CCYhpski.js} +1 -1
- package/dist/client/assets/{DotsVertical-SlSMdJkj.js → DotsVertical-DUwrRRrO.js} +1 -1
- package/dist/client/assets/{FilterLines-D43-OQwr.js → FilterLines-C2GeuQuW.js} +1 -1
- package/dist/client/assets/{HardDrive-9oRtZKUj.js → HardDrive-JbvyX314.js} +1 -1
- package/dist/client/assets/{Key01-CR3cW4Ic.js → Key01-CDidhnng.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DCkIyObc.js → LayoutLeft-D-a-mZcm.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Di-5czt2.js → LinkExternal01-BgvZEm-X.js} +1 -1
- package/dist/client/assets/{Lock01-7UEvqN90.js → Lock01-DukFRLhX.js} +1 -1
- package/dist/client/assets/{Monitor01-B9n70Cxg.js → Monitor01-BBeIQXwu.js} +1 -1
- package/dist/client/assets/{Palette-CM8YcCMA.js → Palette-Cbp9TooA.js} +1 -1
- package/dist/client/assets/{Play-D-B65aXH.js → Play-Bu5xn8xm.js} +1 -1
- package/dist/client/assets/{Plus-Cy8cBKs0.js → Plus-D8dMVCG8.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DmmbBsed.js → RefreshCcw01-NZxMXXUu.js} +1 -1
- package/dist/client/assets/{SearchMd-DBFtSrcv.js → SearchMd-CZrB4Udl.js} +1 -1
- package/dist/client/assets/{Settings02-3MysM1BG.js → Settings02-DW-Wnk61.js} +1 -1
- package/dist/client/assets/{Shield01-HdcY4mrx.js → Shield01-BF1LUqlj.js} +1 -1
- package/dist/client/assets/{Star01-D8HBHDwu.js → Star01-Dsz3MamR.js} +1 -1
- package/dist/client/assets/{Stars02-GxNmnBiz.js → Stars02-DU-eReiu.js} +1 -1
- package/dist/client/assets/{Sun-CydVR3Ev.js → Sun-CjOl_eIW.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BnKnieWk.js → SwitchHorizontal01-DgnU6UpK.js} +1 -1
- package/dist/client/assets/{Tool01-A_tsfqwo.js → Tool01-B6glW0Sz.js} +1 -1
- package/dist/client/assets/{Trash01-ycnKf74n.js → Trash01-D5iQjfZH.js} +1 -1
- package/dist/client/assets/{Upload01-DYToW9Zt.js → Upload01-CRbIaVuw.js} +1 -1
- package/dist/client/assets/{User01-C3BOLDRp.js → User01-D-0COLHD.js} +1 -1
- package/dist/client/assets/{Users01-hicb3AcK.js → Users01-BXsiu59O.js} +1 -1
- package/dist/client/assets/{Users03-ZMVhIoHM.js → Users03-DxI7m72W.js} +1 -1
- package/dist/client/assets/{X-DPY2mUo2.js → X-CghOqPiW.js} +1 -1
- package/dist/client/assets/{XCircle-B83XL35R.js → XCircle-BAnMq3y8.js} +1 -1
- package/dist/client/assets/{XClose-4axhqxBQ.js → XClose-BtlseQCi.js} +1 -1
- package/dist/client/assets/{Zap-4q67D7Av.js → Zap-B9Rztg2v.js} +1 -1
- package/dist/client/assets/{ZapSquare-CLINFtDR.js → ZapSquare-B5X0r34a.js} +1 -1
- package/dist/client/assets/{accordion-DXkONO_m.js → accordion-B48sZGNg.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-NHQqvsnL.js → add-connection-dialog-DeWWtS5l.js} +1 -1
- package/dist/client/assets/{agent-icon-iDRgsF6L.js → agent-icon-BtPamQTT.js} +1 -1
- package/dist/client/assets/{agent-icons-Cwm2SWG5.js → agent-icons-CfjWsNtB.js} +1 -1
- package/dist/client/assets/{agents-list-DzlzrVg4.js → agents-list-B0rifguo.js} +1 -1
- package/dist/client/assets/{ai-providers-vL31NHHj.js → ai-providers-CjAJVDeU.js} +1 -1
- package/dist/client/assets/{alert-DD3DsnPG.js → alert-DHu2hPyK.js} +1 -1
- package/dist/client/assets/{alert-dialog-30grTlQF.js → alert-dialog-B9ApqUuI.js} +1 -1
- package/dist/client/assets/{auth-catchall-CXal-oGb.js → auth-catchall-magvcZeO.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DN4fv3Ih.js → auth-split-layout-DA4q8Bfk.js} +1 -1
- package/dist/client/assets/{automation-list-row-BHcl4Ohg.js → automation-list-row-9A_MZJgx.js} +1 -1
- package/dist/client/assets/{automations-BqqECuTg.js → automations-DiW8ArAp.js} +1 -1
- package/dist/client/assets/{avatar-KlYDn7qS.js → avatar-CC5qXjgF.js} +1 -1
- package/dist/client/assets/{badge-DuiHx46w.js → badge-BI7NQRYo.js} +1 -1
- package/dist/client/assets/{brand-context-BRwHlDBf.js → brand-context-DV3p99_h.js} +1 -1
- package/dist/client/assets/{card-BES0SMqR.js → card-BM5zwIyB.js} +1 -1
- package/dist/client/assets/{chat-context-DaCqMkjZ.js → chat-context-C7AI4EyX.js} +1 -1
- package/dist/client/assets/{checkbox-CjSQbGdc.js → checkbox-_FPlFvnC.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CeBdZNYb.js → cli-auth-success-DxSIo4al.js} +1 -1
- package/dist/client/assets/{collection-detail-BMjP1kqy.js → collection-detail-ycc2WFgn.js} +1 -1
- package/dist/client/assets/{collection-display-button-D2FlqPoI.js → collection-display-button-CeEGick7.js} +1 -1
- package/dist/client/assets/{collection-search-C18GHA2r.js → collection-search-CRj5GlN2.js} +1 -1
- package/dist/client/assets/{collection-search-DVpwXfK_.js → collection-search-DvDmML5v.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BCrn8XHN.js → collection-table-wrapper-CcVgetdF.js} +1 -1
- package/dist/client/assets/{collection-tabs-sb0bPFTC.js → collection-tabs-CkTIDC3A.js} +1 -1
- package/dist/client/assets/{collections-fkPfVMTg.js → collections-DYNhGJEX.js} +1 -1
- package/dist/client/assets/{command-CMqZx43I.js → command-CbYTzmrk.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BBezLAIc.js → connect-desktop-dialog-C_jFFd_F.js} +1 -1
- package/dist/client/assets/{connection-card-Dmdx8kTx.js → connection-card-BswapS_C.js} +1 -1
- package/dist/client/assets/{connection-detail-BO3q4d5o.js → connection-detail-DK4A8YWW.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DKAyPoDI.js → connection-form-helpers-Dn61c3nC.js} +1 -1
- package/dist/client/assets/{connections-BGh_njtW.js → connections-DuzgzZyf.js} +1 -1
- package/dist/client/assets/{constants-C4WRW-LO.js → constants-V3SVDRSK.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Cuj_gJYe.js → decopilot-sse-pool-DbOmfpLW.js} +1 -1
- package/dist/client/assets/{dialog-CEusfHMX.js → dialog-bygvGgb9.js} +1 -1
- package/dist/client/assets/{domain-settings-y81S8hCO.js → domain-settings-4vKE7ncf.js} +1 -1
- package/dist/client/assets/{drawer-T83Srv96.js → drawer-Bjmg0RR1.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CT0lW-r3.js → dropdown-menu-CkTzcUR8.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-SdaMuY0y.js → dynamic-plugin-layout-D8yyBotc.js} +1 -1
- package/dist/client/assets/{empty-state-wvWmfCHy.js → empty-state-DW3JI1nZ.js} +1 -1
- package/dist/client/assets/{empty-state-DF748yNH.js → empty-state-Dg_dlwBN.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DPlzs4kv.js → extract-connection-data-D3z53YWV.js} +1 -1
- package/dist/client/assets/{features-_BHWNmKI.js → features-ChVbD0gB.js} +1 -1
- package/dist/client/assets/{file-explorer-DO5wAK7w.js → file-explorer-0CMEQXCR.js} +1 -1
- package/dist/client/assets/{files-CjljowlM.js → files-hwxe9QZr.js} +1 -1
- package/dist/client/assets/{form-w71mMA8g.js → form-D_08NHUD.js} +1 -1
- package/dist/client/assets/{general-C_e5zcVD.js → general-BE7htsNN.js} +1 -1
- package/dist/client/assets/{generate-id-7pqGD8tV.js → generate-id-DtDqQvIv.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BeChvUwA.js → github-repo-picker-TJIVPHBK.js} +1 -1
- package/dist/client/assets/{hooks-4Fwh9Blb.js → hooks-BXgqK-cH.js} +1 -1
- package/dist/client/assets/{hover-card-CYskLAbg.js → hover-card-TYrElsp0.js} +1 -1
- package/dist/client/assets/{index-LZKnK7-L.js → index-B6XA74F9.js} +1 -1
- package/dist/client/assets/{index-CVkezZw-.js → index-B6pGpYG6.js} +1 -1
- package/dist/client/assets/{index-Dd-6eUgN.js → index-B8fvR6LT.js} +1 -1
- package/dist/client/assets/{index-B8hvScUv.js → index-BtA594Jz.js} +1 -1
- package/dist/client/assets/{index-COBzfRZi.js → index-CNE80A83.js} +1 -1
- package/dist/client/assets/{index-BxHwWiH7.js → index-CkxTcifU.js} +1 -1
- package/dist/client/assets/{index-CYLlX3M9.js → index-D40kOj2v.js} +1 -1
- package/dist/client/assets/{index-vxjov_Cc.js → index-DBjlNX3z.js} +1 -1
- package/dist/client/assets/{index-gG2GSDDp.js → index-DFLHG9Oe.js} +1 -1
- package/dist/client/assets/{index-n2o4du3Y.js → index-DgmKj-EK.js} +1 -1
- package/dist/client/assets/{index-B_W9Dr0z.js → index-DiUgXBaI.js} +4 -4
- package/dist/client/assets/{index-DfaUClFh.js → index-KugLBWj9.js} +1 -1
- package/dist/client/assets/{index-BIUYFQag.js → index-P-hLEHL2.js} +1 -1
- package/dist/client/assets/{index-BQhmgiEq.js → index-c9Pbt5D9.js} +2 -2
- package/dist/client/assets/{index-BvtnVXmy.js → index-dXxsh3Iz.js} +1 -1
- package/dist/client/assets/index-zzGnf4We.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-CbM0kgNm.js → infiniteQueryObserver-CFFNkbfX.js} +1 -1
- package/dist/client/assets/{input-DZxKc7J0.js → input-BGaLq3ax.js} +1 -1
- package/dist/client/assets/{integration-icon-DewzWl2m.js → integration-icon-8egQk7i2.js} +1 -1
- package/dist/client/assets/{label-B1la-fci.js → label-BUt9seyW.js} +1 -1
- package/dist/client/assets/{layout-CKEXWCBb.js → layout-BQK7K5Pq.js} +1 -1
- package/dist/client/assets/{login-X1PhOapo.js → login-DwjnK22s.js} +1 -1
- package/dist/client/assets/{members-BzY4jGpr.js → members-DDG_y2wg.js} +1 -1
- package/dist/client/assets/{monaco-editor-UMtzBWTI.js → monaco-editor-6TmJdiGm.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CYnzq1NO.js → monitoring-stats-row-D5sxIGbz.js} +1 -1
- package/dist/client/assets/{oauth-callback-D4lrgj7R.js → oauth-callback-B1F9NMJm.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CPKDMOtX.js → oauth-callback-ai-provider-DYl02pPg.js} +1 -1
- package/dist/client/assets/{onboarding-H8vSkvF8.js → onboarding-D6jujOMz.js} +1 -1
- package/dist/client/assets/{org-layout-C7b-Ct9H.js → org-layout-DKyZtL1W.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-wOnrH2kj.js → org-plugin-layout-BVq0stpE.js} +1 -1
- package/dist/client/assets/{pair-Bfj0tAv6.js → pair-DbOJR5nL.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CwgJ7jY5.js → plugin-empty-state-lHHHsoKY.js} +1 -1
- package/dist/client/assets/{plugin-header-Cj7-LT8-.js → plugin-header-DgU6XRJp.js} +1 -1
- package/dist/client/assets/{plugin-layout-DLKyTrDc.js → plugin-layout-_zCxsn_M.js} +1 -1
- package/dist/client/assets/{popover-mJmOGcvZ.js → popover-BLsl1Wwx.js} +1 -1
- package/dist/client/assets/{profile-nye86xbC.js → profile-Ca8D8jB_.js} +1 -1
- package/dist/client/assets/{project-app-view-BEJERKGL.js → project-app-view-dfCAAazi.js} +1 -1
- package/dist/client/assets/registry-Bg-4_N8V.js +2 -0
- package/dist/client/assets/{registry-layout-BjSveN7C.js → registry-layout-C-YkiCiQ.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BQrAafe2.js → required-auth-layout-DH-f2CaU.js} +1 -1
- package/dist/client/assets/{reset-password-Qhu37IkB.js → reset-password-B9rKZimn.js} +1 -1
- package/dist/client/assets/{roles-D5ciZufw.js → roles-8uscquIf.js} +1 -1
- package/dist/client/assets/{search-input-BqlqV-_0.js → search-input-DZC3FA9U.js} +1 -1
- package/dist/client/assets/{secrets-7Jk6eNEc.js → secrets-Bl71TYuF.js} +1 -1
- package/dist/client/assets/{sections-editor-D_2uvu0E.js → sections-editor-CtrNziR9.js} +1 -1
- package/dist/client/assets/{select-C-gPp7G9.js → select-btdbQqQB.js} +1 -1
- package/dist/client/assets/{settings-layout-Cw-_d_nm.js → settings-layout-Dqdbrajv.js} +1 -1
- package/dist/client/assets/{settings-section-DApFkTeu.js → settings-section-B8Od5ijm.js} +1 -1
- package/dist/client/assets/{shell-controls-DeJL2a7u.js → shell-controls-Cpc7zjLw.js} +1 -1
- package/dist/client/assets/{shell-layout-BOxsGjDb.js → shell-layout-DpoJLGrK.js} +1 -1
- package/dist/client/assets/{sidebar-D6d-v_Pc.js → sidebar-D-_ciNlc.js} +1 -1
- package/dist/client/assets/{skeleton-RfCTKn6Y.js → skeleton-CCsx--iC.js} +1 -1
- package/dist/client/assets/{sortable.esm-BXIgGJxQ.js → sortable.esm-DWCPENgE.js} +1 -1
- package/dist/client/assets/{spinner-NqyTThDx.js → spinner-Dbsg4e4M.js} +1 -1
- package/dist/client/assets/{sso-BK6CSnRS.js → sso-DKBw_dCD.js} +1 -1
- package/dist/client/assets/{store-C5VGH9Ff.js → store-DRHB__wC.js} +1 -1
- package/dist/client/assets/store-registry-DnyJL09S.js +2 -0
- package/dist/client/assets/{switch-BqVfJaaE.js → switch-BPaF7GST.js} +1 -1
- package/dist/client/assets/{table-RmWD5bZv.js → table-TcgYyI5g.js} +1 -1
- package/dist/client/assets/{tabs-C84e7ZOt.js → tabs-CArqhjUQ.js} +1 -1
- package/dist/client/assets/{task-status-Dl8gKUMi.js → task-status-Cosx-AHw.js} +1 -1
- package/dist/client/assets/{textarea-D08XpeH3.js → textarea-CLLp6KTK.js} +1 -1
- package/dist/client/assets/{toggle-group-D8XVv0W2.js → toggle-group-CyhRMoao.js} +1 -1
- package/dist/client/assets/{toolbar-DcHaxh2N.js → toolbar-BXyHZxUa.js} +1 -1
- package/dist/client/assets/{tools-list-rsD1aCdR.js → tools-list-CIfKFLCC.js} +1 -1
- package/dist/client/assets/{tooltip-IAEIrTVw.js → tooltip-DuHhGuNb.js} +1 -1
- package/dist/client/assets/{types-THJHjNYw.js → types-CKyex3WY.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BtEkhdod.js → use-ai-providers-DXY8w1gk.js} +1 -1
- package/dist/client/assets/{use-collections-B5chukT1.js → use-collections-DV-Yw7Rl.js} +1 -1
- package/dist/client/assets/{use-connection-CqLc2kCT.js → use-connection-DPPCfeow.js} +1 -1
- package/dist/client/assets/{use-copy-x4stjSR_.js → use-copy-CObefyk7.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B2e6V1M8.js → use-create-virtual-mcp-ClMf9M2U.js} +1 -1
- package/dist/client/assets/{use-create-website-agent-DO3Reh-r.js → use-create-website-agent-D_7O7M84.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-sCbU6V0n.js → use-debounced-autosave-CYLSA65X.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CQU3mfvU.js → use-delete-connection-2Y6JpaXB.js} +1 -1
- package/dist/client/assets/{use-file-configs-jYMYwC9U.js → use-file-configs-CkJCW_0J.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CgCif0T0.js → use-infinite-scroll-BIl8Btbp.js} +1 -1
- package/dist/client/assets/{use-list-state-D6p_uKvt.js → use-list-state-BCQHlt2C.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-e9YFDYF0.js → use-mcp-prompts-D707fXp5.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BsnzIOtc.js → use-mcp-tools-BpkMOXfX.js} +1 -1
- package/dist/client/assets/{use-members-MgBmqs7x.js → use-members-BBMhepEt.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BtQa4OwG.js → use-navigate-to-agent-CeGlZmmn.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BXGwtUzc.js → use-org-auth-client-DnKeoeEP.js} +1 -1
- package/dist/client/assets/{use-org-sso-JuaVORNY.js → use-org-sso-4uCrf8x0.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CbkFJiRw.js → use-organization-roles-B4hkYRiT.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DoIv1zqR.js → use-organization-settings-AWz6cpVk.js} +1 -1
- package/dist/client/assets/{use-registry-connections-C8o36UIG.js → use-registry-connections-BLF2Iu3j.js} +1 -1
- package/dist/client/assets/{use-secrets-BAKSVIhF.js → use-secrets-DE0Aqna8.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BvXs5nVW.js → use-status-sounds-SJ0KRIgZ.js} +1 -1
- package/dist/client/assets/{use-view-mode-2VzWrKsP.js → use-view-mode-DPdHQRdb.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DPVntSu2.js → use-virtual-mcp-BzxmTmXo.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B_xNiJ7y.js +1 -0
- package/dist/client/assets/{useRouterState-DZLFFWHa.js → useRouterState-DXQ9JAOk.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B2fx93nW.js +1 -0
- package/dist/client/assets/{user-BIhwSu8_.js → user-BDVV447T.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D1dUZXpK.js → view-mode-toggle-BeU9M-dx.js} +1 -1
- package/dist/client/assets/{workflow-CYYTNdIs.js → workflow-6p4Uluo2.js} +1 -1
- package/dist/client/assets/workflow-detail-CZNMnpz0.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/utils.js +9 -22
- package/dist/server/node_modules/@opentelemetry/core/build/esm/baggage/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/time.d.ts +0 -3
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/time.js +8 -6
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/time.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/types.d.ts +10 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/types.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.d.ts +10 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js +35 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/globalThis.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/index.d.ts +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/index.js +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.d.ts +5 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/{common/globalThis.js → platform/browser/performance.js} +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/browser/performance.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/globalThis.d.ts +3 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/globalThis.js +19 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/globalThis.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/index.d.ts +2 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/index.js +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/performance.d.ts +5 -0
- package/dist/server/node_modules/@opentelemetry/core/build/{esnext/common/globalThis.js → esm/platform/node/performance.js} +3 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/platform/node/performance.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/callback.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/callback.js +5 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/utils/callback.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/utils.js +9 -22
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/baggage/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/time.d.ts +0 -3
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/time.js +8 -6
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/time.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/types.d.ts +10 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/types.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/globalThis.d.ts +10 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/globalThis.js +35 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/globalThis.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.d.ts +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.js +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/performance.d.ts +5 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/performance.js +17 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/browser/performance.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/globalThis.d.ts +3 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/globalThis.js +19 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/globalThis.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/index.d.ts +2 -8
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/index.js +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/performance.d.ts +5 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/performance.js +18 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/platform/node/performance.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/callback.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/callback.js +5 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/utils/callback.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/utils.js +9 -22
- package/dist/server/node_modules/@opentelemetry/core/build/src/baggage/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/time.d.ts +0 -3
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/time.js +8 -6
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/time.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/types.d.ts +10 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/types.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/globalThis.d.ts +10 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/globalThis.js +38 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/globalThis.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/index.d.ts +2 -5
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/index.js +4 -6
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/performance.d.ts +5 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/{common/globalThis.js → platform/browser/performance.js} +3 -6
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/browser/performance.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/globalThis.d.ts +3 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/globalThis.js +22 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/globalThis.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/index.d.ts +2 -8
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/index.js +4 -6
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/performance.d.ts +5 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/performance.js +21 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/platform/node/performance.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/callback.d.ts +3 -3
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/callback.js +5 -5
- package/dist/server/node_modules/@opentelemetry/core/build/src/utils/callback.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/core/package.json +4 -5
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/package.json +14 -12
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/ResourceImpl.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/index.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/index.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js +19 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/index.js +17 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/browser/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/index.js +17 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.js +19 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/platform/node/index.js +17 -0
- package/dist/server/node_modules/@opentelemetry/{core/build/src/common/globalThis.js.map → resources/build/esm/platform/node/index.js.map} +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/utils.d.ts +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/utils.js +3 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/ResourceImpl.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/ResourceImpl.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/index.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/index.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/default-service-name.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/default-service-name.js +19 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/index.js +17 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/browser/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/index.js +17 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/default-service-name.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/default-service-name.js +19 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/index.js +17 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/utils.d.ts +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/utils.js +3 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/ResourceImpl.js +2 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/ResourceImpl.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/index.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/index.js +2 -2
- package/dist/server/node_modules/@opentelemetry/resources/build/src/index.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/default-service-name.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/default-service-name.js +23 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/index.js +21 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/index.js +21 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js +23 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/index.d.ts +2 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/index.js +21 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/index.js.map +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/utils.d.ts +1 -0
- package/dist/server/node_modules/@opentelemetry/resources/build/src/utils.js +5 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/utils.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/version.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/resources/package.json +9 -5
- 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/protobufjs/dist/light/protobuf.js +13 -10
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/protobuf.js +14 -55
- package/dist/server/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/dist/server/node_modules/protobufjs/package.json +1 -1
- package/dist/server/node_modules/protobufjs/src/message.js +7 -3
- package/dist/server/node_modules/protobufjs/src/object.js +3 -6
- package/dist/server/node_modules/protobufjs/src/parse.js +1 -45
- package/dist/server/node_modules/protobufjs/src/type.js +1 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/{postgres-date/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/package.json +1 -1
- package/dist/client/assets/index-DOK7_ohT.js +0 -1
- package/dist/client/assets/registry-bNkBISAa.js +0 -2
- package/dist/client/assets/store-registry-CVqLvY0j.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DKkhiiov.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-m9tx-DXA.js +0 -1
- package/dist/client/assets/workflow-detail-BI1YgTJB.js +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/globalThis.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esm/common/globalThis.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/globalThis.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/core/build/esnext/common/globalThis.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/core/build/src/common/globalThis.d.ts +0 -5
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/default-service-name.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/default-service-name.js +0 -38
- package/dist/server/node_modules/@opentelemetry/resources/build/esm/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/default-service-name.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/default-service-name.js +0 -38
- package/dist/server/node_modules/@opentelemetry/resources/build/esnext/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@opentelemetry/resources/build/src/default-service-name.d.ts +0 -9
- package/dist/server/node_modules/@opentelemetry/resources/build/src/default-service-name.js +0 -43
- package/dist/server/node_modules/@opentelemetry/resources/build/src/default-service-name.js.map +0 -1
- package/dist/server/node_modules/@protobufjs/inquire/LICENSE +0 -26
- package/dist/server/node_modules/@protobufjs/inquire/README.md +0 -13
- package/dist/server/node_modules/@protobufjs/inquire/index.d.ts +0 -9
- package/dist/server/node_modules/@protobufjs/inquire/index.js +0 -37
- package/dist/server/node_modules/@protobufjs/inquire/package.json +0 -21
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/array.js +0 -1
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +0 -1
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +0 -1
- package/dist/server/node_modules/@protobufjs/inquire/tests/data/object.js +0 -1
- package/dist/server/node_modules/@protobufjs/inquire/tests/index.js +0 -20
- 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/is-fullwidth-code-point/index.d.ts +0 -17
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
- package/dist/server/node_modules/is-fullwidth-code-point/license +0 -9
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- /package/dist/server/node_modules/{ansi-styles → get-east-asian-width}/license +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { defaultServiceName } from './node';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { defaultServiceName } from './node';\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export function defaultServiceName() {
|
|
17
|
+
return `unknown_service:${process.argv0}`;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=default-service-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-service-name.js","sourceRoot":"","sources":["../../../../src/platform/node/default-service-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,UAAU,kBAAkB;IAChC,OAAO,mBAAmB,OAAO,CAAC,KAAK,EAAE,CAAC;AAC5C,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function defaultServiceName(): string {\n return `unknown_service:${process.argv0}`;\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright The OpenTelemetry Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export { defaultServiceName } from './default-service-name';
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
package/dist/server/node_modules/@opentelemetry/resources/build/esnext/platform/node/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/node/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport { defaultServiceName } from './default-service-name';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAI,GAAY,EAAyB,EAAE;IACtE,OAAO,CACL,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAQ,GAA+B,CAAC,IAAI,KAAK,UAAU,CAC5D,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const isPromiseLike = <R>(val: unknown): val is PromiseLike<R> => {\n return (\n val !== null &&\n typeof val === 'object' &&\n typeof (val as Partial<PromiseLike<R>>).then === 'function'\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAI,GAAY,EAAyB,EAAE;IACtE,OAAO,CACL,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAQ,GAA+B,CAAC,IAAI,KAAK,UAAU,CAC5D,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAI,CAAI;IAC9B,OAAO,CAAC,CAAC;AACX,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const isPromiseLike = <R>(val: unknown): val is PromiseLike<R> => {\n return (\n val !== null &&\n typeof val === 'object' &&\n typeof (val as Partial<PromiseLike<R>>).then === 'function'\n );\n};\n\nexport function identity<T>(_: T): T {\n return _;\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '2.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,4DAA4D;AAC5D,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '2.2.0';\n"]}
|
|
@@ -19,7 +19,7 @@ exports.defaultResource = exports.emptyResource = exports.resourceFromDetectedRe
|
|
|
19
19
|
const api_1 = require("@opentelemetry/api");
|
|
20
20
|
const core_1 = require("@opentelemetry/core");
|
|
21
21
|
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
|
|
22
|
-
const
|
|
22
|
+
const platform_1 = require("./platform");
|
|
23
23
|
const utils_1 = require("./utils");
|
|
24
24
|
class ResourceImpl {
|
|
25
25
|
_rawAttributes;
|
|
@@ -119,7 +119,7 @@ function emptyResource() {
|
|
|
119
119
|
exports.emptyResource = emptyResource;
|
|
120
120
|
function defaultResource() {
|
|
121
121
|
return resourceFromAttributes({
|
|
122
|
-
[semantic_conventions_1.ATTR_SERVICE_NAME]: (0,
|
|
122
|
+
[semantic_conventions_1.ATTR_SERVICE_NAME]: (0, platform_1.defaultServiceName)(),
|
|
123
123
|
[semantic_conventions_1.ATTR_TELEMETRY_SDK_LANGUAGE]: core_1.SDK_INFO[semantic_conventions_1.ATTR_TELEMETRY_SDK_LANGUAGE],
|
|
124
124
|
[semantic_conventions_1.ATTR_TELEMETRY_SDK_NAME]: core_1.SDK_INFO[semantic_conventions_1.ATTR_TELEMETRY_SDK_NAME],
|
|
125
125
|
[semantic_conventions_1.ATTR_TELEMETRY_SDK_VERSION]: core_1.SDK_INFO[semantic_conventions_1.ATTR_TELEMETRY_SDK_VERSION],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceImpl.js","sourceRoot":"","sources":["../../src/ResourceImpl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAsE;AACtE,8CAA+C;AAC/C,8EAK6C;AAE7C,iEAA4D;AAQ5D,mCAAwC;AAExC,MAAM,YAAY;IACR,cAAc,CAAyB;IACvC,uBAAuB,GAAG,KAAK,CAAC;IAChC,UAAU,CAAU;IAEpB,mBAAmB,CAAc;IAEzC,MAAM,CAAC,iBAAiB,CACtB,UAAgE,EAChE,OAAyB;QAEzB,MAAM,GAAG,GAAG,IAAI,YAAY,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1C,GAAG,CAAC,cAAc,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACtD,GAAG,CAAC,uBAAuB;YACzB,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;QACjE,OAAO,GAAG,CAAC;IACb,CAAC;IAED;IACE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QAC5D,OAAO,SAAS,CAAC;KAClB;IAED,UAAI,CAAC,IAAI,CACP,6EAA6E,EAC7E,SAAS,CACV,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,cAAc,CACrB,GAAa,EACb,QAAyB;IAEzB,MAAM,YAAY,GAAG,GAAG,EAAE,SAAS,CAAC;IACpC,MAAM,iBAAiB,GAAG,QAAQ,EAAE,SAAS,CAAC;IAE9C,MAAM,UAAU,GAAG,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,EAAE,CAAC;IACrE,MAAM,eAAe,GACnB,iBAAiB,KAAK,SAAS,IAAI,iBAAiB,KAAK,EAAE,CAAC;IAE9D,IAAI,UAAU,EAAE;QACd,OAAO,iBAAiB,CAAC;KAC1B;IAED,IAAI,eAAe,EAAE;QACnB,OAAO,YAAY,CAAC;KACrB;IAED,IAAI,YAAY,KAAK,iBAAiB,EAAE;QACtC,OAAO,YAAY,CAAC;KACrB;IAED,UAAI,CAAC,IAAI,CACP,kIAAkI,EAClI,YAAY,EACZ,iBAAiB,CAClB,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Attributes, AttributeValue, diag } from '@opentelemetry/api';\nimport { SDK_INFO } from '@opentelemetry/core';\nimport {\n ATTR_SERVICE_NAME,\n ATTR_TELEMETRY_SDK_LANGUAGE,\n ATTR_TELEMETRY_SDK_NAME,\n ATTR_TELEMETRY_SDK_VERSION,\n} from '@opentelemetry/semantic-conventions';\nimport { Resource } from './Resource';\nimport { defaultServiceName } from './default-service-name';\nimport {\n DetectedResource,\n DetectedResourceAttributes,\n MaybePromise,\n RawResourceAttribute,\n ResourceOptions,\n} from './types';\nimport { isPromiseLike } from './utils';\n\nclass ResourceImpl implements Resource {\n private _rawAttributes: RawResourceAttribute[];\n private _asyncAttributesPending = false;\n private _schemaUrl?: string;\n\n private _memoizedAttributes?: Attributes;\n\n static FromAttributeList(\n attributes: [string, MaybePromise<AttributeValue | undefined>][],\n options?: ResourceOptions\n ): Resource {\n const res = new ResourceImpl({}, options);\n res._rawAttributes = guardedRawAttributes(attributes);\n res._asyncAttributesPending =\n attributes.filter(([_, val]) => isPromiseLike(val)).length > 0;\n return res;\n }\n\n constructor(\n /**\n * A dictionary of attributes with string keys and values that provide\n * information about the entity as numbers, strings or booleans\n * TODO: Consider to add check/validation on attributes.\n */\n resource: DetectedResource,\n options?: ResourceOptions\n ) {\n const attributes = resource.attributes ?? {};\n this._rawAttributes = Object.entries(attributes).map(([k, v]) => {\n if (isPromiseLike(v)) {\n // side-effect\n this._asyncAttributesPending = true;\n }\n\n return [k, v];\n });\n\n this._rawAttributes = guardedRawAttributes(this._rawAttributes);\n this._schemaUrl = validateSchemaUrl(options?.schemaUrl);\n }\n\n public get asyncAttributesPending(): boolean {\n return this._asyncAttributesPending;\n }\n\n public async waitForAsyncAttributes(): Promise<void> {\n if (!this.asyncAttributesPending) {\n return;\n }\n\n for (let i = 0; i < this._rawAttributes.length; i++) {\n const [k, v] = this._rawAttributes[i];\n this._rawAttributes[i] = [k, isPromiseLike(v) ? await v : v];\n }\n\n this._asyncAttributesPending = false;\n }\n\n public get attributes(): Attributes {\n if (this.asyncAttributesPending) {\n diag.error(\n 'Accessing resource attributes before async attributes settled'\n );\n }\n\n if (this._memoizedAttributes) {\n return this._memoizedAttributes;\n }\n\n const attrs: Attributes = {};\n for (const [k, v] of this._rawAttributes) {\n if (isPromiseLike(v)) {\n diag.debug(`Unsettled resource attribute ${k} skipped`);\n continue;\n }\n if (v != null) {\n attrs[k] ??= v;\n }\n }\n\n // only memoize output if all attributes are settled\n if (!this._asyncAttributesPending) {\n this._memoizedAttributes = attrs;\n }\n\n return attrs;\n }\n\n public getRawAttributes(): RawResourceAttribute[] {\n return this._rawAttributes;\n }\n\n public get schemaUrl(): string | undefined {\n return this._schemaUrl;\n }\n\n public merge(resource: Resource | null): Resource {\n if (resource == null) return this;\n\n // Order is important\n // Spec states incoming attributes override existing attributes\n const mergedSchemaUrl = mergeSchemaUrl(this, resource);\n const mergedOptions: ResourceOptions | undefined = mergedSchemaUrl\n ? { schemaUrl: mergedSchemaUrl }\n : undefined;\n\n return ResourceImpl.FromAttributeList(\n [...resource.getRawAttributes(), ...this.getRawAttributes()],\n mergedOptions\n );\n }\n}\n\nexport function resourceFromAttributes(\n attributes: DetectedResourceAttributes,\n options?: ResourceOptions\n): Resource {\n return ResourceImpl.FromAttributeList(Object.entries(attributes), options);\n}\n\nexport function resourceFromDetectedResource(\n detectedResource: DetectedResource,\n options?: ResourceOptions\n): Resource {\n return new ResourceImpl(detectedResource, options);\n}\n\nexport function emptyResource(): Resource {\n return resourceFromAttributes({});\n}\n\nexport function defaultResource(): Resource {\n return resourceFromAttributes({\n [ATTR_SERVICE_NAME]: defaultServiceName(),\n [ATTR_TELEMETRY_SDK_LANGUAGE]: SDK_INFO[ATTR_TELEMETRY_SDK_LANGUAGE],\n [ATTR_TELEMETRY_SDK_NAME]: SDK_INFO[ATTR_TELEMETRY_SDK_NAME],\n [ATTR_TELEMETRY_SDK_VERSION]: SDK_INFO[ATTR_TELEMETRY_SDK_VERSION],\n });\n}\n\nfunction guardedRawAttributes(\n attributes: RawResourceAttribute[]\n): RawResourceAttribute[] {\n return attributes.map(([k, v]) => {\n if (isPromiseLike(v)) {\n return [\n k,\n v.catch(err => {\n diag.debug(\n 'promise rejection for resource attribute: %s - %s',\n k,\n err\n );\n return undefined;\n }),\n ];\n }\n return [k, v];\n });\n}\n\nfunction validateSchemaUrl(schemaUrl?: string): string | undefined {\n if (typeof schemaUrl === 'string' || schemaUrl === undefined) {\n return schemaUrl;\n }\n\n diag.warn(\n 'Schema URL must be string or undefined, got %s. Schema URL will be ignored.',\n schemaUrl\n );\n\n return undefined;\n}\n\nfunction mergeSchemaUrl(\n old: Resource,\n updating: Resource | null\n): string | undefined {\n const oldSchemaUrl = old?.schemaUrl;\n const updatingSchemaUrl = updating?.schemaUrl;\n\n const isOldEmpty = oldSchemaUrl === undefined || oldSchemaUrl === '';\n const isUpdatingEmpty =\n updatingSchemaUrl === undefined || updatingSchemaUrl === '';\n\n if (isOldEmpty) {\n return updatingSchemaUrl;\n }\n\n if (isUpdatingEmpty) {\n return oldSchemaUrl;\n }\n\n if (oldSchemaUrl === updatingSchemaUrl) {\n return oldSchemaUrl;\n }\n\n diag.warn(\n 'Schema URL merge conflict: old resource has \"%s\", updating resource has \"%s\". Resulting resource will have undefined Schema URL.',\n oldSchemaUrl,\n updatingSchemaUrl\n );\n\n return undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ResourceImpl.js","sourceRoot":"","sources":["../../src/ResourceImpl.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4CAAsE;AACtE,8CAA+C;AAC/C,8EAK6C;AAE7C,yCAAgD;AAQhD,mCAAwC;AAExC,MAAM,YAAY;IACR,cAAc,CAAyB;IACvC,uBAAuB,GAAG,KAAK,CAAC;IAChC,UAAU,CAAU;IAEpB,mBAAmB,CAAc;IAEzC,MAAM,CAAC,iBAAiB,CACtB,UAAgE,EAChE,OAAyB;QAEzB,MAAM,GAAG,GAAG,IAAI,YAAY,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAC1C,GAAG,CAAC,cAAc,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;QACtD,GAAG,CAAC,uBAAuB;YACzB,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,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,iBAAiB,CAAC,SAAkB;IAC3C,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,SAAS,EAAE;QAC5D,OAAO,SAAS,CAAC;KAClB;IAED,UAAI,CAAC,IAAI,CACP,6EAA6E,EAC7E,SAAS,CACV,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,cAAc,CACrB,GAAa,EACb,QAAyB;IAEzB,MAAM,YAAY,GAAG,GAAG,EAAE,SAAS,CAAC;IACpC,MAAM,iBAAiB,GAAG,QAAQ,EAAE,SAAS,CAAC;IAE9C,MAAM,UAAU,GAAG,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,EAAE,CAAC;IACrE,MAAM,eAAe,GACnB,iBAAiB,KAAK,SAAS,IAAI,iBAAiB,KAAK,EAAE,CAAC;IAE9D,IAAI,UAAU,EAAE;QACd,OAAO,iBAAiB,CAAC;KAC1B;IAED,IAAI,eAAe,EAAE;QACnB,OAAO,YAAY,CAAC;KACrB;IAED,IAAI,YAAY,KAAK,iBAAiB,EAAE;QACtC,OAAO,YAAY,CAAC;KACrB;IAED,UAAI,CAAC,IAAI,CACP,kIAAkI,EAClI,YAAY,EACZ,iBAAiB,CAClB,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Attributes, AttributeValue, diag } from '@opentelemetry/api';\nimport { SDK_INFO } from '@opentelemetry/core';\nimport {\n ATTR_SERVICE_NAME,\n ATTR_TELEMETRY_SDK_LANGUAGE,\n ATTR_TELEMETRY_SDK_NAME,\n ATTR_TELEMETRY_SDK_VERSION,\n} from '@opentelemetry/semantic-conventions';\nimport { Resource } from './Resource';\nimport { defaultServiceName } from './platform';\nimport {\n DetectedResource,\n DetectedResourceAttributes,\n MaybePromise,\n RawResourceAttribute,\n ResourceOptions,\n} from './types';\nimport { isPromiseLike } from './utils';\n\nclass ResourceImpl implements Resource {\n private _rawAttributes: RawResourceAttribute[];\n private _asyncAttributesPending = false;\n private _schemaUrl?: string;\n\n private _memoizedAttributes?: Attributes;\n\n static FromAttributeList(\n attributes: [string, MaybePromise<AttributeValue | undefined>][],\n options?: ResourceOptions\n ): Resource {\n const res = new ResourceImpl({}, options);\n res._rawAttributes = guardedRawAttributes(attributes);\n res._asyncAttributesPending =\n attributes.filter(([_, val]) => isPromiseLike(val)).length > 0;\n return res;\n }\n\n constructor(\n /**\n * A dictionary of attributes with string keys and values that provide\n * information about the entity as numbers, strings or booleans\n * TODO: Consider to add check/validation on attributes.\n */\n resource: DetectedResource,\n options?: ResourceOptions\n ) {\n const attributes = resource.attributes ?? {};\n this._rawAttributes = Object.entries(attributes).map(([k, v]) => {\n if (isPromiseLike(v)) {\n // side-effect\n this._asyncAttributesPending = true;\n }\n\n return [k, v];\n });\n\n this._rawAttributes = guardedRawAttributes(this._rawAttributes);\n this._schemaUrl = validateSchemaUrl(options?.schemaUrl);\n }\n\n public get asyncAttributesPending(): boolean {\n return this._asyncAttributesPending;\n }\n\n public async waitForAsyncAttributes(): Promise<void> {\n if (!this.asyncAttributesPending) {\n return;\n }\n\n for (let i = 0; i < this._rawAttributes.length; i++) {\n const [k, v] = this._rawAttributes[i];\n this._rawAttributes[i] = [k, isPromiseLike(v) ? await v : v];\n }\n\n this._asyncAttributesPending = false;\n }\n\n public get attributes(): Attributes {\n if (this.asyncAttributesPending) {\n diag.error(\n 'Accessing resource attributes before async attributes settled'\n );\n }\n\n if (this._memoizedAttributes) {\n return this._memoizedAttributes;\n }\n\n const attrs: Attributes = {};\n for (const [k, v] of this._rawAttributes) {\n if (isPromiseLike(v)) {\n diag.debug(`Unsettled resource attribute ${k} skipped`);\n continue;\n }\n if (v != null) {\n attrs[k] ??= v;\n }\n }\n\n // only memoize output if all attributes are settled\n if (!this._asyncAttributesPending) {\n this._memoizedAttributes = attrs;\n }\n\n return attrs;\n }\n\n public getRawAttributes(): RawResourceAttribute[] {\n return this._rawAttributes;\n }\n\n public get schemaUrl(): string | undefined {\n return this._schemaUrl;\n }\n\n public merge(resource: Resource | null): Resource {\n if (resource == null) return this;\n\n // Order is important\n // Spec states incoming attributes override existing attributes\n const mergedSchemaUrl = mergeSchemaUrl(this, resource);\n const mergedOptions: ResourceOptions | undefined = mergedSchemaUrl\n ? { schemaUrl: mergedSchemaUrl }\n : undefined;\n\n return ResourceImpl.FromAttributeList(\n [...resource.getRawAttributes(), ...this.getRawAttributes()],\n mergedOptions\n );\n }\n}\n\nexport function resourceFromAttributes(\n attributes: DetectedResourceAttributes,\n options?: ResourceOptions\n): Resource {\n return ResourceImpl.FromAttributeList(Object.entries(attributes), options);\n}\n\nexport function resourceFromDetectedResource(\n detectedResource: DetectedResource,\n options?: ResourceOptions\n): Resource {\n return new ResourceImpl(detectedResource, options);\n}\n\nexport function emptyResource(): Resource {\n return resourceFromAttributes({});\n}\n\nexport function defaultResource(): Resource {\n return resourceFromAttributes({\n [ATTR_SERVICE_NAME]: defaultServiceName(),\n [ATTR_TELEMETRY_SDK_LANGUAGE]: SDK_INFO[ATTR_TELEMETRY_SDK_LANGUAGE],\n [ATTR_TELEMETRY_SDK_NAME]: SDK_INFO[ATTR_TELEMETRY_SDK_NAME],\n [ATTR_TELEMETRY_SDK_VERSION]: SDK_INFO[ATTR_TELEMETRY_SDK_VERSION],\n });\n}\n\nfunction guardedRawAttributes(\n attributes: RawResourceAttribute[]\n): RawResourceAttribute[] {\n return attributes.map(([k, v]) => {\n if (isPromiseLike(v)) {\n return [\n k,\n v.catch(err => {\n diag.debug(\n 'promise rejection for resource attribute: %s - %s',\n k,\n err\n );\n return undefined;\n }),\n ];\n }\n return [k, v];\n });\n}\n\nfunction validateSchemaUrl(schemaUrl?: string): string | undefined {\n if (typeof schemaUrl === 'string' || schemaUrl === undefined) {\n return schemaUrl;\n }\n\n diag.warn(\n 'Schema URL must be string or undefined, got %s. Schema URL will be ignored.',\n schemaUrl\n );\n\n return undefined;\n}\n\nfunction mergeSchemaUrl(\n old: Resource,\n updating: Resource | null\n): string | undefined {\n const oldSchemaUrl = old?.schemaUrl;\n const updatingSchemaUrl = updating?.schemaUrl;\n\n const isOldEmpty = oldSchemaUrl === undefined || oldSchemaUrl === '';\n const isUpdatingEmpty =\n updatingSchemaUrl === undefined || updatingSchemaUrl === '';\n\n if (isOldEmpty) {\n return updatingSchemaUrl;\n }\n\n if (isUpdatingEmpty) {\n return oldSchemaUrl;\n }\n\n if (oldSchemaUrl === updatingSchemaUrl) {\n return oldSchemaUrl;\n }\n\n diag.warn(\n 'Schema URL merge conflict: old resource has \"%s\", updating resource has \"%s\". Resulting resource will have undefined Schema URL.',\n oldSchemaUrl,\n updatingSchemaUrl\n );\n\n return undefined;\n}\n"]}
|
|
@@ -3,6 +3,6 @@ export { detectResources } from './detect-resources';
|
|
|
3
3
|
export { envDetector, hostDetector, osDetector, processDetector, serviceInstanceIdDetector, } from './detectors';
|
|
4
4
|
export type { Resource } from './Resource';
|
|
5
5
|
export { resourceFromAttributes, defaultResource, emptyResource, } from './ResourceImpl';
|
|
6
|
-
export { defaultServiceName } from './
|
|
6
|
+
export { defaultServiceName } from './platform';
|
|
7
7
|
export type { ResourceDetector, DetectedResource, DetectedResourceAttributes, RawResourceAttribute, MaybePromise, } from './types';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -28,6 +28,6 @@ var ResourceImpl_1 = require("./ResourceImpl");
|
|
|
28
28
|
Object.defineProperty(exports, "resourceFromAttributes", { enumerable: true, get: function () { return ResourceImpl_1.resourceFromAttributes; } });
|
|
29
29
|
Object.defineProperty(exports, "defaultResource", { enumerable: true, get: function () { return ResourceImpl_1.defaultResource; } });
|
|
30
30
|
Object.defineProperty(exports, "emptyResource", { enumerable: true, get: function () { return ResourceImpl_1.emptyResource; } });
|
|
31
|
-
var
|
|
32
|
-
Object.defineProperty(exports, "defaultServiceName", { enumerable: true, get: function () { return
|
|
31
|
+
var platform_1 = require("./platform");
|
|
32
|
+
Object.defineProperty(exports, "defaultServiceName", { enumerable: true, get: function () { return platform_1.defaultServiceName; } });
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,yCAMqB;AALnB,wGAAA,WAAW,OAAA;AACX,yGAAA,YAAY,OAAA;AACZ,uGAAA,UAAU,OAAA;AACV,4GAAA,eAAe,OAAA;AACf,sHAAA,yBAAyB,OAAA;AAG3B,+CAIwB;AAHtB,sHAAA,sBAAsB,OAAA;AACtB,+GAAA,eAAe,OAAA;AACf,6GAAA,aAAa,OAAA;AAEf
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,yCAMqB;AALnB,wGAAA,WAAW,OAAA;AACX,yGAAA,YAAY,OAAA;AACZ,uGAAA,UAAU,OAAA;AACV,4GAAA,eAAe,OAAA;AACf,sHAAA,yBAAyB,OAAA;AAG3B,+CAIwB;AAHtB,sHAAA,sBAAsB,OAAA;AACtB,+GAAA,eAAe,OAAA;AACf,6GAAA,aAAa,OAAA;AAEf,uCAAgD;AAAvC,8GAAA,kBAAkB,OAAA","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { ResourceDetectionConfig } from './config';\nexport { detectResources } from './detect-resources';\nexport {\n envDetector,\n hostDetector,\n osDetector,\n processDetector,\n serviceInstanceIdDetector,\n} from './detectors';\nexport type { Resource } from './Resource';\nexport {\n resourceFromAttributes,\n defaultResource,\n emptyResource,\n} from './ResourceImpl';\nexport { defaultServiceName } from './platform';\nexport type {\n ResourceDetector,\n DetectedResource,\n DetectedResourceAttributes,\n RawResourceAttribute,\n MaybePromise,\n} from './types';\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.defaultServiceName = void 0;
|
|
19
|
+
function defaultServiceName() {
|
|
20
|
+
return 'unknown_service';
|
|
21
|
+
}
|
|
22
|
+
exports.defaultServiceName = defaultServiceName;
|
|
23
|
+
//# sourceMappingURL=default-service-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-service-name.js","sourceRoot":"","sources":["../../../../src/platform/browser/default-service-name.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,SAAgB,kBAAkB;IAChC,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAFD,gDAEC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function defaultServiceName(): string {\n return 'unknown_service';\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultServiceName = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright The OpenTelemetry Authors
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
var default_service_name_1 = require("./default-service-name");
|
|
20
|
+
Object.defineProperty(exports, "defaultServiceName", { enumerable: true, get: function () { return default_service_name_1.defaultServiceName; } });
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/browser/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/browser/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport { defaultServiceName } from './default-service-name';\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.defaultServiceName = void 0;
|
|
19
|
+
var node_1 = require("./node");
|
|
20
|
+
Object.defineProperty(exports, "defaultServiceName", { enumerable: true, get: function () { return node_1.defaultServiceName; } });
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,+BAA4C;AAAnC,0GAAA,kBAAkB,OAAA","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport { defaultServiceName } from './node';\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright The OpenTelemetry Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.defaultServiceName = void 0;
|
|
19
|
+
function defaultServiceName() {
|
|
20
|
+
return `unknown_service:${process.argv0}`;
|
|
21
|
+
}
|
|
22
|
+
exports.defaultServiceName = defaultServiceName;
|
|
23
|
+
//# sourceMappingURL=default-service-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-service-name.js","sourceRoot":"","sources":["../../../../src/platform/node/default-service-name.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,SAAgB,kBAAkB;IAChC,OAAO,mBAAmB,OAAO,CAAC,KAAK,EAAE,CAAC;AAC5C,CAAC;AAFD,gDAEC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function defaultServiceName(): string {\n return `unknown_service:${process.argv0}`;\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultServiceName = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright The OpenTelemetry Authors
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
* you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
var default_service_name_1 = require("./default-service-name");
|
|
20
|
+
Object.defineProperty(exports, "defaultServiceName", { enumerable: true, get: function () { return default_service_name_1.defaultServiceName; } });
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
package/dist/server/node_modules/@opentelemetry/resources/build/src/platform/node/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/platform/node/index.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport { defaultServiceName } from './default-service-name';\n"]}
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.isPromiseLike = void 0;
|
|
18
|
+
exports.identity = exports.isPromiseLike = void 0;
|
|
19
19
|
const isPromiseLike = (val) => {
|
|
20
20
|
return (val !== null &&
|
|
21
21
|
typeof val === 'object' &&
|
|
22
22
|
typeof val.then === 'function');
|
|
23
23
|
};
|
|
24
24
|
exports.isPromiseLike = isPromiseLike;
|
|
25
|
+
function identity(_) {
|
|
26
|
+
return _;
|
|
27
|
+
}
|
|
28
|
+
exports.identity = identity;
|
|
25
29
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEI,MAAM,aAAa,GAAG,CAAI,GAAY,EAAyB,EAAE;IACtE,OAAO,CACL,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAQ,GAA+B,CAAC,IAAI,KAAK,UAAU,CAC5D,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,aAAa,iBAMxB","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const isPromiseLike = <R>(val: unknown): val is PromiseLike<R> => {\n return (\n val !== null &&\n typeof val === 'object' &&\n typeof (val as Partial<PromiseLike<R>>).then === 'function'\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEI,MAAM,aAAa,GAAG,CAAI,GAAY,EAAyB,EAAE;IACtE,OAAO,CACL,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;QACvB,OAAQ,GAA+B,CAAC,IAAI,KAAK,UAAU,CAC5D,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,aAAa,iBAMxB;AAEF,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,CAAC,CAAC;AACX,CAAC;AAFD,4BAEC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const isPromiseLike = <R>(val: unknown): val is PromiseLike<R> => {\n return (\n val !== null &&\n typeof val === 'object' &&\n typeof (val as Partial<PromiseLike<R>>).then === 'function'\n );\n};\n\nexport function identity<T>(_: T): T {\n return _;\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,OAAO,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '2.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,OAAO,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '2.2.0';\n"]}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentelemetry/resources",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "OpenTelemetry SDK resources",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"module": "build/esm/index.js",
|
|
7
7
|
"esnext": "build/esnext/index.js",
|
|
8
8
|
"browser": {
|
|
9
|
+
"./src/platform/index.ts": "./src/platform/browser/index.ts",
|
|
10
|
+
"./build/esm/platform/index.js": "./build/esm/platform/browser/index.js",
|
|
11
|
+
"./build/esnext/platform/index.js": "./build/esnext/platform/browser/index.js",
|
|
12
|
+
"./build/src/platform/index.js": "./build/src/platform/browser/index.js",
|
|
9
13
|
"./src/detectors/platform/index.ts": "./src/detectors/platform/browser/index.ts",
|
|
10
14
|
"./build/esm/detectors/platform/index.js": "./build/esm/detectors/platform/browser/index.js",
|
|
11
15
|
"./build/esnext/detectors/platform/index.js": "./build/esnext/detectors/platform/browser/index.js",
|
|
@@ -60,7 +64,7 @@
|
|
|
60
64
|
"devDependencies": {
|
|
61
65
|
"@opentelemetry/api": ">=1.3.0 <1.10.0",
|
|
62
66
|
"@types/mocha": "10.0.10",
|
|
63
|
-
"@types/node": "18.
|
|
67
|
+
"@types/node": "18.6.5",
|
|
64
68
|
"@types/sinon": "17.0.4",
|
|
65
69
|
"@types/webpack-env": "1.16.3",
|
|
66
70
|
"karma": "6.4.4",
|
|
@@ -70,7 +74,7 @@
|
|
|
70
74
|
"karma-mocha-webworker": "1.3.0",
|
|
71
75
|
"karma-spec-reporter": "0.0.36",
|
|
72
76
|
"karma-webpack": "5.0.1",
|
|
73
|
-
"mocha": "11.7.
|
|
77
|
+
"mocha": "11.7.4",
|
|
74
78
|
"nock": "13.5.6",
|
|
75
79
|
"nyc": "17.1.0",
|
|
76
80
|
"sinon": "18.0.1",
|
|
@@ -82,10 +86,10 @@
|
|
|
82
86
|
"@opentelemetry/api": ">=1.3.0 <1.10.0"
|
|
83
87
|
},
|
|
84
88
|
"dependencies": {
|
|
85
|
-
"@opentelemetry/core": "2.
|
|
89
|
+
"@opentelemetry/core": "2.2.0",
|
|
86
90
|
"@opentelemetry/semantic-conventions": "^1.29.0"
|
|
87
91
|
},
|
|
88
92
|
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources",
|
|
89
93
|
"sideEffects": false,
|
|
90
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "fb6476d8243ac8dcaaea74130b9c50c43938275c"
|
|
91
95
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type WidthType = 'fullwidth' | 'halfwidth' | 'wide' | 'narrow' | 'neutral' | 'ambiguous';
|
|
2
|
+
|
|
3
|
+
export type Options = {
|
|
4
|
+
/**
|
|
5
|
+
Whether to treat an `'ambiguous'` character as wide.
|
|
6
|
+
|
|
7
|
+
@default true
|
|
8
|
+
|
|
9
|
+
@example
|
|
10
|
+
```
|
|
11
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
12
|
+
|
|
13
|
+
const codePoint = '⛣'.codePointAt(0);
|
|
14
|
+
|
|
15
|
+
console.log(eastAsianWidth(codePoint));
|
|
16
|
+
//=> 1
|
|
17
|
+
|
|
18
|
+
console.log(eastAsianWidth(codePoint, {ambiguousAsWide: true}));
|
|
19
|
+
//=> 2
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
> Ambiguous characters behave like wide or narrow characters depending on the context (language tag, script identification, associated font, source of data, or explicit markup; all can provide the context). __If the context cannot be established reliably, they should be treated as narrow characters by default.__
|
|
23
|
+
> - http://www.unicode.org/reports/tr11/
|
|
24
|
+
*/
|
|
25
|
+
readonly ambiguousAsWide?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
Returns the width as a number for the given code point.
|
|
30
|
+
|
|
31
|
+
@param codePoint - A Unicode code point.
|
|
32
|
+
|
|
33
|
+
@example
|
|
34
|
+
```
|
|
35
|
+
import {eastAsianWidth} from 'get-east-asian-width';
|
|
36
|
+
|
|
37
|
+
const codePoint = '字'.codePointAt(0);
|
|
38
|
+
|
|
39
|
+
console.log(eastAsianWidth(codePoint));
|
|
40
|
+
//=> 2
|
|
41
|
+
```
|
|
42
|
+
*/
|
|
43
|
+
export function eastAsianWidth(codePoint: number, options?: Options): 1 | 2;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
Returns the type of “East Asian Width” for the given code point.
|
|
47
|
+
|
|
48
|
+
@param codePoint - A Unicode code point.
|
|
49
|
+
|
|
50
|
+
@example
|
|
51
|
+
```
|
|
52
|
+
import {eastAsianWidthType} from 'get-east-asian-width';
|
|
53
|
+
|
|
54
|
+
const codePoint = '字'.codePointAt(0);
|
|
55
|
+
|
|
56
|
+
console.log(eastAsianWidthType(codePoint));
|
|
57
|
+
//=> 'wide'
|
|
58
|
+
```
|
|
59
|
+
*/
|
|
60
|
+
export function eastAsianWidthType(codePoint: number): WidthType;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {getCategory, isAmbiguous, isFullWidth, isWide} from './lookup.js';
|
|
2
|
+
|
|
3
|
+
function validate(codePoint) {
|
|
4
|
+
if (!Number.isSafeInteger(codePoint)) {
|
|
5
|
+
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function eastAsianWidthType(codePoint) {
|
|
10
|
+
validate(codePoint);
|
|
11
|
+
|
|
12
|
+
return getCategory(codePoint);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function eastAsianWidth(codePoint, {ambiguousAsWide = false} = {}) {
|
|
16
|
+
validate(codePoint);
|
|
17
|
+
|
|
18
|
+
if (
|
|
19
|
+
isFullWidth(codePoint)
|
|
20
|
+
|| isWide(codePoint)
|
|
21
|
+
|| (ambiguousAsWide && isAmbiguous(codePoint))
|
|
22
|
+
) {
|
|
23
|
+
return 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Private exports for https://github.com/sindresorhus/is-fullwidth-code-point
|
|
30
|
+
export {isFullWidth as _isFullWidth, isWide as _isWide} from './lookup.js';
|