@dcloudio/uni-quickapp-webview 2.0.2-4040520250103001 → 2.0.2-4050320250303001
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 +31 -5
- 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|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
|
|
329
|
+
/^\$|__f__|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
|
|
|
@@ -443,10 +443,19 @@ const LOCALE_ES = 'es';
|
|
|
443
443
|
|
|
444
444
|
const messages = {};
|
|
445
445
|
|
|
446
|
+
function getLocaleLanguage () {
|
|
447
|
+
let localeLanguage = '';
|
|
448
|
+
{
|
|
449
|
+
localeLanguage =
|
|
450
|
+
normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN;
|
|
451
|
+
}
|
|
452
|
+
return localeLanguage
|
|
453
|
+
}
|
|
454
|
+
|
|
446
455
|
let locale;
|
|
447
456
|
|
|
448
457
|
{
|
|
449
|
-
locale =
|
|
458
|
+
locale = getLocaleLanguage();
|
|
450
459
|
}
|
|
451
460
|
|
|
452
461
|
function initI18nMessages () {
|
|
@@ -572,7 +581,7 @@ function getLocale$1 () {
|
|
|
572
581
|
return app.$vm.$locale
|
|
573
582
|
}
|
|
574
583
|
}
|
|
575
|
-
return
|
|
584
|
+
return getLocaleLanguage()
|
|
576
585
|
}
|
|
577
586
|
|
|
578
587
|
function setLocale$1 (locale) {
|
|
@@ -1290,12 +1299,20 @@ const offPushMessage = (fn) => {
|
|
|
1290
1299
|
}
|
|
1291
1300
|
};
|
|
1292
1301
|
|
|
1302
|
+
function __f__ (
|
|
1303
|
+
type,
|
|
1304
|
+
...args
|
|
1305
|
+
) {
|
|
1306
|
+
console[type].apply(console, args);
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1293
1309
|
var api = /*#__PURE__*/Object.freeze({
|
|
1294
1310
|
__proto__: null,
|
|
1295
1311
|
getPushClientId: getPushClientId,
|
|
1296
1312
|
onPushMessage: onPushMessage,
|
|
1297
1313
|
offPushMessage: offPushMessage,
|
|
1298
|
-
invokePushCallback: invokePushCallback
|
|
1314
|
+
invokePushCallback: invokePushCallback,
|
|
1315
|
+
__f__: __f__
|
|
1299
1316
|
});
|
|
1300
1317
|
|
|
1301
1318
|
function findVmByVueId (vm, vuePid) {
|
|
@@ -2133,7 +2150,7 @@ function parseBaseApp (vm, {
|
|
|
2133
2150
|
});
|
|
2134
2151
|
}
|
|
2135
2152
|
|
|
2136
|
-
initAppLocale(Vue, vm,
|
|
2153
|
+
initAppLocale(Vue, vm, getLocaleLanguage$1());
|
|
2137
2154
|
|
|
2138
2155
|
initHooks(appOptions, hooks);
|
|
2139
2156
|
initUnknownHooks(appOptions, vm.$options);
|
|
@@ -2141,6 +2158,15 @@ function parseBaseApp (vm, {
|
|
|
2141
2158
|
return appOptions
|
|
2142
2159
|
}
|
|
2143
2160
|
|
|
2161
|
+
function getLocaleLanguage$1 () {
|
|
2162
|
+
let localeLanguage = '';
|
|
2163
|
+
{
|
|
2164
|
+
localeLanguage =
|
|
2165
|
+
normalizeLocale(qa.getSystemInfoSync().language) || LOCALE_EN;
|
|
2166
|
+
}
|
|
2167
|
+
return localeLanguage
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2144
2170
|
const mocks = ['nodeId', 'componentName', '_componentId', 'uniquePrefix'];
|
|
2145
2171
|
|
|
2146
2172
|
function isPage () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-quickapp-webview",
|
|
3
|
-
"version": "2.0.2-
|
|
3
|
+
"version": "2.0.2-4050320250303001",
|
|
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": "
|
|
20
|
+
"gitHead": "a2b65079c08db2a886090289a98e78eb4680e3e7"
|
|
21
21
|
}
|