@actor-system/spawn-protocol
Advanced tools
@@ -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 }; |
+2
-2
| 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 @@ } |
+5
-5
| { | ||
| "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" | ||
| } | ||
| } |
4588
4.08%74
2.78%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated