You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@actor-system/core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actor-system/core - npm Package Compare versions

Comparing version
0.0.8
to
0.0.9
+3
-0
dist/actor/actor-system.js

@@ -12,2 +12,3 @@ import { createPath, resolveActorPath, parsePath } from '../__bundle__/shared/dist/path.js';

import { EventStream } from '../event-stream/event-stream.js';
import { lifecycleEvent } from '../actor-event.js';

@@ -171,2 +172,3 @@ const defaultScheduler = PriorityScheduler.create();

await actor._stopChildren();
this.eventStream._publish(lifecycleEvent(actor.self, "Stopped"));
// Unwatch all actors we were watching

@@ -202,2 +204,3 @@ actor._unwatchAll();

actor._receiveSignal(preRestart);
this.eventStream._publish(lifecycleEvent(actor.self, "Restarted"));
}

@@ -204,0 +207,0 @@ /** @internal */

+1
-4

@@ -35,6 +35,5 @@ import { generateMonotonicULID } from '../__bundle__/shared/dist/monotonicULID.js';

this.#resolveShutdown = resolve;
// Emit lifecycle event
this.system.eventStream._publish(lifecycleEvent(this.self, "Started"));
}
_initializeBehavior(initialBehavior) {
this.system.eventStream._publish(lifecycleEvent(this.self, "Started"));
const unfolded = unfold(initialBehavior, this);

@@ -63,3 +62,2 @@ switch (unfolded._tag) {

this.system._stopActor(this);
this.system.eventStream._publish(lifecycleEvent(this.self, "Stopped"));
return;

@@ -69,3 +67,2 @@ }

this.system._restartActor(this, control._checkpoint);
this.system.eventStream._publish(lifecycleEvent(this.self, "Restarted"));
return;

@@ -72,0 +69,0 @@ }

{
"name": "@actor-system/core",
"version": "0.0.8",
"version": "0.0.9",
"type": "module",

@@ -5,0 +5,0 @@ "scripts": {