complex-request
Advanced tools
+3
-0
| ### ToDo | ||
| - 刷新Token实现 | ||
| ### 0.5.10 | ||
| - complex-plugin版本升级,逻辑优化 | ||
| ### 0.5.8/9 | ||
@@ -5,0 +8,0 @@ - complex-plugin版本升级 |
+2
-2
| { | ||
| "name": "complex-request", | ||
| "version": "0.5.9", | ||
| "version": "0.5.10", | ||
| "description": "a complex request", | ||
@@ -11,3 +11,3 @@ "main": "index.ts", | ||
| "dependencies": { | ||
| "complex-plugin": "4.6.7 - 4.6.99" | ||
| "complex-plugin": "4.6.10 - 4.6.99" | ||
| }, | ||
@@ -14,0 +14,0 @@ "devDependencies": { |
+15
-5
@@ -96,5 +96,5 @@ import { isExist, storage, appendProp } from 'complex-utils' | ||
| require?: boolean | ||
| value: unknown | ||
| value?: unknown | ||
| location: locationType | ||
| time: undefined | number | ||
| time?: number | ||
| isExist: isExistType | ||
@@ -109,6 +109,16 @@ setValue: (data: unknown, unSave?: boolean) => void | ||
| this.prop = `require-${prop}-${ruleProp}` | ||
| this.require = initOption.require | ||
| this.value = initOption.value || undefined | ||
| if (initOption.require !== undefined) { | ||
| this.require = initOption.require | ||
| } | ||
| if (initOption.value !== undefined) { | ||
| this.value = initOption.value | ||
| } | ||
| this.location = initOption.location || 'body' | ||
| this.time = initOption.time == undefined ? time : initOption.time | ||
| if (initOption.time === undefined) { | ||
| if (time !== undefined) { | ||
| this.time = time | ||
| } | ||
| } else { | ||
| this.time = initOption.time | ||
| } | ||
| if (initOption.session != undefined) { | ||
@@ -115,0 +125,0 @@ session = initOption.session |
38583
0.62%790
1.28%