utilitas 1990.1.40 → 1990.1.41

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.
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1990.1.40",
4
+ "version": "1990.1.41",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/lib/tape.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { default as color } from './color.mjs';
2
2
  import { end as eventEnd, loop } from './event.mjs';
3
+ import { isPrimary } from 'cluster';
3
4
  import { send } from './bot.mjs';
4
5
 
5
6
  import {
@@ -82,9 +83,9 @@ const init = async (options) => {
82
83
  bufferCycle = ensureInt(
83
84
  options?.bufferCycle || defBufCycle, { min: 1, max: maxBufCycle }
84
85
  );
85
- if (!options?.silent) {
86
- log(`Sending logs via bot, chatId: ${chatIds.join(', ')}.`);
87
- }
86
+ isPrimary && !options?.silent && log(
87
+ `Sending logs via bot, chatId: ${chatIds.join(', ')}.`
88
+ );
88
89
  extLog = rawLog;
89
90
  await loop(
90
91
  sync, ~~options?.interval || 5, ~~options?.tout || 10,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1990.1.40",
4
+ "version": "1990.1.41",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",