@scrabble-solver/word-definitions 2.15.24 → 2.15.25
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,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.parse = exports.crawl = void 0;
|
|
4
4
|
const cheerio_1 = require("cheerio");
|
|
5
5
|
const lib_1 = require("../lib");
|
|
6
|
-
const DOES_NOT_EXIST_MESSAGE =
|
|
7
|
-
// eslint-disable-next-line max-len
|
|
8
|
-
"The word you've entered isn't in the dictionary. Click on a spelling suggestion below or try again using the search bar above.";
|
|
6
|
+
const DOES_NOT_EXIST_MESSAGE = "The word you've entered isn't in the dictionary. Click on a spelling suggestion below or try again using the search bar above.";
|
|
9
7
|
const crawl = (word) => {
|
|
10
8
|
return (0, lib_1.request)({
|
|
11
9
|
protocol: 'https',
|
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.25",
|
|
4
4
|
"description": "Scrabble Solver 2 - Word definitions",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://scrabble-solver.org",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "
|
|
22
|
+
"build": "tsgo --project .",
|
|
23
23
|
"clean": "rimraf build/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@scrabble-solver/types": "^2.15.
|
|
26
|
+
"@scrabble-solver/types": "^2.15.25",
|
|
27
27
|
"cheerio": "^1.2.0",
|
|
28
28
|
"follow-redirects": "^1.16.0",
|
|
29
29
|
"striptags": "^3.2.0"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@types/follow-redirects": "^1.14.4",
|
|
33
33
|
"domhandler": "^6.0.1"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "804532994a83eec4bd83e573744093865b5d1fa7"
|
|
36
36
|
}
|
package/src/languages/english.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { request } from '../lib';
|
|
|
4
4
|
import type { ParsingResult } from '../types';
|
|
5
5
|
|
|
6
6
|
const DOES_NOT_EXIST_MESSAGE =
|
|
7
|
-
// eslint-disable-next-line max-len
|
|
8
7
|
"The word you've entered isn't in the dictionary. Click on a spelling suggestion below or try again using the search bar above.";
|
|
9
8
|
|
|
10
9
|
export const crawl = (word: string): Promise<string> => {
|