@next-core/brick-kit 2.185.3 → 2.186.0
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/dist/index.bundle.js
CHANGED
|
@@ -7259,11 +7259,10 @@
|
|
|
7259
7259
|
return;
|
|
7260
7260
|
}), window.BOOTSTRAP_UNION_FILE ? brickHttp.http.get(window.BOOTSTRAP_FILE) : Promise.resolve(undefined)];
|
|
7261
7261
|
if (!window.NO_AUTH_GUARD) {
|
|
7262
|
-
var matches;
|
|
7263
|
-
|
|
7264
|
-
if (appId) {
|
|
7262
|
+
var matches = window.APP_ROOT ? window.APP_ROOT.match(/^(?:(?:\/next)?\/)?sa-static\/([^/]+)\/versions\/([^/]+)\//) : null;
|
|
7263
|
+
if (matches) {
|
|
7265
7264
|
// No need to wait.
|
|
7266
|
-
safeGetRuntimeMicroAppStandalone(
|
|
7265
|
+
safeGetRuntimeMicroAppStandalone(matches[1], matches[2]);
|
|
7267
7266
|
}
|
|
7268
7267
|
}
|
|
7269
7268
|
var [bootstrapResult, confString, runtimeData, fullBootstrapDetail] = yield Promise.all(requests);
|
|
@@ -7355,10 +7354,15 @@
|
|
|
7355
7354
|
}
|
|
7356
7355
|
function _safeGetRuntimeMicroAppStandalone() {
|
|
7357
7356
|
_safeGetRuntimeMicroAppStandalone = _asyncToGenerator__default["default"](function* (appId) {
|
|
7357
|
+
var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "0.0.0";
|
|
7358
7358
|
if (appRuntimeDataMap.has(appId)) {
|
|
7359
7359
|
return appRuntimeDataMap.get(appId);
|
|
7360
7360
|
}
|
|
7361
|
-
var promise = RuntimeApi_runtimeMicroAppStandalone(appId
|
|
7361
|
+
var promise = RuntimeApi_runtimeMicroAppStandalone(appId, {
|
|
7362
|
+
params: {
|
|
7363
|
+
version
|
|
7364
|
+
}
|
|
7365
|
+
}).catch(function (error) {
|
|
7362
7366
|
// make it not crash when the backend service is not updated.
|
|
7363
7367
|
// eslint-disable-next-line no-console
|
|
7364
7368
|
console.warn("request standalone runtime api from micro-app-standalone failed: ", error, ", something might went wrong running standalone micro app");
|