Skip to content

Commit

Permalink
fix: isomorphic fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Dec 11, 2024
1 parent 9a2ca88 commit 76fd748
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
3 changes: 2 additions & 1 deletion libs/report/ingestion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@herodevs/report-ingestion",
"version": "0.0.1",
"dependencies": {
"tslib": "^2.3.0"
"tslib": "^2.3.0",
"isomorphic-fetch": "^3.0.0"
},
"type": "commonjs",
"main": "./src/index.js",
Expand Down
1 change: 1 addition & 0 deletions libs/report/ingestion/src/lib/send-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { existsSync, readFileSync, statSync } from 'node:fs';
import { promptToProceedUploadFile } from './prompts';
import { TELEMETRY_INITIALIZE_MUTATION, TELEMETRY_REPORT_MUTATION } from './queries';
import { type JSONValue } from './types';
import 'isomorphic-fetch';

const NES_REPORT_URL = process.env['NES_REPORT_URL'] || 'https://api.nes.herodevs.com/graphql';

Expand Down
23 changes: 17 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"date-fns": "^3.6.0",
"git-last-commit": "^1.0.1",
"graphql": "^16.8.1",
"isomorphic-fetch": "^3.0.0",
"minimist": "^1.2.8",
"ora": "5.3.0",
"sloc": "^0.3.2",
Expand Down

0 comments on commit 76fd748

Please sign in to comment.