Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openzeppelin/defender-sentinel-client

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openzeppelin/defender-sentinel-client - npm Package Compare versions

Comparing version 1.47.0 to 1.47.1

jest.config.js

4

lib/api/index.d.ts

@@ -1,2 +0,2 @@

import { BaseApiClient } from '@openzeppelin/defender-base-client';
import { BaseApiClient, Network } from '@openzeppelin/defender-base-client';
import { ExternalCreateSubscriberRequest as CreateSentinelRequest, ExternalUpdateSubscriberRequest as UpdateSentinelRequest } from '../models/subscriber';

@@ -7,2 +7,3 @@ import { DeletedSentinelResponse, CreateSentinelResponse, ListSentinelResponse } from '../models/response';

import { NotificationCategory as NotificationCategoryResponse, UpdateNotificationCategoryRequest } from '../models/category';
import { ListNetworkRequestOptions } from '../models/networks';
export declare class SentinelClient extends BaseApiClient {

@@ -12,2 +13,3 @@ protected getPoolId(): string;

protected getApiUrl(): string;
listNetworks(opts?: ListNetworkRequestOptions): Promise<Network[]>;
list(): Promise<ListSentinelResponse>;

@@ -14,0 +16,0 @@ create(sentinel: CreateSentinelRequest): Promise<CreateSentinelResponse>;

@@ -43,2 +43,7 @@ "use strict";

}
async listNetworks(opts) {
return this.apiCall(async (api) => {
return await api.get(opts && opts.networkType ? `/networks?type=${opts.networkType}` : `/networks`);
});
}
async list() {

@@ -45,0 +50,0 @@ return this.apiCall(async (api) => {

{
"name": "@openzeppelin/defender-sentinel-client",
"version": "1.47.0",
"version": "1.47.1",
"description": "",

@@ -33,3 +33,3 @@ "main": "./lib/index.js",

},
"gitHead": "12d67c544a12ff299c02fad3c8c1848e164e0e5b"
"gitHead": "daddff62731a4b55075b57905d8c5b8c4eb3b80e"
}

@@ -376,2 +376,12 @@ # Defender Sentinel Client

### List Networks
To list tenant enabled networks, you can call the `listNetworks` function on the client, which returns a `Network[]` object:
```js
await client.listNetworks(); // lists all networks
await client.listNetworks({ networkType: 'production' }); // lists only production networks
await client.listNetworks({ networkType: 'test' }); // lists only test networks
```
### Failed Requests

@@ -378,0 +388,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc