socket-function 0.91.0 → 0.92.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "0.91.0",
3
+ "version": "0.92.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -498,6 +498,9 @@ export async function createCallFactory(
498
498
  call.args = await decompressObj(call.args as any as Buffer) as any;
499
499
  call.isArgsCompressed = false;
500
500
  }
501
+ if (call.functionName === "changeIdentity") {
502
+ console.log(red(`Call to ${call.classGuid}.${call.functionName} at ${Date.now()}`));
503
+ }
501
504
  if (SocketFunction.logMessages) {
502
505
  console.log(`SIZE\t${(formatNumberSuffixed(resultSize) + "B").padEnd(4, " ")}\tEVALUATE\t${call.classGuid}.${call.functionName} at ${Date.now()}`);
503
506
  }
@@ -5,7 +5,7 @@ function ansiHSL(h: number, s: number, l: number, text: string): string {
5
5
  return ansiRGB(r, g, b, text);
6
6
  }
7
7
  function ansiRGB(r: number, g: number, b: number, text: string): string {
8
- return `\x1b[38;2;${r};${g};${b}m${text}\x1b[0m`;
8
+ return `\x1b[38;5;${16 + (36 * Math.round(r / 255 * 5)) + (6 * Math.round(g / 255 * 5)) + Math.round(b / 255 * 5)}m${text}\x1b[0m`;
9
9
  }
10
10
 
11
11
  const lightness = 68;