From 71b03f034272942b2e20fd6f96446b6de3d71ca9 Mon Sep 17 00:00:00 2001 From: qlin Date: Fri, 25 Aug 2023 11:21:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20plugin=20request=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=AF=BC=E5=87=BA=20(#208)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-request/src/template/request.js | 2 ++ 1 file changed, 2 insertions(+) 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'; }