diff --git a/packages/fes-plugin-request/src/template/request.js b/packages/fes-plugin-request/src/template/request.js index 214173c2..84642e37 100644 --- a/packages/fes-plugin-request/src/template/request.js +++ b/packages/fes-plugin-request/src/template/request.js @@ -34,6 +34,8 @@ export const request = async (url, data, options = {}) => { return response.data; }; +request.version = '4.0.0'; + function isPromiseLike(obj) { return !!obj && typeof obj === 'object' && typeof obj.then === 'function'; }