
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@xylabs/api
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
@xylabs/api
new ApiClient(token?, stage?): ApiClient;
null
| string
ApiClient
protected optional token: null | string;
protected optional stage: ApiStage;
abstract endPoint(): string;
string
T
new ApiEndpoint<T>(config, path): ApiEndpoint<T>;
string
ApiEndpoint
<T
>
get value(): undefined | T;
undefined
| T
fetch(): Promise<T>;
Promise
<T
>
get(): Promise<T | NonNullable<T>>;
Promise
<T
| NonNullable
<T
>>
insert(value): Promise<T>;
T
Promise
<T
>
function getApiStage(hostname): "beta" | "local" | "prod";
string
"beta"
| "local"
| "prod"
apiDomain: string;
optional apiKey: string;
optional jwtToken: string;
optional userid: string;
type ApiStage = EnumValue<typeof ApiStage>;
const ApiStage: Enum<{
Beta: "beta";
Local: "local";
Prod: "prod";
}>;
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/api receives a total of 157 weekly downloads. As such, @xylabs/api popularity was classified as not popular.
We found that @xylabs/api 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.