@actor-system/receptionist 0.0.16 → 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.
- package/dist/behavior.d.ts +5 -4
- package/dist/behavior.internal.d.ts +7 -6
- package/dist/behavior.js +2 -2
- package/package.json +12 -6
package/dist/behavior.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { behavior } from '@actor-system/core';
|
|
2
2
|
import { Command } from './command.js';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
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 {
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"type-check": "tsc -b src",
|
|
@@ -9,7 +9,13 @@
|
|
|
9
9
|
"publint": "publint",
|
|
10
10
|
"build:tsc:internal": "tsc -b src/tsconfig.lib.json",
|
|
11
11
|
"build:tsc:trimmed": "tsc -b src/tsconfig.lib.trimmed.json",
|
|
12
|
-
"build:rollup": "rollup -c node:config/rollup-config"
|
|
12
|
+
"build:rollup": "rollup -c node:config/rollup-config",
|
|
13
|
+
"test": "NODE_OPTIONS=\"--expose-gc\" vitest run",
|
|
14
|
+
"test:browser": "vitest run --browser.enabled",
|
|
15
|
+
"test:browser:watch": "vitest --browser.enabled",
|
|
16
|
+
"test:browser:coverage": "vitest run --coverage --browser.enabled",
|
|
17
|
+
"test:extensive": "npm run test && npm run test -- --mode sync && npm run test:browser && npm run test:browser -- --mode sync",
|
|
18
|
+
"test:coverage": "vitest run --coverage"
|
|
13
19
|
},
|
|
14
20
|
"types": "./dist/index.d.ts",
|
|
15
21
|
"module": "./dist/index.js",
|
|
@@ -52,13 +58,13 @@
|
|
|
52
58
|
"@actor-system/shared"
|
|
53
59
|
],
|
|
54
60
|
"dependencies": {
|
|
55
|
-
"@actor-system/behaviors": "0.0.
|
|
56
|
-
"@actor-system/core": "0.1.
|
|
57
|
-
"@actor-system/mail": "0.0.
|
|
61
|
+
"@actor-system/behaviors": "0.0.18",
|
|
62
|
+
"@actor-system/core": "0.1.2",
|
|
63
|
+
"@actor-system/mail": "0.0.3"
|
|
58
64
|
},
|
|
59
65
|
"devDependencies": {
|
|
60
66
|
"@actor-system/testing": "0.0.2",
|
|
61
|
-
"@actor-system/shared": "0.0.
|
|
67
|
+
"@actor-system/shared": "0.0.3",
|
|
62
68
|
"config": "^1.0.0"
|
|
63
69
|
}
|
|
64
70
|
}
|