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

complex-data

Package Overview
Dependencies
Maintainers
1
Versions
321
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complex-data - npm Package Compare versions

Comparing version
4.9.3
to
4.9.4
+3
-0
history.md

@@ -24,2 +24,5 @@

### 4.9.4
- fix:修正TrackData.pushData未重新计算maxIndex的BUG
### 4.9.3

@@ -26,0 +29,0 @@ - feat:TrackData添加pushData方法

+1
-1
{
"name": "complex-data",
"version": "4.9.3",
"version": "4.9.4",
"description": "a complex data",

@@ -5,0 +5,0 @@ "type": "module",

@@ -204,2 +204,3 @@ import { getNum } from "complex-utils"

const lastSize = this.data.dict[this.data.dict.length - 1]
this.data.maxIndex++
if (target === 'last') {

@@ -418,2 +419,8 @@ this.data.dict[this.data.dict.length - 1] = lastSize + 1

}
getCurrentIndex() {
return this.$index.current.data
}
getCurrentValue() {
return this.data.list[this.getCurrentIndex()]
}
setIndex(index?: number) {

@@ -420,0 +427,0 @@ this.$setIndex(index)