Skip to content

Commit

Permalink
add node fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimondev committed Apr 20, 2024
1 parent 80118c0 commit 379d072
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 19 deletions.
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# vdbs

## 0.0.3

### Patch Changes

- add node-fetch for backwards compability

## 0.0.2

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vdbs",
"version": "0.0.2",
"version": "0.0.3",
"description": "Generate migrations from database diagrams",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -43,6 +43,7 @@
"commander": "12.0.0",
"execa": "8.0.1",
"glob": "10.3.12",
"node-fetch": "3.3.2",
"ora": "8.0.1",
"prompts": "2.4.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/get-schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// import fetch from "node-fetch";
import fetch from "node-fetch";

const ENDPOINT = `https://vdbs.vercel.app/api/get-generation?code=`;

Expand Down
50 changes: 33 additions & 17 deletions pnpm-lock.yaml

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

0 comments on commit 379d072

Please sign in to comment.