mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 22:58:15 +00:00
Merge branch 'fix-Promise.allSettled' into 'release/1.0.0'
Fix promise.all settled See merge request !1066749
This commit is contained in:
commit
ec68b04852
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ali/lowcode-datasource-engine",
|
"name": "@ali/lowcode-datasource-engine",
|
||||||
"version": "1.0.23-alpha.1",
|
"version": "1.0.23-alpha.2",
|
||||||
"description": "DataSource Engine for lowcode",
|
"description": "DataSource Engine for lowcode",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { DataSourceMap, RuntimeDataSource, RuntimeDataSourceConfig } from '@ali/
|
|||||||
import allSettled from 'promise.allsettled';
|
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 = (
|
export const reloadDataSourceFactory = (
|
||||||
dataSource: RuntimeDataSource,
|
dataSource: RuntimeDataSource,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user