@scrabble-solver/word-definitions 2.15.11 → 2.15.13
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/getWordDefinition.d.ts +1 -1
- package/build/languages/english.d.ts +1 -1
- package/build/languages/french.d.ts +1 -1
- package/build/languages/german.d.ts +1 -1
- package/build/languages/persian.d.ts +1 -1
- package/build/languages/polish.d.ts +1 -1
- package/build/languages/romanian.d.ts +1 -1
- package/build/languages/spanish.d.ts +1 -1
- package/build/languages/turkish.d.ts +1 -1
- package/build/lib/request.d.ts +1 -1
- package/build/parse.d.ts +1 -1
- package/package.json +4 -4
- package/src/getWordDefinition.ts +1 -1
- package/src/languages/english.ts +1 -1
- package/src/languages/french.ts +1 -1
- package/src/languages/german.ts +2 -2
- package/src/languages/persian.ts +1 -1
- package/src/languages/polish.ts +1 -1
- package/src/languages/romanian.ts +1 -1
- package/src/languages/spanish.ts +1 -1
- package/src/languages/turkish.ts +1 -1
- package/src/lib/request.ts +1 -1
- package/src/parse.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Locale, WordDefinition } from '@scrabble-solver/types';
|
|
1
|
+
import { type Locale, WordDefinition } from '@scrabble-solver/types';
|
|
2
2
|
export declare const getWordDefinition: (locale: Locale, word: string, isAllowed: boolean) => Promise<WordDefinition>;
|
package/build/lib/request.d.ts
CHANGED
package/build/parse.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scrabble-solver/word-definitions",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.13",
|
|
4
4
|
"description": "Scrabble Solver 2 - Word definitions",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/types": "^2.15.
|
|
27
|
-
"cheerio": "^1.
|
|
26
|
+
"@scrabble-solver/types": "^2.15.13",
|
|
27
|
+
"cheerio": "^1.1.0",
|
|
28
28
|
"follow-redirects": "^1.15.9",
|
|
29
29
|
"striptags": "^3.2.0"
|
|
30
30
|
},
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@types/follow-redirects": "^1.14.4",
|
|
33
33
|
"domhandler": "^5.0.3"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "fd3e02f7051acdb8cc6dd138a959679bc00f1ed6"
|
|
36
36
|
}
|
package/src/getWordDefinition.ts
CHANGED
package/src/languages/english.ts
CHANGED
package/src/languages/french.ts
CHANGED
package/src/languages/german.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Cheerio, CheerioAPI, load } from 'cheerio';
|
|
1
|
+
import { type Cheerio, type CheerioAPI, load } from 'cheerio';
|
|
2
2
|
import type { Element } from 'domhandler';
|
|
3
3
|
|
|
4
4
|
import { request } from '../lib';
|
|
5
|
-
import { ParsingResult } from '../types';
|
|
5
|
+
import type { ParsingResult } from '../types';
|
|
6
6
|
|
|
7
7
|
export const crawl = (word: string): Promise<string> => {
|
|
8
8
|
return request({
|
package/src/languages/persian.ts
CHANGED
package/src/languages/polish.ts
CHANGED
package/src/languages/spanish.ts
CHANGED
package/src/languages/turkish.ts
CHANGED
package/src/lib/request.ts
CHANGED
package/src/parse.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Locale } from '@scrabble-solver/types';
|
|
|
2
2
|
|
|
3
3
|
import { english, french, german, persian, polish, romanian, spanish, turkish } from './languages';
|
|
4
4
|
import { normalizeDefinition, unique } from './lib';
|
|
5
|
-
import { ParsingResult } from './types';
|
|
5
|
+
import { type ParsingResult } from './types';
|
|
6
6
|
|
|
7
7
|
const parsePerLocale: Record<Locale, (html: string) => ParsingResult> = {
|
|
8
8
|
[Locale.DE_DE]: german.parse,
|