@dcloudio/uni-mp-toutiao 3.0.0-alpha-4040120241205001 → 3.0.0-alpha-4040120241206001

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.
@@ -727,7 +727,7 @@ const offPushMessage = (fn) => {
727
727
  }
728
728
  };
729
729
 
730
- const SYNC_API_RE = /^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
730
+ const SYNC_API_RE = /^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
731
731
  const CONTEXT_API_RE = /^create|Manager$/;
732
732
  // Context例外情况
733
733
  const CONTEXT_API_RE_EXC = ['createBLEConnection'];
@@ -988,7 +988,7 @@ function populateParameters(fromRes, toRes) {
988
988
  // SDKVersion
989
989
  let _SDKVersion = SDKVersion;
990
990
  // hostLanguage
991
- const hostLanguage = language.replace(/_/g, '-');
991
+ const hostLanguage = (language || '').replace(/_/g, '-');
992
992
  // wx.getAccountInfoSync
993
993
  const parameters = {
994
994
  appId: process.env.UNI_APP_ID,
@@ -1191,6 +1191,7 @@ const baseApis = {
1191
1191
  $once,
1192
1192
  $emit,
1193
1193
  upx2px,
1194
+ rpx2px: upx2px,
1194
1195
  interceptors,
1195
1196
  addInterceptor,
1196
1197
  removeInterceptor,
@@ -820,7 +820,7 @@ const offPushMessage = (fn) => {
820
820
  }
821
821
  };
822
822
 
823
- const SYNC_API_RE = /^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
823
+ const SYNC_API_RE = /^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/;
824
824
  const SYNC_API_RE_X = /getElementById/;
825
825
  const CONTEXT_API_RE = /^create|Manager$/;
826
826
  // Context例外情况
@@ -1089,7 +1089,7 @@ function populateParameters(fromRes, toRes) {
1089
1089
  // SDKVersion
1090
1090
  let _SDKVersion = SDKVersion;
1091
1091
  // hostLanguage
1092
- const hostLanguage = language.replace(/_/g, '-');
1092
+ const hostLanguage = (language || '').replace(/_/g, '-');
1093
1093
  // wx.getAccountInfoSync
1094
1094
  const parameters = {
1095
1095
  appId: process.env.UNI_APP_ID,
@@ -1299,6 +1299,7 @@ const baseApis = {
1299
1299
  $once,
1300
1300
  $emit,
1301
1301
  upx2px,
1302
+ rpx2px: upx2px,
1302
1303
  interceptors,
1303
1304
  addInterceptor,
1304
1305
  removeInterceptor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-mp-toutiao",
3
- "version": "3.0.0-alpha-4040120241205001",
3
+ "version": "3.0.0-alpha-4040120241206001",
4
4
  "description": "uni-app mp-toutiao",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@vue/shared": "3.4.21",
27
27
  "@vue/compiler-core": "3.4.21",
28
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-4040120241205001",
29
- "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4040120241205001",
30
- "@dcloudio/uni-mp-vite": "3.0.0-alpha-4040120241205001",
31
- "@dcloudio/uni-mp-vue": "3.0.0-alpha-4040120241205001",
32
- "@dcloudio/uni-shared": "3.0.0-alpha-4040120241205001"
28
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-4040120241206001",
29
+ "@dcloudio/uni-mp-compiler": "3.0.0-alpha-4040120241206001",
30
+ "@dcloudio/uni-mp-vite": "3.0.0-alpha-4040120241206001",
31
+ "@dcloudio/uni-mp-vue": "3.0.0-alpha-4040120241206001",
32
+ "@dcloudio/uni-shared": "3.0.0-alpha-4040120241206001"
33
33
  },
34
34
  "scripts": {
35
35
  "test": "echo \"Error: no test specified\" && exit 1"