@aspecto/core
Advanced tools
Comparing version 1.1.15 to 1.1.16
import { PrivacyRuleDef } from '@aspecto/privacy-rules'; | ||
interface IConfig { | ||
privacyRules: PrivacyRuleDef[]; | ||
collectorUrl: string; | ||
} | ||
@@ -5,0 +6,0 @@ declare class ConfigService { |
@@ -38,5 +38,6 @@ "use strict"; | ||
} | ||
let ws = new ws_1.default(config_1.getCollectorEndpoint((_c = options) === null || _c === void 0 ? void 0 : _c.sendTrafficTo)); | ||
const auth = aspectoConfig_1.default.getToken(options); | ||
ConfigService_1.default.init({ token: auth }); | ||
yield ConfigService_1.default.init({ token: auth }); | ||
const config = yield ConfigService_1.default.config; | ||
let ws = new ws_1.default(config_1.getCollectorEndpoint(((_c = options) === null || _c === void 0 ? void 0 : _c.sendTrafficTo) || config.collectorUrl)); | ||
if (config_1.isNode) { | ||
@@ -43,0 +44,0 @@ const httpReporter = new HttpReporter_1.default(); |
{ | ||
"name": "@aspecto/core", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "Aspecto metric collector", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
93888
1444