@akc42/server-utils 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/debug.js +3 -3
  2. package/package.json +1 -1
package/debug.js CHANGED
@@ -17,9 +17,9 @@
17
17
  You should have received a copy of the GNU General Public License
18
18
  along with Server Utils. If not, see <http://www.gnu.org/licenses/>.
19
19
  */
20
- import fs from 'node:fs/promises';
20
+
21
21
  import chalk from 'chalk';
22
- let config = '';
22
+ let config = process.env.DEBUG || '';
23
23
  let cache = [];
24
24
  let cachelimit = 50;
25
25
 
@@ -40,7 +40,7 @@ export function Debug (topic) {
40
40
  }, '');
41
41
  const output = `${chalk.greenBright(topic)} ${chalk.cyan(message)} ${chalk.whiteBright(`(${gap}ms)`)}`
42
42
  if (enabled) {
43
- //eslint-disable-next-line no-console
43
+ //eslint-disable-next-line no-console
44
44
  console.log(output);
45
45
  }
46
46
  cache.push(output);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akc42/server-utils",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "type": "module",
5
5
  "description": "A Set of Utilities to use on the Server Side of a Project",
6
6
  "main": "./utils.js",