@soundworks/core 5.6.0 → 5.8.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.
@@ -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,3 +1,3 @@
1
- declare const _default: "5.6.0";
1
+ declare const _default: "5.8.0";
2
2
  export default _default;
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -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. Clean all created or attached states.
276
+ * Remove a client from the manager and clean all related states.
277
277
  *
278
- * This is automatically handled by the {@link Server} when a client disconnects.
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":"AA4CA,yDAAiG;AACjG,4DAAuG;AACvG,yDAAiG;AACjG,kEAAoH;AACpH,8DAA4G;AAE5G,yDAAiG;;;;;AAGjG;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH;IA0TE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,uBApBW,oBAAoB,oBACpB,2BAA2B,QA2CrC;IAED;;OAEG;IACH,4DAGC;IAED;;;;;;;OAOG;IACH,uBAFW,oBAAoB,QA8B9B;IAED;;OAEG;IACH,mCAGC;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;IAxjBD,eAAe;IACf,4BAIC;IAED,eAAe;IACf,gDAiBC;IAED,eAAe;IACf,4CAEC;IAED,eAAe;IACf,uCAEC;IAED;;;;;;;;;;OAUG;IACH,uCAqMC;IAED;;;;;;;;;OASG;IACH,0CAoCC;IAzSC,eAAe;IACf,uCAA8C;;CA4jBjD;6BAtsBM,+BAA+B;kCAA/B,+BAA+B"}
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 creatorId(): null;
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, filter: any): void;
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":"AA6DA,4DAAuG;AACvG,4DAAuG;AACvG,yDAAiG;;AAEjG;;;;;GAKG;AACH;IASE,0FAMC;IAED,eAEC;IAED,sBAEC;IAED,sBAEC;IAED,8BAEC;IAED,qCAEC;IAED,uBAEC;IAED,sCAEC;IAED,iGA2LC;IAED,sEAQC;;CAeF"}
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"}