@sedoo/unidoo 0.0.66 → 0.0.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedoo/unidoo",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --name unidoo src/plugin.js",
@@ -92,13 +92,13 @@ export default class CalendarHeatmap {
92
92
  const maxIndex = this.times.length - 1
93
93
  let n = index + 1
94
94
  if (countGreaterThanZero) {
95
- while (n < maxIndex) {
95
+ while (n <= maxIndex) {
96
96
  const curr = this.times[n]
97
97
  if (curr.endsWith('i')) return this._decodeDate(curr)
98
98
  n++
99
99
  }
100
100
  } else {
101
- while (n < maxIndex) {
101
+ while (n <= maxIndex) {
102
102
  const curr = this.times[n]
103
103
  if (!curr.endsWith('n')) return this._decodeDate(curr)
104
104
  n++
@@ -117,16 +117,16 @@ export default class CalendarHeatmap {
117
117
  let index = this.times.indexOf(this._encodeDate(date, null))
118
118
  if (index < 0) index = this.times.indexOf(this._encodeDate(date, 1))
119
119
  if (index < 0) index = this.times.indexOf(this._encodeDate(date, 0))
120
- if (index > 0) {
120
+ if (index >= 0) {
121
121
  let n = index - 1
122
122
  if (countGreaterThanZero) {
123
- while (n > 0) {
123
+ while (n >= 0) {
124
124
  const curr = this.times[n]
125
125
  if (curr.endsWith('i')) return this._decodeDate(curr)
126
126
  n--
127
127
  }
128
128
  } else {
129
- while (n > 0) {
129
+ while (n >= 0) {
130
130
  const curr = this.times[n]
131
131
  if (!curr.endsWith('n')) return this._decodeDate(curr)
132
132
  n--