@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.
Files changed (463) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +0 -26
  2. package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
  3. package/dist/_virtual/_commonjsHelpers.js +1 -26
  4. package/dist/_virtual/_commonjsHelpers.js.map +1 -1
  5. package/dist/_virtual/index.cjs +2 -2
  6. package/dist/_virtual/index.js +2 -2
  7. package/dist/_virtual/index2.cjs +2 -2
  8. package/dist/_virtual/index2.js +2 -2
  9. package/dist/_virtual/index3.cjs +2 -2
  10. package/dist/_virtual/index3.js +2 -2
  11. package/dist/_virtual/index4.cjs +2 -2
  12. package/dist/_virtual/index4.js +2 -2
  13. package/dist/adk/components/Debug/Events/index.cjs +15 -1
  14. package/dist/adk/components/Debug/Events/index.cjs.map +1 -1
  15. package/dist/adk/components/Debug/Events/index.d.ts.map +1 -1
  16. package/dist/adk/components/Debug/Events/index.js +15 -1
  17. package/dist/adk/components/Debug/Events/index.js.map +1 -1
  18. package/dist/adk/components/Debug/Trace/store.cjs +3 -3
  19. package/dist/adk/components/Debug/Trace/store.cjs.map +1 -1
  20. package/dist/adk/components/Debug/Trace/store.js +1 -1
  21. package/dist/adk/components/Debug/Trace/utils.cjs +0 -1
  22. package/dist/adk/components/Debug/Trace/utils.cjs.map +1 -1
  23. package/dist/adk/components/Debug/Trace/utils.d.ts.map +1 -1
  24. package/dist/adk/components/Debug/Trace/utils.js +0 -1
  25. package/dist/adk/components/Debug/Trace/utils.js.map +1 -1
  26. package/dist/adk/hooks/useEvents.cjs +14 -7
  27. package/dist/adk/hooks/useEvents.cjs.map +1 -1
  28. package/dist/adk/hooks/useEvents.d.ts.map +1 -1
  29. package/dist/adk/hooks/useEvents.js +12 -5
  30. package/dist/adk/hooks/useEvents.js.map +1 -1
  31. package/dist/components/ThreadOptionsMenu.cjs +11 -4
  32. package/dist/components/ThreadOptionsMenu.cjs.map +1 -1
  33. package/dist/components/ThreadOptionsMenu.d.ts.map +1 -1
  34. package/dist/components/ThreadOptionsMenu.js +11 -4
  35. package/dist/components/ThreadOptionsMenu.js.map +1 -1
  36. package/dist/components/assistant-ui/markdown-text.cjs +1 -5
  37. package/dist/components/assistant-ui/markdown-text.cjs.map +1 -1
  38. package/dist/components/assistant-ui/markdown-text.js +1 -5
  39. package/dist/components/assistant-ui/markdown-text.js.map +1 -1
  40. package/dist/components/assistant-ui/thread.cjs +1 -1
  41. package/dist/components/assistant-ui/thread.cjs.map +1 -1
  42. package/dist/components/thread-list.cjs +5 -5
  43. package/dist/components/thread-list.cjs.map +1 -1
  44. package/dist/index.css +1 -2
  45. 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
  46. 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
  47. 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
  48. 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
  49. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs +1 -1
  50. package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +1 -1
  51. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.cjs +1 -4
  52. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.cjs.map +1 -1
  53. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js +1 -1
  54. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.cjs +1 -1
  55. package/dist/node_modules/.pnpm/secure-json-parse@4.1.0/node_modules/secure-json-parse/index.js +1 -1
  56. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.cjs +1 -1
  57. package/dist/node_modules/.pnpm/style-to-js@1.1.18/node_modules/style-to-js/cjs/index.js +1 -1
  58. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.cjs +1 -1
  59. package/dist/node_modules/.pnpm/style-to-object@1.0.11/node_modules/style-to-object/cjs/index.js +1 -1
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. package/dist/node_modules/@byted/iaas-monitor/lib/common.cjs +55 -0
  67. package/dist/node_modules/@byted/iaas-monitor/lib/common.cjs.map +1 -0
  68. package/dist/node_modules/@byted/iaas-monitor/lib/common.js +52 -0
  69. package/dist/node_modules/@byted/iaas-monitor/lib/common.js.map +1 -0
  70. package/dist/node_modules/@byted/iaas-monitor/lib/const.cjs +63 -0
  71. package/dist/node_modules/@byted/iaas-monitor/lib/const.cjs.map +1 -0
  72. package/dist/node_modules/@byted/iaas-monitor/lib/const.js +57 -0
  73. package/dist/node_modules/@byted/iaas-monitor/lib/const.js.map +1 -0
  74. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs +72 -0
  75. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.cjs.map +1 -0
  76. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js +70 -0
  77. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/index.js.map +1 -0
  78. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs +65 -0
  79. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.cjs.map +1 -0
  80. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js +63 -0
  81. package/dist/node_modules/@byted/iaas-monitor/lib/loadSlardar/loadSlardar.js.map +1 -0
  82. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.cjs +21 -0
  83. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.cjs.map +1 -0
  84. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.js +19 -0
  85. package/dist/node_modules/@byted/iaas-monitor/lib/monitor.js.map +1 -0
  86. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs +12 -0
  87. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.cjs.map +1 -0
  88. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js +10 -0
  89. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/dom.js.map +1 -0
  90. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs +15 -0
  91. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.cjs.map +1 -0
  92. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js +13 -0
  93. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/autoUfspCollect/index.js.map +1 -0
  94. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs +11 -0
  95. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.cjs.map +1 -0
  96. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js +9 -0
  97. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/index.js.map +1 -0
  98. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs +14 -0
  99. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.cjs.map +1 -0
  100. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js +12 -0
  101. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/ufspAndSufsp.js.map +1 -0
  102. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs +31 -0
  103. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.cjs.map +1 -0
  104. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js +29 -0
  105. package/dist/node_modules/@byted/iaas-monitor/lib/performanceMetrics/utils.js.map +1 -0
  106. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs +157 -0
  107. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.cjs.map +1 -0
  108. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js +155 -0
  109. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/index.js.map +1 -0
  110. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs +73 -0
  111. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs.map +1 -0
  112. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js +71 -0
  113. package/dist/node_modules/@byted/iaas-monitor/lib/sladarWebLite/proxy.js.map +1 -0
  114. package/dist/node_modules/@byted/iaas-monitor/lib/utils.cjs +195 -0
  115. package/dist/node_modules/@byted/iaas-monitor/lib/utils.cjs.map +1 -0
  116. package/dist/node_modules/@byted/iaas-monitor/lib/utils.js +183 -0
  117. package/dist/node_modules/@byted/iaas-monitor/lib/utils.js.map +1 -0
  118. package/dist/node_modules/@byted-iaas/fetch/lib/basic.cjs +41 -0
  119. package/dist/node_modules/@byted-iaas/fetch/lib/basic.cjs.map +1 -0
  120. package/dist/node_modules/@byted-iaas/fetch/lib/basic.js +39 -0
  121. package/dist/node_modules/@byted-iaas/fetch/lib/basic.js.map +1 -0
  122. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs +109 -0
  123. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.cjs.map +1 -0
  124. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.js +88 -0
  125. package/dist/node_modules/@byted-iaas/fetch/lib/cancelHandler.js.map +1 -0
  126. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs +78 -0
  127. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.cjs.map +1 -0
  128. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.js +76 -0
  129. package/dist/node_modules/@byted-iaas/fetch/lib/errorHandler.js.map +1 -0
  130. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.cjs +237 -0
  131. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.cjs.map +1 -0
  132. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.js +235 -0
  133. package/dist/node_modules/@byted-iaas/fetch/lib/fetch.js.map +1 -0
  134. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs +28 -0
  135. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.cjs.map +1 -0
  136. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js +26 -0
  137. package/dist/node_modules/@byted-iaas/fetch/lib/rollbackHandler.js.map +1 -0
  138. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs +34 -0
  139. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.cjs.map +1 -0
  140. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.js +31 -0
  141. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/index.js.map +1 -0
  142. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs +13 -0
  143. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.cjs.map +1 -0
  144. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.js +11 -0
  145. package/dist/node_modules/@byted-iaas/fetch/lib/slardar/path.js.map +1 -0
  146. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.cjs +445 -0
  147. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.cjs.map +1 -0
  148. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.js +442 -0
  149. package/dist/node_modules/@byted-paas/vfetch/dist/es/index.js.map +1 -0
  150. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs +12 -0
  151. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.cjs.map +1 -0
  152. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
  153. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
  154. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs +40 -0
  155. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.cjs.map +1 -0
  156. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +38 -0
  157. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js.map +1 -0
  158. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs +10 -0
  159. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.cjs.map +1 -0
  160. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +8 -0
  161. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -0
  162. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs +24 -0
  163. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.cjs.map +1 -0
  164. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js +22 -0
  165. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/construct.js.map +1 -0
  166. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs +23 -0
  167. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.cjs.map +1 -0
  168. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js +21 -0
  169. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
  170. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
  171. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
  172. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
  173. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
  174. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs +11 -0
  175. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.cjs.map +1 -0
  176. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +9 -0
  177. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
  178. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs +24 -0
  179. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.cjs.map +1 -0
  180. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js +22 -0
  181. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
  182. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs +8 -0
  183. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.cjs.map +1 -0
  184. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +6 -0
  185. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js.map +1 -0
  186. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +17 -0
  187. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs.map +1 -0
  188. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +15 -0
  189. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -0
  190. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs +17 -0
  191. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.cjs.map +1 -0
  192. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +15 -0
  193. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
  194. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs +12 -0
  195. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.cjs.map +1 -0
  196. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +10 -0
  197. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  198. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs +14 -0
  199. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.cjs.map +1 -0
  200. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
  201. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
  202. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs +43 -0
  203. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.cjs.map +1 -0
  204. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +41 -0
  205. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js.map +1 -0
  206. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs +365 -0
  207. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.cjs.map +1 -0
  208. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +363 -0
  209. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/regeneratorRuntime.js.map +1 -0
  210. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs +22 -0
  211. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.cjs.map +1 -0
  212. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js +20 -0
  213. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/helpers/typeof.js.map +1 -0
  214. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs +25 -0
  215. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.cjs.map +1 -0
  216. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js +23 -0
  217. package/dist/node_modules/@byted-paas/vfetch/node_modules/@babel/runtime/regenerator/index.js.map +1 -0
  218. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs +14 -0
  219. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.cjs.map +1 -0
  220. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js +12 -0
  221. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcModal.js.map +1 -0
  222. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs +23 -0
  223. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.cjs.map +1 -0
  224. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js +21 -0
  225. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/component/volcNotification.js.map +1 -0
  226. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs +21 -0
  227. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.cjs.map +1 -0
  228. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js +19 -0
  229. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volc-material/information/es/utils/index.js.map +1 -0
  230. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs +22 -0
  231. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.cjs.map +1 -0
  232. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js +20 -0
  233. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/displayText.js.map +1 -0
  234. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +137 -0
  235. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
  236. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +134 -0
  237. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
  238. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs +63 -0
  239. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.cjs.map +1 -0
  240. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js +61 -0
  241. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/reportToSlardar.js.map +1 -0
  242. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs +236 -0
  243. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.cjs.map +1 -0
  244. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js +232 -0
  245. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/base.js.map +1 -0
  246. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs +26 -0
  247. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.cjs.map +1 -0
  248. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js +24 -0
  249. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/request/constant.js.map +1 -0
  250. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs +87 -0
  251. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.cjs.map +1 -0
  252. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js +82 -0
  253. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/type.js.map +1 -0
  254. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs +19 -0
  255. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.cjs.map +1 -0
  256. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js +16 -0
  257. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/utils.js.map +1 -0
  258. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs +11 -0
  259. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.cjs.map +1 -0
  260. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js +9 -0
  261. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/index.js.map +1 -0
  262. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs +235 -0
  263. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.cjs.map +1 -0
  264. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js +233 -0
  265. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/adapters/xhr.js.map +1 -0
  266. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs +75 -0
  267. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.cjs.map +1 -0
  268. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js +73 -0
  269. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/axios.js.map +1 -0
  270. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs +31 -0
  271. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.cjs.map +1 -0
  272. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js +29 -0
  273. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/Cancel.js.map +1 -0
  274. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs +133 -0
  275. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.cjs.map +1 -0
  276. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js +131 -0
  277. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/CancelToken.js.map +1 -0
  278. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs +17 -0
  279. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.cjs.map +1 -0
  280. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js +15 -0
  281. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/cancel/isCancel.js.map +1 -0
  282. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs +158 -0
  283. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.cjs.map +1 -0
  284. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js +156 -0
  285. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/Axios.js.map +1 -0
  286. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs +59 -0
  287. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.cjs.map +1 -0
  288. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js +57 -0
  289. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/InterceptorManager.js.map +1 -0
  290. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs +35 -0
  291. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.cjs.map +1 -0
  292. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js +33 -0
  293. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/buildFullPath.js.map +1 -0
  294. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs +32 -0
  295. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.cjs.map +1 -0
  296. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js +30 -0
  297. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/createError.js.map +1 -0
  298. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs +96 -0
  299. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.cjs.map +1 -0
  300. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js +94 -0
  301. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/dispatchRequest.js.map +1 -0
  302. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs +46 -0
  303. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.cjs.map +1 -0
  304. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js +44 -0
  305. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/enhanceError.js.map +1 -0
  306. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs +104 -0
  307. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.cjs.map +1 -0
  308. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js +102 -0
  309. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/mergeConfig.js.map +1 -0
  310. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs +39 -0
  311. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.cjs.map +1 -0
  312. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js +37 -0
  313. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/settle.js.map +1 -0
  314. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs +28 -0
  315. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.cjs.map +1 -0
  316. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js +26 -0
  317. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/core/transformData.js.map +1 -0
  318. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs +151 -0
  319. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.cjs.map +1 -0
  320. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js +149 -0
  321. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/defaults.js.map +1 -0
  322. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs +16 -0
  323. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.cjs.map +1 -0
  324. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js +14 -0
  325. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/env/data.js.map +1 -0
  326. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs +14 -0
  327. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.cjs.map +1 -0
  328. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js +12 -0
  329. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/bind.js.map +1 -0
  330. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs +75 -0
  331. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.cjs.map +1 -0
  332. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js +73 -0
  333. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/buildURL.js.map +1 -0
  334. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs +26 -0
  335. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.cjs.map +1 -0
  336. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js +24 -0
  337. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/combineURLs.js.map +1 -0
  338. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs +67 -0
  339. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.cjs.map +1 -0
  340. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js +65 -0
  341. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/cookies.js.map +1 -0
  342. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +26 -0
  343. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.cjs.map +1 -0
  344. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js +24 -0
  345. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +1 -0
  346. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs +23 -0
  347. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.cjs.map +1 -0
  348. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js +21 -0
  349. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isAxiosError.js.map +1 -0
  350. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +82 -0
  351. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.cjs.map +1 -0
  352. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +80 -0
  353. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +1 -0
  354. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs +17 -0
  355. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.cjs.map +1 -0
  356. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js +15 -0
  357. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/normalizeHeaderName.js.map +1 -0
  358. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs +67 -0
  359. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.cjs.map +1 -0
  360. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js +65 -0
  361. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/parseHeaders.js.map +1 -0
  362. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs +39 -0
  363. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.cjs.map +1 -0
  364. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js +37 -0
  365. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/spread.js.map +1 -0
  366. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs +87 -0
  367. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.cjs.map +1 -0
  368. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js +85 -0
  369. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/helpers/validator.js.map +1 -0
  370. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs +354 -0
  371. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.cjs.map +1 -0
  372. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js +352 -0
  373. package/dist/node_modules/@byted-paas/vfetch/node_modules/@volcengine/console-web-sdk/node_modules/axios/lib/utils.js.map +1 -0
  374. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs +173 -0
  375. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.cjs.map +1 -0
  376. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js +171 -0
  377. package/dist/node_modules/@byted-paas/vfetch/node_modules/js-cookie/src/js.cookie.js.map +1 -0
  378. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs +135 -0
  379. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.cjs.map +1 -0
  380. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.js +133 -0
  381. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/client.js.map +1 -0
  382. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs +29 -0
  383. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.cjs.map +1 -0
  384. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js +26 -0
  385. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/constant.js.map +1 -0
  386. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs +11 -0
  387. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.cjs.map +1 -0
  388. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js +11 -0
  389. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/interface.js.map +1 -0
  390. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs +67 -0
  391. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.cjs.map +1 -0
  392. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js +65 -0
  393. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/logger.js.map +1 -0
  394. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs +11 -0
  395. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.cjs.map +1 -0
  396. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js +9 -0
  397. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/slardar/index.js.map +1 -0
  398. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs +40 -0
  399. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.cjs.map +1 -0
  400. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js +38 -0
  401. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/index.js.map +1 -0
  402. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs +53 -0
  403. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.cjs.map +1 -0
  404. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js +51 -0
  405. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/storage/storageSlardar.js.map +1 -0
  406. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs +197 -0
  407. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.cjs.map +1 -0
  408. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js +195 -0
  409. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/index.js.map +1 -0
  410. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs +21 -0
  411. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.cjs.map +1 -0
  412. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js +19 -0
  413. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/translate/util.js.map +1 -0
  414. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs +166 -0
  415. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.cjs.map +1 -0
  416. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.js +149 -0
  417. package/dist/node_modules/@cloudfun/top-proxy-sdk/lib/util.js.map +1 -0
  418. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs +13 -0
  419. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.cjs.map +1 -0
  420. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js +8 -0
  421. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/const.js.map +1 -0
  422. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs +57 -0
  423. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.cjs.map +1 -0
  424. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js +54 -0
  425. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/eviction/strategies.js.map +1 -0
  426. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs +114 -0
  427. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.cjs.map +1 -0
  428. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js +108 -0
  429. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/report.js.map +1 -0
  430. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs +495 -0
  431. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.cjs.map +1 -0
  432. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js +493 -0
  433. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/storage.js.map +1 -0
  434. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs +86 -0
  435. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.cjs.map +1 -0
  436. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js +80 -0
  437. package/dist/node_modules/@cloudfun/top-proxy-sdk/node_modules/@byted-iaas/storage/lib/utils.js.map +1 -0
  438. package/dist/node_modules/@slardar/integrations/dist/action.cjs +982 -0
  439. package/dist/node_modules/@slardar/integrations/dist/action.cjs.map +1 -0
  440. package/dist/node_modules/@slardar/integrations/dist/action.js +980 -0
  441. package/dist/node_modules/@slardar/integrations/dist/action.js.map +1 -0
  442. package/dist/node_modules/@slardar/integrations/dist/captureConsole.cjs +162 -0
  443. package/dist/node_modules/@slardar/integrations/dist/captureConsole.cjs.map +1 -0
  444. package/dist/node_modules/@slardar/integrations/dist/captureConsole.js +160 -0
  445. package/dist/node_modules/@slardar/integrations/dist/captureConsole.js.map +1 -0
  446. package/dist/node_modules/@slardar/integrations/dist/heatmap.cjs +534 -0
  447. package/dist/node_modules/@slardar/integrations/dist/heatmap.cjs.map +1 -0
  448. package/dist/node_modules/@slardar/integrations/dist/heatmap.js +532 -0
  449. package/dist/node_modules/@slardar/integrations/dist/heatmap.js.map +1 -0
  450. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs +139 -0
  451. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.cjs.map +1 -0
  452. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js +137 -0
  453. package/dist/node_modules/@volcengine/console-web-sdk/dist/js/treeshaking/publicData.js.map +1 -0
  454. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +19 -0
  455. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs.map +1 -0
  456. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js +17 -0
  457. package/dist/node_modules/@volcengine/console-web-sdk/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
  458. package/dist/packages/core/dist/index.cjs +8 -11
  459. package/dist/packages/core/dist/index.cjs.map +1 -1
  460. package/dist/packages/core/dist/index.js +0 -3
  461. package/dist/packages/core/dist/index.js.map +1 -1
  462. package/dist/plugins/adkPlugin.d.ts.map +1 -1
  463. package/package.json +1 -1
