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