@contrast/reporter
Advanced tools
Comparing version 1.27.3 to 1.28.0
@@ -9,2 +9,3 @@ import { AppInfo, Event, Messages, RequestStore } from '@contrast/common'; | ||
readonly agentVersion: string; | ||
readonly reportingInstance: string; | ||
readonly appInfo: AppInfo; | ||
@@ -11,0 +12,0 @@ readonly config: Config; |
@@ -6,4 +6,4 @@ import { Core } from '../../base'; | ||
constructor(core: Core, uiReporter: ContrastUIReporter); | ||
post(libInfo: object): Promise<void>; | ||
post(observations: [object]): Promise<void>; | ||
} | ||
//# sourceMappingURL=library-usage.d.ts.map |
@@ -25,7 +25,7 @@ "use strict"; | ||
} | ||
async post(libInfo) { | ||
async post(observations) { | ||
const { client, core: { logger }, } = this; | ||
try { | ||
await client.post(this.appUrl('/library-usage'), { | ||
observations: [libInfo] | ||
observations | ||
}); | ||
@@ -32,0 +32,0 @@ } |
@@ -134,5 +134,5 @@ "use strict"; | ||
}); | ||
this.subscribeWithLock(common_1.Event.LIBRARY_USAGE, async (libInfo) => { | ||
this.subscribeWithLock(common_1.Event.LIBRARY_USAGE, async (observations) => { | ||
try { | ||
await this.libraryUsage.post(libInfo); | ||
await this.libraryUsage.post(observations); | ||
} | ||
@@ -139,0 +139,0 @@ catch (err) { |
@@ -105,2 +105,3 @@ "use strict"; | ||
'X-Contrast-Header-Encoding': 'base64', | ||
'X-Contrast-Reporting-Instance': core.reportingInstance, | ||
}, | ||
@@ -117,2 +118,3 @@ httpsAgent: httpsAgent(core), | ||
'User-Agent': `ContrastNodeAgent/${core.agentVersion}`, | ||
'X-Contrast-Reporting-Instance': core.reportingInstance, | ||
}, | ||
@@ -119,0 +121,0 @@ httpsAgent: httpsAgent(core), |
@@ -43,3 +43,2 @@ "use strict"; | ||
common_1.Event.ARCHITECTURE_COMPONENT, | ||
common_1.Event.ROUTE_COVERAGE_DISCOVERY, | ||
common_1.Event.ROUTE_COVERAGE_DISCOVERY_FINISHED, | ||
@@ -46,0 +45,0 @@ common_1.Event.ROUTE_COVERAGE_OBSERVATION |
{ | ||
"name": "@contrast/reporter", | ||
"version": "1.27.3", | ||
"version": "1.28.0", | ||
"description": "Subscribes to agent messages and reports them", | ||
@@ -21,3 +21,3 @@ "license": "SEE LICENSE IN LICENSE", | ||
"dependencies": { | ||
"@contrast/common": "1.21.3", | ||
"@contrast/common": "1.22.0", | ||
"axios": "^1.6.8", | ||
@@ -24,0 +24,0 @@ "crc-32": "^1.2.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191351
2961
+ Added@contrast/common@1.22.0(transitive)
- Removed@contrast/common@1.21.3(transitive)
Updated@contrast/common@1.22.0