@dcloudio/uni-quickapp-webview 2.0.2-4030620241128001 → 2.0.2-4040520250103001

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -326,7 +326,7 @@ const promiseInterceptor = {
326
326
  };
327
327
 
328
328
  const SYNC_API_RE =
329
- /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
329
+ /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
330
330
 
331
331
  const CONTEXT_API_RE = /^create|Manager$/;
332
332
 
@@ -404,11 +404,7 @@ let deviceWidth = 0;
404
404
  let deviceDPR = 0;
405
405
 
406
406
  function checkDeviceWidth () {
407
- const {
408
- platform,
409
- pixelRatio,
410
- windowWidth
411
- } = qa.getSystemInfoSync(); // uni=>qa runtime 编译目标是 uni 对象,内部不允许直接使用 uni
407
+ const { windowWidth, pixelRatio, platform } = qa.getSystemInfoSync(); // uni=>qa runtime 编译目标是 uni 对象,内部不允许直接使用 uni
412
408
 
413
409
  deviceWidth = windowWidth;
414
410
  deviceDPR = pixelRatio;
@@ -450,7 +446,7 @@ const messages = {};
450
446
  let locale;
451
447
 
452
448
  {
453
- locale = normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN;
449
+ locale = normalizeLocale( qa.getSystemInfoSync().language) || LOCALE_EN;
454
450
  }
455
451
 
456
452
  function initI18nMessages () {
@@ -576,7 +572,7 @@ function getLocale$1 () {
576
572
  return app.$vm.$locale
577
573
  }
578
574
  }
579
- return normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN
575
+ return normalizeLocale( qa.getSystemInfoSync().language) || LOCALE_EN
580
576
  }
581
577
 
582
578
  function setLocale$1 (locale) {
@@ -613,6 +609,7 @@ const interceptors = {
613
609
  var baseApi = /*#__PURE__*/Object.freeze({
614
610
  __proto__: null,
615
611
  upx2px: upx2px,
612
+ rpx2px: upx2px,
616
613
  getLocale: getLocale$1,
617
614
  setLocale: setLocale$1,
618
615
  onLocaleChange: onLocaleChange,
@@ -854,7 +851,7 @@ function populateParameters (result) {
854
851
  let _SDKVersion = SDKVersion;
855
852
 
856
853
  // hostLanguage
857
- const hostLanguage = language.replace(/_/g, '-');
854
+ const hostLanguage = (language || '').replace(/_/g, '-');
858
855
 
859
856
  // wx.getAccountInfoSync
860
857
 
@@ -2136,7 +2133,7 @@ function parseBaseApp (vm, {
2136
2133
  });
2137
2134
  }
2138
2135
 
2139
- initAppLocale(Vue, vm, normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN);
2136
+ initAppLocale(Vue, vm, normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN);
2140
2137
 
2141
2138
  initHooks(appOptions, hooks);
2142
2139
  initUnknownHooks(appOptions, vm.$options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-quickapp-webview",
3
- "version": "2.0.2-4030620241128001",
3
+ "version": "2.0.2-4040520250103001",
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": "260d428e1b77f54051f87b758586e3333ca58619"
20
+ "gitHead": "e6f67aab2109f4f519e46d9fc214b6c2c0edc6bc"
21
21
  }