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 6161 },
6262 "devDependencies" : {
6363 "@internal/config" : " 0.0.0" ,
64- "@segment/inspector-webext" : " ^1.1.0 " ,
64+ "@segment/inspector-webext" : " ^2.0.3 " ,
6565 "@size-limit/preset-big-lib" : " ^7.0.8" ,
6666 "@types/flat" : " ^5.0.1" ,
6767 "@types/fs-extra" : " ^9.0.2" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import {
2323 flushOn ,
2424} from '../core/buffer'
2525import { popSnippetWindowBuffer } from '../core/buffer/snippet'
26+ import { inspectorHost } from '../core/inspector'
2627
2728export interface LegacyIntegrationConfiguration {
2829 /* @deprecated - This does not indicate browser types anymore */
@@ -270,6 +271,8 @@ async function loadAnalytics(
270271 const opts : InitOptions = { retryQueue, ...options }
271272 const analytics = new Analytics ( settings , opts )
272273
274+ inspectorHost . attach ?.( analytics as any )
275+
273276 const plugins = settings . plugins ?? [ ]
274277 Context . initMetrics ( legacySettings . metrics )
275278
You can’t perform that action at this time.
0 commit comments