@colucom/osseus
Advanced tools
Comparing version 2.2.7 to 2.3.1
@@ -5,4 +5,8 @@ const async = require('async') | ||
const traceAndClarifyIfPossible = (config) => { | ||
if (config && (config.debug || (config.env && config.env.toLowerCase() !== 'production'))) { | ||
if (config && config.use_trace && config.env && config.env.toLowerCase() !== 'production') { | ||
console.log('using trace-and-clarify-if-possible, MEMORY LEAKS EXPECTED!!') | ||
require('trace-and-clarify-if-possible') | ||
} else { | ||
console.log('Not using trace-and-clarify-if-possible') | ||
} | ||
@@ -9,0 +13,0 @@ } |
{ | ||
"name": "@colucom/osseus", | ||
"version": "2.2.7", | ||
"version": "2.3.1", | ||
"description": "Osseus modular web server", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,2 +69,5 @@ [![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard) | ||
##### Use_Trace | ||
For debugging purposes, osseus uses [trace-and-clarify-if-possible](https://www.npmjs.com/package/trace-and-clarify-if-possible). | ||
This module causes memory leaks so it can only be used in `debug` mode. To activate this module set `USE_TRACE` to `true`. | ||
@@ -71,0 +74,0 @@ ##### Dependencies |
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
12148
90
88