swdc-tracker
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -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; | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
97775
53
2027
1