try ci with node-fetch
This commit is contained in:
parent
1295ff05cf
commit
a5b4fda826
|
@ -2,6 +2,7 @@ import * as T from "./src/types";
|
||||||
import { inflectWord } from "./src/lib/src/pashto-inflector";
|
import { inflectWord } from "./src/lib/src/pashto-inflector";
|
||||||
import * as tp from "./src/lib/src/type-predicates";
|
import * as tp from "./src/lib/src/type-predicates";
|
||||||
import { conjugateVerb } from "./src/lib/src/verb-conjugation";
|
import { conjugateVerb } from "./src/lib/src/verb-conjugation";
|
||||||
|
import fetch from "node-fetch";
|
||||||
|
|
||||||
// Script to try inflecting all the words in the dictionary and make sure that
|
// Script to try inflecting all the words in the dictionary and make sure that
|
||||||
// no errors are thrown in the process
|
// no errors are thrown in the process
|
||||||
|
@ -15,6 +16,7 @@ type InflectionError = {
|
||||||
|
|
||||||
async function checkAll() {
|
async function checkAll() {
|
||||||
const res = await fetch(process.env.LINGDOCS_DICTIONARY_URL);
|
const res = await fetch(process.env.LINGDOCS_DICTIONARY_URL);
|
||||||
|
// @ts-ignore
|
||||||
const { entries }: T.Dictionary = await res.json();
|
const { entries }: T.Dictionary = await res.json();
|
||||||
const errors: InflectionError[] = [];
|
const errors: InflectionError[] = [];
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"@types/react-dom": "^17.0.2",
|
"@types/react-dom": "^17.0.2",
|
||||||
"bootstrap": "^4.6.0",
|
"bootstrap": "^4.6.0",
|
||||||
"jest-extended": "^4.0.1",
|
"jest-extended": "^4.0.1",
|
||||||
"node-fetch": "^3.2.10",
|
"node-fetch": "^3.3.2",
|
||||||
"node-fetch-commonjs": "^3.2.4",
|
"node-fetch-commonjs": "^3.2.4",
|
||||||
"pbf": "^3.2.1",
|
"pbf": "^3.2.1",
|
||||||
"react": "^17.0.1",
|
"react": "^17.0.1",
|
||||||
|
@ -79,4 +79,4 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7870,10 +7870,10 @@ node-fetch-commonjs@^3.2.4:
|
||||||
formdata-polyfill "^4.0.10"
|
formdata-polyfill "^4.0.10"
|
||||||
web-streams-polyfill "^3.1.1"
|
web-streams-polyfill "^3.1.1"
|
||||||
|
|
||||||
node-fetch@^3.2.10:
|
node-fetch@^3.3.2:
|
||||||
version "3.3.0"
|
version "3.3.2"
|
||||||
resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.0.tgz"
|
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.2.tgz#d1e889bacdf733b4ff3b2b243eb7a12866a0b78b"
|
||||||
integrity sha512-BKwRP/O0UvoMKp7GNdwPlObhYGB5DQqwhEDQlNKuoqwVYSxkSZCSbHjnFFmUEtwSKRPU4kNK8PbDYYitwaE3QA==
|
integrity sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==
|
||||||
dependencies:
|
dependencies:
|
||||||
data-uri-to-buffer "^4.0.0"
|
data-uri-to-buffer "^4.0.0"
|
||||||
fetch-blob "^3.1.4"
|
fetch-blob "^3.1.4"
|
||||||
|
|
Loading…
Reference in New Issue