@lark-apaas/client-toolkit-lite 1.1.7-alpha.26 → 1.1.7-alpha.28

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.cjs CHANGED
@@ -2904,8 +2904,6 @@ __name(showToast2, "showToast");
2904
2904
 
2905
2905
  // src/integrations/capabilityClient.ts
2906
2906
  var _appId = getAppId();
2907
- var _archType = process.env.MIAODA_APP_ARCH_TYPE;
2908
- var _isFrontendOnly = _archType === "2" || _archType === "3" || _archType === "4";
2909
2907
  var capabilityClient = (0, import_client_capability.createClient)({
2910
2908
  baseURL: normalizeBasePath(process.env.CLIENT_BASE_PATH ?? "/"),
2911
2909
  acquireUploadUrl: `/app/${_appId}/__runtime__/api/v1/studio/plugins/tmp_files/acquire_upload_url`,
@@ -2919,13 +2917,11 @@ var capabilityClient = (0, import_client_capability.createClient)({
2919
2917
  onRateLimitError: /* @__PURE__ */ __name(() => {
2920
2918
  showToast2(t("index.rateLimitError"));
2921
2919
  }, "onRateLimitError"),
2922
- ..._isFrontendOnly ? {
2923
- central: {
2924
- enabled: true,
2925
- // window.appId 由妙搭沙箱 / 线上环境注入;非妙搭场景下 capability 调用本身不可用
2926
- appId: _appId ?? ""
2927
- }
2928
- } : {}
2920
+ central: {
2921
+ enabled: true,
2922
+ // window.appId 由妙搭沙箱 / 线上环境注入;非妙搭场景下 capability 调用本身不可用
2923
+ appId: _appId ?? ""
2924
+ }
2929
2925
  });
2930
2926
 
2931
2927
  // src/constants/img-resources/avatar.ts