
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@xylabs/base
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
@xylabs/base
TParams extends BaseParams = BaseParams
new Base<TParams>(params): Base<TParams>;
BaseParams<TParams>
Base<TParams>
static optional defaultLogger: Logger;
readonly static globalInstances: Record<BaseClassName, WeakRef<Base>[]> = {};
readonly static globalInstancesCountHistory: Record<BaseClassName, number[]> = {};
readonly static uniqueName: string;
get static historyInterval(): number;
number
set static historyInterval(value): void;
number
void
get static historyTime(): number;
number
set static historyTime(value): void;
number
void
get static maxGcFrequency(): number;
number
set static maxGcFrequency(value): void;
number
void
get static maxHistoryDepth(): number;
number
get logger(): undefined | Logger;
undefined | Logger
get meter(): undefined | Meter;
undefined | Meter
get params(): BaseParams<TParams>;
BaseParams<TParams>
get tracer(): undefined | Tracer;
undefined | Tracer
static gc(force?): void;
boolean
void
static gc(className): void;
string
void
static instanceCount(className): number;
string
number
static instanceCounts(): Record<BaseClassName, number>;
Record<BaseClassName, number>
static startHistory(): void;
void
static stopHistory(): void;
void
function disableGloballyUnique(): void;
void
function globallyUnique(
name,
value,
domain): string;
string
unknown
string = 'global'
string
type BaseClassName = Exclude<string, "base-class-name-reserved-32546239486">;
type BaseParams<TAdditionalParams> = TAdditionalParams & BaseParamsFields;
TAdditionalParams extends EmptyObject = EmptyObject
type BaseParamsFields = object;
optional logger: Logger;
optional meterProvider: MeterProvider;
optional traceProvider: TracerProvider;
Part of sdk-js
See the LICENSE file for license details
FAQs
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
We found that @xylabs/base demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.