
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@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 2,282 weekly downloads. As such, @xylabs/api popularity was classified as 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.