socket-function 0.90.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
package/require/compileFlags.ts
CHANGED
|
@@ -28,8 +28,7 @@ function setRecursive(bangPart: string, module: NodeJS.Module) {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
g.setFlag = setFlag;
|
|
31
|
+
(globalThis as any).setFlag = setFlag;
|
|
33
32
|
export function setFlag(require: NodeRequire, request: string, flag: string, recursive?: boolean) {
|
|
34
33
|
let resolvedPath = require.resolve(request);
|
|
35
34
|
let module = require.cache[resolvedPath] as any;
|
package/src/CallFactory.ts
CHANGED
|
@@ -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;
|
|
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;
|