@tmsfe/tms-core 0.0.97 → 0.0.98

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@ const EventName = 'loc_status_changed';
18
18
 
19
19
  // 小程序切换到前台|后台之后清除缓存,使后续能重新定位获取到最新位置
20
20
  function cleanCache(type: string) {
21
- if (getLocPromise || userLocationCache) {
21
+ if (getLocPromise !== null || userLocationCache) {
22
22
  getLocPromise = null;
23
23
  userLocationCache = undefined;
24
24
  logger.log(type, '清除location缓存');
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  const maxArrLen = 10;
7
- const maxStrLen = 50;
7
+ const maxStrLen = 200;
8
8
  const maxFieldLen = 10;
9
9
 
10
10
  // 字符串字段白名单,白名单内的字段不截断
package/src/request.js CHANGED
@@ -346,7 +346,7 @@ export default class Request {
346
346
  err: JSON.stringify(err),
347
347
  };
348
348
  const str = JSON.stringify(obj, null, ' ').replace(/\\"/ig, '\'');
349
- logger.error(`接口请求失败:\n${str}`);
349
+ logger.warn(`接口请求失败:\n${str}`);
350
350
 
351
351
  reject(err);
352
352
  },