@chainfuse/helpers 2.4.1 → 2.4.2

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/dist/net.mjs +4 -4
  2. package/package.json +2 -2
package/dist/net.mjs CHANGED
@@ -30,7 +30,7 @@ export class NetHelpers {
30
30
  const customHeaders = new Headers(headers);
31
31
  await import('chalk')
32
32
  .then(({ Chalk }) => {
33
- const chalk = new Chalk({ level: 3 });
33
+ const chalk = new Chalk({ level: 2 });
34
34
  // Replace with color
35
35
  loggingItems.splice(0, 1, chalk.rgb(245, 130, 30)('CF Rest'));
36
36
  // Add in with color
@@ -69,9 +69,9 @@ export class NetHelpers {
69
69
  }
70
70
  await Promise.all([import('chalk'), import("./index.mjs")])
71
71
  .then(([{ Chalk }, { Helpers }]) => {
72
- const chalk = new Chalk({ level: 3 });
72
+ const chalk = new Chalk({ level: 2 });
73
73
  loggingItems.splice(1, 1, chalk.rgb(...Helpers.uniqueIdColor(id))(`[${id}]`));
74
- const initMethod = loggingItems[2].toUpperCase();
74
+ const initMethod = init?.method ?? 'GET';
75
75
  /**
76
76
  * @link https://github.com/swagger-api/swagger-ui/blob/master/src/style/_variables.scss#L48-L53
77
77
  */
@@ -126,7 +126,7 @@ export class NetHelpers {
126
126
  }
127
127
  await Promise.all([import('chalk'), import("./index.mjs")])
128
128
  .then(([{ Chalk }, { Helpers }]) => {
129
- const chalk = new Chalk({ level: 3 });
129
+ const chalk = new Chalk({ level: 2 });
130
130
  loggingItems.splice(1, 1, chalk.rgb(...Helpers.uniqueIdColor(id))(`[${id}]`));
131
131
  loggingItems.splice(2, 1, response.ok ? chalk.green(response.status) : chalk.red(response.status));
132
132
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainfuse/helpers",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "",
5
5
  "author": "ChainFuse",
6
6
  "homepage": "https://github.com/ChainFuse/packages/tree/main/packages/helpers#readme",
@@ -58,5 +58,5 @@
58
58
  "@cloudflare/workers-types": "^4.20250410.0",
59
59
  "@types/node": "^22.14.0"
60
60
  },
61
- "gitHead": "c131e6b181f7cd1f4c25732c8141b340e5d9a6d3"
61
+ "gitHead": "f6da46cf1b8862c4607b7eb485f48125056907f9"
62
62
  }