EdgeAIG's picture
download
raw
574 Bytes
import type * as Redacted from "../Redacted.ts"
/** @internal */
export const redactedRegistry = new WeakMap<Redacted.Redacted<any>, any>()
/** @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" +
(self.label ? ` with label: "${self.label}"` : "")
)
}
}
/** @internal */
export const stringOrRedacted = (val: string | Redacted.Redacted): string => typeof val === "string" ? val : value(val)

Xet Storage Details

Size:
574 Bytes
·
Xet hash:
47ce90d9833b680cb98ecdb99c926ae45f8cdf8f8c094d1378303b41bedf4f27

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.