Socket
Socket
Sign inDemoInstall

blueshell

Package Overview
Dependencies
5
Maintainers
6
Versions
241
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.2-whileBtv.6 to 3.4.2-whileBtv.7

2

dist/nodes/decorators/RepeatWhen.js

@@ -28,3 +28,3 @@ "use strict";

Base_1.Action.treePublisher.publishResult(state, event, false);
Parent_1.clearEventSeenRecursive(this, state);
Parent_1.clearChildEventSeen(this, state);
return this.handleEvent(state, event);

@@ -31,0 +31,0 @@ }

@@ -24,4 +24,3 @@ "use strict";

Base_1.Action.treePublisher.publishResult(state, event, false);
// clearEventSeenRecursive(this.child, state);
Parent_1.clearEventSeenRecursive(this, state);
Parent_1.clearChildEventSeen(this, state);
}

@@ -28,0 +27,0 @@ storage.beganAtLeastOneLoop = true;

@@ -16,3 +16,3 @@ import { BlueshellState, BaseNode, ParentNode } from '../models';

*/
export declare function clearEventSeenRecursive<S extends BlueshellState, E>(node: BaseNode<S, E>, state: S): void;
export declare function clearChildEventSeen<S extends BlueshellState, E>(node: BaseNode<S, E>, state: S): void;
/**

@@ -19,0 +19,0 @@ * Base class for all nodes that expose a list of children.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Parent = exports.clearEventSeenRecursive = exports.setEventCounter = void 0;
exports.Parent = exports.clearChildEventSeen = exports.setEventCounter = void 0;
const models_1 = require("../models");

@@ -30,6 +30,6 @@ const Base_1 = require("./Base");

*/
function clearEventSeenRecursive(node, state) {
function clearChildEventSeen(node, state) {
if (models_1.isParentNode(node)) {
node.getChildren().forEach((child) => {
clearEventSeenRecursive(child, state);
clearChildEventSeen(child, state);
});

@@ -40,3 +40,3 @@ }

}
exports.clearEventSeenRecursive = clearEventSeenRecursive;
exports.clearChildEventSeen = clearChildEventSeen;
/**

@@ -43,0 +43,0 @@ * Base class for all nodes that expose a list of children.

import {ResultCode, BlueshellState, BaseNode, ConditionalWithResult} from '../../models';
import {Action} from '../Base';
import {Decorator} from '../Decorator';
import {clearEventSeenRecursive} from '../Parent';
import {clearChildEventSeen} from '../Parent';

@@ -29,3 +29,3 @@ /**

Action.treePublisher.publishResult(state, event, false);
clearEventSeenRecursive(this, state);
clearChildEventSeen(this, state);
return this.handleEvent(state, event);

@@ -32,0 +32,0 @@ } else {

import {ResultCode, BlueshellState, BaseNode, rc, Conditional, NodeStorage} from '../../models';
import {Action} from '../Base';
import {Decorator} from '../Decorator';
import {clearEventSeenRecursive} from '../Parent';
import {clearChildEventSeen} from '../Parent';

@@ -33,4 +33,3 @@ interface WhileNodeStorage extends NodeStorage {

Action.treePublisher.publishResult(state, event, false);
// clearEventSeenRecursive(this.child, state);
clearEventSeenRecursive(this, state);
clearChildEventSeen(this, state);
}

@@ -37,0 +36,0 @@ storage.beganAtLeastOneLoop = true;

@@ -32,6 +32,6 @@ import {BlueshellState, BaseNode, ParentNode, isParentNode} from '../models';

*/
export function clearEventSeenRecursive<S extends BlueshellState, E>(node: BaseNode<S, E>, state: S) {
export function clearChildEventSeen<S extends BlueshellState, E>(node: BaseNode<S, E>, state: S) {
if (isParentNode(node)) {
node.getChildren().forEach((child: any) => {
clearEventSeenRecursive(child, state);
clearChildEventSeen(child, state);
});

@@ -38,0 +38,0 @@ }

@@ -103,3 +103,3 @@ {

"types": "dist/index.d.ts",
"version": "3.4.2-whileBtv.6"
"version": "3.4.2-whileBtv.7"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc