
Research
/Security News
Trivy Under Attack Again: Widespread GitHub Actions Tag Compromise Exposes CI/CD Secrets
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.
@xylabs/object-model
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
@xylabs/object-model
optional log: boolean | Logger;
optional log: boolean | Logger;
required: false;
optional log: boolean | Logger;
required: true;
type AnyObject = Record<TypedKey, unknown>;
Any object, which means that it does not enforce the set of fields that it has. Extending from AnyObject will result in a type that includes the universal set of field names
type AsOptionalTypeFunction<T> = <TType>(value) => undefined | TType;
T extends AnyNonPromise = AnyNonPromise
TType extends AnyNonPromise
AnyNonPromise
undefined | TType
type AsTypeFunction<T> = {
<TType> (value): undefined | TType;
<TType> (value, config): TType;
<TType> (value, config): undefined | TType;
<TType> (value, assert): undefined | TType;
<TType> (value, assert, config): TType;
<TType> (value, assert, config): undefined | TType;
};
T extends AnyNonPromise = AnyNonPromise
<TType>(value): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
undefined | TType
<TType>(value, config): TType;
TType extends AnyNonPromise
AnyNonPromise
TType
<TType>(value, config): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
TypeCheckConfig | TypeCheckOptionalConfig
undefined | TType
<TType>(value, assert): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
StringOrAlertFunction<TType>
undefined | TType
<TType>(
value,
assert,
config): TType;
TType extends AnyNonPromise
AnyNonPromise
StringOrAlertFunction<TType>
TType
<TType>(
value,
assert,
config): undefined | TType;
TType extends AnyNonPromise
AnyNonPromise
StringOrAlertFunction<TType>
TypeCheckConfig | TypeCheckOptionalConfig
undefined | TType
type Compare<T> = (a, b) => number;
T
T
T
number
type StringOrAlertFunction<T> = string | AssertExMessageFunc<T>;
T extends AnyNonPromise
type TypeCheck<T> = {
(obj): obj is T;
(obj, config): obj is T;
(obj, config): obj is T;
};
T extends TypedValue
(obj): obj is T;
AnyNonPromise
obj is T
(obj, config): obj is T;
AnyNonPromise
obj is T
(obj, config): obj is T;
AnyNonPromise
undefined | number | TypeCheckConfig
obj is T
Part of sdk-js
See the LICENSE file for license details
FAQs
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
The npm package @xylabs/object-model receives a total of 138 weekly downloads. As such, @xylabs/object-model popularity was classified as not popular.
We found that @xylabs/object-model 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.

Research
/Security News
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.

Security News
ENISA’s new package manager advisory outlines the dependency security practices companies will need to demonstrate as the EU’s Cyber Resilience Act begins enforcing software supply chain requirements.

Research
/Security News
We identified over 20 additional malicious extensions, along with over 20 related sleeper extensions, some of which have already been weaponized.