@chat-lab/ui 0.1.0-beta.37 → 0.1.0-beta.39
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/_virtual/_commonjsHelpers.cjs +0 -26
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +1 -26
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index.cjs +2 -2
- package/dist/_virtual/index.js +2 -2
- package/dist/_virtual/index2.cjs +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.cjs +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.cjs +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/adk/components/Debug/Events/index.cjs +15 -1
- package/dist/adk/components/Debug/Events/index.cjs.map +1 -1
- package/dist/adk/components/Debug/Events/index.d.ts.map +1 -1
- package/dist/adk/components/Debug/Events/index.js +15 -1
- package/dist/adk/components/Debug/Events/index.js.map +1 -1
- package/dist/adk/components/Debug/Trace/store.cjs +3 -3
- package/dist/adk/components/Debug/Trace/store.cjs.map +1 -1
- package/dist/adk/components/Debug/Trace/store.js +1 -1
- package/dist/adk/components/Debug/Trace/utils.cjs +0 -1
- package/dist/adk/components/Debug/Trace/utils.cjs.map +1 -1
- package/dist/adk/components/Debug/Trace/utils.d.ts.map +1 -1
- package/dist/adk/components/Debug/Trace/utils.js +0 -1
- package/dist/adk/components/Debug/Trace/utils.js.map +1 -1
- package/dist/adk/hooks/useEvents.cjs +14 -7
- package/dist/adk/hooks/useEvents.cjs.map +1 -1
- package/dist/adk/hooks/useEvents.d.ts.map +1 -1
- package/dist/adk/hooks/useEvents.js +12 -5
- package/dist/adk/hooks/useEvents.js.map +1 -1
- package/dist/components/ThreadOptionsMenu.cjs +11 -4
- package/dist/components/ThreadOptionsMenu.cjs.map +1 -1
- package/dist/components/ThreadOptionsMenu.d.ts.map +1 -1
- package/dist/components/ThreadOptionsMenu.js +11 -4
- package/dist/components/ThreadOptionsMenu.js.map +1 -1
- package/dist/components/assistant-ui/markdown-text.cjs +1 -5
- package/dist/components/assistant-ui/markdown-text.cjs.map +1 -1
- package/dist/components/assistant-ui/markdown-text.js +1 -5
- package/dist/components/assistant-ui/markdown-text.js.map +1 -1
- package/dist/components/assistant-ui/thread.cjs +1 -1
- package/dist/components/assistant-ui/thread.cjs.map +1 -1
- package/dist/components/thread-list.cjs +5 -5
- package/dist/components/thread-list.cjs.map +1 -1
- package/dist/index.css +1 -2
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.cjs +0 -18
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js +1 -17
- package/dist/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@3.29.5_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs +1 -1
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.cjs +1 -4
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.cjs.map +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.cjs +1 -1
- package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.js +1 -1
- package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.cjs +1 -1
- package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.cjs +1 -1
- package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.cjs +0 -5
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.js +1 -5
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@17.0.2_react@17.0.2/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.cjs +1 -1
- package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@17.0.2/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/node_modules/@byted/iaas-monitor/lib/common.cjs +55 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/common.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/common.js +52 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/common.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/const.cjs +63 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/const.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/const.js +57 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/const.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs +72 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js +70 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs +65 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js +63 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/monitor.cjs +21 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/monitor.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/monitor.js +19 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/monitor.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs +12 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js +10 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs +15 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js +13 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs +11 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js +9 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs +14 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js +12 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs +31 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js +29 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs +157 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js +155 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs +73 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js +71 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/utils.cjs +195 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/utils.cjs.map +1 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/utils.js +183 -0
- package/dist/node_modules/@byted/iaas-monitor/lib/utils.js.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/basic.cjs +41 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/basic.cjs.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/basic.js +39 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/basic.js.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs +109 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.js +88 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.js.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs +78 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.js +76 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.js.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/fetch.cjs +237 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/fetch.cjs.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/fetch.js +235 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/fetch.js.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs +28 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js +26 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs +34 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.js +31 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.js.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs +13 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs.map +1 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.js +11 -0
- package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/dist/es/index.cjs +445 -0
- package/dist/node_modules/@byted-paas/vfetch/dist/es/index.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/dist/es/index.js +442 -0
- package/dist/node_modules/@byted-paas/vfetch/dist/es/index.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs +12 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs +40 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +38 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs +10 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +8 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs +24 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js +22 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs +23 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js +21 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs +11 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +9 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs +24 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js +22 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs +8 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +6 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +17 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +15 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs +17 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +15 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +12 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs +14 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs +43 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +41 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs +365 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +363 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs +22 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js +20 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs +25 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js +23 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs +14 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js +12 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs +23 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js +21 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs +21 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js +19 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs +22 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js +20 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +137 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +134 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs +63 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js +61 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs +236 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js +232 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs +26 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js +24 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs +87 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js +82 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs +19 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js +16 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs +11 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js +9 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs +235 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js +233 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs +75 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js +73 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs +31 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js +29 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs +133 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js +131 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs +17 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js +15 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs +158 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js +156 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs +59 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js +57 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs +35 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js +33 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs +32 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js +30 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs +96 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js +94 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs +46 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js +44 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs +104 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js +102 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs +39 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js +37 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs +28 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js +26 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs +151 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js +149 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs +16 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js +14 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs +14 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js +12 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs +75 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js +73 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs +26 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js +24 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs +67 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js +65 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +26 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +24 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs +23 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js +21 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +82 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +80 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs +17 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js +15 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs +67 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js +65 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs +39 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js +37 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs +87 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js +85 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs +354 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js +352 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs +173 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs.map +1 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js +171 -0
- package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs +135 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.js +133 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs +29 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js +26 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs +11 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js +11 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs +67 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js +65 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs +11 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js +9 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs +40 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js +38 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs +53 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js +51 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs +197 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js +195 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs +21 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js +19 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs +166 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.js +149 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs +13 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js +8 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs +57 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js +54 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs +114 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js +108 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs +495 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js +493 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs +86 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs.map +1 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js +80 -0
- package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js.map +1 -0
- package/dist/node_modules/@slardar/integrations/dist/action.cjs +982 -0
- package/dist/node_modules/@slardar/integrations/dist/action.cjs.map +1 -0
- package/dist/node_modules/@slardar/integrations/dist/action.js +980 -0
- package/dist/node_modules/@slardar/integrations/dist/action.js.map +1 -0
- package/dist/node_modules/@slardar/integrations/dist/captureConsole.cjs +162 -0
- package/dist/node_modules/@slardar/integrations/dist/captureConsole.cjs.map +1 -0
- package/dist/node_modules/@slardar/integrations/dist/captureConsole.js +160 -0
- package/dist/node_modules/@slardar/integrations/dist/captureConsole.js.map +1 -0
- package/dist/node_modules/@slardar/integrations/dist/heatmap.cjs +534 -0
- package/dist/node_modules/@slardar/integrations/dist/heatmap.cjs.map +1 -0
- package/dist/node_modules/@slardar/integrations/dist/heatmap.js +532 -0
- package/dist/node_modules/@slardar/integrations/dist/heatmap.js.map +1 -0
- package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +139 -0
- package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
- package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +137 -0
- package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
- package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
- package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
- package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
- package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/dist/packages/core/dist/index.cjs +8 -11
- package/dist/packages/core/dist/index.cjs.map +1 -1
- package/dist/packages/core/dist/index.js +0 -3
- package/dist/packages/core/dist/index.js.map +1 -1
- package/dist/plugins/adkPlugin.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var utils = require('../utils.cjs');
|
|
4
|
+
var _const = require('../const.cjs');
|
|
5
|
+
var index = require('../loadSlardar/index.cjs');
|
|
6
|
+
var common = require('../common.cjs');
|
|
7
|
+
|
|
8
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
9
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
10
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
14
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
const __SlardarLiteMap = {};
|
|
18
|
+
const awaitInitSlardar = () => {
|
|
19
|
+
return new Promise((resolve, reject) => {
|
|
20
|
+
var _a;
|
|
21
|
+
(_a = window[_const.GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'on', 'init', () => {
|
|
22
|
+
resolve(true);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
class SlardarWebLite {
|
|
27
|
+
/**
|
|
28
|
+
* 实例化时将保持实例信息,根据 bid_pid 为唯一key, 后续调用时无需重复实例化
|
|
29
|
+
* 相对于常规版,屏蔽了所有插件,仅能通过手动上报
|
|
30
|
+
* @param options
|
|
31
|
+
*/
|
|
32
|
+
constructor(options) {
|
|
33
|
+
this.options = options;
|
|
34
|
+
this.init = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
var _a, _b, _c;
|
|
36
|
+
const bid = options.bid || 'unknown-bid';
|
|
37
|
+
const pid = options.pid || '';
|
|
38
|
+
const k = `${bid}_${pid}`;
|
|
39
|
+
if (!utils.isVolcEngine()) {
|
|
40
|
+
console.info('slardar-lite 仅支持火山引擎环境');
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!((_a = window[_const.GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create)) {
|
|
44
|
+
yield index.loadSlardar();
|
|
45
|
+
}
|
|
46
|
+
// 等待 slardar 初始化完成
|
|
47
|
+
yield awaitInitSlardar();
|
|
48
|
+
if (!__SlardarLiteMap[k]) {
|
|
49
|
+
__SlardarLiteMap[k] = (_c = (_b = window[_const.GlobalSlardarName]) === null || _b === void 0 ? void 0 : _b.create) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
50
|
+
}
|
|
51
|
+
this.client = __SlardarLiteMap[k];
|
|
52
|
+
if (!this.client) {
|
|
53
|
+
console.warn('slardar-lite 初始化失败');
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
// 使用按需引入
|
|
57
|
+
this.client('init', Object.assign({ env: utils.getEnv(), userId: utils.getAccountIdFromGlobal(), plugins: {
|
|
58
|
+
pageview: false,
|
|
59
|
+
jsError: false,
|
|
60
|
+
breadcrumb: false,
|
|
61
|
+
resource: false,
|
|
62
|
+
resourceError: false,
|
|
63
|
+
ajax: false,
|
|
64
|
+
fetch: false,
|
|
65
|
+
performance: false,
|
|
66
|
+
fmp: false,
|
|
67
|
+
tti: false,
|
|
68
|
+
} }, options));
|
|
69
|
+
this.client('start');
|
|
70
|
+
});
|
|
71
|
+
/**
|
|
72
|
+
* 上报自定义事件
|
|
73
|
+
* @param name
|
|
74
|
+
* @param metrics 指标
|
|
75
|
+
* @param categories 维度
|
|
76
|
+
*/
|
|
77
|
+
this.logEvent = (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, metrics = {}, categories = {}) {
|
|
78
|
+
var _a;
|
|
79
|
+
if (!this.client) {
|
|
80
|
+
yield this.init(this.options);
|
|
81
|
+
}
|
|
82
|
+
const commonParams = this.getCommonReportParams();
|
|
83
|
+
(_a = this.client) === null || _a === void 0 ? void 0 : _a.call(this, 'sendEvent', {
|
|
84
|
+
name: name,
|
|
85
|
+
metrics: metrics,
|
|
86
|
+
categories: Object.assign(Object.assign({}, commonParams), categories),
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* 上报错误日志
|
|
91
|
+
* @param name 错误分类,定义尽量明确,不包含变量
|
|
92
|
+
* @param message 错误详细信息
|
|
93
|
+
* @param err 错误对象
|
|
94
|
+
* @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效
|
|
95
|
+
* 使用 captureException 方法上报的错误,会自动带上错误堆栈信息,无需手动传入堆栈信息。
|
|
96
|
+
*/
|
|
97
|
+
this.error = (name, message, err, extra) => __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
if (!this.client) {
|
|
99
|
+
yield this.init(this.options);
|
|
100
|
+
}
|
|
101
|
+
const commonParams = this.getCommonReportParams();
|
|
102
|
+
return common.loggerError(this.client, name, message, err, Object.assign(Object.assign({}, (extra || {})), commonParams));
|
|
103
|
+
});
|
|
104
|
+
/**
|
|
105
|
+
* 上报警告日志
|
|
106
|
+
* @param name 警告分类,定义尽量明确,不包含变量
|
|
107
|
+
* @param message 警告详细信息
|
|
108
|
+
* @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效
|
|
109
|
+
*/
|
|
110
|
+
this.warn = (name, message, extra) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
if (!this.client) {
|
|
112
|
+
yield this.init(this.options);
|
|
113
|
+
}
|
|
114
|
+
const commonParams = this.getCommonReportParams();
|
|
115
|
+
return common.loggerWarn(this.client, name, message, Object.assign(Object.assign({}, (extra || {})), commonParams));
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* 更新配置
|
|
119
|
+
* @param config
|
|
120
|
+
*/
|
|
121
|
+
this.updateConfig = (config) => __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
var _a;
|
|
123
|
+
if (!this.client) {
|
|
124
|
+
yield this.init(this.options);
|
|
125
|
+
}
|
|
126
|
+
(_a = this.client) === null || _a === void 0 ? void 0 : _a.config(config);
|
|
127
|
+
});
|
|
128
|
+
/**
|
|
129
|
+
* 获取公共上报参数
|
|
130
|
+
* @returns
|
|
131
|
+
*/
|
|
132
|
+
this.getCommonReportParams = () => {
|
|
133
|
+
if (!this.client) {
|
|
134
|
+
return {
|
|
135
|
+
url: '',
|
|
136
|
+
region: '',
|
|
137
|
+
pathname: '',
|
|
138
|
+
pPid: '',
|
|
139
|
+
pathApp: '',
|
|
140
|
+
subUserId: '',
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
url: window.location.href,
|
|
145
|
+
region: utils.getRegionFromPathname(),
|
|
146
|
+
pathname: window.location.pathname,
|
|
147
|
+
pPid: utils.extractPid(window.location.pathname),
|
|
148
|
+
pathApp: utils.getAppFromPathname(),
|
|
149
|
+
subUserId: utils.getUserIdFromGlobal(),
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
this.init(options);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
exports.SlardarWebLite = SlardarWebLite;
|
|
157
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getAppFromPathname, getEnv, getRegionFromPathname, getUserIdFromGlobal, extractPid, getAccountIdFromGlobal } from '../utils';\nimport { isVolcEngine } from '../utils';\nimport { GlobalSlardarName } from '../const';\nimport { loadSlardar } from '../loadSlardar';\nimport { loggerError, loggerWarn } from '../common';\nconst __SlardarLiteMap = {};\nconst awaitInitSlardar = () => {\n return new Promise((resolve, reject) => {\n var _a;\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'on', 'init', () => {\n resolve(true);\n });\n });\n};\nexport class SlardarWebLite {\n /**\n * 实例化时将保持实例信息,根据 bid_pid 为唯一key, 后续调用时无需重复实例化\n * 相对于常规版,屏蔽了所有插件,仅能通过手动上报\n * @param options\n */\n constructor(options) {\n this.options = options;\n this.init = (options) => __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c;\n const bid = options.bid || 'unknown-bid';\n const pid = options.pid || '';\n const k = `${bid}_${pid}`;\n if (!isVolcEngine()) {\n console.info('slardar-lite 仅支持火山引擎环境');\n return;\n }\n if (!((_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create)) {\n yield loadSlardar();\n }\n // 等待 slardar 初始化完成\n yield awaitInitSlardar();\n if (!__SlardarLiteMap[k]) {\n __SlardarLiteMap[k] = (_c = (_b = window[GlobalSlardarName]) === null || _b === void 0 ? void 0 : _b.create) === null || _c === void 0 ? void 0 : _c.call(_b);\n }\n this.client = __SlardarLiteMap[k];\n if (!this.client) {\n console.warn('slardar-lite 初始化失败');\n return;\n }\n // 使用按需引入\n this.client('init', Object.assign({ env: getEnv(), userId: getAccountIdFromGlobal(), plugins: {\n pageview: false,\n jsError: false,\n breadcrumb: false,\n resource: false,\n resourceError: false,\n ajax: false,\n fetch: false,\n performance: false,\n fmp: false,\n tti: false,\n } }, options));\n this.client('start');\n });\n /**\n * 上报自定义事件\n * @param name\n * @param metrics 指标\n * @param categories 维度\n */\n this.logEvent = (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, metrics = {}, categories = {}) {\n var _a;\n if (!this.client) {\n yield this.init(this.options);\n }\n const commonParams = this.getCommonReportParams();\n (_a = this.client) === null || _a === void 0 ? void 0 : _a.call(this, 'sendEvent', {\n name: name,\n metrics: metrics,\n categories: Object.assign(Object.assign({}, commonParams), categories),\n });\n });\n /**\n * 上报错误日志\n * @param name 错误分类,定义尽量明确,不包含变量\n * @param message 错误详细信息\n * @param err 错误对象\n * @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效\n * 使用 captureException 方法上报的错误,会自动带上错误堆栈信息,无需手动传入堆栈信息。\n */\n this.error = (name, message, err, extra) => __awaiter(this, void 0, void 0, function* () {\n if (!this.client) {\n yield this.init(this.options);\n }\n const commonParams = this.getCommonReportParams();\n return loggerError(this.client, name, message, err, Object.assign(Object.assign({}, (extra || {})), commonParams));\n });\n /**\n * 上报警告日志\n * @param name 警告分类,定义尽量明确,不包含变量\n * @param message 警告详细信息\n * @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效\n */\n this.warn = (name, message, extra) => __awaiter(this, void 0, void 0, function* () {\n if (!this.client) {\n yield this.init(this.options);\n }\n const commonParams = this.getCommonReportParams();\n return loggerWarn(this.client, name, message, Object.assign(Object.assign({}, (extra || {})), commonParams));\n });\n /**\n * 更新配置\n * @param config\n */\n this.updateConfig = (config) => __awaiter(this, void 0, void 0, function* () {\n var _a;\n if (!this.client) {\n yield this.init(this.options);\n }\n (_a = this.client) === null || _a === void 0 ? void 0 : _a.config(config);\n });\n /**\n * 获取公共上报参数\n * @returns\n */\n this.getCommonReportParams = () => {\n if (!this.client) {\n return {\n url: '',\n region: '',\n pathname: '',\n pPid: '',\n pathApp: '',\n subUserId: '',\n };\n }\n return {\n url: window.location.href,\n region: getRegionFromPathname(),\n pathname: window.location.pathname,\n pPid: extractPid(window.location.pathname),\n pathApp: getAppFromPathname(),\n subUserId: getUserIdFromGlobal(),\n };\n };\n this.init(options);\n }\n}\n"],"names":["this","GlobalSlardarName","isVolcEngine","loadSlardar","getEnv","getAccountIdFromGlobal","loggerError","loggerWarn","getRegionFromPathname","extractPid","getAppFromPathname","getUserIdFromGlobal"],"mappings":";;;;;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAA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gB,OAAO;AACvB,oBAAoB,GAAG,EAAE,EAAE;AAC3B,oBAAoB,MAAM,EAAE,EAAE;AAC9B,oBAAoB,QAAQ,EAAE,EAAE;AAChC,oBAAoB,IAAI,EAAE,EAAE;AAC5B,oBAAoB,OAAO,EAAE,EAAE;AAC/B,oBAAoB,SAAS,EAAE,EAAE;AACjC,iBAAiB,CAAC;AAClB,aAAa;AACb,YAAY,OAAO;AACnB,gBAAgB,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI;AACzC,gBAAgB,MAAM,EAAEC,2BAAqB,EAAE;AAC/C,gBAAgB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;AAClD,gBAAgB,IAAI,EAAEC,gBAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;AAC1D,gBAAgB,OAAO,EAAEC,wBAAkB,EAAE;AAC7C,gBAAgB,SAAS,EAAEC,yBAAmB,EAAE;AAChD,aAAa,CAAC;AACd,SAAS,CAAC;AACV,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3B,KAAK;AACL;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { isVolcEngine, getEnv, getAccountIdFromGlobal, getRegionFromPathname, extractPid, getAppFromPathname, getUserIdFromGlobal } from '../utils.js';
|
|
2
|
+
import { GlobalSlardarName } from '../const.js';
|
|
3
|
+
import { loadSlardar } from '../loadSlardar/index.js';
|
|
4
|
+
import { loggerError, loggerWarn } from '../common.js';
|
|
5
|
+
|
|
6
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
11
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
12
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
const __SlardarLiteMap = {};
|
|
16
|
+
const awaitInitSlardar = () => {
|
|
17
|
+
return new Promise((resolve, reject) => {
|
|
18
|
+
var _a;
|
|
19
|
+
(_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'on', 'init', () => {
|
|
20
|
+
resolve(true);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
class SlardarWebLite {
|
|
25
|
+
/**
|
|
26
|
+
* 实例化时将保持实例信息,根据 bid_pid 为唯一key, 后续调用时无需重复实例化
|
|
27
|
+
* 相对于常规版,屏蔽了所有插件,仅能通过手动上报
|
|
28
|
+
* @param options
|
|
29
|
+
*/
|
|
30
|
+
constructor(options) {
|
|
31
|
+
this.options = options;
|
|
32
|
+
this.init = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
var _a, _b, _c;
|
|
34
|
+
const bid = options.bid || 'unknown-bid';
|
|
35
|
+
const pid = options.pid || '';
|
|
36
|
+
const k = `${bid}_${pid}`;
|
|
37
|
+
if (!isVolcEngine()) {
|
|
38
|
+
console.info('slardar-lite 仅支持火山引擎环境');
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (!((_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create)) {
|
|
42
|
+
yield loadSlardar();
|
|
43
|
+
}
|
|
44
|
+
// 等待 slardar 初始化完成
|
|
45
|
+
yield awaitInitSlardar();
|
|
46
|
+
if (!__SlardarLiteMap[k]) {
|
|
47
|
+
__SlardarLiteMap[k] = (_c = (_b = window[GlobalSlardarName]) === null || _b === void 0 ? void 0 : _b.create) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
48
|
+
}
|
|
49
|
+
this.client = __SlardarLiteMap[k];
|
|
50
|
+
if (!this.client) {
|
|
51
|
+
console.warn('slardar-lite 初始化失败');
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
// 使用按需引入
|
|
55
|
+
this.client('init', Object.assign({ env: getEnv(), userId: getAccountIdFromGlobal(), plugins: {
|
|
56
|
+
pageview: false,
|
|
57
|
+
jsError: false,
|
|
58
|
+
breadcrumb: false,
|
|
59
|
+
resource: false,
|
|
60
|
+
resourceError: false,
|
|
61
|
+
ajax: false,
|
|
62
|
+
fetch: false,
|
|
63
|
+
performance: false,
|
|
64
|
+
fmp: false,
|
|
65
|
+
tti: false,
|
|
66
|
+
} }, options));
|
|
67
|
+
this.client('start');
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* 上报自定义事件
|
|
71
|
+
* @param name
|
|
72
|
+
* @param metrics 指标
|
|
73
|
+
* @param categories 维度
|
|
74
|
+
*/
|
|
75
|
+
this.logEvent = (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, metrics = {}, categories = {}) {
|
|
76
|
+
var _a;
|
|
77
|
+
if (!this.client) {
|
|
78
|
+
yield this.init(this.options);
|
|
79
|
+
}
|
|
80
|
+
const commonParams = this.getCommonReportParams();
|
|
81
|
+
(_a = this.client) === null || _a === void 0 ? void 0 : _a.call(this, 'sendEvent', {
|
|
82
|
+
name: name,
|
|
83
|
+
metrics: metrics,
|
|
84
|
+
categories: Object.assign(Object.assign({}, commonParams), categories),
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* 上报错误日志
|
|
89
|
+
* @param name 错误分类,定义尽量明确,不包含变量
|
|
90
|
+
* @param message 错误详细信息
|
|
91
|
+
* @param err 错误对象
|
|
92
|
+
* @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效
|
|
93
|
+
* 使用 captureException 方法上报的错误,会自动带上错误堆栈信息,无需手动传入堆栈信息。
|
|
94
|
+
*/
|
|
95
|
+
this.error = (name, message, err, extra) => __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
if (!this.client) {
|
|
97
|
+
yield this.init(this.options);
|
|
98
|
+
}
|
|
99
|
+
const commonParams = this.getCommonReportParams();
|
|
100
|
+
return loggerError(this.client, name, message, err, Object.assign(Object.assign({}, (extra || {})), commonParams));
|
|
101
|
+
});
|
|
102
|
+
/**
|
|
103
|
+
* 上报警告日志
|
|
104
|
+
* @param name 警告分类,定义尽量明确,不包含变量
|
|
105
|
+
* @param message 警告详细信息
|
|
106
|
+
* @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效
|
|
107
|
+
*/
|
|
108
|
+
this.warn = (name, message, extra) => __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
if (!this.client) {
|
|
110
|
+
yield this.init(this.options);
|
|
111
|
+
}
|
|
112
|
+
const commonParams = this.getCommonReportParams();
|
|
113
|
+
return loggerWarn(this.client, name, message, Object.assign(Object.assign({}, (extra || {})), commonParams));
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* 更新配置
|
|
117
|
+
* @param config
|
|
118
|
+
*/
|
|
119
|
+
this.updateConfig = (config) => __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
var _a;
|
|
121
|
+
if (!this.client) {
|
|
122
|
+
yield this.init(this.options);
|
|
123
|
+
}
|
|
124
|
+
(_a = this.client) === null || _a === void 0 ? void 0 : _a.config(config);
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* 获取公共上报参数
|
|
128
|
+
* @returns
|
|
129
|
+
*/
|
|
130
|
+
this.getCommonReportParams = () => {
|
|
131
|
+
if (!this.client) {
|
|
132
|
+
return {
|
|
133
|
+
url: '',
|
|
134
|
+
region: '',
|
|
135
|
+
pathname: '',
|
|
136
|
+
pPid: '',
|
|
137
|
+
pathApp: '',
|
|
138
|
+
subUserId: '',
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
url: window.location.href,
|
|
143
|
+
region: getRegionFromPathname(),
|
|
144
|
+
pathname: window.location.pathname,
|
|
145
|
+
pPid: extractPid(window.location.pathname),
|
|
146
|
+
pathApp: getAppFromPathname(),
|
|
147
|
+
subUserId: getUserIdFromGlobal(),
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
this.init(options);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export { SlardarWebLite };
|
|
155
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { getAppFromPathname, getEnv, getRegionFromPathname, getUserIdFromGlobal, extractPid, getAccountIdFromGlobal } from '../utils';\nimport { isVolcEngine } from '../utils';\nimport { GlobalSlardarName } from '../const';\nimport { loadSlardar } from '../loadSlardar';\nimport { loggerError, loggerWarn } from '../common';\nconst __SlardarLiteMap = {};\nconst awaitInitSlardar = () => {\n return new Promise((resolve, reject) => {\n var _a;\n (_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.call(window, 'on', 'init', () => {\n resolve(true);\n });\n });\n};\nexport class SlardarWebLite {\n /**\n * 实例化时将保持实例信息,根据 bid_pid 为唯一key, 后续调用时无需重复实例化\n * 相对于常规版,屏蔽了所有插件,仅能通过手动上报\n * @param options\n */\n constructor(options) {\n this.options = options;\n this.init = (options) => __awaiter(this, void 0, void 0, function* () {\n var _a, _b, _c;\n const bid = options.bid || 'unknown-bid';\n const pid = options.pid || '';\n const k = `${bid}_${pid}`;\n if (!isVolcEngine()) {\n console.info('slardar-lite 仅支持火山引擎环境');\n return;\n }\n if (!((_a = window[GlobalSlardarName]) === null || _a === void 0 ? void 0 : _a.create)) {\n yield loadSlardar();\n }\n // 等待 slardar 初始化完成\n yield awaitInitSlardar();\n if (!__SlardarLiteMap[k]) {\n __SlardarLiteMap[k] = (_c = (_b = window[GlobalSlardarName]) === null || _b === void 0 ? void 0 : _b.create) === null || _c === void 0 ? void 0 : _c.call(_b);\n }\n this.client = __SlardarLiteMap[k];\n if (!this.client) {\n console.warn('slardar-lite 初始化失败');\n return;\n }\n // 使用按需引入\n this.client('init', Object.assign({ env: getEnv(), userId: getAccountIdFromGlobal(), plugins: {\n pageview: false,\n jsError: false,\n breadcrumb: false,\n resource: false,\n resourceError: false,\n ajax: false,\n fetch: false,\n performance: false,\n fmp: false,\n tti: false,\n } }, options));\n this.client('start');\n });\n /**\n * 上报自定义事件\n * @param name\n * @param metrics 指标\n * @param categories 维度\n */\n this.logEvent = (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, metrics = {}, categories = {}) {\n var _a;\n if (!this.client) {\n yield this.init(this.options);\n }\n const commonParams = this.getCommonReportParams();\n (_a = this.client) === null || _a === void 0 ? void 0 : _a.call(this, 'sendEvent', {\n name: name,\n metrics: metrics,\n categories: Object.assign(Object.assign({}, commonParams), categories),\n });\n });\n /**\n * 上报错误日志\n * @param name 错误分类,定义尽量明确,不包含变量\n * @param message 错误详细信息\n * @param err 错误对象\n * @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效\n * 使用 captureException 方法上报的错误,会自动带上错误堆栈信息,无需手动传入堆栈信息。\n */\n this.error = (name, message, err, extra) => __awaiter(this, void 0, void 0, function* () {\n if (!this.client) {\n yield this.init(this.options);\n }\n const commonParams = this.getCommonReportParams();\n return loggerError(this.client, name, message, err, Object.assign(Object.assign({}, (extra || {})), commonParams));\n });\n /**\n * 上报警告日志\n * @param name 警告分类,定义尽量明确,不包含变量\n * @param message 警告详细信息\n * @param extra 额外信息 请注意kv值,值为string会归类到categories作为分类维度,值为Number会归类到 metrics,其他值无效\n */\n this.warn = (name, message, extra) => __awaiter(this, void 0, void 0, function* () {\n if (!this.client) {\n yield this.init(this.options);\n }\n const commonParams = this.getCommonReportParams();\n return loggerWarn(this.client, name, message, Object.assign(Object.assign({}, (extra || {})), commonParams));\n });\n /**\n * 更新配置\n * @param config\n */\n this.updateConfig = (config) => __awaiter(this, void 0, void 0, function* () {\n var _a;\n if (!this.client) {\n yield this.init(this.options);\n }\n (_a = this.client) === null || _a === void 0 ? void 0 : _a.config(config);\n });\n /**\n * 获取公共上报参数\n * @returns\n */\n this.getCommonReportParams = () => {\n if (!this.client) {\n return {\n url: '',\n region: '',\n pathname: '',\n pPid: '',\n pathApp: '',\n subUserId: '',\n };\n }\n return {\n url: window.location.href,\n region: getRegionFromPathname(),\n pathname: window.location.pathname,\n pPid: extractPid(window.location.pathname),\n pathApp: getAppFromPathname(),\n subUserId: getUserIdFromGlobal(),\n };\n };\n this.init(options);\n }\n}\n"],"names":["this"],"mappings":";;;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,UAAU,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE;AACzF,IAAI,SAAS,KAAK,CAAC,KAAK,EAAE,EAAE,OAAO,KAAK,YAAY,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,OAAO,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAChH,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,EAAE,UAAU,OAAO,EAAE,MAAM,EAAE;AAC/D,QAAQ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AAoB,QAAQ,EAAE,EAAE;AAChC,oBAAoB,IAAI,EAAE,EAAE;AAC5B,oBAAoB,OAAO,EAAE,EAAE;AAC/B,oBAAoB,SAAS,EAAE,EAAE;AACjC,iBAAiB,CAAC;AAClB,aAAa;AACb,YAAY,OAAO;AACnB,gBAAgB,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI;AACzC,gBAAgB,MAAM,EAAE,qBAAqB,EAAE;AAC/C,gBAAgB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;AAClD,gBAAgB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;AAC1D,gBAAgB,OAAO,EAAE,kBAAkB,EAAE;AAC7C,gBAAgB,SAAS,EAAE,mBAAmB,EAAE;AAChD,aAAa,CAAC;AACd,SAAS,CAAC;AACV,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3B,KAAK;AACL;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 创建一个代理对象,用于处理初始化状态的检查
|
|
5
|
+
* @param initialTarget 初始目标对象或函数
|
|
6
|
+
* @param options 选项
|
|
7
|
+
* @returns 代理对象和更新目标对象的方法
|
|
8
|
+
*/
|
|
9
|
+
function createProxyWithQueue(initialTarget = {}, options = {
|
|
10
|
+
checkInitialized: (target) => true,
|
|
11
|
+
}) {
|
|
12
|
+
const pendingCalls = [];
|
|
13
|
+
const checkInitialized = options.checkInitialized;
|
|
14
|
+
let proxyTarget = initialTarget;
|
|
15
|
+
// 统一代理,使用函数作为代理目标以支持 apply trap
|
|
16
|
+
const proxy = new Proxy(function () { }, {
|
|
17
|
+
// 处理属性访问
|
|
18
|
+
get(_, prop) {
|
|
19
|
+
return (...args) => {
|
|
20
|
+
var _a, _b;
|
|
21
|
+
if (!checkInitialized(proxyTarget)) {
|
|
22
|
+
pendingCalls.push({ method: prop, args });
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
return (_b = (_a = proxyTarget)[prop]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
// 处理函数调用
|
|
30
|
+
apply(_, thisArg, argArray) {
|
|
31
|
+
if (!checkInitialized(proxyTarget)) {
|
|
32
|
+
// 如果未初始化,将函数调用加入队列
|
|
33
|
+
pendingCalls.push({
|
|
34
|
+
method: '__DIRECT_CALL__',
|
|
35
|
+
args: argArray,
|
|
36
|
+
isDirectCall: true
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
else if (typeof proxyTarget === 'function') {
|
|
40
|
+
// 如果已初始化且目标是函数,直接调用
|
|
41
|
+
return proxyTarget.apply(thisArg, argArray);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
// 更新目标对象并执行待处理的调用
|
|
46
|
+
const updateTarget = (newTarget) => {
|
|
47
|
+
proxyTarget = newTarget;
|
|
48
|
+
try {
|
|
49
|
+
pendingCalls.forEach(({ method, args, isDirectCall }) => {
|
|
50
|
+
var _a, _b;
|
|
51
|
+
if (isDirectCall && typeof proxyTarget === 'function') {
|
|
52
|
+
// 执行直接函数调用
|
|
53
|
+
proxyTarget(...args);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
// 执行方法调用
|
|
57
|
+
(_b = (_a = proxyTarget)[method]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
pendingCalls.length = 0;
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
console.error(error);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return {
|
|
67
|
+
proxy,
|
|
68
|
+
updateTarget,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
exports.createProxyWithQueue = createProxyWithQueue;
|
|
73
|
+
//# sourceMappingURL=proxy.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.cjs","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js"],"sourcesContent":["/**\n * 创建一个代理对象,用于处理初始化状态的检查\n * @param initialTarget 初始目标对象或函数\n * @param options 选项\n * @returns 代理对象和更新目标对象的方法\n */\nexport function createProxyWithQueue(initialTarget = {}, options = {\n checkInitialized: (target) => true,\n}) {\n const pendingCalls = [];\n const checkInitialized = options.checkInitialized;\n let proxyTarget = initialTarget;\n // 统一代理,使用函数作为代理目标以支持 apply trap\n const proxy = new Proxy(function () { }, {\n // 处理属性访问\n get(_, prop) {\n return (...args) => {\n var _a, _b;\n if (!checkInitialized(proxyTarget)) {\n pendingCalls.push({ method: prop, args });\n }\n else {\n return (_b = (_a = proxyTarget)[prop]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);\n }\n };\n },\n // 处理函数调用\n apply(_, thisArg, argArray) {\n if (!checkInitialized(proxyTarget)) {\n // 如果未初始化,将函数调用加入队列\n pendingCalls.push({\n method: '__DIRECT_CALL__',\n args: argArray,\n isDirectCall: true\n });\n }\n else if (typeof proxyTarget === 'function') {\n // 如果已初始化且目标是函数,直接调用\n return proxyTarget.apply(thisArg, argArray);\n }\n },\n });\n // 更新目标对象并执行待处理的调用\n const updateTarget = (newTarget) => {\n proxyTarget = newTarget;\n try {\n pendingCalls.forEach(({ method, args, isDirectCall }) => {\n var _a, _b;\n if (isDirectCall && typeof proxyTarget === 'function') {\n // 执行直接函数调用\n proxyTarget(...args);\n }\n else {\n // 执行方法调用\n (_b = (_a = proxyTarget)[method]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);\n }\n });\n pendingCalls.length = 0;\n }\n catch (error) {\n console.error(error);\n }\n };\n return {\n proxy,\n updateTarget,\n };\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA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iBAAiB,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;AACxD;AACA,gBAAgB,OAAO,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC5D,aAAa;AACb,SAAS;AACT,KAAK,CAAC,CAAC;AACP;AACA,IAAI,MAAM,YAAY,GAAG,CAAC,SAAS,KAAK;AACxC,QAAQ,WAAW,GAAG,SAAS,CAAC;AAChC,QAAQ,IAAI;AACZ,YAAY,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK;AACrE,gBAAgB,IAAI,EAAE,EAAE,EAAE,CAAC;AAC3B,gBAAgB,IAAI,YAAY,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;AACvE;AACA,oBAAoB,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;AACzC,iBAAiB;AACjB,qBAAqB;AACrB;AACA,oBAAoB,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,WAAW,EAAE,MAAM,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;AAChH,iBAAiB;AACjB,aAAa,CAAC,CAAC;AACf,YAAY,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,QAAQ,OAAO,KAAK,EAAE;AACtB,YAAY,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACjC,SAAS;AACT,KAAK,CAAC;AACN,IAAI,OAAO;AACX,QAAQ,KAAK;AACb,QAAQ,YAAY;AACpB,KAAK,CAAC;AACN;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 创建一个代理对象,用于处理初始化状态的检查
|
|
3
|
+
* @param initialTarget 初始目标对象或函数
|
|
4
|
+
* @param options 选项
|
|
5
|
+
* @returns 代理对象和更新目标对象的方法
|
|
6
|
+
*/
|
|
7
|
+
function createProxyWithQueue(initialTarget = {}, options = {
|
|
8
|
+
checkInitialized: (target) => true,
|
|
9
|
+
}) {
|
|
10
|
+
const pendingCalls = [];
|
|
11
|
+
const checkInitialized = options.checkInitialized;
|
|
12
|
+
let proxyTarget = initialTarget;
|
|
13
|
+
// 统一代理,使用函数作为代理目标以支持 apply trap
|
|
14
|
+
const proxy = new Proxy(function () { }, {
|
|
15
|
+
// 处理属性访问
|
|
16
|
+
get(_, prop) {
|
|
17
|
+
return (...args) => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
if (!checkInitialized(proxyTarget)) {
|
|
20
|
+
pendingCalls.push({ method: prop, args });
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return (_b = (_a = proxyTarget)[prop]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
// 处理函数调用
|
|
28
|
+
apply(_, thisArg, argArray) {
|
|
29
|
+
if (!checkInitialized(proxyTarget)) {
|
|
30
|
+
// 如果未初始化,将函数调用加入队列
|
|
31
|
+
pendingCalls.push({
|
|
32
|
+
method: '__DIRECT_CALL__',
|
|
33
|
+
args: argArray,
|
|
34
|
+
isDirectCall: true
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
else if (typeof proxyTarget === 'function') {
|
|
38
|
+
// 如果已初始化且目标是函数,直接调用
|
|
39
|
+
return proxyTarget.apply(thisArg, argArray);
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
// 更新目标对象并执行待处理的调用
|
|
44
|
+
const updateTarget = (newTarget) => {
|
|
45
|
+
proxyTarget = newTarget;
|
|
46
|
+
try {
|
|
47
|
+
pendingCalls.forEach(({ method, args, isDirectCall }) => {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
if (isDirectCall && typeof proxyTarget === 'function') {
|
|
50
|
+
// 执行直接函数调用
|
|
51
|
+
proxyTarget(...args);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
// 执行方法调用
|
|
55
|
+
(_b = (_a = proxyTarget)[method]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
pendingCalls.length = 0;
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
console.error(error);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
proxy,
|
|
66
|
+
updateTarget,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { createProxyWithQueue };
|
|
71
|
+
//# sourceMappingURL=proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.js","sources":["../../../../../../../../node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js"],"sourcesContent":["/**\n * 创建一个代理对象,用于处理初始化状态的检查\n * @param initialTarget 初始目标对象或函数\n * @param options 选项\n * @returns 代理对象和更新目标对象的方法\n */\nexport function createProxyWithQueue(initialTarget = {}, options = {\n checkInitialized: (target) => true,\n}) {\n const pendingCalls = [];\n const checkInitialized = options.checkInitialized;\n let proxyTarget = initialTarget;\n // 统一代理,使用函数作为代理目标以支持 apply trap\n const proxy = new Proxy(function () { }, {\n // 处理属性访问\n get(_, prop) {\n return (...args) => {\n var _a, _b;\n if (!checkInitialized(proxyTarget)) {\n pendingCalls.push({ method: prop, args });\n }\n else {\n return (_b = (_a = proxyTarget)[prop]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);\n }\n };\n },\n // 处理函数调用\n apply(_, thisArg, argArray) {\n if (!checkInitialized(proxyTarget)) {\n // 如果未初始化,将函数调用加入队列\n pendingCalls.push({\n method: '__DIRECT_CALL__',\n args: argArray,\n isDirectCall: true\n });\n }\n else if (typeof proxyTarget === 'function') {\n // 如果已初始化且目标是函数,直接调用\n return proxyTarget.apply(thisArg, argArray);\n }\n },\n });\n // 更新目标对象并执行待处理的调用\n const updateTarget = (newTarget) => {\n proxyTarget = newTarget;\n try {\n pendingCalls.forEach(({ method, args, isDirectCall }) => {\n var _a, _b;\n if (isDirectCall && typeof proxyTarget === 'function') {\n // 执行直接函数调用\n proxyTarget(...args);\n }\n else {\n // 执行方法调用\n (_b = (_a = proxyTarget)[method]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);\n }\n });\n pendingCalls.length = 0;\n }\n catch (error) {\n console.error(error);\n }\n };\n return {\n proxy,\n updateTarget,\n };\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAoB,CAAC,aAAa,GAAG,EAAE,EAAE,OAAO,GAAG;AACnE,IAAI,gBAAgB,EAAE,CAAC,MAAM,KAAK,IAAI;AACtC,CAAC,EAAE;AACH,IAAI,MAAM,YAAY,GAAG,EAAE,CAAC;AAC5B,IAAI,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;AACtD,IAAI,IAAI,WAAW,GAAG,aAAa,CAAC;AACpC;AACA,IAAI,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,YAAY,GAAG,EAAE;AAC7C;AACA,QAAQ,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE;AACrB,YAAY,OAAO,CAAC,GAAG,IAAI,KAAK;AAChC,gBAAgB,IAAI,EAAE,EAAE,EAAE,CAAC;AAC3B,gBAAgB,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE;AACpD,oBAAoB,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,iBAAiB;AACjB,qBAAqB;AACrB,oBAAoB,OAAO,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,WAAW,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,I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