Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@actor-system/spawn-protocol

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actor-system/spawn-protocol - npm Package Compare versions

Comparing version
0.0.17
to
0.0.18
+4
-3
dist/behavior.d.ts

@@ -1,6 +0,7 @@

import { Behavior } from '@actor-system/core';
import { Command } from './command.js';
import { behavior } from '@actor-system/core';
declare const behavior: <T>() => Behavior<Command<T>>;
declare const spawnBehavior: <T>() => behavior.Behavior<Command<T>>;
//# sourceMappingURL=behavior.d.ts.map
export { behavior };
export { spawnBehavior as behavior };

@@ -1,6 +0,7 @@

import { Behavior } from '@actor-system/core/internal';
import { Command } from './command.internal.js';
import { behavior } from '@actor-system/core/internal';
declare const behavior: <T>() => Behavior<Command<T>>;
declare const spawnBehavior: <T>() => behavior.Behavior<Command<T>>;
//# sourceMappingURL=behavior.d.ts.map
export { behavior };
export { spawnBehavior as behavior };
import { receive, same } from '@actor-system/behaviors';
import { isSpawn } from './command.js';
const behavior = () => receive((msg, context) => {
const spawnBehavior = () => receive((msg, context) => {
if (!isSpawn(msg))

@@ -13,2 +13,2 @@ return same;

export { behavior };
export { spawnBehavior as behavior };

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

import { ActorProps, Behavior, ActorRef } from '@actor-system/core';
import { ActorProps, behavior, ActorRef } from '@actor-system/core';
import { Letter } from '@actor-system/mail';

@@ -8,3 +8,3 @@

readonly props?: ActorProps;
readonly behavior: Behavior<T>;
readonly behavior: behavior.Behavior<T>;
readonly replyTo: ActorRef<ActorRef<T>>;

@@ -11,0 +11,0 @@ }

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

import { ActorProps, Behavior, ActorRef } from '@actor-system/core/internal';
import { ActorProps, behavior, ActorRef } from '@actor-system/core/internal';
import { Letter } from '@actor-system/mail/internal';

@@ -8,3 +8,3 @@

readonly props?: ActorProps;
readonly behavior: Behavior<T>;
readonly behavior: behavior.Behavior<T>;
readonly replyTo: ActorRef<ActorRef<T>>;

@@ -11,0 +11,0 @@ }

{
"name": "@actor-system/spawn-protocol",
"version": "0.0.17",
"version": "0.0.18",
"type": "module",

@@ -41,11 +41,11 @@ "scripts": {

"dependencies": {
"@actor-system/behaviors": "0.0.17",
"@actor-system/core": "0.1.1",
"@actor-system/mail": "0.0.2"
"@actor-system/behaviors": "0.0.18",
"@actor-system/core": "0.1.2",
"@actor-system/mail": "0.0.3"
},
"devDependencies": {
"@actor-system/testing": "0.0.2",
"@actor-system/shared": "0.0.2",
"@actor-system/shared": "0.0.3",
"config": "^1.0.0"
}
}