🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

complex-request

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complex-request - npm Package Compare versions

Comparing version
0.5.9
to
0.5.10
+3
-0
history.md
### 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": {

@@ -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