Skip to content

Commit

Permalink
feat: 支持 letgo 导出 rawRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Dec 14, 2023
1 parent db10536 commit 1794ed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fes-plugin-request/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fesjs/plugin-request",
"version": "3.0.2",
"version": "3.0.3",
"description": "@fesjs/plugin-request",
"main": "lib/index.js",
"files": [
Expand Down
2 changes: 2 additions & 0 deletions packages/fes-plugin-request/src/template/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ export const request = (url, data, options = {}) => {
});
};

export const rawRequest = request;

function isPromiseLike(obj) {
return !!obj && typeof obj === 'object' && typeof obj.then === 'function';
}
Expand Down

0 comments on commit 1794ed7

Please sign in to comment.