New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@l2-technology/sensei-client

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@l2-technology/sensei-client - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

2

package.json
{
"name": "@l2-technology/sensei-client",
"version": "0.1.14",
"version": "0.1.15",
"description": "A javascript client for the Sensei HTTP API",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -40,2 +40,3 @@ export interface SenseiClientConfig {

}
export interface CreateNodeResponse {

@@ -85,2 +86,3 @@ id: string;

}
export interface CreateNodeParams {

@@ -239,2 +241,3 @@ username: string;

createNode({ username, alias, passphrase, start }: CreateNodeParams): Promise<CreateNodeResponse>;
batchCreateNode(nodes: CreateNodeParams[]): Promise<CreateNodeResponse[]>;
adminStartNode(pubkey: string, passphrase: string): Promise<NodeAuthInfo>;

@@ -241,0 +244,0 @@ adminStopNode(pubkey: string): Promise<void>;

@@ -157,2 +157,10 @@ class SenseiClient {

async batchCreateNode(nodes) {
let response = await this.post(`${this.basePath}/v1/nodes/batch`, {
nodes,
});
return response.nodes;
}
async createNode({ username, alias, passphrase, start }) {

@@ -159,0 +167,0 @@ let response = await this.post(`${this.basePath}/v1/nodes`, {

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