ismx-nexo-node-app 0.4.110 → 0.4.112

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.
@@ -3,9 +3,11 @@ var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Hash = void 0;
5
5
  class Hash extends Set {
6
+ get size() {
7
+ return Object.keys(this.dict).length;
8
+ }
6
9
  constructor(dict) {
7
10
  super();
8
- this.size = null;
9
11
  this[_a] = "Hash";
10
12
  this.dict = dict !== null && dict !== void 0 ? dict : {};
11
13
  }
@@ -5,7 +5,7 @@ export interface Pagination<T> {
5
5
  export type Transient<T> = Omit<T, 'id'>;
6
6
  export declare class Hash<T extends string | number | symbol> extends Set<T> {
7
7
  dict: Record<T, any>;
8
- size: number;
8
+ get size(): number;
9
9
  constructor(dict?: Record<T, any>);
10
10
  add(value: T): this;
11
11
  clear(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.110",
3
+ "version": "0.4.112",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -8,7 +8,10 @@ export type Transient<T> = Omit<T, 'id'>
8
8
  export class Hash<T extends string | number | symbol> extends Set<T>
9
9
  {
10
10
  dict: Record<T, any>
11
- size: number = null!;
11
+
12
+ get size(): number {
13
+ return Object.keys(this.dict).length;
14
+ }
12
15
 
13
16
  constructor(dict?: Record<T, any>) {
14
17
  super()