[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: utils.ts
const TypedArrayPrototypeGetSymbolToStringTag = (() => { // Type check system lovingly referenced from: // https://github.com/nodejs/node/blob/7450332339ed40481f470df2a3014e2ec355d8d8/lib/internal/util/types.js#L13-L15 // eslint-disable-next-line @typescript-eslint/unbound-method -- the intention is to call this method with a bound value const g = Object.getOwnPropertyDescriptor( Object.getPrototypeOf(Uint8Array.prototype), Symbol.toStringTag )!.get!; return (value: unknown) => g.call(value); })(); export function isUint8Array(value: unknown): value is Uint8Array { return TypedArrayPrototypeGetSymbolToStringTag(value) === 'Uint8Array'; } export function isAnyArrayBuffer(value: unknown): value is ArrayBuffer { return ( typeof value === 'object' && value != null && Symbol.toStringTag in value && (value[Symbol.toStringTag] === 'ArrayBuffer' || value[Symbol.toStringTag] === 'SharedArrayBuffer') ); } export function isRegExp(regexp: unknown): regexp is RegExp { return regexp instanceof RegExp || Object.prototype.toString.call(regexp) === '[object RegExp]'; } export function isMap(value: unknown): value is Map<unknown, unknown> { return ( typeof value === 'object' && value != null && Symbol.toStringTag in value && value[Symbol.toStringTag] === 'Map' ); } export function isDate(date: unknown): date is Date { return date instanceof Date || Object.prototype.toString.call(date) === '[object Date]'; } export type InspectFn = (x: unknown, options?: unknown) => string; export function defaultInspect(x: unknown, _options?: unknown): string { return JSON.stringify(x, (k: string, v: unknown) => { if (typeof v === 'bigint') { return { $numberLong: `${v}` }; } else if (isMap(v)) { return Object.fromEntries(v); } return v; }); } /** @internal */ type StylizeFunction = (x: string, style: string) => string; /** @internal */ export function getStylizeFunction(options?: unknown): StylizeFunction | undefined { const stylizeExists = options != null && typeof options === 'object' && 'stylize' in options && typeof options.stylize === 'function'; if (stylizeExists) { return options.stylize as StylizeFunction; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.88 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344