@dcloudio/uni-quickapp-webview 2.0.2-4020920240930001 → 2.0.2-4040420241231001

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.js CHANGED
@@ -311,6 +311,10 @@ const promiseInterceptor = {
311
311
  }
312
312
  return new Promise((resolve, reject) => {
313
313
  res.then(res => {
314
+ if (!res) {
315
+ resolve(res);
316
+ return
317
+ }
314
318
  if (res[0]) {
315
319
  reject(res[0]);
316
320
  } else {
@@ -400,11 +404,7 @@ let deviceWidth = 0;
400
404
  let deviceDPR = 0;
401
405
 
402
406
  function checkDeviceWidth () {
403
- const {
404
- platform,
405
- pixelRatio,
406
- windowWidth
407
- } = qa.getSystemInfoSync(); // uni=>qa runtime 编译目标是 uni 对象,内部不允许直接使用 uni
407
+ const { windowWidth, pixelRatio, platform } = qa.getSystemInfoSync(); // uni=>qa runtime 编译目标是 uni 对象,内部不允许直接使用 uni
408
408
 
409
409
  deviceWidth = windowWidth;
410
410
  deviceDPR = pixelRatio;
@@ -446,7 +446,7 @@ const messages = {};
446
446
  let locale;
447
447
 
448
448
  {
449
- locale = normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN;
449
+ locale = normalizeLocale( qa.getSystemInfoSync().language) || LOCALE_EN;
450
450
  }
451
451
 
452
452
  function initI18nMessages () {
@@ -572,7 +572,7 @@ function getLocale$1 () {
572
572
  return app.$vm.$locale
573
573
  }
574
574
  }
575
- return normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN
575
+ return normalizeLocale( qa.getSystemInfoSync().language) || LOCALE_EN
576
576
  }
577
577
 
578
578
  function setLocale$1 (locale) {
@@ -861,6 +861,7 @@ function populateParameters (result) {
861
861
  appVersionCode: process.env.UNI_APP_VERSION_CODE,
862
862
  appLanguage: getAppLanguage(hostLanguage),
863
863
  uniCompileVersion: process.env.UNI_COMPILER_VERSION,
864
+ uniCompilerVersion: process.env.UNI_COMPILER_VERSION,
864
865
  uniRuntimeVersion: process.env.UNI_COMPILER_VERSION,
865
866
  uniPlatform: process.env.UNI_SUB_PLATFORM || process.env.UNI_PLATFORM,
866
867
  deviceBrand,
@@ -884,7 +885,8 @@ function populateParameters (result) {
884
885
  ua: undefined,
885
886
  hostPackageName: undefined,
886
887
  browserName: undefined,
887
- browserVersion: undefined
888
+ browserVersion: undefined,
889
+ isUniAppX: false
888
890
  };
889
891
 
890
892
  Object.assign(result, parameters, extraParam);
@@ -2130,7 +2132,7 @@ function parseBaseApp (vm, {
2130
2132
  });
2131
2133
  }
2132
2134
 
2133
- initAppLocale(Vue, vm, normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN);
2135
+ initAppLocale(Vue, vm, normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN);
2134
2136
 
2135
2137
  initHooks(appOptions, hooks);
2136
2138
  initUnknownHooks(appOptions, vm.$options);
package/license.md CHANGED
@@ -1 +1 @@
1
- [https://uniapp.dcloud.net.cn/license.html ](https://uniapp.dcloud.net.cn/license.html )
1
+ [https://dcloud.io/license/uni-app.html](https://dcloud.io/license/uni-app.html)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-quickapp-webview",
3
- "version": "2.0.2-4020920240930001",
3
+ "version": "2.0.2-4040420241231001",
4
4
  "description": "uni-app quickapp-webview",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -17,5 +17,5 @@
17
17
  "name": "quickapp-webview",
18
18
  "title": "快应用(Webview)版"
19
19
  },
20
- "gitHead": "25e144b4432447224b6a5f294e059882d74f3db7"
20
+ "gitHead": "f5a282a67f3eda3204e8fa48882b129f47c17cd3"
21
21
  }