mm_check 1.4.3 → 1.4.5

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/index.js +5 -2
  2. package/package.json +3 -4
package/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  require('mm_expand');
7
7
 
8
8
  // 语言包
9
- if($.lang.now === "chinese"){
9
+ if ($.lang.now === "chinese") {
10
10
  delete $.lang.chinese;
11
11
  delete $.lang.english;
12
12
  $.lang.now = "zh_cn";
@@ -115,6 +115,9 @@ class Check {
115
115
  /* 字典相关验证 */
116
116
  this.object = [];
117
117
 
118
+ /* 默认值 */
119
+ this.default = "";
120
+
118
121
  if (param) {
119
122
  $.push(this, param, true);
120
123
  }
@@ -432,4 +435,4 @@ if (global.$) {
432
435
  $.Check = Check;
433
436
  }
434
437
 
435
- module.exports = Check;
438
+ module.exports = Check;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_check",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "这是超级美眉check参数验证模块,用于验证参数是否正确",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,7 +26,6 @@
26
26
  },
27
27
  "homepage": "https://github.com/qiuwenwu/mm_check#readme",
28
28
  "dependencies": {
29
- "mm_expand": "^1.4.7"
30
- },
31
- "devDependencies": {}
29
+ "mm_expand": "^1.6.9"
30
+ }
32
31
  }