@scrabble-solver/types 2.8.3 → 2.8.5

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/build/Cell.js CHANGED
@@ -49,7 +49,7 @@ class Cell {
49
49
  };
50
50
  }
51
51
  toString() {
52
- return String(this.tile);
52
+ return this.tile.toString();
53
53
  }
54
54
  }
55
55
  Cell.Null = Object.freeze({
package/build/Pattern.js CHANGED
@@ -46,7 +46,7 @@ class Pattern {
46
46
  };
47
47
  }
48
48
  toString() {
49
- return this.cells.map(String).join('');
49
+ return this.cells.reduce((result, cell) => result + cell.toString(), '');
50
50
  }
51
51
  }
52
52
  exports.default = Pattern;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/types",
3
- "version": "2.8.3",
3
+ "version": "2.8.5",
4
4
  "description": "Scrabble Solver 2 - Types",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "clean:force": "npm run clean && rimraf package-lock.json"
25
25
  },
26
26
  "dependencies": {
27
- "@scrabble-solver/constants": "^2.8.3"
27
+ "@scrabble-solver/constants": "^2.8.5"
28
28
  },
29
- "gitHead": "116f214733e7ad071044f556bcf67e867da3d9ca"
29
+ "gitHead": "79ba3664458e7dc8d805599a3cf3cd1faba86309"
30
30
  }
package/src/Cell.ts CHANGED
@@ -75,7 +75,7 @@ class Cell {
75
75
  }
76
76
 
77
77
  public toString(): string {
78
- return String(this.tile);
78
+ return this.tile.toString();
79
79
  }
80
80
  }
81
81
 
package/src/Pattern.ts CHANGED
@@ -67,7 +67,7 @@ class Pattern {
67
67
  }
68
68
 
69
69
  public toString(): string {
70
- return this.cells.map(String).join('');
70
+ return this.cells.reduce((result, cell) => result + cell.toString(), '');
71
71
  }
72
72
  }
73
73