
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@gw2api/types
Advanced tools
@gw2api/types
TypeScript types for all datastructures used by the Guild Wars 2 API.
You can use this library to add strong types when working with the Guild Wars 2 API and not using @gw2api/fetch
or @gw2api/client
, for example when using your own api client, working with data from a database, or writing helper functions.
import type { Gw2Api, EndpointType } from '@gw2api/types';
function getItemName(item: Gw2Api.V2.Item) {
return item.name;
}
type ItemEndpointResponse = EndpointType<'/v2/items?ids=1,2,3'>;
// -> Array<{ id: number, name: string, ... }>
npm i @gw2api/types
See parent readme.
Licensed under the MIT License.
FAQs
TypeScript types for all datastructures used by the Guild Wars 2 API
The npm package @gw2api/types receives a total of 502 weekly downloads. As such, @gw2api/types popularity was classified as not popular.
We found that @gw2api/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.