Skip to content

Commit c67e379

Browse files
john-ecoolguy1990
authored andcommitted
Fix targets usage (#3)
* Update index.ts * Update package-lock.json * Update package.json
1 parent dbdfae5 commit c67e379

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@cluelesscoders/request-pool",
33
"main": "dist/index.js",
44
"types": "dist/index.d.ts",
5-
"version": "0.2.2",
5+
"version": "0.2.3",
66
"description": "Create request pool queue for all types of http request",
77
"repository": {
88
"type": "git",

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ class RequestPool {
5959
return;
6060
}
6161

62-
const { url, method }: any = target;
6362
const options = {
64-
url,
65-
method,
63+
...target,
6664
...this.defaults,
6765
};
6866
const startTime = Date.now();

0 commit comments

Comments
 (0)