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

blueshell

Package Overview
Dependencies
Maintainers
6
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blueshell - npm Package Compare versions

Comparing version 3.6.0-btvBreakpoints.11 to 3.6.0-btvBreakpoints.12

dist/index.d.ts

2

dist/lib/utils/index.d.ts
export { TreePublisher, TreeNonPublisher } from './TreePublisher';
export { NodeManager } from './nodeManager';
export { INodeManager, NodeManager } from './nodeManager';
import { toString, toConsole, toDotString, toDotConsole } from './renderTree';

@@ -4,0 +4,0 @@ export declare const renderTree: {

@@ -10,3 +10,10 @@ /// <reference types="node" />

}
export declare class NodeManager<S extends BlueshellState, E> extends EventEmitter {
export interface INodeManager<S extends BlueshellState, E> {
runServer(): void;
shutdown(): Promise<void>;
addNode(node: BaseNode<S, E>): void;
removeNode(node: BaseNode<S, E>): void;
getNode(path: string): BaseNode<S, E> | undefined;
}
export declare class NodeManager<S extends BlueshellState, E> extends EventEmitter implements INodeManager<S, E> {
private nodePathMap;

@@ -24,3 +31,3 @@ private breakpointInfoMap;

private removeBreakpoint;
static getInstance<S extends BlueshellState, E>(): NodeManager<S, E>;
static getInstance<S extends BlueshellState, E>(): INodeManager<S, E>;
addNode(node: BaseNode<S, E>): void;

@@ -27,0 +34,0 @@ removeNode(node: BaseNode<S, E>): void;

export {TreePublisher, TreeNonPublisher} from './TreePublisher';
export {NodeManager} from './nodeManager';
export {INodeManager, NodeManager} from './nodeManager';

@@ -4,0 +4,0 @@ import {toString, toConsole, toDotString, toDotConsole} from './renderTree';

@@ -27,5 +27,21 @@ /* eslint-disable no-console */

export interface INodeManager<S extends BlueshellState, E> {
// Starts the server
runServer(): void;
// Shuts down the debug server
shutdown(): Promise<void>;
// adds a behavior tree node (and all its children) to be considered for debugging (setting/removing breakpoints)
addNode(node: BaseNode<S, E>): void;
// Removes a bt node (and all its children) to be considered for debugging (setting/removing breakpoints)
removeNode(node: BaseNode<S, E>): void;
// Given a node path, return the bt node we have cached for that path
getNode(path: string): BaseNode<S, E>|undefined;
}
// Manages information about what nodes are available in the BT for debugging (nodes must be registered
// when they become available and unregistered when they are no longer available)
export class NodeManager<S extends BlueshellState, E> extends EventEmitter {
export class NodeManager<S extends BlueshellState, E> extends EventEmitter implements INodeManager<S, E> {
// maps node path to the bt node for that path

@@ -330,3 +346,3 @@ private nodePathMap: Map<NodePathKey, BaseNode<S, E>> = new Map();

// Returns the singleton instance
public static getInstance<S extends BlueshellState, E>(): NodeManager<S, E> {
public static getInstance<S extends BlueshellState, E>(): INodeManager<S, E> {
if (!this.instance) {

@@ -333,0 +349,0 @@ this.instance = new NodeManager();

@@ -106,3 +106,3 @@ {

"types": "dist/index.d.ts",
"version": "3.6.0-btvBreakpoints.11"
"version": "3.6.0-btvBreakpoints.12"
}

Sorry, the diff of this file is not supported yet

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