@next-core/brick-kit 2.89.0 → 2.89.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.89.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.0...@next-core/brick-kit@2.89.1) (2021-11-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * bootsrtrap 增加开关控制 ([360b913](https://github.com/easyops-cn/next-core/commit/360b913f324f10ac79b1d637ec598583a89a61da))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.89.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.1...@next-core/brick-kit@2.89.0) (2021-11-25)
7
18
 
8
19
 
@@ -5782,6 +5782,18 @@
5782
5782
  };
5783
5783
  }();
5784
5784
 
5785
+ var bootstrap = /*#__PURE__*/function () {
5786
+ var _ref3 = _asyncToGenerator$1(function* (params, options) {
5787
+ return (yield brickHttp.http.get("api/auth/bootstrap", _objectSpread2(_objectSpread2({}, options), {}, {
5788
+ params
5789
+ }))).data;
5790
+ });
5791
+
5792
+ return function bootstrap(_x4, _x5) {
5793
+ return _ref3.apply(this, arguments);
5794
+ };
5795
+ }();
5796
+
5785
5797
  var getAppStoryboard = /*#__PURE__*/function () {
5786
5798
  var _ref4 = _asyncToGenerator$1(function* (appId, params, options) {
5787
5799
  return (yield brickHttp.http.get("api/auth/bootstrap/".concat(appId), _objectSpread2(_objectSpread2({}, options), {}, {
@@ -6219,12 +6231,17 @@
6219
6231
  var _this3 = this;
6220
6232
 
6221
6233
  return _asyncToGenerator__default["default"](function* () {
6222
- var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : BootstrapV2Api_bootstrapV2(_objectSpread__default["default"]({
6234
+ // Todo(jojiang): boostrap V2 接口测试通过后移除 V1 版本的兼容
6235
+ var data = yield window.STANDALONE_MICRO_APPS ? standaloneBootstrap() : localStorage.getItem("__$$use-bootstrap-v2-provider$$__") ? BootstrapV2Api_bootstrapV2(_objectSpread__default["default"]({
6223
6236
  appFields: "defaultConfig,userConfig,locales,name,homepage,id,currentVersion,installStatus,internal,status",
6224
6237
  ignoreTemplateFields: "templates",
6225
6238
  ignoreBrickFields: "bricks,processors,providers,editors"
6226
6239
  }, params), {
6227
6240
  interceptorParams
6241
+ }) : bootstrap(_objectSpread__default["default"]({
6242
+ brief: true
6243
+ }, params), {
6244
+ interceptorParams
6228
6245
  });
6229
6246
 
6230
6247
  var bootstrapResponse = _objectSpread__default["default"]({