miaoda-react-devkit 0.1.1-beta.0 → 0.1.1-beta.10

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.
@@ -0,0 +1,78 @@
1
+ // src/stubs/sentry-react-noop-stub.ts
2
+ var init = (_options) => {
3
+ };
4
+ var browserTracingIntegration = () => ({});
5
+ var captureException = (_err) => "";
6
+ var captureMessage = (_msg) => "";
7
+ var captureEvent = (_event) => "";
8
+ var addBreadcrumb = (_breadcrumb) => {
9
+ };
10
+ var setUser = (_user) => {
11
+ };
12
+ var setTag = (_key, _value) => {
13
+ };
14
+ var setTags = (_tags) => {
15
+ };
16
+ var setContext = (_key, _ctx) => {
17
+ };
18
+ var setExtra = (_key, _value) => {
19
+ };
20
+ var setExtras = (_extras) => {
21
+ };
22
+ var withScope = (cb) => {
23
+ cb({});
24
+ };
25
+ var withIsolationScope = (cb) => {
26
+ cb({});
27
+ };
28
+ var startSpan = (_opts, cb) => cb();
29
+ var getClient = () => void 0;
30
+ var flush = () => Promise.resolve(true);
31
+ var close = () => Promise.resolve(true);
32
+ var lastEventId = () => void 0;
33
+ var SDK_VERSION = "0.0.0-stub";
34
+ var ErrorBoundary = ({ children }) => children ?? null;
35
+ var withErrorBoundary = (Component) => Component;
36
+ var withProfiler = (Component) => Component;
37
+ var useProfiler = (_name) => {
38
+ };
39
+ var Profiler = ({ children }) => children ?? null;
40
+ var withSentryRouting = (Component) => Component;
41
+ var withSentryReactRouterV6Routing = (Component) => Component;
42
+ var wrapCreateBrowserRouterV6 = (fn) => fn;
43
+ var wrapCreateBrowserRouterV7 = (fn) => fn;
44
+ var reactRouterV6BrowserTracingIntegration = () => ({});
45
+ var reactRouterV7BrowserTracingIntegration = () => ({});
46
+ export {
47
+ ErrorBoundary,
48
+ Profiler,
49
+ SDK_VERSION,
50
+ addBreadcrumb,
51
+ browserTracingIntegration,
52
+ captureEvent,
53
+ captureException,
54
+ captureMessage,
55
+ close,
56
+ flush,
57
+ getClient,
58
+ init,
59
+ lastEventId,
60
+ reactRouterV6BrowserTracingIntegration,
61
+ reactRouterV7BrowserTracingIntegration,
62
+ setContext,
63
+ setExtra,
64
+ setExtras,
65
+ setTag,
66
+ setTags,
67
+ setUser,
68
+ startSpan,
69
+ useProfiler,
70
+ withErrorBoundary,
71
+ withIsolationScope,
72
+ withProfiler,
73
+ withScope,
74
+ withSentryReactRouterV6Routing,
75
+ withSentryRouting,
76
+ wrapCreateBrowserRouterV6,
77
+ wrapCreateBrowserRouterV7
78
+ };