Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spm-metrics-js

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spm-metrics-js - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

6

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc