@scrabble-solver/constants 2.11.2 → 2.11.4
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/index.js +2 -30
- package/package.json +2 -2
- package/src/index.ts +3 -31
package/build/index.js
CHANGED
|
@@ -8,33 +8,5 @@ exports.BONUS_CHARACTER = 'BONUS_CHARACTER';
|
|
|
8
8
|
exports.BONUS_WORD = 'BONUS_WORD';
|
|
9
9
|
exports.EMPTY_CELL = ' ';
|
|
10
10
|
exports.NO_BONUS = { characterMultiplier: 1, wordMultiplier: 1 };
|
|
11
|
-
exports.CONSONANTS =
|
|
12
|
-
|
|
13
|
-
'c',
|
|
14
|
-
'ć',
|
|
15
|
-
'd',
|
|
16
|
-
'f',
|
|
17
|
-
'g',
|
|
18
|
-
'h',
|
|
19
|
-
'j',
|
|
20
|
-
'k',
|
|
21
|
-
'l',
|
|
22
|
-
'ł',
|
|
23
|
-
'm',
|
|
24
|
-
'n',
|
|
25
|
-
'ń',
|
|
26
|
-
'ñ',
|
|
27
|
-
'p',
|
|
28
|
-
'q',
|
|
29
|
-
'r',
|
|
30
|
-
's',
|
|
31
|
-
'ś',
|
|
32
|
-
't',
|
|
33
|
-
'v',
|
|
34
|
-
'w',
|
|
35
|
-
'x',
|
|
36
|
-
'z',
|
|
37
|
-
'ź',
|
|
38
|
-
'ż',
|
|
39
|
-
];
|
|
40
|
-
exports.VOWELS = ['a', 'ą', 'ä', 'e', 'ę', 'i', 'o', 'ó', 'ö', 'u', 'ü', 'y'];
|
|
11
|
+
exports.CONSONANTS = 'bcćdfghjklłmnńñpqrsśtvwxzźż'.split('');
|
|
12
|
+
exports.VOWELS = 'aąäeęioóöuüy'.split('');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/constants",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.4",
|
|
4
4
|
"description": "Scrabble Solver 2 - Constants",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"clean": "rimraf build/ node_modules/",
|
|
24
24
|
"clean:force": "npm run clean && rimraf package-lock.json"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "41fd187eab48d417aafc30f8a1d407178323c415"
|
|
27
27
|
}
|
package/src/index.ts
CHANGED
|
@@ -12,34 +12,6 @@ export const EMPTY_CELL = ' ';
|
|
|
12
12
|
|
|
13
13
|
export const NO_BONUS = { characterMultiplier: 1, wordMultiplier: 1 };
|
|
14
14
|
|
|
15
|
-
export const CONSONANTS =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
'ć',
|
|
19
|
-
'd',
|
|
20
|
-
'f',
|
|
21
|
-
'g',
|
|
22
|
-
'h',
|
|
23
|
-
'j',
|
|
24
|
-
'k',
|
|
25
|
-
'l',
|
|
26
|
-
'ł',
|
|
27
|
-
'm',
|
|
28
|
-
'n',
|
|
29
|
-
'ń',
|
|
30
|
-
'ñ',
|
|
31
|
-
'p',
|
|
32
|
-
'q',
|
|
33
|
-
'r',
|
|
34
|
-
's',
|
|
35
|
-
'ś',
|
|
36
|
-
't',
|
|
37
|
-
'v',
|
|
38
|
-
'w',
|
|
39
|
-
'x',
|
|
40
|
-
'z',
|
|
41
|
-
'ź',
|
|
42
|
-
'ż',
|
|
43
|
-
];
|
|
44
|
-
|
|
45
|
-
export const VOWELS = ['a', 'ą', 'ä', 'e', 'ę', 'i', 'o', 'ó', 'ö', 'u', 'ü', 'y'];
|
|
15
|
+
export const CONSONANTS = 'bcćdfghjklłmnńñpqrsśtvwxzźż'.split('');
|
|
16
|
+
|
|
17
|
+
export const VOWELS = 'aąäeęioóöuüy'.split('');
|