Merge branch 'fix-Promise.allSettled' into 'release/1.0.0'

Fix promise.all settled



See merge request !1066749
This commit is contained in:
荣彬 2020-12-01 10:41:51 +08:00
commit ec68b04852
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ali/lowcode-datasource-engine",
"version": "1.0.23-alpha.1",
"version": "1.0.23-alpha.2",
"description": "DataSource Engine for lowcode",
"main": "dist/index.js",
"typings": "dist/index.d.ts",

View File

@ -2,7 +2,7 @@ import { DataSourceMap, RuntimeDataSource, RuntimeDataSourceConfig } from '@ali/
import allSettled from 'promise.allsettled';
// 兼容低版本的浏览器
const promiseSettled = typeof Promise.allSettled === 'function' ? Promise.allSettled : allSettled;
const promiseSettled = typeof Promise.allSettled === 'function' ? Promise.allSettled.bind(Promise) : allSettled;
export const reloadDataSourceFactory = (
dataSource: RuntimeDataSource,