zmdms-utils 0.0.40 → 0.0.41

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/es/water.js CHANGED
@@ -69,7 +69,7 @@ function mergeWaterConfig(waterConfig) {
69
69
  }
70
70
  function getDefaultContent() {
71
71
  var jwtInfo = parseToken();
72
- if (typeof jwtInfo === "object") {
72
+ if (typeof jwtInfo === "object" && jwtInfo != null) {
73
73
  var username = jwtInfo.real_name || jwtInfo.realName || "";
74
74
  var phone = jwtInfo.phone || "";
75
75
  var time = dayjs().format("YYMMDD");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-utils",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/water.ts CHANGED
@@ -76,7 +76,7 @@ export function mergeWaterConfig(waterConfig?: IWaterConfig) {
76
76
 
77
77
  function getDefaultContent() {
78
78
  const jwtInfo: any = parseToken();
79
- if (typeof jwtInfo === "object") {
79
+ if (typeof jwtInfo === "object" && jwtInfo != null) {
80
80
  const username = jwtInfo.real_name || jwtInfo.realName || "";
81
81
  const phone = jwtInfo.phone || "";
82
82
  const time = dayjs().format("YYMMDD");