Skip to content

Commit

Permalink
fix: add urllib to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 29, 2024
1 parent 1f480cd commit 7099e84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"merge-descriptors": "^2.0.0",
"mm": "^4.0.1",
"sdk-base": "^5.0.0",
"urllib": "^4.6.11",
"utility": "^2.3.0"
},
"peerDependencies": {
Expand Down Expand Up @@ -69,8 +70,7 @@
"tsd": "^0.31.2",
"tshy": "3",
"tshy-after": "^1.3.1",
"typescript": "5",
"urllib": "4"
"typescript": "5"
},
"scripts": {
"clean": "rimraf dist",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/mock_agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { debuglog } from 'node:util';
import {
MockAgent, setGlobalDispatcher, getGlobalDispatcher, Dispatcher,
HttpClient,
} from 'egg/urllib';
} from 'urllib';

const debug = debuglog('@eggjs/mock/lib/mock_agent');

Expand Down
2 changes: 1 addition & 1 deletion src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ export type {

export type {
MockAgent,
} from 'egg/urllib';
} from 'urllib';
5 changes: 4 additions & 1 deletion test/fixtures/apps/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"egg": {
"typescript": false
},
"type": "module"
"type": "module",
"devDependencies": {
"@eggjs/mock": "6"
}
}

0 comments on commit 7099e84

Please sign in to comment.