This commit is contained in:
万纯 2021-03-15 17:59:30 +08:00
commit 82add74b66
5 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "2.0.0-rc.5", "version": "2.0.0-rc.6",
"changelog": { "changelog": {
"repo": "WeBankFinTech/fes.js", "repo": "WeBankFinTech/fes.js",
"cacheDir": ".changelog", "cacheDir": ".changelog",

View File

@ -1,6 +1,6 @@
{ {
"name": "@fesjs/plugin-request", "name": "@fesjs/plugin-request",
"version": "2.0.0-rc.5", "version": "2.0.0-rc.6",
"description": "@fesjs/plugin-request", "description": "@fesjs/plugin-request",
"main": "lib/index.js", "main": "lib/index.js",
"files": [ "files": [

View File

@ -1,7 +1,7 @@
import { isFunction, isObject, isString } from './helpers'; import { isFunction, isObject, isString } from './helpers';
export default async ({ response, responseDataAdaptor }, next) => { export default async ({ response, responseDataAdaptor }, next) => {
if (isFunction(responseDataAdaptor) && (isObject(response.data) || isString(response.data))) { if (isFunction(responseDataAdaptor) && response && (isObject(response.data) || isString(response.data))) {
response.data = responseDataAdaptor(response.data); response.data = responseDataAdaptor(response.data);
} }
await next(); await next();

View File

@ -1,6 +1,6 @@
{ {
"name": "@fesjs/preset-built-in", "name": "@fesjs/preset-built-in",
"version": "2.0.0-rc.5", "version": "2.0.0-rc.6",
"description": "@fesjs/preset-built-in", "description": "@fesjs/preset-built-in",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@ -1,6 +1,6 @@
{ {
"name": "@fesjs/fes", "name": "@fesjs/fes",
"version": "2.0.0-rc.5", "version": "2.0.0-rc.6",
"description": "一个好用的前端管理台快速开发框架", "description": "一个好用的前端管理台快速开发框架",
"preferGlobal": true, "preferGlobal": true,
"scripts": { "scripts": {
@ -40,7 +40,7 @@
], ],
"dependencies": { "dependencies": {
"@fesjs/compiler": "^2.0.0-rc.5", "@fesjs/compiler": "^2.0.0-rc.5",
"@fesjs/preset-built-in": "^2.0.0-rc.5", "@fesjs/preset-built-in": "^2.0.0-rc.6",
"@fesjs/runtime": "^2.0.0-rc.5", "@fesjs/runtime": "^2.0.0-rc.5",
"@umijs/utils": "3.3.3", "@umijs/utils": "3.3.3",
"resolve-cwd": "^3.0.0" "resolve-cwd": "^3.0.0"