From a5b4fda8266c4cf47854eade8722f25eb5a809ce Mon Sep 17 00:00:00 2001 From: adueck Date: Tue, 6 Aug 2024 17:42:53 -0400 Subject: [PATCH] try ci with node-fetch --- check-all-inflections.ts | 2 ++ package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/check-all-inflections.ts b/check-all-inflections.ts index 2496cba..725cd19 100644 --- a/check-all-inflections.ts +++ b/check-all-inflections.ts @@ -2,6 +2,7 @@ import * as T from "./src/types"; import { inflectWord } from "./src/lib/src/pashto-inflector"; import * as tp from "./src/lib/src/type-predicates"; 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 // no errors are thrown in the process @@ -15,6 +16,7 @@ type InflectionError = { async function checkAll() { const res = await fetch(process.env.LINGDOCS_DICTIONARY_URL); + // @ts-ignore const { entries }: T.Dictionary = await res.json(); const errors: InflectionError[] = []; diff --git a/package.json b/package.json index d2308fe..d94eea9 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@types/react-dom": "^17.0.2", "bootstrap": "^4.6.0", "jest-extended": "^4.0.1", - "node-fetch": "^3.2.10", + "node-fetch": "^3.3.2", "node-fetch-commonjs": "^3.2.4", "pbf": "^3.2.1", "react": "^17.0.1", @@ -79,4 +79,4 @@ ] }, "dependencies": {} -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 27fd3bc..afad73d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7870,10 +7870,10 @@ node-fetch-commonjs@^3.2.4: formdata-polyfill "^4.0.10" web-streams-polyfill "^3.1.1" -node-fetch@^3.2.10: - version "3.3.0" - resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.0.tgz" - integrity sha512-BKwRP/O0UvoMKp7GNdwPlObhYGB5DQqwhEDQlNKuoqwVYSxkSZCSbHjnFFmUEtwSKRPU4kNK8PbDYYitwaE3QA== +node-fetch@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.2.tgz#d1e889bacdf733b4ff3b2b243eb7a12866a0b78b" + integrity sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA== dependencies: data-uri-to-buffer "^4.0.0" fetch-blob "^3.1.4"