File tree Expand file tree Collapse file tree 4 files changed +586
-17
lines changed Expand file tree Collapse file tree 4 files changed +586
-17
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @segment/analytics-next ' : minor
3
+ ---
4
+
5
+ Bundled analytics support in Inspector
Original file line number Diff line number Diff line change 61
61
},
62
62
"devDependencies" : {
63
63
"@internal/config" : " 0.0.0" ,
64
- "@segment/inspector-webext" : " ^1.1.0 " ,
64
+ "@segment/inspector-webext" : " ^2.0.3 " ,
65
65
"@size-limit/preset-big-lib" : " ^7.0.8" ,
66
66
"@types/flat" : " ^5.0.1" ,
67
67
"@types/fs-extra" : " ^9.0.2" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
23
23
flushOn ,
24
24
} from '../core/buffer'
25
25
import { popSnippetWindowBuffer } from '../core/buffer/snippet'
26
+ import { inspectorHost } from '../core/inspector'
26
27
27
28
export interface LegacyIntegrationConfiguration {
28
29
/* @deprecated - This does not indicate browser types anymore */
@@ -270,6 +271,8 @@ async function loadAnalytics(
270
271
const opts : InitOptions = { retryQueue, ...options }
271
272
const analytics = new Analytics ( settings , opts )
272
273
274
+ inspectorHost . attach ?.( analytics as any )
275
+
273
276
const plugins = settings . plugins ?? [ ]
274
277
Context . initMetrics ( legacySettings . metrics )
275
278
You can’t perform that action at this time.
0 commit comments