@actor-system/receptionist 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,9 @@
1
- import { Behavior } from '@actor-system/core';
1
+ import { behavior } from '@actor-system/core';
2
2
  import { Command } from './command.js';
3
3
 
4
- declare const behavior: {
5
- <T>(): Behavior<Command<T>>;
4
+ declare const receptionistBehavior: {
5
+ <T>(): behavior.Behavior<Command<T>>;
6
6
  };
7
+ //# sourceMappingURL=behavior.d.ts.map
7
8
 
8
- export { behavior };
9
+ export { receptionistBehavior as behavior };
@@ -1,13 +1,14 @@
1
- import { Behavior } from '@actor-system/core/internal';
1
+ import { behavior } from '@actor-system/core/internal';
2
2
  import { Command } from './command.internal.js';
3
3
  import { State } from './state.internal.js';
4
4
 
5
- declare const behavior: {
5
+ declare const receptionistBehavior: {
6
6
  /** @internal */
7
- <T>(state: State): Behavior<Command.Internal<T>>;
7
+ <T>(state: State): behavior.Behavior<Command.Internal<T>>;
8
8
  /** @internal */
9
- <T>(): Behavior<Command.Internal<T>>;
10
- <T>(): Behavior<Command<T>>;
9
+ <T>(): behavior.Behavior<Command.Internal<T>>;
10
+ <T>(): behavior.Behavior<Command<T>>;
11
11
  };
12
+ //# sourceMappingURL=behavior.d.ts.map
12
13
 
13
- export { behavior };
14
+ export { receptionistBehavior as behavior };
package/dist/behavior.js CHANGED
@@ -4,7 +4,7 @@ import { isCommand, $flushNotifications, $subscribe, $lookup, $unregister, $regi
4
4
  import { listing, unregistered, registered } from './reply.js';
5
5
  import { create } from './state.js';
6
6
 
7
- const behavior = (state = create()) => behaviors.setup(({ self, watch }) => {
7
+ const receptionistBehavior = (state = create()) => behaviors.setup(({ self, watch }) => {
8
8
  const pendingNotifications = new Map();
9
9
  const scheduleNotify = (key, subscriber) => {
10
10
  if (state.subscribers(key).size === 0)
@@ -82,4 +82,4 @@ const behavior = (state = create()) => behaviors.setup(({ self, watch }) => {
82
82
  });
83
83
  });
84
84
 
85
- export { behavior };
85
+ export { receptionistBehavior as behavior };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actor-system/receptionist",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "type-check": "tsc -b src",
@@ -58,13 +58,13 @@
58
58
  "@actor-system/shared"
59
59
  ],
60
60
  "dependencies": {
61
- "@actor-system/behaviors": "0.0.17",
62
- "@actor-system/core": "0.1.1",
63
- "@actor-system/mail": "0.0.2"
61
+ "@actor-system/behaviors": "0.0.18",
62
+ "@actor-system/core": "0.1.2",
63
+ "@actor-system/mail": "0.0.3"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@actor-system/testing": "0.0.2",
67
- "@actor-system/shared": "0.0.2",
67
+ "@actor-system/shared": "0.0.3",
68
68
  "config": "^1.0.0"
69
69
  }
70
70
  }