polfan-server-js-client 0.2.46 → 0.2.48

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,7 +1,5 @@
1
1
  import { User } from "./User";
2
- export declare enum UserRelationshipType {
3
- Ignore = "Ignore"
4
- }
2
+ export type UserRelationshipType = 'Ignore';
5
3
  export interface UserRelationship {
6
4
  refUser: User;
7
5
  type: UserRelationshipType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polfan-server-js-client",
3
- "version": "0.2.46",
3
+ "version": "0.2.48",
4
4
  "description": "JavaScript client library for handling communication with Polfan chat server.",
5
5
  "author": "Jarosław Żak",
6
6
  "license": "MIT",
@@ -39,10 +39,12 @@ export class IndexedCollection<KeyT, ValueT> {
39
39
  for (const id of ids) {
40
40
  this.items.delete(id);
41
41
  }
42
+ this._mutationCounter++;
42
43
  }
43
44
 
44
45
  public deleteAll(): void {
45
46
  this.items.clear();
47
+ this._mutationCounter++;
46
48
  }
47
49
 
48
50
  public findBy(field: keyof ValueT, valueToFind: any, limit: number = null): IndexedCollection<KeyT, ValueT> {
@@ -1,8 +1,6 @@
1
1
  import {User} from "./User";
2
2
 
3
- export enum UserRelationshipType {
4
- Ignore = 'Ignore',
5
- }
3
+ export type UserRelationshipType = 'Ignore';
6
4
 
7
5
  export interface UserRelationship {
8
6
  refUser: User;