Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit ebb6838

Browse files
committed
Add cross-fetch polyfill
1 parent e0f8e09 commit ebb6838

File tree

3 files changed

+25
-28
lines changed

3 files changed

+25
-28
lines changed

package-lock.json

Lines changed: 18 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"homepage": "https://kmdr.sh",
2626
"license": "MIT",
2727
"devDependencies": {
28-
"@types/node-fetch": "^2.5.7",
2928
"@types/eventsource": "^1.1.2",
3029
"@types/jest": "^24.9.1",
31-
"@types/node": "^12.12.47",
30+
"@types/node": "^12.12.50",
31+
"@types/node-fetch": "^2.5.7",
3232
"jest": "^24.8.0",
3333
"kmdr-parser": "^2.4.2",
3434
"prettier": "^1.17.1",
@@ -37,7 +37,7 @@
3737
"tslint": "^5.18.0",
3838
"tslint-config-prettier": "^1.18.0",
3939
"tslint-config-standard": "^8.0.1",
40-
"typescript": "^3.9.5"
40+
"typescript": "^3.9.7"
4141
},
4242
"contributors": [
4343
{
@@ -70,9 +70,10 @@
7070
"dependencies": {
7171
"chalk": "^2.4.2",
7272
"commander": "^2.20.0",
73-
"enquirer": "^2.3.5",
73+
"cross-fetch": "^3.0.5",
74+
"enquirer": "^2.3.6",
7475
"eventsource": "^1.0.7",
75-
"graphql-request": "^2.1.0-next.1",
76+
"graphql-request": "^2.0.0",
7677
"kmdr-ast": "^3.3.3",
7778
"node-fetch": "^2.6.0",
7879
"ora": "^4.0.4"

src/Cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import "cross-fetch/polyfill";
12
import fs from "fs";
23
import { GraphQLClient } from "graphql-request";
34
import ora from "ora";

0 commit comments

Comments
 (0)