@soundworks/core 5.5.0 → 5.7.0
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/CHANGELOG.md +13 -0
- package/README.md +6 -0
- package/package.json +17 -11
- package/src/client/Client.js +7 -4
- package/src/client/ClientSocket.js +2 -3
- package/src/common/BasePlugin.js +2 -2
- package/src/common/BasePluginManager.js +2 -2
- package/src/common/BaseStateManager.js +253 -221
- package/src/common/ParameterBag.js +14 -14
- package/src/common/SharedState.js +405 -247
- package/src/common/SharedStateCollection.js +82 -32
- package/src/common/constants.js +2 -0
- package/src/common/isomorphic/colored-logger.browser.js +17 -0
- package/src/common/isomorphic/colored-logger.node.js +19 -0
- package/src/common/isomorphic/web-socket.browser.js +1 -0
- package/src/common/isomorphic/web-socket.node.js +3 -0
- package/src/common/logs/gated-logger.js +30 -0
- package/src/common/logs/warnings.js +36 -0
- package/src/common/shared-state-utils.js +102 -0
- package/src/common/version.js +1 -1
- package/src/server/Server.js +23 -35
- package/src/server/ServerClient.js +7 -3
- package/src/server/ServerStateManager.js +242 -227
- package/src/server/SharedStatePrivate.js +105 -68
- package/src/server/create-http-server.js +81 -39
- package/src/server/crypto.js +2 -3
- package/types/client/Client.d.ts.map +1 -1
- package/types/client/ClientSocket.d.ts.map +1 -1
- package/types/common/BaseStateManager.d.ts +34 -47
- package/types/common/BaseStateManager.d.ts.map +1 -1
- package/types/common/ParameterBag.d.ts +28 -6
- package/types/common/ParameterBag.d.ts.map +1 -1
- package/types/common/SharedState.d.ts +55 -29
- package/types/common/SharedState.d.ts.map +1 -1
- package/types/common/SharedStateCollection.d.ts +26 -8
- package/types/common/SharedStateCollection.d.ts.map +1 -1
- package/types/common/constants.d.ts +1 -0
- package/types/common/constants.d.ts.map +1 -1
- package/types/common/isomorphic/colored-logger.browser.d.ts +8 -0
- package/types/common/isomorphic/colored-logger.browser.d.ts.map +1 -0
- package/types/common/isomorphic/colored-logger.node.d.ts +8 -0
- package/types/common/isomorphic/colored-logger.node.d.ts.map +1 -0
- package/types/common/isomorphic/web-socket.browser.d.ts +10 -0
- package/types/common/isomorphic/web-socket.browser.d.ts.map +1 -0
- package/types/common/isomorphic/web-socket.node.d.ts +2 -0
- package/types/common/isomorphic/web-socket.node.d.ts.map +1 -0
- package/types/common/logs/gated-logger.d.ts +9 -0
- package/types/common/logs/gated-logger.d.ts.map +1 -0
- package/types/common/logs/warnings.d.ts +7 -0
- package/types/common/logs/warnings.d.ts.map +1 -0
- package/types/common/shared-state-utils.d.ts +12 -0
- package/types/common/shared-state-utils.d.ts.map +1 -0
- package/types/common/version.d.ts +1 -1
- package/types/server/Server.d.ts.map +1 -1
- package/types/server/ServerClient.d.ts.map +1 -1
- package/types/server/ServerStateManager.d.ts +10 -10
- package/types/server/ServerStateManager.d.ts.map +1 -1
- package/types/server/SharedStatePrivate.d.ts +2 -3
- package/types/server/SharedStatePrivate.d.ts.map +1 -1
- package/types/server/create-http-server.d.ts +1 -0
- package/types/server/create-http-server.d.ts.map +1 -1
- package/types/server/crypto.d.ts.map +1 -1
- package/src/common/logger.js +0 -150
- package/types/common/logger.d.ts +0 -19
- package/types/common/logger.d.ts.map +0 -1
|
@@ -11,13 +11,13 @@ export namespace types {
|
|
|
11
11
|
export namespace boolean {
|
|
12
12
|
let required_1: string[];
|
|
13
13
|
export { required_1 as required };
|
|
14
|
-
export
|
|
14
|
+
export namespace defaultOptions { }
|
|
15
15
|
export function coerceFunction(name: any, def: any, value: any): value is true;
|
|
16
16
|
}
|
|
17
17
|
export namespace string {
|
|
18
18
|
let required_2: string[];
|
|
19
19
|
export { required_2 as required };
|
|
20
|
-
|
|
20
|
+
export namespace defaultOptions_1 { }
|
|
21
21
|
export { defaultOptions_1 as defaultOptions };
|
|
22
22
|
export function coerceFunction_1(name: any, def: any, value: any): string;
|
|
23
23
|
export { coerceFunction_1 as coerceFunction };
|
|
@@ -25,7 +25,18 @@ export namespace types {
|
|
|
25
25
|
export namespace integer {
|
|
26
26
|
let required_3: string[];
|
|
27
27
|
export { required_3 as required };
|
|
28
|
-
const defaultOptions_2:
|
|
28
|
+
const defaultOptions_2: {
|
|
29
|
+
nullable: boolean;
|
|
30
|
+
event: boolean;
|
|
31
|
+
required: boolean;
|
|
32
|
+
metas: {};
|
|
33
|
+
filterChange: boolean;
|
|
34
|
+
immediate: boolean;
|
|
35
|
+
acknowledge: boolean;
|
|
36
|
+
} & {
|
|
37
|
+
min: number;
|
|
38
|
+
max: number;
|
|
39
|
+
};
|
|
29
40
|
export { defaultOptions_2 as defaultOptions };
|
|
30
41
|
export function sanitizeDescription(def: any): any;
|
|
31
42
|
export function coerceFunction_2(name: any, def: any, value: any): number;
|
|
@@ -34,7 +45,18 @@ export namespace types {
|
|
|
34
45
|
export namespace float {
|
|
35
46
|
let required_4: string[];
|
|
36
47
|
export { required_4 as required };
|
|
37
|
-
const defaultOptions_3:
|
|
48
|
+
const defaultOptions_3: {
|
|
49
|
+
nullable: boolean;
|
|
50
|
+
event: boolean;
|
|
51
|
+
required: boolean;
|
|
52
|
+
metas: {};
|
|
53
|
+
filterChange: boolean;
|
|
54
|
+
immediate: boolean;
|
|
55
|
+
acknowledge: boolean;
|
|
56
|
+
} & {
|
|
57
|
+
min: number;
|
|
58
|
+
max: number;
|
|
59
|
+
};
|
|
38
60
|
export { defaultOptions_3 as defaultOptions };
|
|
39
61
|
export function sanitizeDescription_1(def: any): any;
|
|
40
62
|
export { sanitizeDescription_1 as sanitizeDescription };
|
|
@@ -44,7 +66,7 @@ export namespace types {
|
|
|
44
66
|
export namespace _enum {
|
|
45
67
|
let required_5: string[];
|
|
46
68
|
export { required_5 as required };
|
|
47
|
-
|
|
69
|
+
export namespace defaultOptions_4 { }
|
|
48
70
|
export { defaultOptions_4 as defaultOptions };
|
|
49
71
|
export function coerceFunction_4(name: any, def: any, value: any): any;
|
|
50
72
|
export { coerceFunction_4 as coerceFunction };
|
|
@@ -53,7 +75,7 @@ export namespace types {
|
|
|
53
75
|
export namespace any {
|
|
54
76
|
let required_6: string[];
|
|
55
77
|
export { required_6 as required };
|
|
56
|
-
|
|
78
|
+
export namespace defaultOptions_5 { }
|
|
57
79
|
export { defaultOptions_5 as defaultOptions };
|
|
58
80
|
export function coerceFunction_5(name: any, def: any, value: any): any;
|
|
59
81
|
export { coerceFunction_5 as coerceFunction };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterBag.d.ts","sourceRoot":"","sources":["../../src/common/ParameterBag.js"],"names":[],"mappings":";;;;;;;;;;;;;;QAuBoB,+EAMf;;;;;;;QAOe,0EAMf
|
|
1
|
+
{"version":3,"file":"ParameterBag.d.ts","sourceRoot":"","sources":["../../src/common/ParameterBag.js"],"names":[],"mappings":";;;;;;;;;;;;;;QAuBoB,+EAMf;;;;;;;QAOe,0EAMf;;;;;;;;;;;;;;;;;;;QAUoB,mDAgBpB;QACe,0EAMf;;;;;;;;;;;;;;;;;;;QAUoB,qDAgBpB;;QACe,0EAMf;;;;;;;;QAOe,uEAOf;;;;;;;;;QAOe,uEAGf;;;;;AAKL,eAAe;AACf;IACE,mDAoCC;IAED,iDAyBC;IAKD,+CAyCC;IAED;;;;;OAKG;IACH,UAHW,MAAM,WAKhB;IAED;;;;;OAKG;IACH,aAFY,MAAM,CAUjB;IAED;;;;;;;;OAQG;IACH,mBAFY,MAAM,CAUjB;IAED;;;;;;OAMG;IACH,UAHW,MAAM,GACL,KAAK,CAchB;IAED;;;;;;;;;OASG;IACH,gBAHW,MAAM,GACL,KAAK,CAQhB;IAED;;;;;OAKG;IACH,iCAFW,KAAK,SAmBf;IAED;;;;;;;;OAQG;IACH,UAJW,MAAM,SACN,KAAK,SAqBf;IAED;;;;;;OAMG;IAWH;;OAEG;IACH,6BAFY,MAAM,CAYjB;IAGD,oBAQC;IAGD,kBAQC;IAGD,8EAUC;;CACF"}
|
|
@@ -3,7 +3,7 @@ export default SharedState;
|
|
|
3
3
|
/**
|
|
4
4
|
* Callback executed when updates are applied on a {@link SharedState}.
|
|
5
5
|
*/
|
|
6
|
-
export type sharedStateOnUpdateCallback = (newValues: Object, oldValues: Object) => any;
|
|
6
|
+
export type sharedStateOnUpdateCallback = (newValues: Object | any, oldValues: Object | any, unsubscribe: sharedStateDeleteOnUpdateCallback) => any;
|
|
7
7
|
/**
|
|
8
8
|
* Delete the registered {@link sharedStateOnUpdateCallback}.
|
|
9
9
|
*/
|
|
@@ -12,10 +12,14 @@ export type sharedStateDeleteOnUpdateCallback = () => any;
|
|
|
12
12
|
* Callback executed when updates are applied on a {@link SharedState}.
|
|
13
13
|
*
|
|
14
14
|
* @callback sharedStateOnUpdateCallback
|
|
15
|
-
* @param {Object} newValues - Key / value pairs of the updates that have been
|
|
16
|
-
* applied to the state
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* @param {Object|any} newValues - Key / value pairs of the updates that have been
|
|
16
|
+
* applied to the state, or single value if the callback has been registered against
|
|
17
|
+
* a parameter name filter.
|
|
18
|
+
* @param {Object|any} oldValues - Key / value pairs of the updated params before
|
|
19
|
+
* the updates has been applied to the state, or single value if the callback has been
|
|
20
|
+
* registered against a parameter name filter.
|
|
21
|
+
* @param {sharedStateDeleteOnUpdateCallback} unsubscribe - Reference to unsubscribe
|
|
22
|
+
* function returned by the `SharedState#onUpdate` method.
|
|
19
23
|
*/
|
|
20
24
|
/**
|
|
21
25
|
* Delete the registered {@link sharedStateOnUpdateCallback}.
|
|
@@ -79,16 +83,6 @@ export type sharedStateDeleteOnUpdateCallback = () => any;
|
|
|
79
83
|
* ```
|
|
80
84
|
*/
|
|
81
85
|
declare class SharedState {
|
|
82
|
-
constructor({ stateId, instanceId, className, classDescription, isOwner, manager, initValues, filter, }: {
|
|
83
|
-
stateId: any;
|
|
84
|
-
instanceId: any;
|
|
85
|
-
className: any;
|
|
86
|
-
classDescription: any;
|
|
87
|
-
isOwner: any;
|
|
88
|
-
manager: any;
|
|
89
|
-
initValues: any;
|
|
90
|
-
filter: any;
|
|
91
|
-
});
|
|
92
86
|
/**
|
|
93
87
|
* Id of the state
|
|
94
88
|
* @type {Number}
|
|
@@ -108,6 +102,13 @@ declare class SharedState {
|
|
|
108
102
|
* @type {Boolean}
|
|
109
103
|
*/
|
|
110
104
|
get isOwner(): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Indicates if the node as siblings, i.e. if several versions of the same state
|
|
107
|
+
* exists on the network
|
|
108
|
+
* Always return true if the state instance is attached
|
|
109
|
+
* @type {Boolean}
|
|
110
|
+
*/
|
|
111
|
+
get hasSiblings(): boolean;
|
|
111
112
|
/**
|
|
112
113
|
* Return the underlying {@link SharedStateClassDescription} or the
|
|
113
114
|
* {@link SharedStateParameterDescription} if `paramName` is given.
|
|
@@ -121,10 +122,6 @@ declare class SharedState {
|
|
|
121
122
|
* const paramDescription = state.getDescription('my-param');
|
|
122
123
|
*/
|
|
123
124
|
getDescription(paramName?: string): SharedStateClassDescription | SharedStateParameterDescription;
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated Use {@link SharedState#getDescription} instead.
|
|
126
|
-
*/
|
|
127
|
-
getSchema(paramName?: null): any;
|
|
128
125
|
/**
|
|
129
126
|
* Update the values of the state.
|
|
130
127
|
*
|
|
@@ -248,26 +245,36 @@ declare class SharedState {
|
|
|
248
245
|
*/
|
|
249
246
|
delete(): Promise<any>;
|
|
250
247
|
/**
|
|
251
|
-
* Subscribe to
|
|
248
|
+
* Subscribe to any updates in the state.
|
|
252
249
|
*
|
|
250
|
+
* @overload
|
|
253
251
|
* @param {sharedStateOnUpdateCallback} callback
|
|
254
252
|
* Callback to execute when an update is applied on the state.
|
|
255
253
|
* @param {Boolean} [executeListener=false] - Execute the callback immediately
|
|
256
254
|
* with current state values. Note that `oldValues` will be set to `{}`.
|
|
257
255
|
* @returns {sharedStateDeleteOnUpdateCallback}
|
|
258
256
|
* @example
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
* switch (key) {
|
|
262
|
-
* // do something
|
|
263
|
-
* }
|
|
264
|
-
* }
|
|
257
|
+
* state.onUpdate(updates => {
|
|
258
|
+
* // ...
|
|
265
259
|
* });
|
|
260
|
+
*/
|
|
261
|
+
onUpdate(callback: sharedStateOnUpdateCallback, executeListener?: boolean | undefined): sharedStateDeleteOnUpdateCallback;
|
|
262
|
+
/**
|
|
263
|
+
* Subscribe to updates in the state filtered by a given parameter name.
|
|
266
264
|
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
265
|
+
* @overload
|
|
266
|
+
* @param {SharedStateParameterName} paramName
|
|
267
|
+
* @param {sharedStateOnUpdateCallback} callback
|
|
268
|
+
* Callback to execute when an update is applied on the state.
|
|
269
|
+
* @param {Boolean} [executeListener=false] - Execute the callback immediately
|
|
270
|
+
* with current state values. Note that `oldValues` will be set to `{}`.
|
|
271
|
+
* @returns {sharedStateDeleteOnUpdateCallback}
|
|
272
|
+
* @example
|
|
273
|
+
* state.onUpdate('my-param', myValue => {
|
|
274
|
+
* // ...
|
|
275
|
+
* });
|
|
269
276
|
*/
|
|
270
|
-
onUpdate(
|
|
277
|
+
onUpdate(paramName: SharedStateParameterName, callback: sharedStateOnUpdateCallback, executeListener?: boolean | undefined): sharedStateDeleteOnUpdateCallback;
|
|
271
278
|
/**
|
|
272
279
|
* Register a function to execute when detaching from the state. The function
|
|
273
280
|
* will be executed before the `detach` promise resolves.
|
|
@@ -285,6 +292,25 @@ declare class SharedState {
|
|
|
285
292
|
* @param {Function} callback - Callback to execute when the state is deleted.
|
|
286
293
|
*/
|
|
287
294
|
onDelete(callback: Function): () => boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Wait for a given condition in the state of the SharedState instance.
|
|
297
|
+
* If the state watches the condition when `waitFor` is called, the promise is
|
|
298
|
+
* resolved immediately.
|
|
299
|
+
*
|
|
300
|
+
* @note - mark as private until tested in real-world
|
|
301
|
+
*
|
|
302
|
+
* @private
|
|
303
|
+
* @param {object} condition - Condition to be meet in the state for the
|
|
304
|
+
* returned promise to resolve.
|
|
305
|
+
* @param {object} condition - Timeout (in milliseconds) that trigger the rejection
|
|
306
|
+
* of the returned promise.
|
|
307
|
+
* @return {Promise}
|
|
308
|
+
*/
|
|
309
|
+
private waitFor;
|
|
310
|
+
/**
|
|
311
|
+
* @deprecated Use {@link SharedState#getDescription} instead.
|
|
312
|
+
*/
|
|
313
|
+
getSchema(paramName?: null): any;
|
|
288
314
|
/** @private */
|
|
289
315
|
private [kSharedStatePromiseStore];
|
|
290
316
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedState.d.ts","sourceRoot":"","sources":["../../src/common/SharedState.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SharedState.d.ts","sourceRoot":"","sources":["../../src/common/SharedState.js"],"names":[],"mappings":"AAmCA,qDAAwF;;;;;sDAM7E,MAAM,GAAC,GAAG,aAGV,MAAM,GAAC,GAAG,eAGV,iCAAiC;;;;;AAV5C;;;;;;;;;;;;GAYG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH;IAoSE;;;OAGG;IACH,iBAEC;IAED;;;OAGG;IACH,wBAEC;IAED;;OAEG;IACH,yBAGC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;;OAKG;IACH,2BAUC;IAED;;;;;;;;;;;OAWG;IACH,2BARW,MAAM,GAEL,2BAA2B,GAAC,+BAA+B,CAYtE;;;;;;;;;;;IAQE,aACQ,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAC3B;;;;;;;;;;;;IAOE,UACQ,wBAAwB,SACxB,GAAC,GACC,OAAO,CAAC,MAAM,CAAC,CAC3B;IA6KD;;;;;;;;;;;;;;OAcG;IACH,UANW,wBAAwB,GACvB,GAAG,CAkBd;IAED;;;;;;;;;;;;;;OAcG;IACH,gBANW,wBAAwB,GACvB,GAAG,CAkBd;IAED;;;;;;;;OAQG;IACH,aAJY,MAAM,CAOjB;IAED;;;;;;;;;;;;OAYG;IACH,mBAJY,MAAM,CAOjB;IAED;;;;;;;OAOG;IACH,iBAJY,MAAM,CAMjB;IAED;;;;;;OAMG;IACH,eAJY,MAAM,CAMjB;IAED;;;;;;;;OAQG;IACH,uBAiBC;IAED;;;;;;;;;;;;;;OAcG;IACH,uBAUC;;;;;;;;;;;;;;;IAKE,mBACQ,2BAA2B,0CAIzB,iCAAiC,CAC3C;;;;;;;;;;;;;;;;IAQA,oBACQ,wBAAwB,YACxB,2BAA2B,0CAIzB,iCAAiC,CAC3C;IAwDH;;;;;;;OAOG;IACH,4CAGC;IAED;;;;;;OAMG;IACH,4CAOC;IAED;;;;;;;;;;;;;OAaG;IACH,gBAgCC;IAMD;;OAEG;IACH,iCAGC;IAx1BC,eAAe;IACf,mCAAwE;;CAy1B3E"}
|
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @callback sharedStateCollectionOnUpdateCallback
|
|
6
6
|
* @param {SharedState} state - The shared state instance that triggered the update.
|
|
7
|
-
* @param {Object} newValues - Key / value pairs of the updates that have been
|
|
8
|
-
* applied to the state
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* @param {Object|any} newValues - Key / value pairs of the updates that have been
|
|
8
|
+
* applied to the state, or single value if the callback has been registered against
|
|
9
|
+
* a parameter name filter.
|
|
10
|
+
* @param {Object|any} oldValues - Key / value pairs of the updated params before
|
|
11
|
+
* the updates has been applied to the state, or single value if the callback has been
|
|
12
|
+
* registered against a parameter name filter.
|
|
13
|
+
* @param {sharedStateCollectionDeleteOnUpdateCallback} unsubscribe - Reference to unsubscribe
|
|
14
|
+
* function returned by the `SharedStateCollection#onUpdate` method.
|
|
11
15
|
*/
|
|
12
16
|
/**
|
|
13
17
|
* Delete the registered {@link sharedStateCollectionOnUpdateCallback} when executed.
|
|
@@ -53,7 +57,7 @@ export default SharedStateCollection;
|
|
|
53
57
|
* Callback to execute when an update is triggered on one of the shared states
|
|
54
58
|
* of the collection.
|
|
55
59
|
*/
|
|
56
|
-
export type sharedStateCollectionOnUpdateCallback = (state: SharedState, newValues: Object, oldValues: Object) => any;
|
|
60
|
+
export type sharedStateCollectionOnUpdateCallback = (state: SharedState, newValues: Object | any, oldValues: Object | any, unsubscribe: sharedStateCollectionDeleteOnUpdateCallback) => any;
|
|
57
61
|
/**
|
|
58
62
|
* Delete the registered {@link sharedStateCollectionOnUpdateCallback} when executed.
|
|
59
63
|
*/
|
|
@@ -102,7 +106,7 @@ export type sharedStateCollectionDeleteOnChangeCallback = () => any;
|
|
|
102
106
|
* @hideconstructor
|
|
103
107
|
*/
|
|
104
108
|
declare class SharedStateCollection {
|
|
105
|
-
constructor(stateManager: any, className: any,
|
|
109
|
+
constructor(stateManager: any, className: any, options?: {});
|
|
106
110
|
/**
|
|
107
111
|
* Size of the collection, alias `size`
|
|
108
112
|
* @type {number}
|
|
@@ -207,8 +211,22 @@ declare class SharedStateCollection {
|
|
|
207
211
|
*/
|
|
208
212
|
set(name: SharedStateParameterName, value: any): Promise<Array<Object>>;
|
|
209
213
|
/**
|
|
210
|
-
*
|
|
214
|
+
* Subscribe to any updates in the collection.
|
|
211
215
|
*
|
|
216
|
+
* @overload
|
|
217
|
+
* @param {sharedStateCollectionOnUpdateCallback}
|
|
218
|
+
* callback - Callback to execute when an update is applied on a state.
|
|
219
|
+
* @param {Boolean} [executeListener=false] - Execute the callback immediately
|
|
220
|
+
* with current state values. Note that `oldValues` will be set to `{}`.
|
|
221
|
+
* @returns {sharedStateCollectionDeleteOnUpdateCallback} - Function that delete
|
|
222
|
+
* the registered listener when executed.
|
|
223
|
+
*/
|
|
224
|
+
onUpdate(callback: sharedStateCollectionOnUpdateCallback, executeListener?: boolean | undefined): sharedStateCollectionDeleteOnUpdateCallback;
|
|
225
|
+
/**
|
|
226
|
+
* Subscribe to updates in the collection filtered by a given parameter name.
|
|
227
|
+
*
|
|
228
|
+
* @overload
|
|
229
|
+
* @param {SharedStateParameterName} paramName
|
|
212
230
|
* @param {sharedStateCollectionOnUpdateCallback}
|
|
213
231
|
* callback - Callback to execute when an update is applied on a state.
|
|
214
232
|
* @param {Boolean} [executeListener=false] - Execute the callback immediately
|
|
@@ -216,7 +234,7 @@ declare class SharedStateCollection {
|
|
|
216
234
|
* @returns {sharedStateCollectionDeleteOnUpdateCallback} - Function that delete
|
|
217
235
|
* the registered listener when executed.
|
|
218
236
|
*/
|
|
219
|
-
onUpdate(callback: sharedStateCollectionOnUpdateCallback, executeListener?: boolean): sharedStateCollectionDeleteOnUpdateCallback;
|
|
237
|
+
onUpdate(paramName: SharedStateParameterName, callback: sharedStateCollectionOnUpdateCallback, executeListener?: boolean | undefined): sharedStateCollectionDeleteOnUpdateCallback;
|
|
220
238
|
/**
|
|
221
239
|
* Register a function to execute when a shared state is attached to the collection,
|
|
222
240
|
* i.e. when a node creates a new state from same {@link SharedState} class.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedStateCollection.d.ts","sourceRoot":"","sources":["../../src/common/SharedStateCollection.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SharedStateCollection.d.ts","sourceRoot":"","sources":["../../src/common/SharedStateCollection.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;GAIG;AAEH;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;GAIG;AAEH,uDAA4F;;;;;;4DAxDjF,WAAW,aACX,MAAM,GAAC,GAAG,aAGV,MAAM,GAAC,GAAG,eAGV,2CAA2C;;;;;;;;4DAc3C,WAAW;;;;;;;;;4DAcX,WAAW;;;;;;;;;;;;;AAuBtB;;;;;;;;;;;;;;;;;GAiBG;AACH;IAaE,6DAQC;IA4CD;;;;OAIG;IACH,uBAHU,MAAM,CAKf;IAED;;;OAGG;IACH,YAFU,MAAM,CAIf;IAED;;;OAGG;IACH,wBAEC;IAED;;OAEG;IACH,yBAGC;IAED;;OAEG;IACH,iCAGC;IAED;;;;;;;;;;;OAWG;IACH,2BARW,MAAM,GAEL,2BAA2B,GAAC,+BAA+B,CAgBtE;IAED;;;;;;OAMG;IACH,eAJY,MAAM,CAUjB;IAED;;;OAGG;IACH,aAFY,MAAM,EAAE,CAInB;IAED;;;;;;;;;;OAUG;IACH,mBAFY,MAAM,EAAE,CAInB;IAED;;;;;OAKG;IACH,mBAFY,GAAG,EAAE,CAMhB;IAED;;;;;;;;;OASG;IACH,yBAFY,GAAG,EAAE,CAMhB;;;;;;;;;;;IAQE,aACQ,MAAM,GACJ,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAClC;;;;;;;;;;;;IAOE,UACQ,wBAAwB,SACxB,GAAC,GACC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAClC;;;;;;;;;;;;IA2BE,mBACQ,qCAAqC,0CAInC,2CAA2C,CAEvD;;;;;;;;;;;;;IAIE,oBACQ,wBAAwB,YACxB,qCAAqC,0CAInC,2CAA2C,CAEvD;IA6CD;;;;;;;;;;OAUG;IACH,mBAPW,qCAAqC,oBAErC,OAAO,GAEL,2CAA2C,CAWvD;IAED;;;;;;;;OAQG;IACH,mBALW,qCAAqC,GAEnC,2CAA2C,CAOvD;IAED;;;;;;;;;;;OAWG;IACH,mBARW,qCAAqC,8BAEnC,2CAA2C,CAcvD;IAED;;;OAGG;IACH,wBAUC;IAED;;;;;OAKG;IACH,8BAEC;IAED;;;;;;OAMG;IACH,2BAEC;IAED;;;;;;;OAOG;IACH,8BAEC;IAED;;;;OAIG;IACH,2BAEC;IAED;;;;;;;OAOG;IACH,0BAEC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAVa,CAAC,gCAKH,CAAC,mBAGA,CAAC,CASZ;IAlbD,eAAe;IACf,qCA6BC;IAsZD;;OAEG;IACH;;;;;MAYC;;CACF"}
|
|
@@ -29,6 +29,7 @@ export const DELETE_SHARED_STATE_CLASS: "s:d:s";
|
|
|
29
29
|
export const GET_CLASS_DESCRIPTION_REQUEST: "s:s:req";
|
|
30
30
|
export const GET_CLASS_DESCRIPTION_RESPONSE: "s:s:res";
|
|
31
31
|
export const GET_CLASS_DESCRIPTION_ERROR: "s:s:err";
|
|
32
|
+
export const HAS_SIBLINGS_NOTIFICATION: "s:hs:not";
|
|
32
33
|
export const CONTEXT_ENTER_REQUEST: "c:en:req";
|
|
33
34
|
export const CONTEXT_ENTER_RESPONSE: "c:en:res";
|
|
34
35
|
export const CONTEXT_ENTER_ERROR: "c:en:err";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/common/constants.js"],"names":[],"mappings":"AACA,wBAAyB,CAAC,CAAC,CAAC;AAE5B,mCAAuC;AACvC,2BAA4B,QAAQ,CAAC;AACrC,2BAA4B,QAAQ,CAAC;AAGrC,wCAAyC,KAAK,CAAC;AAG/C,6BAA8B,SAAS,CAAC;AACxC,8BAA+B,SAAS,CAAC;AACzC,2BAA4B,SAAS,CAAC;AAEtC,6BAA8B,UAAU,CAAC;AACzC,8BAA+B,UAAU,CAAC;AAC1C,2BAA4B,UAAU,CAAC;AACvC,kCAAmC,UAAU,CAAC;AAE9C,6BAA8B,SAAS,CAAC;AACxC,8BAA+B,SAAS,CAAC;AACzC,2BAA4B,SAAS,CAAC;AAEtC,6BAA8B,UAAU,CAAC;AACzC,8BAA+B,UAAU,CAAC;AAC1C,2BAA4B,UAAU,CAAC;AAEvC,8BAA+B,SAAS,CAAC;AACzC,+BAAgC,SAAS,CAAC;AAC1C,4BAA6B,SAAS,CAAC;AACvC,mCAAoC,SAAS,CAAC;AAE9C,qCAAsC,UAAU,CAAC;AAEjD,6BAA8B,SAAS,CAAC;AACxC,8BAA+B,SAAS,CAAC;AACzC,2BAA4B,QAAQ,CAAC;AACrC,kCAAmC,SAAS,CAAC;AAE7C,wCAAyC,OAAO,CAAC;AAEjD,4CAA6C,SAAS,CAAC;AACvD,6CAA8C,SAAS,CAAC;AACxD,0CAA2C,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/common/constants.js"],"names":[],"mappings":"AACA,wBAAyB,CAAC,CAAC,CAAC;AAE5B,mCAAuC;AACvC,2BAA4B,QAAQ,CAAC;AACrC,2BAA4B,QAAQ,CAAC;AAGrC,wCAAyC,KAAK,CAAC;AAG/C,6BAA8B,SAAS,CAAC;AACxC,8BAA+B,SAAS,CAAC;AACzC,2BAA4B,SAAS,CAAC;AAEtC,6BAA8B,UAAU,CAAC;AACzC,8BAA+B,UAAU,CAAC;AAC1C,2BAA4B,UAAU,CAAC;AACvC,kCAAmC,UAAU,CAAC;AAE9C,6BAA8B,SAAS,CAAC;AACxC,8BAA+B,SAAS,CAAC;AACzC,2BAA4B,SAAS,CAAC;AAEtC,6BAA8B,UAAU,CAAC;AACzC,8BAA+B,UAAU,CAAC;AAC1C,2BAA4B,UAAU,CAAC;AAEvC,8BAA+B,SAAS,CAAC;AACzC,+BAAgC,SAAS,CAAC;AAC1C,4BAA6B,SAAS,CAAC;AACvC,mCAAoC,SAAS,CAAC;AAE9C,qCAAsC,UAAU,CAAC;AAEjD,6BAA8B,SAAS,CAAC;AACxC,8BAA+B,SAAS,CAAC;AACzC,2BAA4B,QAAQ,CAAC;AACrC,kCAAmC,SAAS,CAAC;AAE7C,wCAAyC,OAAO,CAAC;AAEjD,4CAA6C,SAAS,CAAC;AACvD,6CAA8C,SAAS,CAAC;AACxD,0CAA2C,SAAS,CAAC;AAErD,wCAAyC,UAAU,CAAC;AAGpD,oCAAqC,UAAU,CAAC;AAChD,qCAAsC,UAAU,CAAC;AACjD,kCAAmC,UAAU,CAAC;AAE9C,mCAAoC,UAAU,CAAC;AAC/C,oCAAqC,UAAU,CAAC;AAChD,iCAAkC,UAAU,CAAC;AAG7C,uCAAwC,UAAU,CAAC;AACnD,wCAAyC,UAAU,CAAC;AACpD,qCAAsC,UAAU,CAAC;AAGjD,+BAAgC,WAAW,CAAC;AAC5C,sCAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colored-logger.browser.d.ts","sourceRoot":"","sources":["../../../src/common/isomorphic/colored-logger.browser.js"],"names":[],"mappings":";IAIE,+BAEC;IACD,6BAEC;IACD,8BAEC;IACD,+BAEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colored-logger.node.d.ts","sourceRoot":"","sources":["../../../src/common/isomorphic/colored-logger.node.js"],"names":[],"mappings":";IAME,+BAEC;IACD,6BAEC;IACD,8BAEC;IACD,+BAEC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (url: string | URL, protocols?: string | string[]): WebSocket;
|
|
3
|
+
prototype: WebSocket;
|
|
4
|
+
readonly CONNECTING: 0;
|
|
5
|
+
readonly OPEN: 1;
|
|
6
|
+
readonly CLOSING: 2;
|
|
7
|
+
readonly CLOSED: 3;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=web-socket.browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-socket.browser.d.ts","sourceRoot":"","sources":["../../../src/common/isomorphic/web-socket.browser.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-socket.node.d.ts","sourceRoot":"","sources":["../../../src/common/isomorphic/web-socket.node.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gated-logger.d.ts","sourceRoot":"","sources":["../../../src/common/logs/gated-logger.js"],"names":[],"mappings":";;IASE,+BAIC;IACD,6BAIC;IACD,8BAIC;IACD,+BAIC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function versionDiscrepancies(clientRole: any, clientVersion: any, serverVersion: any): void;
|
|
3
|
+
function deprecated(oldAPI: any, newAPI: any, lastSupportedVersion: any): void;
|
|
4
|
+
function removed(oldAPI: any, hint: any, lastSupportedVersion: any): never;
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=warnings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../../../src/common/logs/warnings.js"],"names":[],"mappings":";IAGE,6FAaC;IAED,+EAOC;IAED,2EAOC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function sanitizeOnUpdateParams(caller: any, paramNameOrListener: any, listenerOrExecuteCallback: any, someExecuteListener: any, ...args: any[]): {
|
|
2
|
+
paramName: any;
|
|
3
|
+
listener: any;
|
|
4
|
+
executeListener: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Check that given filters match the class description
|
|
8
|
+
* Used in ServerStateManager and SharedStateCollection
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
export function checkValidFilters(options: any, className: any, classDescription: any): void;
|
|
12
|
+
//# sourceMappingURL=shared-state-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-state-utils.d.ts","sourceRoot":"","sources":["../../src/common/shared-state-utils.js"],"names":[],"mappings":"AAKA;;;;EAwEC;AAGD;;;;GAIG;AACH,6FAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../src/server/Server.js"],"names":[],"mappings":"AA2FA,sDAA0F;AAC1F,0DAAmG;AAEnG,2DAAqG;;AAErG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;IAuBE;;;;;;;;OAQG;IACH,oBARW,YAAY,EA+FtB;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,cAFU,YAAY,CAIrB;IAED;;;;OAIG;IACH,eAFU,MAAM,CAIf;IAED;;;;OAIG;IACH,mBAHU,MAAM,CAKf;IAED;;;;OAIG;IACH,cAFU,MAAM,GAAC,QAAQ,GAAC,SAAS,GAAC,SAAS,CAI5C;IAwBD,yBAaC;IAnCD;;;;;;;;;;;;;;;;;OAiBG;IACH,mBAEC;IAiBD;;;;;OAKG;IACH,uBAEC;IAED;;;;OAIG;IACH,eAEC;IAED;;;;OAIG;IACH,eAFU,aAAa,CAItB;IAED;;;;OAIG;IACH,8CAEC;IAED;;;;OAIG;IACH,oBAFU,kBAAkB,CAI3B;IAED;;;;OAIG;IACH,gDAEC;IAqBD;;;;;;;;;;;OAWG;IACH,kDAGC;IAED;;;;;;;;;;;;;;;OAeG;IACH,iBAPa,OAAO,CAAC,WAAW,CAAC,CAahC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,sBA2CC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,
|
|
1
|
+
{"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../src/server/Server.js"],"names":[],"mappings":"AA2FA,sDAA0F;AAC1F,0DAAmG;AAEnG,2DAAqG;;AAErG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;IAuBE;;;;;;;;OAQG;IACH,oBARW,YAAY,EA+FtB;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,cAFU,YAAY,CAIrB;IAED;;;;OAIG;IACH,eAFU,MAAM,CAIf;IAED;;;;OAIG;IACH,mBAHU,MAAM,CAKf;IAED;;;;OAIG;IACH,cAFU,MAAM,GAAC,QAAQ,GAAC,SAAS,GAAC,SAAS,CAI5C;IAwBD,yBAaC;IAnCD;;;;;;;;;;;;;;;;;OAiBG;IACH,mBAEC;IAiBD;;;;;OAKG;IACH,uBAEC;IAED;;;;OAIG;IACH,eAEC;IAED;;;;OAIG;IACH,eAFU,aAAa,CAItB;IAED;;;;OAIG;IACH,8CAEC;IAED;;;;OAIG;IACH,oBAFU,kBAAkB,CAI3B;IAED;;;;OAIG;IACH,gDAEC;IAqBD;;;;;;;;;;;OAWG;IACH,kDAGC;IAED;;;;;;;;;;;;;;;OAeG;IACH,iBAPa,OAAO,CAAC,WAAW,CAAC,CAahC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,sBA2CC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,sBAgCC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,sBAqBC;IAED,8CAGC;IAED,iDAGC;IAiHD,eAAe;IACf,8BAMC;IAED;;;;;;OAMG;IACH,iCAcC;IAqBD;;;;;;OAMG;IACH,wBAHW,YAAY,GACV,OAAO,CAQnB;IAED;;;;;;;;OAQG;IAEH,yBANW,MAAM,YACN,MAAM,SACN,MAAM,GACJ,OAAO,CAqBnB;IAED;;;;;;;OAOG;IACH,2BAmBC;IAED;;OAEG;IACH,sCAGC;IAlPD;;;OAGG;IACH,oCAwGC;IAmCD,eAAe;IACf,wCAgBC;IA3iBC,eAAe;IACf,yCAAgD;;CA6nBnD;0BA/yBM,oBAAoB;gCApBpB,0BAA0B;+BAS1B,yBAAyB;iCAdzB,2BAA2B;yBAN3B,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerClient.d.ts","sourceRoot":"","sources":["../../src/server/ServerClient.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerClient.d.ts","sourceRoot":"","sources":["../../src/server/ServerClient.js"],"names":[],"mappings":"AASA,+CAA2E;;AAE3E;;;;;GAKG;AACH;IAME;;;OAGG;IACH,kCAFW,YAAY,EAatB;IAED;;;;OAIG;IACH,mBAEC;IAED;;;;OAIG;IACH,iBAEC;IAED;;;;OAIG;IACH,mBAEC;IAED;;;;OAIG;IACH,cAFU,YAAY,CAIrB;IAzCC;;;OAGG;IACH,6BAA+B;;CAsClC"}
|
|
@@ -113,10 +113,6 @@ declare class ServerStateManager extends BaseStateManager {
|
|
|
113
113
|
* });
|
|
114
114
|
*/
|
|
115
115
|
defineClass(className: SharedStateClassName, classDescription: SharedStateClassDescription): void;
|
|
116
|
-
/**
|
|
117
|
-
* @deprecated Use {@link ServerStateManager#defineClass} instead.
|
|
118
|
-
*/
|
|
119
|
-
registerSchema(className: any, classDescription: any): void;
|
|
120
116
|
/**
|
|
121
117
|
* Delete a whole class of {@link SharedState}.
|
|
122
118
|
*
|
|
@@ -126,10 +122,6 @@ declare class ServerStateManager extends BaseStateManager {
|
|
|
126
122
|
* @param {SharedStateClassName} className - Name of the shared state class to delete.
|
|
127
123
|
*/
|
|
128
124
|
deleteClass(className: SharedStateClassName): void;
|
|
129
|
-
/**
|
|
130
|
-
* @deprecated Use {@link ServerStateManager#defineClass} instead.
|
|
131
|
-
*/
|
|
132
|
-
deleteSchema(className: any): void;
|
|
133
125
|
/**
|
|
134
126
|
* Check wether a {@link SharedState} is defined or not, given its {@link SharedStateClassName}
|
|
135
127
|
*
|
|
@@ -252,6 +244,14 @@ declare class ServerStateManager extends BaseStateManager {
|
|
|
252
244
|
* assert.deepEqual(result, { value: 'test', numUpdates: 1 });
|
|
253
245
|
*/
|
|
254
246
|
registerUpdateHook(className: string, updateHook: serverStateManagerUpdateHook): Function;
|
|
247
|
+
/**
|
|
248
|
+
* @deprecated Use {@link ServerStateManager#defineClass} instead.
|
|
249
|
+
*/
|
|
250
|
+
registerSchema(className: any, classDescription: any): void;
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated Use {@link ServerStateManager#defineClass} instead.
|
|
253
|
+
*/
|
|
254
|
+
deleteSchema(className: any): void;
|
|
255
255
|
/** @private */
|
|
256
256
|
private [kStateManagerInit];
|
|
257
257
|
/** @private */
|
|
@@ -273,9 +273,9 @@ declare class ServerStateManager extends BaseStateManager {
|
|
|
273
273
|
*/
|
|
274
274
|
private [kServerStateManagerAddClient];
|
|
275
275
|
/**
|
|
276
|
-
* Remove a client from the manager
|
|
276
|
+
* Remove a client from the manager and clean all related states.
|
|
277
277
|
*
|
|
278
|
-
* This is automatically
|
|
278
|
+
* This method is automatically called by the {@link Server} when a client disconnects.
|
|
279
279
|
*
|
|
280
280
|
* @param {number} nodeId - Id of the client node, as given in
|
|
281
281
|
* {@link client.StateManager}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerStateManager.d.ts","sourceRoot":"","sources":["../../src/server/ServerStateManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerStateManager.d.ts","sourceRoot":"","sources":["../../src/server/ServerStateManager.js"],"names":[],"mappings":"AA+CA,yDAAiG;AACjG,4DAAuG;AACvG,yDAAiG;AACjG,kEAAoH;AACpH,8DAA4G;AAE5G,yDAAiG;;;;;AAGjG;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH;IA6TE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,uBApBW,oBAAoB,oBACpB,2BAA2B,QA2CrC;IAED;;;;;;;OAOG;IACH,uBAFW,oBAAoB,QA8B9B;IAED;;;;;OAKG;IACH,0BAHW,oBAAoB,GAClB,OAAO,CAInB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,8BAzBW,MAAM,cACN,4BAA4B,YAqCtC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,8BAnBW,MAAM,6BAgChB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,8BAxBW,MAAM,cACN,4BAA4B,YAoCtC;IAMD;;OAEG;IACH,4DAGC;IAED;;OAEG;IACH,mCAGC;IA/jBD,eAAe;IACf,4BAIC;IAED,eAAe;IACf,gDAiBC;IAED,eAAe;IACf,4CAEC;IAED,eAAe;IACf,uCAEC;IAED;;;;;;;;;;OAUG;IACH,uCAcC;IAED;;;;;;;;;OASG;IACH,0CA+BC;IA7GC,eAAe;IACf,uCAA8C;;CAokBjD;6BAjtBM,+BAA+B;kCAA/B,+BAA+B"}
|
|
@@ -12,12 +12,11 @@ declare class SharedStatePrivate {
|
|
|
12
12
|
constructor(manager: any, className: any, classDefinition: any, id: any, initValues?: {});
|
|
13
13
|
get id(): null;
|
|
14
14
|
get className(): null;
|
|
15
|
-
get
|
|
16
|
-
get creatorInstanceId(): null;
|
|
15
|
+
get ownerId(): null;
|
|
17
16
|
get attachedClients(): Map<any, any>;
|
|
18
17
|
get parameters(): null;
|
|
19
18
|
[kSharedStatePrivateGetValues](): any;
|
|
20
|
-
[kSharedStatePrivateAttachClient](instanceId: any, client: any, isOwner: any,
|
|
19
|
+
[kSharedStatePrivateAttachClient](instanceId: any, client: any, isOwner: any, options: any): void;
|
|
21
20
|
[kSharedStatePrivateDetachClient](instanceId: any, client: any): void;
|
|
22
21
|
#private;
|
|
23
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedStatePrivate.d.ts","sourceRoot":"","sources":["../../src/server/SharedStatePrivate.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SharedStatePrivate.d.ts","sourceRoot":"","sources":["../../src/server/SharedStatePrivate.js"],"names":[],"mappings":"AA6EA,4DAAuG;AACvG,4DAAuG;AACvG,yDAAiG;;AAEjG;;;;;GAKG;AACH;IAQE,0FAMC;IAED,eAEC;IAED,sBAEC;IAED,oBAEC;IAED,qCAEC;IAED,uBAEC;IAED,sCAEC;IAED,kGAgBC;IAED,sEAQC;;CAiMF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-http-server.d.ts","sourceRoot":"","sources":["../../src/server/create-http-server.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-http-server.d.ts","sourceRoot":"","sources":["../../src/server/create-http-server.js"],"names":[],"mappings":"AA0IA;;;GAGG;AACH,+CAFY,UAAU,GAAC,WAAW,CAUjC;AAED,qDAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/server/crypto.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/server/crypto.js"],"names":[],"mappings":"AAsBA,eAAe;AACf,2CAKC;AAED,eAAe;AACf,qDAMC"}
|