From ac4fcb652678c42b2879f28457f38411451f7566 Mon Sep 17 00:00:00 2001 From: winixt Date: Thu, 14 Dec 2023 17:02:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20letgo=20=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=20rawRequest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-request/package.json | 2 +- packages/fes-plugin-request/src/template/request.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/fes-plugin-request/package.json b/packages/fes-plugin-request/package.json index 5ff408c5..08014f5c 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 e231af38..5a57a093 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'; }