Skip to content

Commit

Permalink
try ci with node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
adueck committed Aug 6, 2024
1 parent 1295ff0 commit a5b4fda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions check-all-inflections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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[] = [];

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -79,4 +79,4 @@
]
},
"dependencies": {}
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a5b4fda

Please sign in to comment.