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

swdc-tracker

Package Overview
Dependencies
Maintainers
5
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swdc-tracker - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

6

dist/utils/env_helper.js

@@ -10,6 +10,6 @@ "use strict";

function getTrackerMode() {
if (process.env.ENABLE_SWDC_TRACKER === "true") {
return TrackerMode.PROD;
if (process.env.NODE_ENV == "test") {
return TrackerMode.TEST;
}
return TrackerMode.TEST;
return TrackerMode.PROD;
}

@@ -16,0 +16,0 @@ exports.getTrackerMode = getTrackerMode;

{
"name": "swdc-tracker",
"version": "1.0.13",
"version": "1.0.14",
"description": "swdc event tracker",

@@ -14,3 +14,3 @@ "main": "dist",

"prepare": "yarn build",
"test": "yarn build && mocha -r ts-node/register test/**/*.ts --reporter spec --timeout 20000 --exit"
"test": "export NODE_ENV=test yarn build && mocha -r ts-node/register test/**/*.ts --reporter spec --timeout 20000 --exit"
},

@@ -17,0 +17,0 @@ "devDependencies": {

@@ -7,6 +7,6 @@ export enum TrackerMode {

export function getTrackerMode(): TrackerMode {
if (process.env.ENABLE_SWDC_TRACKER === "true") {
return TrackerMode.PROD;
if (process.env.NODE_ENV == "test") {
return TrackerMode.TEST
}
return TrackerMode.TEST
return TrackerMode.PROD;
}

@@ -16,2 +16,2 @@

return getTrackerMode() === TrackerMode.TEST ? true : false;
}
}
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