@@ -0,0 +1,235 @@
1
+ import { Notification } from '@arco-design/web-react';
2
+ import { Storage } from '@byted-iaas/storage';
3
+ import { TopProxyClient } from '../../../@cloudfun/top-proxy-sdk/lib/client.js';
4
+ import '../../../@cloudfun/top-proxy-sdk/lib/interface.js';
5
+ import { getRegion } from '../../../@cloudfun/top-proxy-sdk/lib/util.js';
6
+ import { CloudfunClient } from '@cloudfun/web-sdk';
7
+ import { Basic } from './basic.js';
8
+ import { CancelHandler } from './cancelHandler.js';
9
+ import { ErrorHandler } from './errorHandler.js';
10
+ import { getIsNeedRollback } from './rollbackHandler.js';
11
+ import { SlardarClient } from './slardar/index.js';
12
+
13
+ var BizErrorCode;
14
+ (function (BizErrorCode) {
15
+ BizErrorCode["MFA"] = "ErrNeedMFA";
16
+ })(BizErrorCode || (BizErrorCode = {}));
17
+ const Slardar_Init_Tcc = 'Init_Tcc';
18
+ const Slardar_Rollback = 'Rollback';
19
+ // 0. 超时时间定义为 1s
20
+ // 1. 首次进入页面
21
+ // 1.1 接口未超时(0.5s)
22
+ // 1.1.1 0-0.5s 无请求,即所有请求强制等待 0.5s
23
+ // 1.1.2 0.5s 之后,所有数据使用接口返回的结果判断回滚
24
+ // 1.2 接口超时(2s)
25
+ // 1.2.1 0-1s 无请求,即所有请求强制等待 1s
26
+ // 1.2.2 1s-2s 默认回滚
27
+ // 1.2.3 2s 之后,所有请求使用接口返回的结果判断回滚
28
+ // 2. 非首次进入页面,即有缓存,定义接口时间为 2s
29
+ // 2.1 2s 前使用缓存数据
30
+ // 2.2 2s后 所有请求使用接口返回的结果判断回滚
31
+ const DEFAULT_TIMEOUT = 1000;
32
+ class IaasFetch extends Basic {
33
+ constructor(option) {
34
+ super(option);
35
+ this.cloudFunClients = new Map();
36
+ this.controllerMap = new Map();
37
+ this._config = Object.assign({ formatLowerCase: false }, option);
38
+ this.initPromise = this.init(option);
39
+ this.defaultVersion = option.version;
40
+ this.defaultService = option.service;
41
+ this.defaultPlatform = option.platform;
42
+ this.cloudfunAppId = option.cloudfunAppId;
43
+ }
44
+ async initTccConfig() {
45
+ let timeoutId;
46
+ if (this._config.disableTcc) {
47
+ return;
48
+ }
49
+ // 从 tcc 获取数据并写入本地存储,之后只需要从本地存储消费数据即可
50
+ const getConfigFromTCC = async () => {
51
+ const { errorMap = {}, rollbackConfig = [], timeout = DEFAULT_TIMEOUT, } = await this.getConfigFromTCC();
52
+ !this._config.disablePreTcc && console.log('[iaas-fetch] 获取回滚配置接口成功', rollbackConfig);
53
+ this.temp = rollbackConfig;
54
+ this.storage.setItems([
55
+ { key: 'errorMap', value: errorMap },
56
+ { key: 'rollbackConfig', value: rollbackConfig },
57
+ { key: 'timeout', value: timeout },
58
+ ]);
59
+ this.timeout = false;
60
+ SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'success' }, this._config));
61
+ clearTimeout(timeoutId);
62
+ };
63
+ if (this._config.disablePreTcc) {
64
+ getConfigFromTCC();
65
+ return;
66
+ }
67
+ const timeoutPromise = () => new Promise(async (_, reject) => {
68
+ const storedTimeout = await this.storage.getItem('timeout');
69
+ let timeout = Number(storedTimeout);
70
+ if (isNaN(timeout) || timeout <= 0) {
71
+ timeout = DEFAULT_TIMEOUT;
72
+ }
73
+ timeoutId = setTimeout(() => {
74
+ !this._config.disablePreTcc && console.log('[iaas-fetch] 获取回滚配置接口已超时,接口使用缓存配置或默认回滚');
75
+ this.timeout = true;
76
+ SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'timeout' }, this._config));
77
+ reject('timeout');
78
+ }, timeout);
79
+ });
80
+ try {
81
+ SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'total' }, this._config));
82
+ await Promise.race([getConfigFromTCC(), timeoutPromise()]);
83
+ }
84
+ catch (e) {
85
+ SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(e) }, this._config));
86
+ }
87
+ finally {
88
+ clearTimeout(timeoutId);
89
+ }
90
+ }
91
+ async init(option) {
92
+ this.storage = new Storage('iaas-fetch');
93
+ if (option.disablePreTcc) {
94
+ this.initTccConfig();
95
+ }
96
+ else {
97
+ const errorMapFromStorage = (await this.storage.getItem('errorMap'));
98
+ if (errorMapFromStorage) {
99
+ // 如果缓存中存在相关字段,则直接从 Storage 获取回滚配置,接口返回直接写入 Storage 后也直接从 Storage 获取回滚配置
100
+ this.initTccConfig();
101
+ }
102
+ else {
103
+ // 如果缓存中没有相关字段,则走 race 机制,超时时间为 1s,接口需要 2s
104
+ // 所有接口强制等待 1s
105
+ // 1s-2s 的接口走默认的回滚逻辑
106
+ // 2s 后的接口使用回滚接口返回的回滚逻辑
107
+ await this.initTccConfig();
108
+ }
109
+ }
110
+ this.errorHandler = new ErrorHandler({ lang: option.lang });
111
+ this.cancelHandler = new CancelHandler();
112
+ }
113
+ /** open-top 和 cloudfun-bff 的错误格式化 */
114
+ async formatError(error) {
115
+ const errorMap = ((await this.storage.getItem('errorMap')) || {});
116
+ return this.errorHandler.formatError(error, errorMap);
117
+ }
118
+ async requestTopProxy(option) {
119
+ var _a;
120
+ // TODO,适配取消请求
121
+ try {
122
+ if (!this.topClient) {
123
+ this.topClient = new TopProxyClient({
124
+ service: this.defaultService,
125
+ version: this.defaultVersion,
126
+ platform: this.defaultPlatform,
127
+ disableFormat: !this._config.formatLowerCase,
128
+ isV2: this._config.isV2,
129
+ callerService: this._config.callerService,
130
+ });
131
+ }
132
+ SlardarClient.logEvent('RequestParamsLength', { paramsLength: ((_a = JSON.stringify(option.params || {})) === null || _a === void 0 ? void 0 : _a.length) || 0 }, Object.assign({}, option));
133
+ const result = await this.topClient.request(Object.assign({}, option));
134
+ return [undefined, result];
135
+ }
136
+ catch (ex) {
137
+ const err = (ex.error || ex);
138
+ const { code, message, error } = await this.formatError(err);
139
+ // 当错误码为 `ErrNeedMFA` 时不做任何处理
140
+ if (code === BizErrorCode.MFA) {
141
+ Notification.error({
142
+ title: this.getLocalizedContent('错误提示', 'Error message'),
143
+ content: this.getLocalizedContent('安全验证未通过', 'Security verification failed'),
144
+ });
145
+ }
146
+ else {
147
+ this.errorHandler.displayErrorMessage(option.errorDisplay, {
148
+ code,
149
+ message,
150
+ responseMetadata: err === null || err === void 0 ? void 0 : err.ResponseMetadata,
151
+ });
152
+ }
153
+ SlardarClient.logEvent('RequestTopProxy', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, option));
154
+ console.log('[iaas-fetch] request error', option.action, ex.message);
155
+ return [{ code, message, responseMetadata: error.ResponseMetadata }];
156
+ }
157
+ }
158
+ async requestCloudfunBff(option) {
159
+ const { appId = this.cloudfunAppId } = option;
160
+ let client = this.cloudFunClients.get(appId);
161
+ if (!client) {
162
+ this.cloudFunClients.set(appId, (client = new CloudfunClient({ appId })));
163
+ }
164
+ const { signal, controllerKey } = this.cancelHandler.handleRequestCancel(option);
165
+ try {
166
+ const result = await client.request(Object.assign(Object.assign({}, option), { signal })).then(response => {
167
+ // 请求完成后从 map 中移除对应的 AbortController
168
+ this.controllerMap.delete(controllerKey);
169
+ return response;
170
+ });
171
+ return [undefined, result];
172
+ }
173
+ catch (ex) {
174
+ const err = (ex.error || ex);
175
+ const { code, message, error } = await this.formatError(err);
176
+ // 请求完成后从 map 中移除对应的 AbortController
177
+ if (ex.name === 'AbortError') {
178
+ this.controllerMap.delete(controllerKey);
179
+ }
180
+ else {
181
+ this.errorHandler.displayErrorMessage(option.errorDisplay, {
182
+ code,
183
+ message,
184
+ responseMetadata: err === null || err === void 0 ? void 0 : err.ResponseMetadata,
185
+ });
186
+ }
187
+ SlardarClient.logEvent('RequestCloudfunBff', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, option));
188
+ console.log('[iaas-fetch] request error', option.action, ex.message);
189
+ return [{ code, message, responseMetadata: error.ResponseMetadata }];
190
+ }
191
+ }
192
+ async request(option) {
193
+ try {
194
+ await this.initPromise;
195
+ if (option.type === 'open-top') {
196
+ return this.requestTopProxy(option);
197
+ }
198
+ else if (option.type === 'cloudfun-bff') {
199
+ return this.requestCloudfunBff(option);
200
+ }
201
+ else {
202
+ const error = new Error('IaasFetch: not support type');
203
+ throw error;
204
+ }
205
+ }
206
+ catch (ex) {
207
+ SlardarClient.logEvent('Request', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, option));
208
+ console.error('[iaas-fetch] request error', option.action, ex.message);
209
+ }
210
+ }
211
+ async getIsNeedRollback(params) {
212
+ try {
213
+ await this.initPromise;
214
+ const rollbackConfig = this.temp || (await this.storage.getItem('rollbackConfig'));
215
+ const rollBackParams = Object.assign(Object.assign({ service: this.defaultService, bid: this._config.bid }, params), { region: params.region || getRegion({ region: params.region }) });
216
+ if (this.timeout && !rollbackConfig) {
217
+ console.log('[iaas-fetch] 无缓存且回滚配置接口超时,默认所有接口回滚');
218
+ SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'firstly' }, this._config));
219
+ SlardarClient.logEvent(Slardar_Rollback, {}, Object.assign({ eventStatus: 'firstly' }, rollBackParams));
220
+ return true;
221
+ }
222
+ const res = getIsNeedRollback(Object.assign(Object.assign({}, rollBackParams), { rollbackConfig }));
223
+ SlardarClient.logEvent(Slardar_Rollback, {}, Object.assign({ eventStatus: res ? 'true' : 'false' }, rollBackParams));
224
+ return res;
225
+ }
226
+ catch (ex) {
227
+ SlardarClient.logEvent('getIsNeedRollback', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, params));
228
+ console.error('[iaas-fetch] getIsNeedRollback error', ex);
229
+ return true;
230
+ }
231
+ }
232
+ }
233
+
234
+ export { IaasFetch };
235
+ //# sourceMappingURL=fetch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch.js","sources":["../../../../../../../node_modules/@byted-iaas/fetch/lib/fetch.js"],"sourcesContent":["import { Notification } from '@arco-design/web-react';\nimport { Storage } from '@byted-iaas/storage';\nimport { TopProxyClient } from '@cloudfun/top-proxy-sdk';\nimport { getRegion } from '@cloudfun/top-proxy-sdk/lib/util';\nimport { CloudfunClient } from '@cloudfun/web-sdk';\nimport { Basic } from './basic';\nimport { CancelHandler } from './cancelHandler';\nimport { ErrorHandler } from './errorHandler';\nimport { getIsNeedRollback } from './rollbackHandler';\nimport { SlardarClient } from './slardar';\nvar BizErrorCode;\n(function (BizErrorCode) {\n BizErrorCode[\"MFA\"] = \"ErrNeedMFA\";\n})(BizErrorCode || (BizErrorCode = {}));\nconst Slardar_Init_Tcc = 'Init_Tcc';\nconst Slardar_Rollback = 'Rollback';\n// 0. 超时时间定义为 1s\n// 1. 首次进入页面\n// 1.1 接口未超时(0.5s)\n// 1.1.1 0-0.5s 无请求,即所有请求强制等待 0.5s\n// 1.1.2 0.5s 之后,所有数据使用接口返回的结果判断回滚\n// 1.2 接口超时(2s)\n// 1.2.1 0-1s 无请求,即所有请求强制等待 1s\n// 1.2.2 1s-2s 默认回滚\n// 1.2.3 2s 之后,所有请求使用接口返回的结果判断回滚\n// 2. 非首次进入页面,即有缓存,定义接口时间为 2s\n// 2.1 2s 前使用缓存数据\n// 2.2 2s后 所有请求使用接口返回的结果判断回滚\nconst DEFAULT_TIMEOUT = 1000;\nexport class IaasFetch extends Basic {\n constructor(option) {\n super(option);\n this.cloudFunClients = new Map();\n this.controllerMap = new Map();\n this._config = Object.assign({ formatLowerCase: false }, option);\n this.initPromise = this.init(option);\n this.defaultVersion = option.version;\n this.defaultService = option.service;\n this.defaultPlatform = option.platform;\n this.cloudfunAppId = option.cloudfunAppId;\n }\n async initTccConfig() {\n let timeoutId;\n if (this._config.disableTcc) {\n return;\n }\n // 从 tcc 获取数据并写入本地存储,之后只需要从本地存储消费数据即可\n const getConfigFromTCC = async () => {\n const { errorMap = {}, rollbackConfig = [], timeout = DEFAULT_TIMEOUT, } = await this.getConfigFromTCC();\n !this._config.disablePreTcc && console.log('[iaas-fetch] 获取回滚配置接口成功', rollbackConfig);\n this.temp = rollbackConfig;\n this.storage.setItems([\n { key: 'errorMap', value: errorMap },\n { key: 'rollbackConfig', value: rollbackConfig },\n { key: 'timeout', value: timeout },\n ]);\n this.timeout = false;\n SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'success' }, this._config));\n clearTimeout(timeoutId);\n };\n if (this._config.disablePreTcc) {\n getConfigFromTCC();\n return;\n }\n const timeoutPromise = () => new Promise(async (_, reject) => {\n const storedTimeout = await this.storage.getItem('timeout');\n let timeout = Number(storedTimeout);\n if (isNaN(timeout) || timeout <= 0) {\n timeout = DEFAULT_TIMEOUT;\n }\n timeoutId = setTimeout(() => {\n !this._config.disablePreTcc && console.log('[iaas-fetch] 获取回滚配置接口已超时,接口使用缓存配置或默认回滚');\n this.timeout = true;\n SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'timeout' }, this._config));\n reject('timeout');\n }, timeout);\n });\n try {\n SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'total' }, this._config));\n await Promise.race([getConfigFromTCC(), timeoutPromise()]);\n }\n catch (e) {\n SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(e) }, this._config));\n }\n finally {\n clearTimeout(timeoutId);\n }\n }\n async init(option) {\n this.storage = new Storage('iaas-fetch');\n if (option.disablePreTcc) {\n this.initTccConfig();\n }\n else {\n const errorMapFromStorage = (await this.storage.getItem('errorMap'));\n if (errorMapFromStorage) {\n // 如果缓存中存在相关字段,则直接从 Storage 获取回滚配置,接口返回直接写入 Storage 后也直接从 Storage 获取回滚配置\n this.initTccConfig();\n }\n else {\n // 如果缓存中没有相关字段,则走 race 机制,超时时间为 1s,接口需要 2s\n // 所有接口强制等待 1s\n // 1s-2s 的接口走默认的回滚逻辑\n // 2s 后的接口使用回滚接口返回的回滚逻辑\n await this.initTccConfig();\n }\n }\n this.errorHandler = new ErrorHandler({ lang: option.lang });\n this.cancelHandler = new CancelHandler();\n }\n /** open-top 和 cloudfun-bff 的错误格式化 */\n async formatError(error) {\n const errorMap = ((await this.storage.getItem('errorMap')) || {});\n return this.errorHandler.formatError(error, errorMap);\n }\n async requestTopProxy(option) {\n var _a;\n // TODO,适配取消请求\n try {\n if (!this.topClient) {\n this.topClient = new TopProxyClient({\n service: this.defaultService,\n version: this.defaultVersion,\n platform: this.defaultPlatform,\n disableFormat: !this._config.formatLowerCase,\n isV2: this._config.isV2,\n callerService: this._config.callerService,\n });\n }\n SlardarClient.logEvent('RequestParamsLength', { paramsLength: ((_a = JSON.stringify(option.params || {})) === null || _a === void 0 ? void 0 : _a.length) || 0 }, Object.assign({}, option));\n const result = await this.topClient.request(Object.assign({}, option));\n return [undefined, result];\n }\n catch (ex) {\n const err = (ex.error || ex);\n const { code, message, error } = await this.formatError(err);\n // 当错误码为 `ErrNeedMFA` 时不做任何处理\n if (code === BizErrorCode.MFA) {\n Notification.error({\n title: this.getLocalizedContent('错误提示', 'Error message'),\n content: this.getLocalizedContent('安全验证未通过', 'Security verification failed'),\n });\n }\n else {\n this.errorHandler.displayErrorMessage(option.errorDisplay, {\n code,\n message,\n responseMetadata: err === null || err === void 0 ? void 0 : err.ResponseMetadata,\n });\n }\n SlardarClient.logEvent('RequestTopProxy', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, option));\n console.log('[iaas-fetch] request error', option.action, ex.message);\n return [{ code, message, responseMetadata: error.ResponseMetadata }];\n }\n }\n async requestCloudfunBff(option) {\n const { appId = this.cloudfunAppId } = option;\n let client = this.cloudFunClients.get(appId);\n if (!client) {\n this.cloudFunClients.set(appId, (client = new CloudfunClient({ appId })));\n }\n const { signal, controllerKey } = this.cancelHandler.handleRequestCancel(option);\n try {\n const result = await client.request(Object.assign(Object.assign({}, option), { signal })).then(response => {\n // 请求完成后从 map 中移除对应的 AbortController\n this.controllerMap.delete(controllerKey);\n return response;\n });\n return [undefined, result];\n }\n catch (ex) {\n const err = (ex.error || ex);\n const { code, message, error } = await this.formatError(err);\n // 请求完成后从 map 中移除对应的 AbortController\n if (ex.name === 'AbortError') {\n this.controllerMap.delete(controllerKey);\n }\n else {\n this.errorHandler.displayErrorMessage(option.errorDisplay, {\n code,\n message,\n responseMetadata: err === null || err === void 0 ? void 0 : err.ResponseMetadata,\n });\n }\n SlardarClient.logEvent('RequestCloudfunBff', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, option));\n console.log('[iaas-fetch] request error', option.action, ex.message);\n return [{ code, message, responseMetadata: error.ResponseMetadata }];\n }\n }\n async request(option) {\n try {\n await this.initPromise;\n if (option.type === 'open-top') {\n return this.requestTopProxy(option);\n }\n else if (option.type === 'cloudfun-bff') {\n return this.requestCloudfunBff(option);\n }\n else {\n const error = new Error('IaasFetch: not support type');\n throw error;\n }\n }\n catch (ex) {\n SlardarClient.logEvent('Request', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, option));\n console.error('[iaas-fetch] request error', option.action, ex.message);\n }\n }\n async getIsNeedRollback(params) {\n try {\n await this.initPromise;\n const rollbackConfig = this.temp || (await this.storage.getItem('rollbackConfig'));\n const rollBackParams = Object.assign(Object.assign({ service: this.defaultService, bid: this._config.bid }, params), { region: params.region || getRegion({ region: params.region }) });\n if (this.timeout && !rollbackConfig) {\n console.log('[iaas-fetch] 无缓存且回滚配置接口超时,默认所有接口回滚');\n SlardarClient.logEvent(Slardar_Init_Tcc, {}, Object.assign({ eventStatus: 'firstly' }, this._config));\n SlardarClient.logEvent(Slardar_Rollback, {}, Object.assign({ eventStatus: 'firstly' }, rollBackParams));\n return true;\n }\n const res = getIsNeedRollback(Object.assign(Object.assign({}, rollBackParams), { rollbackConfig }));\n SlardarClient.logEvent(Slardar_Rollback, {}, Object.assign({ eventStatus: res ? 'true' : 'false' }, rollBackParams));\n return res;\n }\n catch (ex) {\n SlardarClient.logEvent('getIsNeedRollback', {}, Object.assign({ eventStatus: 'error', error: JSON.stringify(ex) }, params));\n console.error('[iaas-fetch] getIsNeedRollback error', ex);\n return true;\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAUA,IAAI,YAAY,CAAC;AACjB,CAAC,UAAU,YAAY,EAAE;AACzB,IAAI,YAAY,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC;AACvC,CAAC,EAAE,YAAY,KAAK,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC;AACxC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AACpC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,eAAe,GAAG,IAAI,CAAC;AACtB,MAAM,SAAS,SAAS,KAAK,CAAC;AACrC,IAAI,WAAW,CAAC,MAAM,EAAE;AACxB,QAAQ,KAAK,CAAC,MAAM,CAAC,CAAC;AACtB,QAAQ,IAAI,CAAC,eAAe,GAAG,IAAI,GAAG,EAAE,CAAC;AACzC,QAAQ,IAAI,CAAC,aAAa,GAAG,IAAI,GAAG,EAAE,CAAC;AACvC,QAAQ,IAAI,CAAC,OAAO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,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;AACtH,gBAAgB,aAAa,CAAC,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;AACxH,gBAAgB,OAAO,IAAI,CAAC;AAC5B,aAAa;AACb,YAAY,MAAM,GAAG,GAAG,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,cAAc,CAAC,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;AAChH,YAAY,aAAa,CAAC,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,GAAG,GAAG,MAAM,GAAG,OAAO,EAAE,EAAE,cAAc,CAAC,CAAC,CAAC;AACjI,YAAY,OAAO,GAAG,CAAC;AACvB,SAAS;AACT,QAAQ,OAAO,EAAE,EAAE;AACnB,YAAY,aAAa,CAAC,QAAQ,CAAC,mBAAmB,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;AACxI,YAAY,OAAO,CAAC,KAAK,CAAC,sCAAsC,EAAE,EAAE,CAAC,CAAC;AACtE,YAAY,OAAO,IAAI,CAAC;AACxB,SAAS;AACT,KAAK;AACL;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ // 对 getIsNeedRollback 方法覆盖以下测试场景
4
+ // 1. isTimeout = true,直接返回 true
5
+ // 2. isTimeout = false,根据配置项判断是否需要回滚
6
+ const match = (item, list) => {
7
+ return !list || list.includes(item);
8
+ };
9
+ const getIsNeedRollback = ({ bid, region, service, action, type, rollbackConfig, }) => {
10
+ // 直接遍历预处理后的配置项
11
+ for (const configItem of rollbackConfig) {
12
+ const { region: regionList, service: serviceList, action: actionList, type: typeList, bid: bidList } = configItem;
13
+ if (match(bid, bidList) &&
14
+ match(region, regionList) &&
15
+ match(service, serviceList) &&
16
+ match(action, actionList) &&
17
+ match(type, typeList)) {
18
+ return true;
19
+ }
20
+ else {
21
+ continue;
22
+ }
23
+ }
24
+ return false;
25
+ };
26
+
27
+ exports.getIsNeedRollback = getIsNeedRollback;
28
+ //# sourceMappingURL=rollbackHandler.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rollbackHandler.cjs","sources":["../../../../../../../node_modules/@byted-iaas/fetch/lib/rollbackHandler.js"],"sourcesContent":["// 对 getIsNeedRollback 方法覆盖以下测试场景\n// 1. isTimeout = true,直接返回 true\n// 2. isTimeout = false,根据配置项判断是否需要回滚\nconst match = (item, list) => {\n return !list || list.includes(item);\n};\nexport const getIsNeedRollback = ({ bid, region, service, action, type, rollbackConfig, }) => {\n // 直接遍历预处理后的配置项\n for (const configItem of rollbackConfig) {\n const { region: regionList, service: serviceList, action: actionList, type: typeList, bid: bidList } = configItem;\n if (match(bid, bidList) &&\n match(region, regionList) &&\n match(service, serviceList) &&\n match(action, actionList) &&\n match(type, typeList)) {\n return true;\n }\n else {\n continue;\n }\n }\n return false;\n};\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK;AAC9B,IAAI,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC;AACU,MAAC,iBAAiB,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,KAAK;AAC9F;AACA,IAAI,KAAK,MAAM,UAAU,IAAI,cAAc,EAAE;AAC7C,QAAQ,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;AAC1H,QAAQ,IAAI,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC;AAC/B,YAAY,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC;AACrC,YAAY,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;AACvC,YAAY,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC;AACrC,YAAY,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;AACnC,YAAY,OAAO,IAAI,CAAC;AACxB,SAAS;AACT,aAAa;AACb,YAAY,SAAS;AACrB,SAAS;AACT,KAAK;AACL,IAAI,OAAO,KAAK,CAAC;AACjB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,26 @@
1
+ // 对 getIsNeedRollback 方法覆盖以下测试场景
2
+ // 1. isTimeout = true,直接返回 true
3
+ // 2. isTimeout = false,根据配置项判断是否需要回滚
4
+ const match = (item, list) => {
5
+ return !list || list.includes(item);
6
+ };
7
+ const getIsNeedRollback = ({ bid, region, service, action, type, rollbackConfig, }) => {
8
+ // 直接遍历预处理后的配置项
9
+ for (const configItem of rollbackConfig) {
10
+ const { region: regionList, service: serviceList, action: actionList, type: typeList, bid: bidList } = configItem;
11
+ if (match(bid, bidList) &&
12
+ match(region, regionList) &&
13
+ match(service, serviceList) &&
14
+ match(action, actionList) &&
15
+ match(type, typeList)) {
16
+ return true;
17
+ }
18
+ else {
19
+ continue;
20
+ }
21
+ }
22
+ return false;
23
+ };
24
+
25
+ export { getIsNeedRollback };
26
+ //# sourceMappingURL=rollbackHandler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rollbackHandler.js","sources":["../../../../../../../node_modules/@byted-iaas/fetch/lib/rollbackHandler.js"],"sourcesContent":["// 对 getIsNeedRollback 方法覆盖以下测试场景\n// 1. isTimeout = true,直接返回 true\n// 2. isTimeout = false,根据配置项判断是否需要回滚\nconst match = (item, list) => {\n return !list || list.includes(item);\n};\nexport const getIsNeedRollback = ({ bid, region, service, action, type, rollbackConfig, }) => {\n // 直接遍历预处理后的配置项\n for (const configItem of rollbackConfig) {\n const { region: regionList, service: serviceList, action: actionList, type: typeList, bid: bidList } = configItem;\n if (match(bid, bidList) &&\n match(region, regionList) &&\n match(service, serviceList) &&\n match(action, actionList) &&\n match(type, typeList)) {\n return true;\n }\n else {\n continue;\n }\n }\n return false;\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK;AAC9B,IAAI,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC;AACU,MAAC,iBAAiB,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,KAAK;AAC9F;AACA,IAAI,KAAK,MAAM,UAAU,IAAI,cAAc,EAAE;AAC7C,QAAQ,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC;AAC1H,QAAQ,IAAI,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC;AAC/B,YAAY,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC;AACrC,YAAY,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;AACvC,YAAY,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC;AACrC,YAAY,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;AACnC,YAAY,OAAO,IAAI,CAAC;AACxB,SAAS;AACT,aAAa;AACb,YAAY,SAAS;AACrB,SAAS;AACT,KAAK;AACL,IAAI,OAAO,KAAK,CAAC;AACjB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ require('../../../../@byted/iaas-monitor/lib/monitor.cjs');
4
+ require('lodash-es');
5
+ require('../../../../@byted/iaas-monitor/lib/performanceMetrics/index.cjs');
6
+ var utils = require('../../../../@byted/iaas-monitor/lib/utils.cjs');
7
+ var index = require('../../../../@byted/iaas-monitor/lib/sladarWebLite/index.cjs');
8
+ var proxy = require('../../../../@byted/iaas-monitor/lib/sladarWebLite/proxy.cjs');
9
+ require('../../../../@byted/iaas-monitor/lib/const.cjs');
10
+ var path = require('./path.cjs');
11
+
12
+ // 创建代理对象
13
+ const { proxy: SlardarClient, updateTarget } = proxy.createProxyWithQueue({}, {
14
+ checkInitialized: (target) => {
15
+ return Object.prototype.hasOwnProperty.call(target, 'client');
16
+ },
17
+ });
18
+ //cloud.bytedance.net/docs/slardar/docs/63c8ab7a6773b3023778be76/63c8d628bd6ec6022466b064?x-resource-account=public&x-bc-region-id=bytedance
19
+ const initSlardar = () => {
20
+ // 初始化实际的 logger 实例
21
+ const realLogger = new index.SlardarWebLite({
22
+ bid: 'iaas_fetch',
23
+ pid: path.getPathNameWithoutRegion(),
24
+ userId: utils.getAccountIdFromGlobal(),
25
+ plugins: Object.assign(Object.assign({}, utils.defaultSlardarConfig.plugins), { breadcrumb: false, resource: false, ajax: false, performance: false, fmp: false, tti: false }),
26
+ });
27
+ // 更新代理对象的目标并执行待处理的调用
28
+ updateTarget(realLogger);
29
+ };
30
+ initSlardar();
31
+
32
+ exports.SlardarClient = SlardarClient;
33
+ exports.initSlardar = initSlardar;
34
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../../node_modules/@byted-iaas/fetch/lib/slardar/index.js"],"sourcesContent":["import { createProxyWithQueue, defaultSlardarConfig, getAccountIdFromGlobal, SlardarWebLite } from '@byted/iaas-monitor';\nimport { getPathNameWithoutRegion } from './path';\n// 创建代理对象\nconst { proxy: SlardarClient, updateTarget } = createProxyWithQueue({}, {\n checkInitialized: (target) => {\n return Object.prototype.hasOwnProperty.call(target, 'client');\n },\n});\nexport { SlardarClient };\n//cloud.bytedance.net/docs/slardar/docs/63c8ab7a6773b3023778be76/63c8d628bd6ec6022466b064?x-resource-account=public&x-bc-region-id=bytedance\nexport const initSlardar = () => {\n // 初始化实际的 logger 实例\n const realLogger = new SlardarWebLite({\n bid: 'iaas_fetch',\n pid: getPathNameWithoutRegion(),\n userId: getAccountIdFromGlobal(),\n plugins: Object.assign(Object.assign({}, defaultSlardarConfig.plugins), { breadcrumb: false, resource: false, ajax: false, performance: false, fmp: false, tti: false }),\n });\n // 更新代理对象的目标并执行待处理的调用\n updateTarget(realLogger);\n};\ninitSlardar();\n"],"names":["createProxyWithQueue","SlardarWebLite","getPathNameWithoutRegion","getAccountIdFromGlobal","defaultSlardarConfig"],"mappings":";;;;;;;;;;;AAEA;AACK,MAAC,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,GAAGA,0BAAoB,CAAC,EAAE,EAAE;AACxE,IAAI,gBAAgB,EAAE,CAAC,MAAM,KAAK;AAClC,QAAQ,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACtE,KAAK;AACL,CAAC,EAAE;AAEH;AACY,MAAC,WAAW,GAAG,MAAM;AACjC;AACA,IAAI,MAAM,UAAU,GAAG,IAAIC,oBAAc,CAAC;AAC1C,QAAQ,GAAG,EAAE,YAAY;AACzB,QAAQ,GAAG,EAAEC,6BAAwB,EAAE;AACvC,QAAQ,MAAM,EAAEC,4BAAsB,EAAE;AACxC,QAAQ,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAEC,0BAAoB,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AAChL,KAAK,CAAC,CAAC;AACP;AACA,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC;AAC7B,EAAE;AACF,WAAW,EAAE;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,31 @@
1
+ import '../../../../@byted/iaas-monitor/lib/monitor.js';
2
+ import 'lodash-es';
3
+ import '../../../../@byted/iaas-monitor/lib/performanceMetrics/index.js';
4
+ import { getAccountIdFromGlobal, defaultSlardarConfig } from '../../../../@byted/iaas-monitor/lib/utils.js';
5
+ import { SlardarWebLite } from '../../../../@byted/iaas-monitor/lib/sladarWebLite/index.js';
6
+ import { createProxyWithQueue } from '../../../../@byted/iaas-monitor/lib/sladarWebLite/proxy.js';
7
+ import '../../../../@byted/iaas-monitor/lib/const.js';
8
+ import { getPathNameWithoutRegion } from './path.js';
9
+
10
+ // 创建代理对象
11
+ const { proxy: SlardarClient, updateTarget } = createProxyWithQueue({}, {
12
+ checkInitialized: (target) => {
13
+ return Object.prototype.hasOwnProperty.call(target, 'client');
14
+ },
15
+ });
16
+ //cloud.bytedance.net/docs/slardar/docs/63c8ab7a6773b3023778be76/63c8d628bd6ec6022466b064?x-resource-account=public&x-bc-region-id=bytedance
17
+ const initSlardar = () => {
18
+ // 初始化实际的 logger 实例
19
+ const realLogger = new SlardarWebLite({
20
+ bid: 'iaas_fetch',
21
+ pid: getPathNameWithoutRegion(),
22
+ userId: getAccountIdFromGlobal(),
23
+ plugins: Object.assign(Object.assign({}, defaultSlardarConfig.plugins), { breadcrumb: false, resource: false, ajax: false, performance: false, fmp: false, tti: false }),
24
+ });
25
+ // 更新代理对象的目标并执行待处理的调用
26
+ updateTarget(realLogger);
27
+ };
28
+ initSlardar();
29
+
30
+ export { SlardarClient, initSlardar };
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/@byted-iaas/fetch/lib/slardar/index.js"],"sourcesContent":["import { createProxyWithQueue, defaultSlardarConfig, getAccountIdFromGlobal, SlardarWebLite } from '@byted/iaas-monitor';\nimport { getPathNameWithoutRegion } from './path';\n// 创建代理对象\nconst { proxy: SlardarClient, updateTarget } = createProxyWithQueue({}, {\n checkInitialized: (target) => {\n return Object.prototype.hasOwnProperty.call(target, 'client');\n },\n});\nexport { SlardarClient };\n//cloud.bytedance.net/docs/slardar/docs/63c8ab7a6773b3023778be76/63c8d628bd6ec6022466b064?x-resource-account=public&x-bc-region-id=bytedance\nexport const initSlardar = () => {\n // 初始化实际的 logger 实例\n const realLogger = new SlardarWebLite({\n bid: 'iaas_fetch',\n pid: getPathNameWithoutRegion(),\n userId: getAccountIdFromGlobal(),\n plugins: Object.assign(Object.assign({}, defaultSlardarConfig.plugins), { breadcrumb: false, resource: false, ajax: false, performance: false, fmp: false, tti: false }),\n });\n // 更新代理对象的目标并执行待处理的调用\n updateTarget(realLogger);\n};\ninitSlardar();\n"],"names":[],"mappings":";;;;;;;;;AAEA;AACK,MAAC,EAAE,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,oBAAoB,CAAC,EAAE,EAAE;AACxE,IAAI,gBAAgB,EAAE,CAAC,MAAM,KAAK;AAClC,QAAQ,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACtE,KAAK;AACL,CAAC,EAAE;AAEH;AACY,MAAC,WAAW,GAAG,MAAM;AACjC;AACA,IAAI,MAAM,UAAU,GAAG,IAAI,cAAc,CAAC;AAC1C,QAAQ,GAAG,EAAE,YAAY;AACzB,QAAQ,GAAG,EAAE,wBAAwB,EAAE;AACvC,QAAQ,MAAM,EAAE,sBAAsB,EAAE;AACxC,QAAQ,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,oBAAoB,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;AAChL,KAAK,CAAC,CAAC;AACP;AACA,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC;AAC7B,EAAE;AACF,WAAW,EAAE;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const REG_PATH_REGION = /\/region:\w+\+([^/?]+)/;
4
+ /*
5
+ * 将pathname中region部分去掉,得到用户想访问的子应用
6
+ * eg: '/ecs/region:ecs+ap-southeast-1/dashboard' => '/ecs/dashboard'
7
+ */
8
+ function getPathNameWithoutRegion(path = location.pathname) {
9
+ return path.replace(REG_PATH_REGION, '');
10
+ }
11
+
12
+ exports.getPathNameWithoutRegion = getPathNameWithoutRegion;
13
+ //# sourceMappingURL=path.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.cjs","sources":["../../../../../../../../node_modules/@byted-iaas/fetch/lib/slardar/path.js"],"sourcesContent":["const REG_PATH_REGION = /\\/region:\\w+\\+([^/?]+)/;\n/*\n * 将pathname中region部分去掉,得到用户想访问的子应用\n * eg: '/ecs/region:ecs+ap-southeast-1/dashboard' => '/ecs/dashboard'\n */\nexport function getPathNameWithoutRegion(path = location.pathname) {\n return path.replace(REG_PATH_REGION, '');\n}\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,IAAI,GAAG,QAAQ,CAAC,QAAQ,EAAE;AACnE,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAC7C;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ const REG_PATH_REGION = /\/region:\w+\+([^/?]+)/;
2
+ /*
3
+ * 将pathname中region部分去掉,得到用户想访问的子应用
4
+ * eg: '/ecs/region:ecs+ap-southeast-1/dashboard' => '/ecs/dashboard'
5
+ */
6
+ function getPathNameWithoutRegion(path = location.pathname) {
7
+ return path.replace(REG_PATH_REGION, '');
8
+ }
9
+
10
+ export { getPathNameWithoutRegion };
11
+ //# sourceMappingURL=path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.js","sources":["../../../../../../../../node_modules/@byted-iaas/fetch/lib/slardar/path.js"],"sourcesContent":["const REG_PATH_REGION = /\\/region:\\w+\\+([^/?]+)/;\n/*\n * 将pathname中region部分去掉,得到用户想访问的子应用\n * eg: '/ecs/region:ecs+ap-southeast-1/dashboard' => '/ecs/dashboard'\n */\nexport function getPathNameWithoutRegion(path = location.pathname) {\n return path.replace(REG_PATH_REGION, '');\n}\n"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD;AACA;AACA;AACA;AACO,SAAS,wBAAwB,CAAC,IAAI,GAAG,QAAQ,CAAC,QAAQ,EAAE;AACnE,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;AAC7C;;;;","x_google_ignoreList":[0]}