@segment/analytics-next
Version:
Analytics Next (aka Analytics 2.0) is the latest version of Segment’s JavaScript SDK - enabling you to send your data to any tool without having to learn, test, or use a new API every time.
14 lines • 803 B
JavaScript
;
var _a;
var _b;
Object.defineProperty(exports, "__esModule", { value: true });
exports.attachInspector = void 0;
var get_global_1 = require("../../lib/get-global");
var env = (0, get_global_1.getGlobal)();
// The code below assumes the inspector extension will use Object.assign
// to add the inspect interface on to this object reference (unless the
// extension code ran first and has already set up the variable)
var inspectorHost = ((_a = (_b = env)['__SEGMENT_INSPECTOR__']) !== null && _a !== void 0 ? _a : (_b['__SEGMENT_INSPECTOR__'] = {}));
var attachInspector = function (analytics) { var _a; return (_a = inspectorHost.attach) === null || _a === void 0 ? void 0 : _a.call(inspectorHost, analytics); };
exports.attachInspector = attachInspector;
//# sourceMappingURL=index.js.map