diff --git a/packages/fes-plugin-request/package.json b/packages/fes-plugin-request/package.json index 5ff408c55..08014f5cb 100644 --- a/packages/fes-plugin-request/package.json +++ b/packages/fes-plugin-request/package.json @@ -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": [ diff --git a/packages/fes-plugin-request/src/template/request.js b/packages/fes-plugin-request/src/template/request.js index e231af380..5a57a0935 100644 --- a/packages/fes-plugin-request/src/template/request.js +++ b/packages/fes-plugin-request/src/template/request.js @@ -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'; }