
Product
Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies
A safer, faster way to eliminate vulnerabilities without updating dependencies
@blackglory/geyser-js
Advanced tools
```sh npm install --save @blackglory/geyser-js # or yarn add @blackglory/geyser-js ```
npm install --save @blackglory/geyser-js
# or
yarn add @blackglory/geyser-js
interface IRateLimiterConfig extends JSONObject {
duration: number | null
limit: number | null
}
interface IGeyserClientOptions {
server: string
timeout?: number
retryIntervalForReconnection?: number
}
class GeyserClient {
static create(options: IGeyserClientOptions): Promise<GeyserClient>
close(): Promise<void>
getAllRateLimiterIds(signal?: AbortSignal): Promise<string[]>
getRateLimiter(
rateLimiterId: string
, signal?: AbortSignal
): Promise<IRateLimiterConfig | null>
setRateLimiter(
rateLimiterId: string
, config: IRateLimiterConfig
, signal?: AbortSignal
): Promise<void>
removeRateLimiter(rateLimiterId: string, signal?: AbortSignal): Promise<void>
/**
* 重置速率限制器的状态.
*
* @throws {RateLimiterNotFound}
*/
resetRateLimiter(rateLimiterId: string, signal?: AbortSignal): Promise<void>
/**
* @throws {RateLimiterNotFound}
*/
acquireToken(rateLimiterId: string, signal?: AbortSignal): Promise<void>
}
/**
* 速率限制器在未经配置的情况下, 相当于不存在.
*/
class RateLimiterNotFound extends CustomError {}
FAQs
```sh npm install --save @blackglory/geyser-js # or yarn add @blackglory/geyser-js ```
We found that @blackglory/geyser-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.