spm-metrics-js
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -18,4 +18,4 @@ 'use strict' | ||
function SpmCustomMetrics (token, metricsInterval, metricsApiEndpoint) { | ||
if(process.env.SPM_URL) { | ||
this.metricsUrl = process.env.SPM_URL.replace('_bulk', 'receiver/custom/receive.json?token=' + token) | ||
if(process.env.SPM_RECEIVER_URL) { | ||
this.metricsUrl = process.env.SPM_RECEIVER_URL.replace('_bulk', 'receiver/custom/receive.json?token=' + token) | ||
} else { | ||
@@ -108,3 +108,3 @@ this.metricsUrl = (metricsApiEndpoint || 'https://spm-receiver.sematext.com/receiver/custom/receive.json?token=') + token | ||
var options = { | ||
url: (process.env.SPM_EVENTS_URL || 'https://event-receiver.sematext.com') + '/' + this.token + '/' + type, | ||
url: (process.env.EVENTS_RECEIVER_URL || 'https://event-receiver.sematext.com') + '/' + this.token + '/' + type, | ||
headers: { | ||
@@ -111,0 +111,0 @@ 'User-Agent': 'spm-metrics-js', |
{ | ||
"name": "spm-metrics-js", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Node.js client for SPM - Custom Metrics and Event API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
33960