Skip to content

Commit

Permalink
fix: cannot import URL from url package
Browse files Browse the repository at this point in the history
use whatwg-url instead
  • Loading branch information
Val-istar-Guo committed Feb 24, 2022
1 parent b95a97c commit b89721e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
},
"dependencies": {
"@types/node": "^14.14.31",
"@types/whatwg-url": "^8.2.1",
"blob": "^0.1.0",
"clone": "^2.1.2",
"cross-fetch": "^3.0.6",
Expand All @@ -67,7 +68,7 @@
"picomatch": "^2.2.2",
"querystring": "^0.2.0",
"ts-custom-error": "^3.2.0",
"url": "^0.11.0"
"whatwg-url": "^11.0.0"
},
"description": "Request API write by Typescript for flexibility, readability, and a low learning curve.",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion src/keq-url.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { URL } from 'url'
import { URL } from 'whatwg-url'
import { compile } from 'path-to-regexp'
import { Exception } from './exception'
import * as R from 'ramda'
Expand Down

0 comments on commit b89721e

Please sign in to comment.