@scrabble-solver/scrabble-solver 2.16.0-alpha.2 → 2.16.1

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.
Files changed (34) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +2 -2
  3. package/.next/cache/.previewinfo +1 -1
  4. package/.next/cache/.rscinfo +1 -1
  5. package/.next/cache/.tsbuildinfo +1 -1
  6. package/.next/cache/webpack/client-production/0.pack +0 -0
  7. package/.next/cache/webpack/client-production/index.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack.old +0 -0
  9. package/.next/cache/webpack/edge-server-production/index.pack +0 -0
  10. package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
  11. package/.next/cache/webpack/server-production/0.pack +0 -0
  12. package/.next/cache/webpack/server-production/index.pack +0 -0
  13. package/.next/cache/webpack/server-production/index.pack.old +0 -0
  14. package/.next/prerender-manifest.json +4 -4
  15. package/.next/routes-manifest.json +1 -1
  16. package/.next/server/middleware-build-manifest.js +1 -1
  17. package/.next/server/pages/404.html +1 -1
  18. package/.next/server/pages/500.html +1 -1
  19. package/.next/server/pages/api/dictionary/[locale]/[word].js.nft.json +1 -1
  20. package/.next/server/pages/api/dictionary/[locale].js.nft.json +1 -1
  21. package/.next/server/pages/api/solve.js +1 -1
  22. package/.next/server/pages/api/solve.js.nft.json +1 -1
  23. package/.next/server/pages/api/verify.js +1 -1
  24. package/.next/server/pages/api/verify.js.nft.json +1 -1
  25. package/.next/server/pages/index.html +1 -1
  26. package/.next/server/pages/index.json +1 -1
  27. package/.next/server/pages/not-found.html +1 -1
  28. package/.next/trace +21 -21
  29. package/.next/trace-build +1 -1
  30. package/package.json +10 -10
  31. package/src/api/isBoardValid.ts +4 -4
  32. package/tsconfig.tsbuildinfo +1 -1
  33. /package/.next/static/{ggdBhRVhHIKwF3fYbLo8S → -2mw8IrOEpCcsQa6oPYhR}/_buildManifest.js +0 -0
  34. /package/.next/static/{ggdBhRVhHIKwF3fYbLo8S → -2mw8IrOEpCcsQa6oPYhR}/_ssgManifest.js +0 -0
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-typescript","duration":1901199,"timestamp":14984565855,"id":13,"parentId":1,"tags":{},"startTime":1777406264567,"traceId":"889f128d8b2db72f"},{"name":"run-webpack","duration":5939903,"timestamp":14986469519,"id":15,"parentId":1,"tags":{},"startTime":1777406266471,"traceId":"889f128d8b2db72f"},{"name":"static-check","duration":166675,"timestamp":14992475250,"id":2026,"parentId":1,"tags":{},"startTime":1777406272477,"traceId":"889f128d8b2db72f"},{"name":"static-generation","duration":843934,"timestamp":14992650575,"id":2044,"parentId":1,"tags":{},"startTime":1777406272652,"traceId":"889f128d8b2db72f"},{"name":"collect-build-traces","duration":3538823,"timestamp":14992642379,"id":2041,"parentId":1,"tags":{},"startTime":1777406272644,"traceId":"889f128d8b2db72f"},{"name":"telemetry-flush","duration":19,"timestamp":14996182440,"id":2056,"parentId":1,"tags":{},"startTime":1777406276184,"traceId":"889f128d8b2db72f"},{"name":"next-build","duration":11849917,"timestamp":14984332545,"id":1,"tags":{"buildMode":"default","version":"16.2.4","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1777406264334,"traceId":"889f128d8b2db72f"}]
1
+ [{"name":"run-typescript","duration":1878442,"timestamp":17948366385,"id":13,"parentId":1,"tags":{},"startTime":1777580983909,"traceId":"f87437439890f394"},{"name":"run-webpack","duration":6032668,"timestamp":17950246945,"id":15,"parentId":1,"tags":{},"startTime":1777580985789,"traceId":"f87437439890f394"},{"name":"static-check","duration":177818,"timestamp":17956341819,"id":2026,"parentId":1,"tags":{},"startTime":1777580991884,"traceId":"f87437439890f394"},{"name":"static-generation","duration":815548,"timestamp":17956528104,"id":2044,"parentId":1,"tags":{},"startTime":1777580992070,"traceId":"f87437439890f394"},{"name":"collect-build-traces","duration":3598064,"timestamp":17956520116,"id":2041,"parentId":1,"tags":{},"startTime":1777580992062,"traceId":"f87437439890f394"},{"name":"telemetry-flush","duration":18,"timestamp":17960119320,"id":2056,"parentId":1,"tags":{},"startTime":1777580995661,"traceId":"f87437439890f394"},{"name":"next-build","duration":11983020,"timestamp":17948136322,"id":1,"tags":{"buildMode":"default","version":"16.2.4","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1777580983678,"traceId":"f87437439890f394"}]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrabble-solver/scrabble-solver",
3
- "version": "2.16.0-alpha.2",
3
+ "version": "2.16.1",
4
4
  "description": "Scrabble Solver 2 - App",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,15 +27,15 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@floating-ui/react": "^0.27.19",
30
- "@kamilmielnik/trie": "^4.0.0",
30
+ "@kamilmielnik/trie": "^5.0.0",
31
31
  "@reduxjs/toolkit": "^2.11.2",
32
- "@scrabble-solver/configs": "^2.16.0-alpha.2",
33
- "@scrabble-solver/constants": "^2.16.0-alpha.2",
34
- "@scrabble-solver/dictionaries": "^2.16.0-alpha.2",
35
- "@scrabble-solver/logger": "^2.16.0-alpha.2",
36
- "@scrabble-solver/solver": "^2.16.0-alpha.2",
37
- "@scrabble-solver/types": "^2.16.0-alpha.2",
38
- "@scrabble-solver/word-definitions": "^2.16.0-alpha.2",
32
+ "@scrabble-solver/configs": "^2.16.1",
33
+ "@scrabble-solver/constants": "^2.16.1",
34
+ "@scrabble-solver/dictionaries": "^2.16.1",
35
+ "@scrabble-solver/logger": "^2.16.1",
36
+ "@scrabble-solver/solver": "^2.16.1",
37
+ "@scrabble-solver/types": "^2.16.1",
38
+ "@scrabble-solver/word-definitions": "^2.16.1",
39
39
  "classnames": "^2.5.1",
40
40
  "env-cmd": "^11.0.0",
41
41
  "include-media": "^2.0.0",
@@ -70,5 +70,5 @@
70
70
  "@types/redux": "^3.6.31",
71
71
  "sass": "^1.99.0"
72
72
  },
73
- "gitHead": "e959c412e1d33fb22c308c8b59a0e9a1f065378e"
73
+ "gitHead": "df1462399fc945fcfbf5d4d758b9922747ee3423"
74
74
  }
@@ -23,10 +23,10 @@ const areTwoCharacterTilesValid = (board: CellJson[][], config: Config): boolean
23
23
 
24
24
  for (const cell of cells) {
25
25
  for (const characters of config.twoCharacterTiles) {
26
- const canCheckDown = cell.y + 1 < board.length;
27
- const canCheckRight = cell.x + 1 < board[0].length;
28
- const cellDown = board[cell.y + 1][cell.x];
29
- const cellRight = board[cell.y][cell.x + 1];
26
+ const cellDown = board[cell.y + 1]?.[cell.x];
27
+ const cellRight = board[cell.y]?.[cell.x + 1];
28
+ const canCheckDown = cell.y + 1 < board.length && Boolean(cellDown);
29
+ const canCheckRight = cell.x + 1 < board[0].length && Boolean(cellRight);
30
30
  const collidesDown = canCheckDown && cellDown.tile && cellDown.tile.character === characters[1];
31
31
  const collidesRight = canCheckRight && cellRight.tile && cellRight.tile.character === characters[1];
32
32
  const collides = collidesDown || collidesRight;