@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,171 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs } from '../../../../../../_virtual/_commonjsHelpers.js';
|
|
2
|
+
import { __module as js_cookie } from '../../../../../../_virtual/js.cookie.js';
|
|
3
|
+
|
|
4
|
+
/*!
|
|
5
|
+
* JavaScript Cookie v2.2.1
|
|
6
|
+
* https://github.com/js-cookie/js-cookie
|
|
7
|
+
*
|
|
8
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
9
|
+
* Released under the MIT license
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
(function (module, exports) {
|
|
13
|
+
(function (factory) {
|
|
14
|
+
var registeredInModuleLoader;
|
|
15
|
+
{
|
|
16
|
+
module.exports = factory();
|
|
17
|
+
registeredInModuleLoader = true;
|
|
18
|
+
}
|
|
19
|
+
if (!registeredInModuleLoader) {
|
|
20
|
+
var OldCookies = window.Cookies;
|
|
21
|
+
var api = window.Cookies = factory();
|
|
22
|
+
api.noConflict = function () {
|
|
23
|
+
window.Cookies = OldCookies;
|
|
24
|
+
return api;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}(function () {
|
|
28
|
+
function extend () {
|
|
29
|
+
var i = 0;
|
|
30
|
+
var result = {};
|
|
31
|
+
for (; i < arguments.length; i++) {
|
|
32
|
+
var attributes = arguments[ i ];
|
|
33
|
+
for (var key in attributes) {
|
|
34
|
+
result[key] = attributes[key];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function decode (s) {
|
|
41
|
+
return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function init (converter) {
|
|
45
|
+
function api() {}
|
|
46
|
+
|
|
47
|
+
function set (key, value, attributes) {
|
|
48
|
+
if (typeof document === 'undefined') {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
attributes = extend({
|
|
53
|
+
path: '/'
|
|
54
|
+
}, api.defaults, attributes);
|
|
55
|
+
|
|
56
|
+
if (typeof attributes.expires === 'number') {
|
|
57
|
+
attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// We're using "expires" because "max-age" is not supported by IE
|
|
61
|
+
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
|
|
62
|
+
|
|
63
|
+
try {
|
|
64
|
+
var result = JSON.stringify(value);
|
|
65
|
+
if (/^[\{\[]/.test(result)) {
|
|
66
|
+
value = result;
|
|
67
|
+
}
|
|
68
|
+
} catch (e) {}
|
|
69
|
+
|
|
70
|
+
value = converter.write ?
|
|
71
|
+
converter.write(value, key) :
|
|
72
|
+
encodeURIComponent(String(value))
|
|
73
|
+
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
|
74
|
+
|
|
75
|
+
key = encodeURIComponent(String(key))
|
|
76
|
+
.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
|
|
77
|
+
.replace(/[\(\)]/g, escape);
|
|
78
|
+
|
|
79
|
+
var stringifiedAttributes = '';
|
|
80
|
+
for (var attributeName in attributes) {
|
|
81
|
+
if (!attributes[attributeName]) {
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
stringifiedAttributes += '; ' + attributeName;
|
|
85
|
+
if (attributes[attributeName] === true) {
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Considers RFC 6265 section 5.2:
|
|
90
|
+
// ...
|
|
91
|
+
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
|
92
|
+
// character:
|
|
93
|
+
// Consume the characters of the unparsed-attributes up to,
|
|
94
|
+
// not including, the first %x3B (";") character.
|
|
95
|
+
// ...
|
|
96
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return (document.cookie = key + '=' + value + stringifiedAttributes);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function get (key, json) {
|
|
103
|
+
if (typeof document === 'undefined') {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
var jar = {};
|
|
108
|
+
// To prevent the for loop in the first place assign an empty array
|
|
109
|
+
// in case there are no cookies at all.
|
|
110
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
|
111
|
+
var i = 0;
|
|
112
|
+
|
|
113
|
+
for (; i < cookies.length; i++) {
|
|
114
|
+
var parts = cookies[i].split('=');
|
|
115
|
+
var cookie = parts.slice(1).join('=');
|
|
116
|
+
|
|
117
|
+
if (!json && cookie.charAt(0) === '"') {
|
|
118
|
+
cookie = cookie.slice(1, -1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
try {
|
|
122
|
+
var name = decode(parts[0]);
|
|
123
|
+
cookie = (converter.read || converter)(cookie, name) ||
|
|
124
|
+
decode(cookie);
|
|
125
|
+
|
|
126
|
+
if (json) {
|
|
127
|
+
try {
|
|
128
|
+
cookie = JSON.parse(cookie);
|
|
129
|
+
} catch (e) {}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
jar[name] = cookie;
|
|
133
|
+
|
|
134
|
+
if (key === name) {
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
} catch (e) {}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return key ? jar[key] : jar;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
api.set = set;
|
|
144
|
+
api.get = function (key) {
|
|
145
|
+
return get(key, false /* read as raw */);
|
|
146
|
+
};
|
|
147
|
+
api.getJSON = function (key) {
|
|
148
|
+
return get(key, true /* read as json */);
|
|
149
|
+
};
|
|
150
|
+
api.remove = function (key, attributes) {
|
|
151
|
+
set(key, '', extend(attributes, {
|
|
152
|
+
expires: -1
|
|
153
|
+
}));
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
api.defaults = {};
|
|
157
|
+
|
|
158
|
+
api.withConverter = init;
|
|
159
|
+
|
|
160
|
+
return api;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return init(function () {});
|
|
164
|
+
}));
|
|
165
|
+
} (js_cookie));
|
|
166
|
+
|
|
167
|
+
var js_cookieExports = js_cookie.exports;
|
|
168
|
+
var Cookie = /*@__PURE__*/getDefaultExportFromCjs(js_cookieExports);
|
|
169
|
+
|
|
170
|
+
export { Cookie as default };
|
|
171
|
+
//# sourceMappingURL=js.cookie.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js.cookie.js","sources":["../../../../../../../../../node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js"],"sourcesContent":["/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i < arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i < cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n"],"names":[],"mappings":";;;;;;;;;;;;AAOC,CAAC,UAAU,OAAO,EAAE;AACrB,EAAC,IAAI,wBAAwB,CAAA;AAK7B,EAAkC;GAChC,MAAA,CAAA,OAAA,GAAiB,OAAO,EAAE,CAAA;GAC1B,wBAAwB,GAAG,IAAI,CAAA;AACjC,GAAA;EACC,IAAI,CAAC,wBAAwB,EAAE;AAChC,GAAE,IAAI,UAAU,GAAG,MAAM,CAAC,OAAO,CAAA;GAC/B,IAAI,GAAG,GAAG,MAAM,CAAC,OAAO,GAAG,OAAO,EAAE,CAAA;AACtC,GAAE,GAAG,CAAC,UAAU,GAAG,YAAY;AAC/B,IAAG,MAAM,CAAC,OAAO,GAAG,UAAU,CAAA;AAC9B,IAAG,OAAO,GAAG,CAAA;IACV,CAAA;AACH,GAAA;AACA,EAAC,CAAC,YAAY;EACb,SAAS,MAAM,IAAI;GAClB,IAAI,CAAC,GAAG,CAAC,CAAA;GACT,IAAI,MAAM,GAAG,EAAE,CAAA;GACf,OAAO,CAAC,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GAAG,CAAA;AACf,GAAE,GAAG,CAAC,GAAG,GAAG,UAAU,GAAG,EAAE;AAC3B,IAAG,OAAO,GAAG,CAAC,GAAG,EAAE,KAAK,mBAAmB,CAAA;IACxC,CAAA;AACH,GAAE,GAAG,CAAC,OAAO,GAAG,UAAU,GAAG,EAAE;AAC/B,IAAG,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,oBAAoB,CAAA;IACxC,CAAA;GACD,GAAG,CAAC,MAAM,GAAG,UAAU,GAAG,EAAE,UAAU,EAAE;IACvC,GAAG,CAAC,GAAG,EAAE,EAAE,EAAE,MAAM,CAAC,UAAU,EAAE;KAC/B,OAAO,EAAE,CAAC,CAAA;AACd,KAAI,CAAC,CAAC,CAAA;IACH,CAAA;;AAEH,GAAE,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAA;;AAEnB,GAAE,GAAG,CAAC,aAAa,GAAG,IAAI,CAAA;;AAE1B,GAAE,OAAO,GAAG,CAAA;AACZ,GAAA;;AAEA,EAAC,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,CAAA;AAC5B,EAAC,CAAC,EAAA;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../../../@byted-paas/vfetch/dist/es/index.cjs');
|
|
4
|
+
var logger = require('./logger.cjs');
|
|
5
|
+
var index$1 = require('./translate/index.cjs');
|
|
6
|
+
var util = require('./util.cjs');
|
|
7
|
+
|
|
8
|
+
class TopProxyClient {
|
|
9
|
+
constructor(config) {
|
|
10
|
+
this.vFetchRequestMap = {};
|
|
11
|
+
this.platform =
|
|
12
|
+
config.platform === 'VOLCENGINE' ? index.Platform.VOLCENGINE : index.Platform.VESTACK;
|
|
13
|
+
this._config = Object.assign(Object.assign({ translate: true, paramsTransform: true, resultTransform: true, enableErrorHint: false }, config), { healthCheck: Object.assign(config.healthCheck || {}) });
|
|
14
|
+
this.vFetchRequestMap[util.clientKey(config.service, config.version)] = index.vFetch(config.service, config.version, {
|
|
15
|
+
platform: this.platform,
|
|
16
|
+
});
|
|
17
|
+
// 火山环境默认开启翻译, 也可以使用 translate=false 关闭
|
|
18
|
+
if (this._config.platform === 'VOLCENGINE' && this._config.translate !== false) {
|
|
19
|
+
this.translator = new index$1();
|
|
20
|
+
}
|
|
21
|
+
//TODO: 公有云线上 web worker 加载存在问题, 暂时关闭该功能
|
|
22
|
+
// if (!this._config.healthCheck?.disable) {
|
|
23
|
+
// this.probe = Probe.getInstance(config.healthCheck);
|
|
24
|
+
// }
|
|
25
|
+
}
|
|
26
|
+
async translate(data) {
|
|
27
|
+
if (!this.translator) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
return await this.translator.transferError(data);
|
|
32
|
+
}
|
|
33
|
+
catch (e) {
|
|
34
|
+
logger.logger.error(`[openapi translate error]`, e);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
async translateBatchResult(data, service, action) {
|
|
38
|
+
if (!this.translator) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
return await this.translator.transferBatchError(data, {
|
|
43
|
+
service,
|
|
44
|
+
action,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
logger.logger.error(`[openapi translate batch result error]`, e);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
getBackupUrl({ service, action, version, region, }) {
|
|
52
|
+
if (this._config.isV2 && this._config.callerService) {
|
|
53
|
+
return `/api/v2/top/${service}/${service}/${action}/${version}/${region}`;
|
|
54
|
+
}
|
|
55
|
+
if (this._config.platform === index.Platform.VOLCENGINE && this.probe) {
|
|
56
|
+
const urlPrefix = this.probe.getURL();
|
|
57
|
+
return urlPrefix ? `${urlPrefix}/${service}/${region}/${version}/${action}` : null;
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
// 默认使用初始化传入的
|
|
62
|
+
getRequestEntity(service, version) {
|
|
63
|
+
service = service || this._config.service;
|
|
64
|
+
version = version || this._config.version;
|
|
65
|
+
const key = util.clientKey(service, version);
|
|
66
|
+
if (!this.vFetchRequestMap[key]) {
|
|
67
|
+
this.vFetchRequestMap[key] = index.vFetch(service, version, {
|
|
68
|
+
platform: this.platform,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return this.vFetchRequestMap[key];
|
|
72
|
+
}
|
|
73
|
+
async request(option) {
|
|
74
|
+
try {
|
|
75
|
+
const { action, method = 'post', headers = {}, disableFormat = this._config.disableFormat, } = option;
|
|
76
|
+
const region = option.region || util.getRegion(option);
|
|
77
|
+
// 将参数名首字母小写转大写, 如果是 get 请求, 则将数组类型参数展开
|
|
78
|
+
const params = this._config.paramsTransform
|
|
79
|
+
? util.formatParams({
|
|
80
|
+
target: option.params,
|
|
81
|
+
needFlatten: util.isGetMethod(method),
|
|
82
|
+
disableUpperCamel: disableFormat || option.disableUpperCamel,
|
|
83
|
+
headers,
|
|
84
|
+
})
|
|
85
|
+
: option.params;
|
|
86
|
+
const backupUrl = this.getBackupUrl({
|
|
87
|
+
service: option.service || this._config.service,
|
|
88
|
+
version: option.version || this._config.version,
|
|
89
|
+
region,
|
|
90
|
+
action,
|
|
91
|
+
});
|
|
92
|
+
const data = await this.getRequestEntity(option.service, option.version)({
|
|
93
|
+
method,
|
|
94
|
+
data: params,
|
|
95
|
+
// 混合云环境下,get请求的参数需要放在 params 上, 兼容 vFetch axiosFetchVestack 的逻辑
|
|
96
|
+
params: this._config.platform === index.Platform.VESTACK && util.isGetMethod(method)
|
|
97
|
+
? params
|
|
98
|
+
: undefined,
|
|
99
|
+
}, {
|
|
100
|
+
region,
|
|
101
|
+
action,
|
|
102
|
+
// 默认不使用 vFetch 的弹窗
|
|
103
|
+
enableErrorHint: this._config.enableErrorHint,
|
|
104
|
+
customAxiosConfig: {
|
|
105
|
+
headers,
|
|
106
|
+
url: backupUrl,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
//批量接口需要单独为其中的message进行翻译
|
|
110
|
+
if (data === null || data === void 0 ? void 0 : data.OperationDetails) {
|
|
111
|
+
await this.translateBatchResult(data, option.service || this._config.service, option.action);
|
|
112
|
+
}
|
|
113
|
+
// 结果转首字母小写
|
|
114
|
+
return (disableFormat ? data : util.formatResult(data));
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
//执行错误码翻译
|
|
118
|
+
if (util.isOpenAPIError(e)) {
|
|
119
|
+
await this.translate(e);
|
|
120
|
+
}
|
|
121
|
+
logger.logger.error(`[top_proxy_sdk] request error: `, e);
|
|
122
|
+
const onError = this._config.onError;
|
|
123
|
+
// 优先使用错误处理函数, 否则抛出异常
|
|
124
|
+
if (onError) {
|
|
125
|
+
onError(e);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
throw e;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
exports.TopProxyClient = TopProxyClient;
|
|
135
|
+
//# sourceMappingURL=client.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.cjs","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/client.js"],"sourcesContent":["import { Platform, vFetch } from '@byted-paas/vfetch';\nimport { logger } from './logger';\nimport Translator from './translate';\nimport { clientKey, formatParams, formatResult, getRegion, isGetMethod, isOpenAPIError, } from './util';\nexport class TopProxyClient {\n constructor(config) {\n this.vFetchRequestMap = {};\n this.platform =\n config.platform === 'VOLCENGINE' ? Platform.VOLCENGINE : Platform.VESTACK;\n this._config = Object.assign(Object.assign({ translate: true, paramsTransform: true, resultTransform: true, enableErrorHint: false }, config), { healthCheck: Object.assign(config.healthCheck || {}) });\n this.vFetchRequestMap[clientKey(config.service, config.version)] = vFetch(config.service, config.version, {\n platform: this.platform,\n });\n // 火山环境默认开启翻译, 也可以使用 translate=false 关闭\n if (this._config.platform === 'VOLCENGINE' && this._config.translate !== false) {\n this.translator = new Translator();\n }\n //TODO: 公有云线上 web worker 加载存在问题, 暂时关闭该功能\n // if (!this._config.healthCheck?.disable) {\n // this.probe = Probe.getInstance(config.healthCheck);\n // }\n }\n async translate(data) {\n if (!this.translator) {\n return;\n }\n try {\n return await this.translator.transferError(data);\n }\n catch (e) {\n logger.error(`[openapi translate error]`, e);\n }\n }\n async translateBatchResult(data, service, action) {\n if (!this.translator) {\n return;\n }\n try {\n return await this.translator.transferBatchError(data, {\n service,\n action,\n });\n }\n catch (e) {\n logger.error(`[openapi translate batch result error]`, e);\n }\n }\n getBackupUrl({ service, action, version, region, }) {\n if (this._config.isV2 && this._config.callerService) {\n return `/api/v2/top/${service}/${service}/${action}/${version}/${region}`;\n }\n if (this._config.platform === Platform.VOLCENGINE && this.probe) {\n const urlPrefix = this.probe.getURL();\n return urlPrefix ? `${urlPrefix}/${service}/${region}/${version}/${action}` : null;\n }\n return null;\n }\n // 默认使用初始化传入的\n getRequestEntity(service, version) {\n service = service || this._config.service;\n version = version || this._config.version;\n const key = clientKey(service, version);\n if (!this.vFetchRequestMap[key]) {\n this.vFetchRequestMap[key] = vFetch(service, version, {\n platform: this.platform,\n });\n }\n return this.vFetchRequestMap[key];\n }\n async request(option) {\n try {\n const { action, method = 'post', headers = {}, disableFormat = this._config.disableFormat, } = option;\n const region = option.region || getRegion(option);\n // 将参数名首字母小写转大写, 如果是 get 请求, 则将数组类型参数展开\n const params = this._config.paramsTransform\n ? formatParams({\n target: option.params,\n needFlatten: isGetMethod(method),\n disableUpperCamel: disableFormat || option.disableUpperCamel,\n headers,\n })\n : option.params;\n const backupUrl = this.getBackupUrl({\n service: option.service || this._config.service,\n version: option.version || this._config.version,\n region,\n action,\n });\n const data = await this.getRequestEntity(option.service, option.version)({\n method,\n data: params,\n // 混合云环境下,get请求的参数需要放在 params 上, 兼容 vFetch axiosFetchVestack 的逻辑\n params: this._config.platform === Platform.VESTACK && isGetMethod(method)\n ? params\n : undefined,\n }, {\n region,\n action,\n // 默认不使用 vFetch 的弹窗\n enableErrorHint: this._config.enableErrorHint,\n customAxiosConfig: {\n headers,\n url: backupUrl,\n },\n });\n //批量接口需要单独为其中的message进行翻译\n if (data === null || data === void 0 ? void 0 : data.OperationDetails) {\n await this.translateBatchResult(data, option.service || this._config.service, option.action);\n }\n // 结果转首字母小写\n return (disableFormat ? data : formatResult(data));\n }\n catch (e) {\n //执行错误码翻译\n if (isOpenAPIError(e)) {\n await this.translate(e);\n }\n logger.error(`[top_proxy_sdk] request error: `, e);\n const onError = this._config.onError;\n // 优先使用错误处理函数, 否则抛出异常\n if (onError) {\n onError(e);\n }\n else {\n throw e;\n }\n }\n }\n}\n"],"names":["Platform","clientKey","vFetch","Translator","logger","getRegion","formatParams","isGetMethod","formatResult","isOpenAPIError"],"mappings":";;;;;;;AAIO,MAAM,cAAc,CAAC;AAC5B,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB,QAAQ,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;AACnC,QAAQ,IAAI,CAAC,QAAQ;AACrB,YAAY,MAAM,CAAC,QAAQ,KAAK,YAAY,GAAGA,cAAQ,CAAC,UAAU,GAAGA,cAAQ,CAAC,OAAO,CAAC;AACtF,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACjN,QAAQ,IAAI,CAAC,gBAAgB,CAACC,cAAS,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,GAAGC,YAAM,CAAC,MAA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Fetch } from '../../../@byted-paas/vfetch/dist/es/index.js';
|
|
2
|
+
import { logger } from './logger.js';
|
|
3
|
+
import Translator from './translate/index.js';
|
|
4
|
+
import { clientKey, getRegion, formatParams, isGetMethod, formatResult, isOpenAPIError } from './util.js';
|
|
5
|
+
|
|
6
|
+
class TopProxyClient {
|
|
7
|
+
constructor(config) {
|
|
8
|
+
this.vFetchRequestMap = {};
|
|
9
|
+
this.platform =
|
|
10
|
+
config.platform === 'VOLCENGINE' ? Platform.VOLCENGINE : Platform.VESTACK;
|
|
11
|
+
this._config = Object.assign(Object.assign({ translate: true, paramsTransform: true, resultTransform: true, enableErrorHint: false }, config), { healthCheck: Object.assign(config.healthCheck || {}) });
|
|
12
|
+
this.vFetchRequestMap[clientKey(config.service, config.version)] = vFetch(config.service, config.version, {
|
|
13
|
+
platform: this.platform,
|
|
14
|
+
});
|
|
15
|
+
// 火山环境默认开启翻译, 也可以使用 translate=false 关闭
|
|
16
|
+
if (this._config.platform === 'VOLCENGINE' && this._config.translate !== false) {
|
|
17
|
+
this.translator = new Translator();
|
|
18
|
+
}
|
|
19
|
+
//TODO: 公有云线上 web worker 加载存在问题, 暂时关闭该功能
|
|
20
|
+
// if (!this._config.healthCheck?.disable) {
|
|
21
|
+
// this.probe = Probe.getInstance(config.healthCheck);
|
|
22
|
+
// }
|
|
23
|
+
}
|
|
24
|
+
async translate(data) {
|
|
25
|
+
if (!this.translator) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
return await this.translator.transferError(data);
|
|
30
|
+
}
|
|
31
|
+
catch (e) {
|
|
32
|
+
logger.error(`[openapi translate error]`, e);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async translateBatchResult(data, service, action) {
|
|
36
|
+
if (!this.translator) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
return await this.translator.transferBatchError(data, {
|
|
41
|
+
service,
|
|
42
|
+
action,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
logger.error(`[openapi translate batch result error]`, e);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
getBackupUrl({ service, action, version, region, }) {
|
|
50
|
+
if (this._config.isV2 && this._config.callerService) {
|
|
51
|
+
return `/api/v2/top/${service}/${service}/${action}/${version}/${region}`;
|
|
52
|
+
}
|
|
53
|
+
if (this._config.platform === Platform.VOLCENGINE && this.probe) {
|
|
54
|
+
const urlPrefix = this.probe.getURL();
|
|
55
|
+
return urlPrefix ? `${urlPrefix}/${service}/${region}/${version}/${action}` : null;
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
// 默认使用初始化传入的
|
|
60
|
+
getRequestEntity(service, version) {
|
|
61
|
+
service = service || this._config.service;
|
|
62
|
+
version = version || this._config.version;
|
|
63
|
+
const key = clientKey(service, version);
|
|
64
|
+
if (!this.vFetchRequestMap[key]) {
|
|
65
|
+
this.vFetchRequestMap[key] = vFetch(service, version, {
|
|
66
|
+
platform: this.platform,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return this.vFetchRequestMap[key];
|
|
70
|
+
}
|
|
71
|
+
async request(option) {
|
|
72
|
+
try {
|
|
73
|
+
const { action, method = 'post', headers = {}, disableFormat = this._config.disableFormat, } = option;
|
|
74
|
+
const region = option.region || getRegion(option);
|
|
75
|
+
// 将参数名首字母小写转大写, 如果是 get 请求, 则将数组类型参数展开
|
|
76
|
+
const params = this._config.paramsTransform
|
|
77
|
+
? formatParams({
|
|
78
|
+
target: option.params,
|
|
79
|
+
needFlatten: isGetMethod(method),
|
|
80
|
+
disableUpperCamel: disableFormat || option.disableUpperCamel,
|
|
81
|
+
headers,
|
|
82
|
+
})
|
|
83
|
+
: option.params;
|
|
84
|
+
const backupUrl = this.getBackupUrl({
|
|
85
|
+
service: option.service || this._config.service,
|
|
86
|
+
version: option.version || this._config.version,
|
|
87
|
+
region,
|
|
88
|
+
action,
|
|
89
|
+
});
|
|
90
|
+
const data = await this.getRequestEntity(option.service, option.version)({
|
|
91
|
+
method,
|
|
92
|
+
data: params,
|
|
93
|
+
// 混合云环境下,get请求的参数需要放在 params 上, 兼容 vFetch axiosFetchVestack 的逻辑
|
|
94
|
+
params: this._config.platform === Platform.VESTACK && isGetMethod(method)
|
|
95
|
+
? params
|
|
96
|
+
: undefined,
|
|
97
|
+
}, {
|
|
98
|
+
region,
|
|
99
|
+
action,
|
|
100
|
+
// 默认不使用 vFetch 的弹窗
|
|
101
|
+
enableErrorHint: this._config.enableErrorHint,
|
|
102
|
+
customAxiosConfig: {
|
|
103
|
+
headers,
|
|
104
|
+
url: backupUrl,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
//批量接口需要单独为其中的message进行翻译
|
|
108
|
+
if (data === null || data === void 0 ? void 0 : data.OperationDetails) {
|
|
109
|
+
await this.translateBatchResult(data, option.service || this._config.service, option.action);
|
|
110
|
+
}
|
|
111
|
+
// 结果转首字母小写
|
|
112
|
+
return (disableFormat ? data : formatResult(data));
|
|
113
|
+
}
|
|
114
|
+
catch (e) {
|
|
115
|
+
//执行错误码翻译
|
|
116
|
+
if (isOpenAPIError(e)) {
|
|
117
|
+
await this.translate(e);
|
|
118
|
+
}
|
|
119
|
+
logger.error(`[top_proxy_sdk] request error: `, e);
|
|
120
|
+
const onError = this._config.onError;
|
|
121
|
+
// 优先使用错误处理函数, 否则抛出异常
|
|
122
|
+
if (onError) {
|
|
123
|
+
onError(e);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
throw e;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export { TopProxyClient };
|
|
133
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/client.js"],"sourcesContent":["import { Platform, vFetch } from '@byted-paas/vfetch';\nimport { logger } from './logger';\nimport Translator from './translate';\nimport { clientKey, formatParams, formatResult, getRegion, isGetMethod, isOpenAPIError, } from './util';\nexport class TopProxyClient {\n constructor(config) {\n this.vFetchRequestMap = {};\n this.platform =\n config.platform === 'VOLCENGINE' ? Platform.VOLCENGINE : Platform.VESTACK;\n this._config = Object.assign(Object.assign({ translate: true, paramsTransform: true, resultTransform: true, enableErrorHint: false }, config), { healthCheck: Object.assign(config.healthCheck || {}) });\n this.vFetchRequestMap[clientKey(config.service, config.version)] = vFetch(config.service, config.version, {\n platform: this.platform,\n });\n // 火山环境默认开启翻译, 也可以使用 translate=false 关闭\n if (this._config.platform === 'VOLCENGINE' && this._config.translate !== false) {\n this.translator = new Translator();\n }\n //TODO: 公有云线上 web worker 加载存在问题, 暂时关闭该功能\n // if (!this._config.healthCheck?.disable) {\n // this.probe = Probe.getInstance(config.healthCheck);\n // }\n }\n async translate(data) {\n if (!this.translator) {\n return;\n }\n try {\n return await this.translator.transferError(data);\n }\n catch (e) {\n logger.error(`[openapi translate error]`, e);\n }\n }\n async translateBatchResult(data, service, action) {\n if (!this.translator) {\n return;\n }\n try {\n return await this.translator.transferBatchError(data, {\n service,\n action,\n });\n }\n catch (e) {\n logger.error(`[openapi translate batch result error]`, e);\n }\n }\n getBackupUrl({ service, action, version, region, }) {\n if (this._config.isV2 && this._config.callerService) {\n return `/api/v2/top/${service}/${service}/${action}/${version}/${region}`;\n }\n if (this._config.platform === Platform.VOLCENGINE && this.probe) {\n const urlPrefix = this.probe.getURL();\n return urlPrefix ? `${urlPrefix}/${service}/${region}/${version}/${action}` : null;\n }\n return null;\n }\n // 默认使用初始化传入的\n getRequestEntity(service, version) {\n service = service || this._config.service;\n version = version || this._config.version;\n const key = clientKey(service, version);\n if (!this.vFetchRequestMap[key]) {\n this.vFetchRequestMap[key] = vFetch(service, version, {\n platform: this.platform,\n });\n }\n return this.vFetchRequestMap[key];\n }\n async request(option) {\n try {\n const { action, method = 'post', headers = {}, disableFormat = this._config.disableFormat, } = option;\n const region = option.region || getRegion(option);\n // 将参数名首字母小写转大写, 如果是 get 请求, 则将数组类型参数展开\n const params = this._config.paramsTransform\n ? formatParams({\n target: option.params,\n needFlatten: isGetMethod(method),\n disableUpperCamel: disableFormat || option.disableUpperCamel,\n headers,\n })\n : option.params;\n const backupUrl = this.getBackupUrl({\n service: option.service || this._config.service,\n version: option.version || this._config.version,\n region,\n action,\n });\n const data = await this.getRequestEntity(option.service, option.version)({\n method,\n data: params,\n // 混合云环境下,get请求的参数需要放在 params 上, 兼容 vFetch axiosFetchVestack 的逻辑\n params: this._config.platform === Platform.VESTACK && isGetMethod(method)\n ? params\n : undefined,\n }, {\n region,\n action,\n // 默认不使用 vFetch 的弹窗\n enableErrorHint: this._config.enableErrorHint,\n customAxiosConfig: {\n headers,\n url: backupUrl,\n },\n });\n //批量接口需要单独为其中的message进行翻译\n if (data === null || data === void 0 ? void 0 : data.OperationDetails) {\n await this.translateBatchResult(data, option.service || this._config.service, option.action);\n }\n // 结果转首字母小写\n return (disableFormat ? data : formatResult(data));\n }\n catch (e) {\n //执行错误码翻译\n if (isOpenAPIError(e)) {\n await this.translate(e);\n }\n logger.error(`[top_proxy_sdk] request error: `, e);\n const onError = this._config.onError;\n // 优先使用错误处理函数, 否则抛出异常\n if (onError) {\n onError(e);\n }\n else {\n throw e;\n }\n }\n }\n}\n"],"names":[],"mappings":";;;;;AAIO,MAAM,cAAc,CAAC;AAC5B,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB,QAAQ,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAC;AACnC,QAAQ,IAAI,CAAC,QAAQ;AACrB,YAAY,MAAM,CAAC,QAAQ,KAAK,YAAY,GAAG,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC;AACtF,QAAQ,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,S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AAC;AAC/D,YAAY,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;AACjD;AACA,YAAY,IAAI,OAAO,EAAE;AACzB,gBAAgB,OAAO,CAAC,CAAC,CAAC,CAAC;AAC3B,aAAa;AACb,iBAAiB;AACjB,gBAAgB,MAAM,CAAC,CAAC;AACxB,aAAa;AACb,SAAS;AACT,KAAK;AACL;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var util = require('./util.cjs');
|
|
4
|
+
|
|
5
|
+
const ProxyServerRoute = {
|
|
6
|
+
healthCheck: '/proxy/top/healthCheck',
|
|
7
|
+
topProxy: '/proxy/top/api',
|
|
8
|
+
errLang: '/proxy/tcc/errLang',
|
|
9
|
+
};
|
|
10
|
+
const getApiUrl = (type, useLocalServer) => {
|
|
11
|
+
const route = ProxyServerRoute[type];
|
|
12
|
+
if (useLocalServer) {
|
|
13
|
+
return `http://localhost:3000${route}`;
|
|
14
|
+
}
|
|
15
|
+
const host = location.host.includes('localhost')
|
|
16
|
+
? util.urlDecode('HBARDBATGlIMCx4dExpRCRATHB4RFhwaERgWERpRHBAS') // 参数中的字符串为 stable 域名经过 urlEncode 处理的结果
|
|
17
|
+
: location.host;
|
|
18
|
+
return `https://iaas-api.${host}${route}`;
|
|
19
|
+
};
|
|
20
|
+
const EnableDebug = () => !!location.host.includes('localhost');
|
|
21
|
+
exports.Platform = void 0;
|
|
22
|
+
(function (Platform) {
|
|
23
|
+
Platform["VOLCENGINE"] = "VOLCENGINE";
|
|
24
|
+
Platform["VESTACK"] = "VESTACK";
|
|
25
|
+
})(exports.Platform || (exports.Platform = {}));
|
|
26
|
+
|
|
27
|
+
exports.EnableDebug = EnableDebug;
|
|
28
|
+
exports.getApiUrl = getApiUrl;
|
|
29
|
+
//# sourceMappingURL=constant.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constant.cjs","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/constant.js"],"sourcesContent":["import { urlDecode } from './util';\nconst ProxyServerRoute = {\n healthCheck: '/proxy/top/healthCheck',\n topProxy: '/proxy/top/api',\n errLang: '/proxy/tcc/errLang',\n};\nexport const getApiUrl = (type, useLocalServer) => {\n const route = ProxyServerRoute[type];\n if (useLocalServer) {\n return `http://localhost:3000${route}`;\n }\n const host = location.host.includes('localhost')\n ? urlDecode('HBARDBATGlIMCx4dExpRCRATHB4RFhwaERgWERpRHBAS') // 参数中的字符串为 stable 域名经过 urlEncode 处理的结果\n : location.host;\n return `https://iaas-api.${host}${route}`;\n};\nexport const EnableDebug = () => !!location.host.includes('localhost');\nexport var Platform;\n(function (Platform) {\n Platform[\"VOLCENGINE\"] = \"VOLCENGINE\";\n Platform[\"VESTACK\"] = \"VESTACK\";\n})(Platform || (Platform = {}));\n"],"names":["urlDecode","Platform"],"mappings":";;;;AACA,MAAM,gBAAgB,GAAG;AACzB,IAAI,WAAW,EAAE,wBAAwB;AACzC,IAAI,QAAQ,EAAE,gBAAgB;AAC9B,IAAI,OAAO,EAAE,oBAAoB;AACjC,CAAC,CAAC;AACU,MAAC,SAAS,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK;AACnD,IAAI,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACzC,IAAI,IAAI,cAAc,EAAE;AACxB,QAAQ,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC;AAC/C,KAAK;AACL,IAAI,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;AACpD,UAAUA,cAAS,CAAC,8CAA8C,CAAC;AACnE,UAAU,QAAQ,CAAC,IAAI,CAAC;AACxB,IAAI,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,EAAE;AACU,MAAC,WAAW,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;AAC5DC,0BAAS;AACpB,CAAC,UAAU,QAAQ,EAAE;AACrB,IAAI,QAAQ,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;AAC1C,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AACpC,CAAC,EAAEA,gBAAQ,KAAKA,gBAAQ,GAAG,EAAE,CAAC,CAAC;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { urlDecode } from './util.js';
|
|
2
|
+
|
|
3
|
+
const ProxyServerRoute = {
|
|
4
|
+
healthCheck: '/proxy/top/healthCheck',
|
|
5
|
+
topProxy: '/proxy/top/api',
|
|
6
|
+
errLang: '/proxy/tcc/errLang',
|
|
7
|
+
};
|
|
8
|
+
const getApiUrl = (type, useLocalServer) => {
|
|
9
|
+
const route = ProxyServerRoute[type];
|
|
10
|
+
if (useLocalServer) {
|
|
11
|
+
return `http://localhost:3000${route}`;
|
|
12
|
+
}
|
|
13
|
+
const host = location.host.includes('localhost')
|
|
14
|
+
? urlDecode('HBARDBATGlIMCx4dExpRCRATHB4RFhwaERgWERpRHBAS') // 参数中的字符串为 stable 域名经过 urlEncode 处理的结果
|
|
15
|
+
: location.host;
|
|
16
|
+
return `https://iaas-api.${host}${route}`;
|
|
17
|
+
};
|
|
18
|
+
const EnableDebug = () => !!location.host.includes('localhost');
|
|
19
|
+
var Platform;
|
|
20
|
+
(function (Platform) {
|
|
21
|
+
Platform["VOLCENGINE"] = "VOLCENGINE";
|
|
22
|
+
Platform["VESTACK"] = "VESTACK";
|
|
23
|
+
})(Platform || (Platform = {}));
|
|
24
|
+
|
|
25
|
+
export { EnableDebug, Platform, getApiUrl };
|
|
26
|
+
//# sourceMappingURL=constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constant.js","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/constant.js"],"sourcesContent":["import { urlDecode } from './util';\nconst ProxyServerRoute = {\n healthCheck: '/proxy/top/healthCheck',\n topProxy: '/proxy/top/api',\n errLang: '/proxy/tcc/errLang',\n};\nexport const getApiUrl = (type, useLocalServer) => {\n const route = ProxyServerRoute[type];\n if (useLocalServer) {\n return `http://localhost:3000${route}`;\n }\n const host = location.host.includes('localhost')\n ? urlDecode('HBARDBATGlIMCx4dExpRCRATHB4RFhwaERgWERpRHBAS') // 参数中的字符串为 stable 域名经过 urlEncode 处理的结果\n : location.host;\n return `https://iaas-api.${host}${route}`;\n};\nexport const EnableDebug = () => !!location.host.includes('localhost');\nexport var Platform;\n(function (Platform) {\n Platform[\"VOLCENGINE\"] = \"VOLCENGINE\";\n Platform[\"VESTACK\"] = \"VESTACK\";\n})(Platform || (Platform = {}));\n"],"names":[],"mappings":";;AACA,MAAM,gBAAgB,GAAG;AACzB,IAAI,WAAW,EAAE,wBAAwB;AACzC,IAAI,QAAQ,EAAE,gBAAgB;AAC9B,IAAI,OAAO,EAAE,oBAAoB;AACjC,CAAC,CAAC;AACU,MAAC,SAAS,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK;AACnD,IAAI,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACzC,IAAI,IAAI,cAAc,EAAE;AACxB,QAAQ,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC;AAC/C,KAAK;AACL,IAAI,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;AACpD,UAAU,SAAS,CAAC,8CAA8C,CAAC;AACnE,UAAU,QAAQ,CAAC,IAAI,CAAC;AACxB,IAAI,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,EAAE;AACU,MAAC,WAAW,GAAG,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;AAC7D,IAAC,SAAS;AACpB,CAAC,UAAU,QAAQ,EAAE;AACrB,IAAI,QAAQ,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;AAC1C,IAAI,QAAQ,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AACpC,CAAC,EAAE,QAAQ,KAAK,QAAQ,GAAG,EAAE,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
exports.SIGNAL = void 0;
|
|
4
|
+
(function (SIGNAL) {
|
|
5
|
+
SIGNAL["STOP"] = "stop";
|
|
6
|
+
SIGNAL["START"] = "start";
|
|
7
|
+
SIGNAL["Unhealthy"] = "unhealthy";
|
|
8
|
+
SIGNAL["Healthy"] = "healthy";
|
|
9
|
+
SIGNAL["UpdateConfig"] = "updateConfig";
|
|
10
|
+
})(exports.SIGNAL || (exports.SIGNAL = {}));
|
|
11
|
+
//# sourceMappingURL=interface.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.cjs","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/interface.js"],"sourcesContent":["export var SIGNAL;\n(function (SIGNAL) {\n SIGNAL[\"STOP\"] = \"stop\";\n SIGNAL[\"START\"] = \"start\";\n SIGNAL[\"Unhealthy\"] = \"unhealthy\";\n SIGNAL[\"Healthy\"] = \"healthy\";\n SIGNAL[\"UpdateConfig\"] = \"updateConfig\";\n})(SIGNAL || (SIGNAL = {}));\n"],"names":["SIGNAL"],"mappings":";;AAAWA,wBAAO;AAClB,CAAC,UAAU,MAAM,EAAE;AACnB,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC5B,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAC9B,IAAI,MAAM,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;AACtC,IAAI,MAAM,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAClC,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC;AAC5C,CAAC,EAAEA,cAAM,KAAKA,cAAM,GAAG,EAAE,CAAC,CAAC;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var SIGNAL;
|
|
2
|
+
(function (SIGNAL) {
|
|
3
|
+
SIGNAL["STOP"] = "stop";
|
|
4
|
+
SIGNAL["START"] = "start";
|
|
5
|
+
SIGNAL["Unhealthy"] = "unhealthy";
|
|
6
|
+
SIGNAL["Healthy"] = "healthy";
|
|
7
|
+
SIGNAL["UpdateConfig"] = "updateConfig";
|
|
8
|
+
})(SIGNAL || (SIGNAL = {}));
|
|
9
|
+
|
|
10
|
+
export { SIGNAL };
|
|
11
|
+
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sources":["../../../../../../../node_modules/@cloudfun/top-proxy-sdk/lib/interface.js"],"sourcesContent":["export var SIGNAL;\n(function (SIGNAL) {\n SIGNAL[\"STOP\"] = \"stop\";\n SIGNAL[\"START\"] = \"start\";\n SIGNAL[\"Unhealthy\"] = \"unhealthy\";\n SIGNAL[\"Healthy\"] = \"healthy\";\n SIGNAL[\"UpdateConfig\"] = \"updateConfig\";\n})(SIGNAL || (SIGNAL = {}));\n"],"names":[],"mappings":"AAAU,IAAC,OAAO;AAClB,CAAC,UAAU,MAAM,EAAE;AACnB,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAC5B,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAC9B,IAAI,MAAM,CAAC,WAAW,CAAC,GAAG,WAAW,CAAC;AACtC,IAAI,MAAM,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;AAClC,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC;AAC5C,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,EAAE,CAAC,CAAC;;;;","x_google_ignoreList":[0]}
|